Personal tools
You are here: Home Forum Use multi-surface stl

multi-surface stl

Up to Use

multi-surface stl

Posted by Philip at November 13. 2014

Hi SALOMErs,

 

is it possible to export an multi-surface .stl from the MESH-module? 

The different surfaces are needed in the meshing process of snappyHexMesh (OpenFOAM).

Maybe this could be included in SALOME with the ability of .stl-export from the GEOM-module (right now only possible without definition of the triangle quality, as far as I know).

 

Best regards

 

Philip

Re: multi-surface stl

Posted by Saint Michael at November 13. 2014

Hi Philip

is it possible to export an multi-surface .stl from the MESH-module?

Yes.

File > Export > STL. 

Or pop-up of a mesh, sub-mesh, group > Export > STL

St.Michael

Re: multi-surface stl

Posted by Philip at November 13. 2014

Hm...how do I define the surfaces in SALOME then to get an .stl-file like:

solid input

...

endsolid

solid output

...

endsolid

 

I created groups in the mesh, but they did not get exported. So ended up exporting the single groups and merging the .stl-files by hand, putting in the names (inlet, outlet, ..).

 

Best regards

Philip

Re: multi-surface stl

Posted by Saint Michael at November 13. 2014

Hi Philip

What software uses this unusual (with several solids) format?

St.Michael

Re: multi-surface stl

Posted by Saint Michael at November 13. 2014

The different surfaces are needed in the meshing process of snappyHexMesh (OpenFOAM).

What software uses this unusual (with several solids) format?

Ahh.. snappyHexMesh, right?

Re: multi-surface stl

Posted by Philip at November 14. 2014

Ahh.. snappyHexMesh, right?

Yup ;)

 

Re: multi-surface stl

Posted by Gerhard Holzinger at July 25. 2017

Sorry for necro-bumping this thread. Just for completeness I would like to share a work flow that does the thing the original post is about.

  • Create the geometry and create face groups for the intended patches
  • Create the mesh (volume mesh) and face groups from geometry
  • Export to UNV format
  • Import the UNV into OpenFOAM using ideasUnvToFoam
  • Export the OpenFOAM mesh to STL using foamToSurface

I admit, this is a bit convoluted. However, the resulting STL will have several solid definitions matching the patches.

Re: multi-surface stl

Posted by Fynn at August 09. 2017
I was having the same problem and can only offer a different workaround:
 
Export the surfaces separately after meshing them (geometry STL export are not water tight) and them use attached script to merge them and assign names to them.
 
In my example I export the three surfaces 'inlet_vonKarmanTest.stl', 'outlet_vonKarmanTest.stl' and 'wall_vonKarmanTest.stl'. The script 'uniteSTL.sh' sits in the constant/triSurface folder together with these STLs. When it is executed it adds 'solid inlet', 'solid outlet' and 'solid wall' to the STL's first lines and merges them together to 'geometry.stl'.
 
'geometry.stl' is then fit for snappy.
 
cheers,
Fynn
Attachments
Powered by Ploneboard
Document Actions