OpenFOAM查看Y+报错:Unable to find turbulence model in the database
计算完成并使用 reconstructPar 重组计算结果之后,使用 postProcess -func yPlus 查看Y+,报错显示:
--> FOAM FATAL ERROR: Unable to find turbulence model in the database From function virtual bool Foam::functionObjects::yPlus::execute() in file yPlus/yPlus.C at line 185. FOAM exiting
使用下面的命令之后,不再报上面的错误:
simpleFoam -postProcess -func 'yPlus'
能够正确计算Y+:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Create time Create mesh for time = 0 PISO: Operating solver in PISO mode Time = 0 Reading field p Reading field U Reading/calculating face flux field phi Selecting incompressible transport model Newtonian Selecting turbulence model type RAS Selecting RAS turbulence model kEpsilon RAS { RASModel kEpsilon; turbulence on; printCoeffs on; Cmu 0.09; C1 1.44; C2 1.92; C3 0; sigmak 1; sigmaEps 1.3; } No MRF models present yPlus yPlus write: writing object yPlus patch wall y+ : min = 3.12141, max = 3.95786, average = 3.63117 Time = 0.001 Reading field p Reading field U Reading/calculating face flux field phi Selecting incompressible transport model Newtonian Selecting turbulence model type RAS Selecting RAS turbulence model kEpsilon RAS { RASModel kEpsilon; turbulence on; printCoeffs on; Cmu 0.09; C1 1.44; C2 1.92; C3 0; sigmak 1; sigmaEps 1.3; } No MRF models present yPlus yPlus write: writing object yPlus patch wall y+ : min = 3.11005, max = 3.94891, average = 3.62134 End