How to convert tetrahedral mesh to polyhedral mesh

In OpenFOAM, We can simulate fluid dynamics with general meshes, such as tetrahedral, hexhedral, and with polyhedral mesh which workes well in OpenFOAM.

Generally, A tetrahedral mesh in a geometric model should be done, which should be converted to the format which used in OpenFOAM. If you use Salome to generate the tetrahedral mesh, you write it as a UNV format, then use this command to convert it to FOAM format:

ideasUnvToFoam   

Then use polyDualMesh to convert this mesh to polyhedral mesh:

polyDualMesh  

Where the feature angle is that the minimum angle between two faces.

In order to view the polyhedral mesh, paraview 3.2.1+ should be used to do.

If you have installed paraview 3.2.1, and not fixed it with foam format support, you could use foamToVTK to convert foam data format to VTK format so that the mesh and data can be viewed in paraview.

foamToVTK     -allPatches

where the option -allPatches means the patches (generally as boundaries) are written to a single file so that you use paraview to open this file /VTK/allPathces/allPatches_?.vtk.

One Reply to “How to convert tetrahedral mesh to polyhedral mesh”

  1. I saw something similar a few weeks before, however you did detailed study, and your article seems to
    be more compelling than others. I am amazed with the arguments
    you provided as well as the type of your article. I like
    when articles are both informative and interesting, when even boring details are presented in an interactive manner.
    Well, it’s definitely about your post.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.