CFD中文网

    CFD中文网

    • 登录
    • 搜索
    • 最新
    1. 主页
    2. xzdbjx
    X
    • 资料
    • 关注 0
    • 粉丝 2
    • 主题 0
    • 帖子 4
    • 群组 0

    xzdbjx

    @xzdbjx

    83
    资料浏览
    4
    帖子
    2
    粉丝
    0
    关注
    注册时间 最后登录

    xzdbjx 取消关注 关注

    xzdbjx 发布的最新帖子

    • RE: 介绍一种新的大气边界层入口生成方法DFSR

      谢谢您的分享:huahua:

      发布在 OpenFOAM
      X
      xzdbjx
    • RE: decomposePar出问题

      @number44 我也遇到了相同的问题,试了您的方法,还是不行

      发布在 OpenFOAM
      X
      xzdbjx
    • RE: LES定义入口速度的问题(DSRFG方法)

      @陈冠江 感谢您的回复,我修改下再看看结果。

      发布在 OpenFOAM
      X
      xzdbjx
    • RE: LES定义入口速度的问题(DSRFG方法)

      各位老师专家好,我目前在做ABL的LES湍流入口时也碰到一些问题想和大家交流学习。我之前一直用Fluent来生成LES的湍流入口,近半年开始对Openfoam感兴趣,于是开始尝试把Fluent的相关算法移植到Openfoam当中,我采用的算法是华南理工杨易老师课题组提出的NSRFG算法,参考文献:
      [1] Yu Y, Yang Y, Xie Z. A new inflow turbulence generator for large eddy simulation evaluation of wind effects on a standard high-rise building[J]. Building and Environment, 2018, 138: 300-313.
      先把Fluent和of的计算结果图贴两张,我主要对PSD和湍流强度与平均风剖面进行了验证。
      计算域
      计算域.png

      1. Fluent流场图及验证图

        P1 是入口处的测点,P2是模型处的测点
        fluentux.png
        fluentyanzheng.png

      2. Openfoam流场图与验证图
        ux.png
        ofyanzheng.png
        这里貌似of的结果还行,但实际上我认为Fluent的结果更合理,因为数值耗散等因素的影响,湍动能一定会在计算过程中耗散,因此模型处的PSD一定会更加吻合目标值。所以我目前怀疑我的case设置有问题,目前我采用的LES是WALE模型,0文件夹下应该要设置k 和 nut两个文件,我的设置分别如下:

      /*--------------------------------*- C++ -*----------------------------------*\
        =========                 |
        \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
         \\    /   O peration     | Website:  https://openfoam.org
          \\  /    A nd           | Version:  6
           \\/     M anipulation  |
      \*---------------------------------------------------------------------------*/
      FoamFile
      {
          version     2.0;
          format      ascii;
          class       volScalarField;
          location    "0";
          object      k;
      }
      // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
      
      dimensions      [0 2 -2 0 0 0 0];
      
      internalField   uniform 0.0001;
      
      boundaryField
      {
          inlet
          {
              type            fixedValue;
              value           uniform 0;
          }
          ground
          {
      		type	        kLowReWallFunction;		//For high and low Re
              value           $internalField;
          }
          top
          {
              type            symmetry;
          }
          side1
          {
              type            symmetry;
          }
          side2
          {
              type            symmetry;
          }
          outlet
          {
              type            zeroGradient;
      
          }
      }
      
      
      /*--------------------------------*- C++ -*----------------------------------*\
        =========                 |
        \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
         \\    /   O peration     | Website:  https://openfoam.org
          \\  /    A nd           | Version:  6
           \\/     M anipulation  |
      \*---------------------------------------------------------------------------*/
      FoamFile
      {
          version     2.0;
          format      ascii;
          class       volScalarField;
          location    "0";
          object      nut;
      }
      // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
      
      dimensions      [0 2 -1 0 0 0 0];
      
      internalField   uniform 1e-8;
      
      boundaryField
      {
          inlet
          {
              type            zeroGradient;
          }
          ground
          {
      		type            nutUSpaldingWallFunction;
              value           uniform 1e-8;
          }
          top
          {
              type            symmetry;
          }
          side1
          {
              type            symmetry;
          }
          side2
          {
              type            symmetry;
          }
          outlet
          {
              type            zeroGradient;
      
          }
      }
      
      
      // ************************************************************************* //
      

      这里我不太确定两个文件中internalField参数应该如何取值?另外,这两个参数对结果影响是否很大?请各位老师专家解答。谢谢!(P.S. of计算速度是真的快)

      发布在 OpenFOAM
      X
      xzdbjx