关于KOmegaSST壁面设置问题



  • 采用KOmegaSST时,基于y+=1,针对nut采用无壁面函数形式

    FoamFile 
    {
        version     2.0;
        format      ascii;
        class       volScalarField;
        location    "0";
        object      nut;
    }
    // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
    
    dimensions      [0 2 -1 0 0 0 0];
    
    internalField   uniform 9.917e-06;
    
    boundaryField
    {
        RECTANGULAR-AIR
        {
               type            fixedValue;
               value           uniform 0;         
        }
        RECTANGULAR-WATER
        {
               type            fixedValue;
               value           uniform 0;         
        }
    

    在运行后报错

    --> FOAM FATAL ERROR: 
    Attempt to cast type fixedValue to type nutWallFunction at index 0
    
        From To& Foam::refCast(From&, Foam::label) [with To = const Foam::nutWallFunctionFvPatchScalarField; From = const Foam::fvPatchField<double>; Foam::label = int]
        in file /home/captain/OpenFOAM/OpenFOAM-v2006/src/OpenFOAM/lnInclude/typeInfo.H at line 162.
    
    FOAM aborting
    
    #0  Foam::error::printStack(Foam::Ostream&) at ??:?
    #1  Foam::error::exitOrAbort(int, bool) at ??:?
    #2  Foam::nutWallFunctionFvPatchScalarField::nutw(Foam::turbulenceModel const&, int) at ??:?
    #3  Foam::omegaWallFunctionFvPatchScalarField::calculate(Foam::turbulenceModel const&, Foam::List<double> const&, Foam::fvPatch const&, Foam::Field<double>&, Foam::Field<double>&) at ??:?
    #4  Foam::omegaWallFunctionFvPatchScalarField::calculateTurbulenceFields(Foam::turbulenceModel const&, Foam::Field<double>&, Foam::Field<double>&) at ??:?
    #5  Foam::omegaWallFunctionFvPatchScalarField::updateCoeffs() at ??:?
    #6  Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::Boundary::updateCoeffs() at ??:?
    #7  Foam::kOmegaSSTBase<Foam::LESModels::DESModel<Foam::IncompressibleTurbulenceModel<Foam::transportModel> > >::correct() at ??:?
    #8  ? in ~/OpenFOAM/OpenFOAM-v2006/platforms/linux64GccDPInt32Opt/bin/interFoam
    #9  __libc_start_main in /lib/x86_64-linux-gnu/libc.so.6
    #10  ? in ~/OpenFOAM/OpenFOAM-v2006/platforms/linux64GccDPInt32Opt/bin/interFoam
    

    基于KOmegaSST模型,不使用壁面函数,让其自行求解研究对象的壁面边界,结果报错~
    请教各位CFDer这个问题怎么解决:xiexie: :xiexie:



  • run.zip
    这个是run.log的报错文件,附上:xiexie:



  • @Zhoujq 把 fixedValue 改成 nutLowReWallFunction 试试?因为 omegaWallFunction 这个边界条件里面需要用到 nutWallFunction里面的东西,所以,如果你的 omega 壁面用的是 omegaWallFunction这个边界条件,那么你的nut就需要用一个继承自 nutWallFunction 的边界条件才行。 nutLowReWallFunction 这个边界条件其实就是把边界上的 nut 设置为一个非常小的数,跟你想要的是一样的。



  • @xpqiu 嗯嗯,非常感谢~:xiexie:


Log in to reply
 

CFD中文网 2016 - 2020 | 京ICP备15017992号-2