CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ... (
-   -   Converting mesh from Icem CFD to OpenFoam (

thyxxx January 9, 2012 14:17

Converting mesh from Icem CFD to OpenFoam

I have a problem to import a mesh-file (*.msh), which I created in Ansys Icem CFD, to OpenFoam.

Basically, the mesh describes two circular tubes sticked together like a T-Junction.
When I use the "mshToFoam <*.msh-file>"-command, I receive the following ERROR:

1 /*---------------------------------------------------------------------------*\
2 ========= |
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4 \\ / O peration | Version: 1.7.1
5 \\ / A nd | Web:
6 \\/ M anipulation |
7 -------------------------------------------------------------------------------
20 //*****************************************//
21 Create Time
23 Trying to read 1128683573 tets.
25 Segmentation fault

I have no idea why I receive the "Segmentation fault"-Error, which mistake causes the Error OR where I have to search for the mistake.

I already checked the memory, and there should be enough memory to handle this conversion. This should not be the reason.

I found this following Error-description which could have the same origin:

But honestly, it doesn't help me to fix the Problem.

Does somebody have an idea what to do to find the mistake resp. solve the problem? Perhaps somebody had this problem before and knows how to fix it?
I really need to import this mesh into OpenFoam and run simulations ...!

Many thx

jyothishkumar January 11, 2012 07:17

try to use "fluent3DMeshToFoam meshname.msh"

thyxxx January 19, 2012 13:33

ok, i got it.

there are differences between *.msh-files, although the ending ".msh" is the same.

in my case i used the "FluentV6x"_solver to export the mesh from Ansys, and in OF i used "fluentMeshToFoam" (or as you told me: "fluent3DMeshToFoam") to import the mesh.

following this export/import-procedure, it was finally possible to import the mesh in OF and run simulations on it.

Thank you very much for your help.

OvGU May 9, 2014 16:13

I'm quite beginner in ICEM and OFoam. From tutorial I found 3 folders for Blockmesh+Polymesh[Pressure+Velocity]..... but when Im going to export a mesh file from icem to OFoam then how I can get this folders.

Is it going to automatically generate @ OFoam itself or .......because I find in some places that we need to make these directory ourselves that is called OF cases but how it's possible..... Can you give some idea /links where It is demonstrated step by step.

Thanking in advance.......

All times are GMT -4. The time now is 05:34.