CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   ANSYS Meshing & Geometry (https://www.cfd-online.com/Forums/ansys-meshing/)
-   -   [ANSYS Meshing] How to import a mesh (*.msh) from Ansys Icem CFD to OpenFoam? (https://www.cfd-online.com/Forums/ansys-meshing/96010-how-import-mesh-msh-ansys-icem-cfd-openfoam.html)

thyxxx January 10, 2012 09:42

How to import a mesh (*.msh) from Ansys Icem CFD to OpenFoam?
 
Hello,

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: www.OpenFOAM.com
6 \\/ M anipulation |
7 -------------------------------------------------------------------------------
8
...
19
20 //*****************************************//
21 Create Time
22
23 Trying to read 1128683573 tets.
24
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:
http://www.openfoam.com/mantisbt/vie...d=104#bugnotes

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


Does somebody has 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?

Many thx

PSYMN January 11, 2012 11:39

A segmentation fault is usually memory related. Are you sure that you can handle over a billion tetras? Few people can.

I would suggest trying a smaller *.msh file just to make sure you can handle something basic. Try something with less than a million cells just to check your process.

Best regards,

Simon

thyxxx January 19, 2012 12:31

ok, i got it.

the memory wasn't the reason for the error during the mesh-import.
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" 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.


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