Defining faces as physical surfaces in Salome

Mesh generators, CAD programs, and other tools

Re: Defining faces as physical surfaces in Salome

Postby tibich72 » 09 Nov 2011, 18:51

Hi Mike,

I'm attaching the script that exports a mesh to Gmsh .msh format. The script also includes the parts that import the geometry, mesh it and declare groups based on it -- I haven't tested the export part without these steps, so thought it would be safer to include them too. As I've mentioned, it works for my examples, but there's no guarantee it works for other types of meshes -- it would be good if someone would have time to turn it into a complete exporter. The script may not be extremely optimized (it's my first Python code), but it seems to work OK.

Script for meshing and exporting to .msh format (change the extension, cannot upload it with a .py extension)
(5.73 KiB) Downloaded 57 times
Posts: 63
Joined: 07 Dec 2009, 05:16


Return to External tools

Who is online

Users browsing this forum: No registered users and 1 guest