CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[Commercial meshers] Converting mesh from Icem CFD to OpenFoam

Register Blogs Community New Posts Updated Threads Search

Like Tree5Likes
  • 2 Post By thyxxx
  • 2 Post By OvGU
  • 1 Post By bluebase

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 9, 2012, 14:17
Default Converting mesh from Icem CFD to OpenFoam
  #1
New Member
 
fbt
Join Date: Jan 2012
Posts: 4
Rep Power: 14
thyxxx is on a distinguished road
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 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
thyxxx is offline   Reply With Quote

Old   January 11, 2012, 07:17
Default
  #2
Member
 
jk
Join Date: Jun 2009
Posts: 64
Rep Power: 17
jyothishkumar is on a distinguished road
try to use "fluent3DMeshToFoam meshname.msh"
jyothishkumar is offline   Reply With Quote

Old   January 19, 2012, 13:33
Default
  #3
New Member
 
fbt
Join Date: Jan 2012
Posts: 4
Rep Power: 14
thyxxx is on a distinguished road
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.
phuchuynh and granzer like this.
thyxxx is offline   Reply With Quote

Old   May 9, 2014, 17:13
Post hi
  #4
New Member
 
sd
Join Date: May 2014
Posts: 14
Rep Power: 12
OvGU is on a distinguished road
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.......
Lokesh_Malik and sfallah like this.
OvGU is offline   Reply With Quote

Old   October 3, 2018, 02:35
Default
  #5
New Member
 
Bimalendu Mahapatra
Join Date: May 2017
Posts: 6
Rep Power: 9
pintu0101 is on a distinguished road
I am Trying to convert fluent mesh to openfoam but it is giving error and i am unable to find where the error is... I am using "fluent3DMeshToFoam" command to convert the mesh.
The error is

/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 4.0 |
| \\ / A nd | Web: http://www.foam-extend.org |
| \\/ M anipulation | For copyright notice see file Copyright |
\*---------------------------------------------------------------------------*/
Build : 4.0-4fad65ce7cac
Exec : fluent3DMeshToFoam rectangle.msh
Date : Oct 03 2018
Time : 11:00:53
Host : aryan-X550CC
PID : 3791
CtrlDict : "/home/aryan/foam/aryan-4.0/run/rectangle/system/controlDict"
Case : /home/aryan/foam/aryan-4.0/run/rectangle
nProcs : 1
SigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Dimension of grid: 2
Number of points: 1581
Number of faces: 3080
Number of cells: 1500
--> FOAM Warning : Found unknown block of type: "3010"
on line 14


--> FOAM FATAL ERROR:
Do not understand characters: �
on line 15

From function fluentMeshToFoam::lexer
in file fluent3DMeshToFoam.L at line 753.

FOAM exiting



What should i do Please help..
Thanks in Advance.
pintu0101 is offline   Reply With Quote

Old   October 10, 2018, 08:04
Default
  #6
Senior Member
 
Sebastian Engel
Join Date: Jun 2011
Location: Germany
Posts: 567
Rep Power: 21
bluebase will become famous soon enough
Hi Bimalendu,


try to export the *.msh file in ascii format and run the converter again.

Some old post in cfdo indicate this is necessary for the *ToFoam converters, see this google search



Moreover, it seems the block type 3010 also indicates binary storage format for fluent mesh format (see 3.18.1 in http://www.afs.enea.it/fluent/Public.../PDF/chp03.pdf)






Best regards,
Sebastian
jadidi.cfd likes this.
bluebase is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Import Mesh from ICEM CFD to CFX Andre Almeida CFX 16 April 19, 2016 04:42
[mesh manipulation] Importing Multiple Meshes thomasnwalshiii OpenFOAM Meshing & Mesh Conversion 18 December 19, 2015 19:57
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 07:20
Converting Starccm+ mesh Ladnam OpenFOAM 0 September 14, 2011 07:30
Boddy fitted Hexcore Mesh in ICEM Cfd Mitch CFX 0 December 29, 2008 07:07


All times are GMT -4. The time now is 09:56.