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

[mesh manipulation] How to export an OpenFoam mesh

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 3, 2022, 11:35
Default How to export an OpenFoam mesh
  #1
Senior Member
 
Join Date: Dec 2021
Posts: 203
Rep Power: 5
Alczem is on a distinguished road
Hey everyone!


I am looking for a way to export a mesh written in the polymesh folder of an OpenFoam case, so that I can save it to a .cgns, .unv or .med file, and eventually use it in code_saturne.



I tried several things:


  • read the mesh in Paraview and save it as a CGNS file, but I cannot use it after the conversion


  • import the Paraview-generated CGNS in Salome Mesh. It creates two bodies (one for the surfaces, one for the volumes). I create a compound but somehow it distorts the elements and the mesh is useless.


  • foamToEnsight with several options, but the file misses the index of the vertices according to code_saturne


  • From Paraview, save the different boundary patches to stl files, import them in Salome then use them to create a 3D mesh, but I cannot figure out that last step.


I also looked into softwares that would allow the user to read an openfoam case and then save the mesh separately (I know cfMesh+ can do that, I also tried with Helyx OS and simflow without any success).


There is also a community utility foamToMed written for OF2.0 if I remember correctly, but I have to work with OFv2206...





And now I am running out of ideas does anyone have any experience with this kind of issue? Thanks for the help!
Alczem is offline   Reply With Quote

Old   October 4, 2022, 09:48
Default
  #2
Senior Member
 
Join Date: Dec 2021
Posts: 203
Rep Power: 5
Alczem is on a distinguished road
Hey!


I eventually found a workaround which does not need to use OF meshers: I used the Reverse Engineering module of FreeCad to map a bspline surface to my elevation map. Then I could use all the boolean operations needed in Salome.


If anyone does have an actual solution for the original question, feel free to post it
Alczem is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[OpenFOAM.com] Problem installation OpenFOAM 6 wamars OpenFOAM Installation 0 June 23, 2020 09:01
[snappyHexMesh] No layers in a small gap bobburnquist OpenFOAM Meshing & Mesh Conversion 6 August 26, 2015 09:38
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 06:20
Mesh export to OpenFOAM issue sihaqqi OpenFOAM Pre-Processing 2 March 2, 2013 22:14
Icemcfd 11: Loss of mesh from surface mesh option? Joe CFX 2 March 26, 2007 18:10


All times are GMT -4. The time now is 22:40.