LamBremhorstKE模型



  • 请教各位老师,open foam在使用低雷诺数湍流模型LamBremhorstKE时,需不需要选择壁面函数?


  • OpenFOAM副教授

    @lambs 理论上低雷诺数模型无需壁面函数。但在OpenFOAM中,最好采用壁面函数,例如对K方程采用kLowReWallFunction,epsilon方程采用epsilonLowReWallFunction。



  • @dzw05 老师0文件夹下的边界条件f,nuTilda,omega,v2是什么意思啊,该怎么填呢0_1535336871695_ZL77$VT%@G_0R5.png


  • OpenFOAM副教授

    @lambs 其实这是不同湍流模型用到的变量。f和v2是v2f湍流模型,nuTilda是SA模型的变量;k和omega是k-omega模型的变量。nut则是湍流粘性,所有湍流模型都会用到。



  • @dzw05 就是说不是所有的文件都有用,只需要填写自己使用模型的变量的边界条件就可以是吗(在LB模型中只填写nut,k,epsilon,p,u)



  • 我在使用simpleFoam运行这个模型时出现了这样的错误,这是为什么?

    
    --> FOAM FATAL ERROR: 
    
        request for volScalarField::Internal LamBremhorstKE:G from objectRegistry region0 failed
        available objects of type volScalarField::Internal are
    
    8
    (
    nut
    yWall
    k
    nu
    p
    (sqr((1-exp((-0.0165*((sqrt(k)*yWall)|nu)))))*(1+(20.5|((sqr(k)|(nu*epsilon))+1e-15))))
    (sqr(k)|(nu*epsilon))
    epsilon
    )
    
    
        From function const Type& Foam::objectRegistry::lookupObject(const Foam::word&) const [with Type = Foam::DimensionedField<double, Foam::volMesh>]
        in file /home/ubuntu/OpenFOAM/OpenFOAM-4.1/src/OpenFOAM/lnInclude/objectRegistryTemplates.C at line 193.
    
    FOAM aborting
    
    #0  Foam::error::printStack(Foam::Ostream&) at ??:?
    #1  Foam::error::abort() at ??:?
    #2  Foam::DimensionedField<double, Foam::volMesh> const& Foam::objectRegistry::lookupObject<Foam::DimensionedField<double, Foam::volMesh> >(Foam::word const&) const at ??:?
    #3  Foam::epsilonLowReWallFunctionFvPatchScalarField::calculate(Foam::turbulenceModel const&, Foam::List<double> const&, Foam::fvPatch const&, Foam::Field<double>&, Foam::Field<double>&) at ??:?
    #4  Foam::epsilonWallFunctionFvPatchScalarField::calculateTurbulenceFields(Foam::turbulenceModel const&, Foam::Field<double>&, Foam::Field<double>&) at ??:?
    #5  Foam::epsilonWallFunctionFvPatchScalarField::updateCoeffs() at ??:?
    #6  Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::Boundary::evaluate() at ??:?
    #7  Foam::incompressible::RASModels::LamBremhorstKE::correctNut(Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&) at ??:?
    #8  Foam::incompressible::RASModels::LamBremhorstKE::correctNut() at ??:?
    #9  ? at ??:?
    #10  __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
    #11  ? at ??:?
    

  • CORE 网格教授 OpenFOAM教授 管理员

    错误消息提示你的求解器里面没有这个场的声明。

    没用过这个求解器,我在simpleFoam/pitzDaily下面测试了一下可以运行



  • @东岳 老师,是这个volScalarField吗?该怎么声明呢?


  • CORE 网格教授 OpenFOAM教授 管理员

    @lambs 这个算例后来验证的如何了?


 

Forest
Mountains