OpenFOAM中Laplacian方案未定义参数问题求助
问题排查:chtMultiRegionFoam求解器运行报错
配置文件内容
fvSchemes文件
FoamFile { version 2.0; format ascii; class dictionary; location "system/fin"; object fvSchemes; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // ddtSchemes { default steadyState; } gradSchemes { default Gauss linear; } divSchemes { default none; } laplacianSchemes { default none; laplacian(alpha,e) Gauss linear corrected; } interpolationSchemes { default linear; } snGradSchemes { default corrected; }
fvSolution文件
FoamFile { version 2.0; format ascii; class dictionary; location "system/fin"; object fvSolution; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // solvers { "e.*" { solver GAMG; smoother symGaussSeidel; tolerance 1e-6; relTol 0.1; } // eFinal //{ // $e; // tolerance 1e-06; // relTol 0; //} "alpha.*" { solver GAMG; smoother symGaussSeidel; tolerance 1e-6; relTol 0.1; } } PIMPLE { nNonOrthogonalCorrectors 0; } relaxationFactors { equations { e 0.7; alpha 0.7; } }
运行报错信息
Solving for solid region fin --> FOAM FATAL IO ERROR: keyword laplacian(alphae,e) is undefined in dictionary "/home/thamasha/OpenFOAM/thamasha-10/run/tutorials/incompressible/icoFoam/engine/system/fin/fvSchemes/laplacianSchemes" file: /home/thamasha/OpenFOAM/thamasha-10/run/tutorials/incompressible/icoFoam/engine/system/fin/fvSchemes/laplacianSchemes from line 35 to line 36. From function const Foam::entry& Foam::dictionary::lookupEntry(const Foam::word&, bool, bool) const in file db/dictionary/dictionary.C at line 831. FOAM exiting
已尝试操作
- 将fvSchemes中
laplacian(alpha,e)改为laplacian(alphae,e),终端直接崩溃 - 检查fin和air区域的边界条件,未发现异常
求助
请协助排查该错误是否为内存问题或其他原因导致。
内容的提问来源于stack exchange,提问作者Thamasha
相关产品推荐
相关产品推荐

