from UNV to gts files...
Hello everybody,
So i need a way to save in .gts format (http://gts.sourceforge.net/index.html) the surface of a 3D model generated with Salome.
(i need a single surface thus i may need also to glue the surfaces everything together)
thus anybody knows how to do it?
Basically I want to compare open Foam with an immersed boundary code. I have already generated the 3d Model with salome, saved in UNV and run in OpenFoam. Now i need to extract the surfaces.
Currently i am using a simple geometry but later it may be quite complicated thus i need the most stable and reliable the procedure possible.
Can anybody help me?
Thank you a lot in advance.
francesco
Hello,
This format looks interesting. I can see on their website that there is a Python binding to create GTS geometries.
I suggest you to convert the Salome instructions (MakeVertex, MakeEdge, ...) to GTS instructions:
import geompy
v1 = geompy.MakeVertex(1,1,1)
v2 = geompy.MakeVertex(-1,-1,1)
...
become:
import gts
v1 = gts.Vertex(1,1,1)
v2 = gts.Vertex(-1,-1,1)
...
According to the API documentation, many Geom operations can be converted.
Regards,
Gilles
Thank You,
it seems to me that the easiest option is the stl2gts tool, but the safest and more reliable may be the conversion script.
So i guess i will give a try to stl2gts and if gives problems i will play with the scripts...
it looks promising.
thank you for the help
regards
Hi Francesco
Note a difference between the two suggestions:
- I speak about conversion of the mesh to GTS,
- Gilles speaks about conversion of geometry to GTS.
St.Michael
St.Michael, Thank you for pointing out the difference.
I had noticed that. I am still don't know well enough all my tools to know the implications, (i started few days ago ..). The immersed boundary code that i use does automatically the meshing. So i hope, it is also smart enough to accept the mesh or the geometry of the surface. Lets see.
My problem now, i think is how to create a single surface from a compound... or do a global glue or else ... but i guess this is out of topic for this thread .. 
thank you
francesco
