snappyhexmesh
Hi everybody ,
These days I am trying to use snappyhexmesh and I have a question about specifying names for each boundary in the geometry.How can I specify a name for a boundary in the geometry? I know that I can use snappyhexmeshDict for surfaces those have regular shapes (e.g. sphere & cylinder & cubic ) But when there are some complicated surfaces How can I specify a name for a boundary in the geometry?? Is it possible to specify names for boundaries in STL file? ( I know CATIA and Solidworks can't do this action ) Any idea? Any software? I appreciate any help from you. Thanks and best regards, Sasan. |
You can spit your .stl by angle before meshing using
Code:
surfaceAutoPatch in.stl out.stl angle Code:
surfaceFeatureExtract Florian |
Thank you very much for your reply ,
Can you explain more? I think there is one .STL file So what are in.stl and out.stl ?? and what is the angle exactly ? Can you say me what do the first commend do exactly ? surfaceAutoPatch in.stl out.stl angle Thank you very much Sasan. |
I mean in.stl is your original file and out.stl is the newly generated one. The angle is the angle which will be used to separate surface ; it's similar to the autoPatch function but on the stl, not the mesh.
After running surfaceAutoPatch, look at your stl in paraview and you'll see the different areas. The surface tools are listed here : http://www.openfoam.org/docs/user/st...-utilities.php |
1 Attachment(s)
Hi Dear Hiroshiman,
Thank you very much . I tried to generate the mesh for a simple geometry and I used your advice (surfaceAutoPatch)...But unfortunately the mesh didn't create..I attached case file. Please take a look at this case . Can you help me for finding the origin of this problem ? I appreciate any help from you. Thanks and best regards, Sasan. |
Hi,
if you look at Catia to snappyHexMesh http://www.cfd-online.com/Forums/ope...tml#post344263 there seems to be a catia-script that supports writing STLīs with named surfaces http://www.cfd-online.com/Forums/att...-stlexport.txt feedback if that works would be great |
sasanghomi :
An few things : if you look at the STLSolidLabeling in paraview of your out.stl you'll see the separated surface, it worked fine. Concerning the mesh generation, your blockMeshDict wasn't correct. Use s Code:
urfaceCheck -blockMesh constant/triSurface/out.stl Code:
vertices It worked fine. after running snappyHexMesh, it saw and used the patches which can therefore be used for BCs. The boundaries files looks like : Code:
9 Enjoy, Florian |
Dear Hiroshiman
Thank you very very very much.... ;) |
All times are GMT -4. The time now is 21:09. |