[Gmsh] Write individual physical surfaces, preferably from Python API
Guillaume.DILASSER at cea.fr
Thu Oct 11 08:56:03 CEST 2018
Have you tried applying a physical tag to only one surface at a time and then exporting the model as STL ? I just tried it and it seems to work. Simply comment out all the lines where you define the physical tags except the one defining the inlet surface ; then open your model and export it as an STL. Rinse and repeat with every other surface you want to export. It might not be the most practical option if you have a large number of them but for only two that should to the trick.
De : gmsh <gmsh-bounces at ace20.montefiore.ulg.ac.be> De la part de Herzig Ivo (herziivo)
Envoyé : mercredi 10 octobre 2018 19:09
À : gmsh at onelab.info
Objet : [Gmsh] Write individual physical surfaces, preferably from Python API
Is there an option to write physical surfaces to individual files (preferably STL)? e.g. if I have physical surfaces "inlet" and "outlet" and I want to write them to "inlet.stl" and "outlet.stl" files.
Another option would be to write them to a single STL file but in separate solids named after the Physical surfaces, but I don't think gmsh can do that either?
Is there an Option I missed that does this? Or a command line switch?
Thanks for your help!
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the gmsh