CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ...

foam Mesh to Fluent

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By robboflea

Reply
 
LinkBack Thread Tools Display Modes
Old   October 19, 2009, 16:25
Default foam Mesh to Fluent
  #1
New Member
 
Join Date: Sep 2009
Posts: 17
Rep Power: 9
tachyon_me is on a distinguished road
I'm trying to get foam mesh converted to fluent with
foamMeshToFluent

I'm not sure how to get this correct ... my fluent mesh is missing all the cellZone information. So I dont have any additional fluid/porous zones in the mesh converted in fluent format ..

Any help appreciated .. thanks
tachyon_me is offline   Reply With Quote

Old   October 21, 2009, 02:59
Default
  #2
Member
 
toto
Join Date: Jun 2009
Posts: 71
Rep Power: 10
ronaldo is on a distinguished road
Hi tachyon_me,

let me know ! It is 2D or 3D?
ronaldo is offline   Reply With Quote

Old   October 21, 2009, 10:16
Default
  #3
New Member
 
Join Date: Sep 2009
Posts: 17
Rep Power: 9
tachyon_me is on a distinguished road
Thanks, it's 3d mesh. I was able to get them after splitting the mesh based on cellzones. Let me also know if there are quick and better way of doing ....
tachyon_me is offline   Reply With Quote

Old   October 22, 2009, 02:06
Default
  #4
Member
 
toto
Join Date: Jun 2009
Posts: 71
Rep Power: 10
ronaldo is on a distinguished road
use fluent3DMeshToFoam and let me know ...
ronaldo is offline   Reply With Quote

Old   October 22, 2009, 07:02
Default
  #5
Senior Member
 
Gijsbert Wierink
Join Date: Mar 2009
Posts: 383
Rep Power: 11
gwierink is on a distinguished road
Code:
fluentMeshToFoam myMesh.msh -writeSets -writeZones -scale 0.001
also works most of the time for me (for a mesh called myMesh.msh in mm).

Cheers, Gijs
gwierink is offline   Reply With Quote

Old   October 22, 2009, 10:26
Default
  #6
New Member
 
Join Date: Sep 2009
Posts: 17
Rep Power: 9
tachyon_me is on a distinguished road
Thanks , Thats helpful...

But In my case I would like to convert SnappyHexMesh "FOAM Mesh" to fluent format while keeping all cellZone as separate fluid zones in fluent...


I guess for this matter I cant do

foamMeshToFluent -time 4 -writeSets -writeZones


But otherwise if you would like to convert fluent mesh to foam the command suggested by Wierink works without a problem ...
tachyon_me is offline   Reply With Quote

Old   September 9, 2011, 06:39
Default hello every one
  #7
Member
 
Jignesh
Join Date: Aug 2011
Location: India
Posts: 68
Rep Power: 8
jignesh_thaker2007 is on a distinguished road
Send a message via Yahoo to jignesh_thaker2007
hi
how i run my openfoam case in to fluent. because when i apply foamDataToFluent then it only convert .dat file but how i generate case file?

plz tel me
jignesh_thaker2007 is offline   Reply With Quote

Old   January 27, 2012, 07:43
Default
  #8
Member
 
Tibor Nyers
Join Date: Jul 2010
Location: Hungary
Posts: 91
Rep Power: 10
Toorop is on a distinguished road
Hi,

as I see, the problem of exporting the correct region names from a foamMesh to fluentMesh is still present in foamMeshToFluent command. The whole domain is exported, all the regions, but without any distinctive label, merged under the same placeholder / default region name.

How can one overcome this limitation?

How does the splitting method works that is mentioned earlier? I came up with this one:
Code:
splitMeshRegions -cellZonesOnly -makeCellZones -overwrite
I can make cellSets based on the regions, but it wont help foamMeshToFluent and I cannot see any special flag for the command.
Toorop is offline   Reply With Quote

Old   October 20, 2014, 22:39
Default
  #9
Member
 
Kan
Join Date: Feb 2014
Location: Australia
Posts: 54
Rep Power: 5
nwpukaka is on a distinguished road
Quote:
Originally Posted by Toorop View Post
Hi,

as I see, the problem of exporting the correct region names from a foamMesh to fluentMesh is still present in foamMeshToFluent command. The whole domain is exported, all the regions, but without any distinctive label, merged under the same placeholder / default region name.

How can one overcome this limitation?

How does the splitting method works that is mentioned earlier? I came up with this one:
Code:
splitMeshRegions -cellZonesOnly -makeCellZones -overwrite
I can make cellSets based on the regions, but it wont help foamMeshToFluent and I cannot see any special flag for the command.
Hi Tibor:

Are you now able to solve this limitation for foamMeshtoFluent?
nwpukaka is offline   Reply With Quote

Old   September 16, 2015, 14:02
Default
  #10
Member
 
R. P.
Join Date: Jul 2010
Posts: 72
Rep Power: 9
Rophys is on a distinguished road
Hi all,

I manage to export a mesh from fluent to OpenFoam; however, when I check the mesh (command checkMesh), I have 5 failures (see below). In addition, when I initialized the case I received a warming (see below). Anybody knows how to solve this problem?

Thanks.

CheckMesh

Code:
Create time

Create polyMesh for time = 0

Time = 0

Mesh stats
    points:           1463379
    faces:            4298112
    internal faces:   4207320
    cells:            1417572
    faces per cell:   6
    boundary patches: 5
    point zones:      0
    face zones:       1
    cell zones:       1

Overall number of cells of each type:
    hexahedra:     1417572
    prisms:        0
    wedges:        0
    pyramids:      0
    tet wedges:    0
    tetrahedra:    0
    polyhedra:     0

Checking topology...
 ****Problem with boundary patch 0 named Inlet of type patch. The patch should start on face no 4207320 and the patch specifies 4229394.
Possibly consecutive patches have this same problem. Suppressing future warnings.
 ***Boundary definition is in error.
    Cell to face addressing OK.
    Point usage OK.
    Upper triangular ordering OK.
    Face vertices OK.
    Number of regions: 1 (OK).

Checking patch topology for multiply connected surfaces...
    Patch               Faces    Points   Surface topology                  
    Inlet               9945     10132    ok (non-closed singly connected)  
    Sym                 39780    40512    ok (non-closed singly connected)  
    Outlet              7527     7683     ok (non-closed singly connected)  
    Inlet2              11466    11692    ok (non-closed singly connected)  
    Wall                22074    22397    ok (non-closed singly connected)  

Checking geometry...
    Overall domain bounding box (-0.3000000142 -3.024070027e-14 -3.241690292e-09) (0.6500000309 0.800000038 0.800000038)
    Mesh (non-empty, non-wedge) directions (1 1 1)
    Mesh (non-empty) directions (1 1 1)
 ***Boundary openness (1.281722558e-05 0.01952710315 0.01952386798) possible hole in boundary description.
 ***Open cells found, max cell openness: 0.9711407906, number of open cells 4602
  <<Writing 4602 non closed cells to set nonClosedCells
  <<Writing 89739 cells with high aspect ratio to set highAspectRatioCells
    Minimum face area = 3.116805768e-07. Maximum face area = 0.0001277530998.  Face area magnitudes OK.
 ***Zero or negative cell volume detected.  Minimum negative volume: -2.707374999e-08, Number of negative volume cells: 89739
  <<Writing 89739 zero volume cells to set zeroVolumeCells
    Mesh non-orthogonality Max: 179.8440355 average: 35.79636703
 ***Number of non-orthogonality errors: 265395.
  <<Writing 265395 non-orthogonal faces to set nonOrthoFaces
 ***Error in face pyramids: 538434 faces are incorrectly oriented.
  <<Writing 273039 faces with incorrect orientation to set wrongOrientedFaces
    Max skewness = 1.793962489 OK.
    Coupled point location match (average 0) OK.

Failed 5 mesh checks.

End
Create time

Create polyMesh for time = 0

Time = 0

Mesh stats
    points:           1463379
    faces:            4298112
    internal faces:   4207320
    cells:            1417572
    faces per cell:   6
    boundary patches: 5
    point zones:      0
    face zones:       1
    cell zones:       1

Overall number of cells of each type:
    hexahedra:     1417572
    prisms:        0
    wedges:        0
    pyramids:      0
    tet wedges:    0
    tetrahedra:    0
    polyhedra:     0

Checking topology...
 ****Problem with boundary patch 0 named Inlet of type patch. The patch should start on face no 4207320 and the patch specifies 4229394.
Possibly consecutive patches have this same problem. Suppressing future warnings.
 ***Boundary definition is in error.
    Cell to face addressing OK.
    Point usage OK.
    Upper triangular ordering OK.
    Face vertices OK.
    Number of regions: 1 (OK).

Checking patch topology for multiply connected surfaces...
    Patch               Faces    Points   Surface topology                  
    Inlet               9945     10132    ok (non-closed singly connected)  
    Sym                 39780    40512    ok (non-closed singly connected)  
    Outlet              7527     7683     ok (non-closed singly connected)  
    Inlet2              11466    11692    ok (non-closed singly connected)  
    Wall                22074    22397    ok (non-closed singly connected)  

Checking geometry...
    Overall domain bounding box (-0.3000000142 -3.024070027e-14 -3.241690292e-09) (0.6500000309 0.800000038 0.800000038)
    Mesh (non-empty, non-wedge) directions (1 1 1)
    Mesh (non-empty) directions (1 1 1)
 ***Boundary openness (1.281722558e-05 0.01952710315 0.01952386798) possible hole in boundary description.
 ***Open cells found, max cell openness: 0.9711407906, number of open cells 4602
  <<Writing 4602 non closed cells to set nonClosedCells
  <<Writing 89739 cells with high aspect ratio to set highAspectRatioCells
    Minimum face area = 3.116805768e-07. Maximum face area = 0.0001277530998.  Face area magnitudes OK.
 ***Zero or negative cell volume detected.  Minimum negative volume: -2.707374999e-08, Number of negative volume cells: 89739
  <<Writing 89739 zero volume cells to set zeroVolumeCells
    Mesh non-orthogonality Max: 179.8440355 average: 35.79636703
 ***Number of non-orthogonality errors: 265395.
  <<Writing 265395 non-orthogonal faces to set nonOrthoFaces
 ***Error in face pyramids: 538434 faces are incorrectly oriented.
  <<Writing 273039 faces with incorrect orientation to set wrongOrientedFaces
    Max skewness = 1.793962489 OK.
    Coupled point location match (average 0) OK.

Failed 5 mesh checks.

End
Warning during the initialization

Code:
--> FOAM Warning : 
    From function List<tetIndices> polyMeshTetDecomposition::faceTetIndices(const polyMesh&, label, label)
    in file meshes/polyMesh/polyMeshTetDecomposition/polyMeshTetDecomposition.C at line 570
    No base point for face 544557, 4(4 192002 192003 6), produces a valid tet decomposition.
Rophys is offline   Reply With Quote

Old   February 2, 2017, 07:10
Default
  #11
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Leoben (Austria)
Posts: 1,873
Blog Entries: 6
Rep Power: 32
Tobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Dear all,

it is a bit terrible to read through this thread because everybody is talking about different things. The thread starter mentioned that he wants to convert an OpenFOAM mesh to a fluent mesh and not vice versa. Based on that, he had problems in converting the cell zone information. Thats simply because in the foamMeshToFluent application this is not considered. I am also looking for some modification to get the cellZone information. Does anyone has done this already or can provide a *.msh file with cellZones (simple cube with two cellZones and 100 cells) in ascii format? If yes, I can make a workaround and solve the problem.
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Old   March 16, 2017, 05:12
Default
  #12
Member
 
Join Date: Nov 2011
Posts: 85
Rep Power: 7
robboflea is on a distinguished road
Dear Tobi,

I came across this post and I thought I could post a mesh. It would be great if you could provide the CFD communitiy a workaround

Thanks for the help!

Rob
Attached Files
File Type: zip fluent.msh.zip (158.6 KB, 8 views)
Tobi likes this.
robboflea is offline   Reply With Quote

Old   March 16, 2017, 05:18
Default
  #13
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Leoben (Austria)
Posts: 1,873
Blog Entries: 6
Rep Power: 32
Tobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Dear Robert,

my colleague does not need it anymore and I have a lot of things to do. I will check it out - maybe during the weekend but I cannot promise it. If I will succeed, I will kindly ask Henry Weller to patch the application. Thanks for your help.
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Old   March 20, 2017, 09:48
Default
  #14
Senior Member
 
Arjun
Join Date: Mar 2009
Location: Nurenberg, Germany
Posts: 704
Rep Power: 19
arjun will become famous soon enough
Quote:
Originally Posted by Tobi View Post
Dear Robert,

my colleague does not need it anymore and I have a lot of things to do. I will check it out - maybe during the weekend but I cannot promise it. If I will succeed, I will kindly ask Henry Weller to patch the application. Thanks for your help.
Is there any way to know about mesh format that openfoam uses. If there is any information and someone willing to provide multi-region sample meshes then i might write down tool to convert openfoam to fluent.
The reason is that FVUS-wildkatze solver can convert from Fluent and from starccm to its format.
FVUS can also write in fluent format (i need to check if current version has but i know that there is code to write fluent file somewhere so its not a big deal).

This opens up possiblity of openfoam users to use FVUS too, so it does interest me.
arjun is offline   Reply With Quote

Old   March 20, 2017, 10:15
Default
  #15
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Leoben (Austria)
Posts: 1,873
Blog Entries: 6
Rep Power: 32
Tobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
You can just check out the foam converters. I think you will find all necessary information there. If you have a foamToFluentMeshExtend converter, please let the community know. I have not time to investigate into that right now.
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Old   April 21, 2017, 05:24
Default
  #16
Senior Member
 
KaLium's Avatar
 
Kal-El
Join Date: Apr 2017
Location: Finland
Posts: 144
Rep Power: 2
KaLium is on a distinguished road
I don't know how to fix this, but you can go around it.

use foamToEnsightParts. You can import the part to fluent (file -> import -> Ensight)
KaLium is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[ICEM] Unstructure Meshing Around Imported Plot3D Structured Mesh ICEM kawamatt2 ANSYS Meshing & Geometry 17 December 20, 2011 12:45
Importing TrueGrid mesh in Fluent dipankar FLUENT 0 October 16, 2009 18:22
Problem with rhoSimpleFoam matteo_gautero OpenFOAM Running, Solving & CFD 0 February 28, 2008 07:51
fluent add additional zones for the mesh file SSL FLUENT 2 January 26, 2008 12:55
Axisymmetrical mesh Rasmus Gjesing (Gjesing) OpenFOAM Native Meshers: blockMesh 10 April 2, 2007 14:00


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