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/)
-   -   [Salome] Export .eMesh from edge set of Salome mesh (https://www.cfd-online.com/Forums/openfoam-meshing/190893-export-emesh-edge-set-salome-mesh.html)

GerhardHolzinger July 25, 2017 10:54

Export .eMesh from edge set of Salome mesh
 
1 Attachment(s)
If you are - for whatever reason - not satisfied with OpenFOAM's tool to extract feature edges from STLs created with Salome, you may wish to be able to directly extract feature edges from Salome, since all the information is already there.
There is a script for doing exactly that kind of job, see the attachment which is based on the script posted originally at http://www.salome-platform.org/forum/forum_10/714480261

How it works:
  • Create the geometry in Salome
  • Create a group of edges in the GEOM module
  • Create the (surface) mesh in the MESH module
  • Create a Group from Geometry
    • Select the edge group previously created in the GEOM module
  • Select the newly created group of edges
  • Run the script via "File -> Load Script" or "execfile()" in the Python Terminal
  • The feature edges are written to /tmp/test.eMesh
The script is known to work with Salome 8.2 and OpenFOAM-4.0

saladinheart November 16, 2017 05:29

now also compatible with Helyx-OS 2.4.0
 
1 Attachment(s)
Did little modifications to make it compatible with Helyx-OS 2.4.0 too.


All times are GMT -4. The time now is 12:19.