【发布时间】:2018-07-03 10:26:24
【问题描述】:
我正在尝试关注this OpenFOAM tutorial 使用 Gmsh 生成轴对称网格。这些文件由here 提供。但是,当我尝试使用 pimpleFoam 求解器解决问题时,出现错误:
--> 泡沫致命错误: 未知 TurbulenceModel 类型 RASModel
有效的 TurbulenceModel 类型:
3 ( LES RAS 层 )
从函数 static Foam::autoPtr > Foam::TurbulenceModel::New(const alphaField&, const rhoField&, const volVecto rField&, const surfaceScalarField&, const surfaceScalarField&, const transportMo del&, const Foam::word&) [with Alpha = Foam ::geometricOneField; Rho = Foam::geom etricOneField; BasicTurbulenceModel = Foam::incompressibleTurbulenceModel;运输模型 = 泡沫::运输模型; Foam::TurbulenceModel::alphaField = Foam::geometricOneField; Foam::Turbulenc eModel::rhoField = Foam::geome tricOneField; Foam::volVectorField = Foam::GeometricField; Foam::surfaceScalarField = Foam::GeometricField; Foam::TurbulenceModel::transportModel = Foam::transportMo del] 在文件 /opt/CFDSupportFOAM4.0/beta/OpenFOAM-dev/src/TurbulenceModels/turbulenceModels/lnInclude/TurbulenceModel.C 的第 113 行。
正如this page 中所解释的,case/constant 中的turbulenceProperties 的语法显然已经改变。所以我从以下位置编辑了turbulenceProperties 文件:
simulationType RASModel;
到
simulationType RAS;
RAS
{
RASModel kEpsilon;
turbulence on;
printCoeffs on;
}
然后我得到一个不同的错误:
FOAM 致命 IO 错误: 尝试阅读 EOF 以外的内容
文件:.../Axisymmetric2D/case/system/fvSchemes.divSchemes.default 在第 29 行。
从函数 virtual Foam::Istream& Foam::ITstream::read(Foam::token&) 在第 82 行的文件 db/IOstreams/Tstreams/ITstream.C 中。 泡沫退出
本教程似乎适用于旧版本的 OpenFOAM。如果您能帮助我了解问题所在以及如何解决,我将不胜感激。
我的目标是学习如何使用 Gmsh 制作轴对称网格。所以新版本 OpenFOAM 的开箱即用解决方案或教程也可以。
附:我已经报告了这个问题here in the Github repo
【问题讨论】:
标签: openfoam