Defining faces as physical surfaces in Salome

Mesh generators, CAD programs, and other tools
tibich72
Posts: 63
Joined: 07 Dec 2009, 05:16

Re: Defining faces as physical surfaces in Salome

Post by tibich72 »

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.

Cheers,
Tibi
Attachments
exportMshpy.txt
Script for meshing and exporting to .msh format (change the extension, cannot upload it with a .py extension)
(5.73 KiB) Downloaded 300 times
Post Reply