在使用ANSYS meshing中生成了.msh网格文件之后,在Openfoam中使用fluent3DMeshToFoam xx.msh命令转化时报错!
[xxxx@K215 riser2-case4-drag-EMMS-simple]$ fluent3DMeshToFoam riser2.msh
/*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 6
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
Build : 6
Exec : fluent3DMeshToFoam riser2.msh
Date : Nov 19 2020
Time : 09:59:31
Host : "K215"
PID : 43581
I/O : uncollated
Case : /home/mmhe/OpenFOAM/mmhe-6/run/solver-20201105/riser2-case4-drag-EMMS-simple
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 10)
allowSystemOperations : Allowing user-supplied system call operations
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time
Dimension of grid: 3
Number of points: 41369
Number of faces: 125391
Number of cells: 41920
--> FOAM Warning : Found unknown block of type: "3010"
on line 14
--> FOAM FATAL ERROR:
Do not understand characters:
on line 15
From function virtual int yyFlexLexer::yylex()
in file fluent3DMeshToFoam.L at line 753.
FOAM exiting
最终的问题是因为在meshing中导出的时候,需要设置导出格式为ASCII格式!
在meshing中,点击File-> Options。
然后在弹出的设置表格中选择Meshing的Export,再Format of input File(*.msh)一栏选择ASCII,点OK保存设置,最后再导出一遍msh文件,就可以成功在Openfoam中转化了!