关于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这个问题怎么解决