ANSYS meshing 生成的网格转到Openfoam中报错

在使用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中转化了!

 

  • 8
    点赞
  • 15
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值