求助:foam-extend-4.1 mergeMeshes 失败

用Gambit生成两套网格(背景网格和重叠网格,.msh格式)导入fe41后(fluentMeshtoFoam *.msh),分别将两套网格(cosntant文件夹和system文件夹)放在不同的文件夹中。随后使用mergeMeshes操作出现问题。

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

mergeMeshes … oversetCylinder_fluentMesh . oversetCylinder

/---------------------------------------------------------------------------
| ========= | |
| \ / F ield | foam-extend: Open Source CFD |
| \ / O peration | Version: 4.1 |
| \ / A nd | Web: http://www.foam-extend.org |
| \/ M anipulation | For copyright notice see file Copyright |
*---------------------------------------------------------------------------*/
Build : 4.1-70b064d0f326
Exec : mergeMeshes … oversetCylinder_fluentMesh . oversetCylinder
Date : Sep 02 2024
Time : 20:54:18
Host : “gunther-All-Series”
PID : 16409
CtrlDict : “/home/gunther/TANHAO_fe41/oversetCylinder_fluentMesh/system/controlDict”
Case : /home/gunther/TANHAO_fe41/oversetCylinder_fluentMesh
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
allowSystemOperations : Disallowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Master: “…” “oversetCylinder_fluentMesh” region region0
mesh to add: “.” “oversetCylinder” region region0

Create Times
Reading master mesh for time = 0
Create mesh

Reading mesh to add for time = 0
Create mesh

→ FOAM Warning :
From function Foam::forces::forces(const word&, const objectRegistry&, const dictionary&, const bool)
in file forces/forces.C at line 209
No fvMesh available, deactivating.

→ FOAM FATAL ERROR:
Attempt to cast type mergePolyMesh to type fvMesh

From function refCast<To>(From&)
in file /home/gunther/foam/foam-extend-4.1/src/foam/lnInclude/typeInfo.H at line 114.

FOAM aborting

Aborted (core dumped)

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

出现“Attempt to cast type mergePolyMesh to type fvMesh”的提示。在网上没有搜到相关的解决办法,跪求大佬指点!!!

根据你的描述,估计是 system/controlDict 里面有 functionObjects,可能是一个,也有可能两个都有,针对你的 case,应该是 forces 的部分,如果把这部分屏蔽了,应该可以了。

大佬牛逼!确实如您所说,好使了 :grinning: