CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing & Mesh Conversion (https://www.cfd-online.com/Forums/openfoam-meshing/)
-   -   [mesh manipulation] Mesh Editing OpenFOAM? (https://www.cfd-online.com/Forums/openfoam-meshing/110831-mesh-editing-openfoam.html)

turbfoam December 21, 2012 22:19

Mesh Editing OpenFOAM?
 
Hi, I have an existing fine mesh which I want to make very coarse.
The mesh is not generated by me, so I have the mesh only as a plot3d file which I converted to openFOAM using plot3dToFoam....Hence no blockmeshDict file to change mesh density easily.

Any mesh utility in OpenFOAM to do this? Can anyone please point me towards any reference/tutorial for that? if not OpenFOAM what other software you suggest.


thank for your help very much....

cheers,
J.T.

wyldckat December 26, 2012 16:58

Hi J.T.,

I did see this thread the other day, and I saw just now your request on the other thread about "peturbU".
The short answer is, AFAIK: there is no such generic mesh application that "unrefines" meshes. At least not in OpenFOAM.

But there are some possibilities in OpenFOAM that can come close, depending on the mesh you've got:
  • polyDualMesh will construct a new mesh based on a tetrahedral mesh: http://openfoamwiki.net/index.php/PolyDualMesh
  • OpenFOAM relies on an octree refinement scheme of hex meshes, which allows it to regress back a refinement it has done before. This is done auto-magically for dynamic meshes, but I have yet to see it being used for coarsening a mesh.
    In theory, you could run the application refinementLevel for calculating the possible refinement level that was used in the mesh, but only in cartesian meshes. After that... I have no clue.
About the octree feature... I this was discussed in this thread: http://www.cfd-online.com/Forums/ope...am2-0-1-a.html


edit: for future reference, the following threads are on the same subject:

Best regards,
Bruno


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