|
[Sponsors] |
![]() |
![]() |
#1 |
Member
Tommaso M.
Join Date: Sep 2018
Location: Milan, Italy
Posts: 67
Rep Power: 7 ![]() |
Hi All,
I am new in OpenFOAM and I was asked to create the mesh of a converging-diverging nozzle. I tried with blockMesh but I found it difficult in creating curved surfaces. I know that other tools exist, like Gmsh, Salome, SnappyHexMesh, and so on, but I don't know which is the best mesh tool for my problem. Do you have any advice, please? Thanks! TommyM |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
Kmeti Rao
Join Date: May 2019
Posts: 145
Rep Power: 8 ![]() |
Hi Tommy,
you can go through these tutorials for blockmesh http://www.wolfdynamics.com/wiki/mes..._blockmesh.pdf. I would also suggest you to have a look into cfMesh, during my early days I found cfMesh was little straight forward and easy to learn compared to snappyHexMesh. Both are great tools! K. Rao |
|
![]() |
![]() |
![]() |
![]() |
#3 |
Senior Member
Carlo_P
Join Date: May 2019
Location: Italy
Posts: 176
Rep Power: 8 ![]() |
I think that with snappy would be very easy if you have the .stl file.
You can use every standard setup. |
|
![]() |
![]() |
![]() |
![]() |
#4 |
Member
Tommaso M.
Join Date: Sep 2018
Location: Milan, Italy
Posts: 67
Rep Power: 7 ![]() |
Hi Carlo,
I would like to use snappyHexMesh, but I'm not able to generate the .stl file properly from the CAD file. I generate my geometry with SolidWorks but I can't define the patches (like inlet, outlet, walls) in the file, which are necessary in snappy. How can I do this? Thanks for your reply. |
|
![]() |
![]() |
![]() |
![]() |
#5 |
Member
Tommaso M.
Join Date: Sep 2018
Location: Milan, Italy
Posts: 67
Rep Power: 7 ![]() |
Hi Krao,
I have some basic knowledge about snappyHexMesh because I used it for a university class, where the professor gave me the .stl file. Unfortunately, now I don't have the .stl file and I have to generate it. Anyway, if I fail with snappy, I will try with cfMesh. Thanks for your reply. |
|
![]() |
![]() |
![]() |
![]() |
#6 |
Senior Member
Carlo_P
Join Date: May 2019
Location: Italy
Posts: 176
Rep Power: 8 ![]() |
Hey, in every mesher you have to define the patches.
One solution is to divide in the CAD the surfaces, creting different stl files and using surfaceToPatch after you do the mesh: https://www.openfoam.com/documentati...ceToPatch.html or otherwise, you can use surfaceSplitByAngle. It split by a particolar angle the surface. In this way you can have your patch splitted. I think you have to perform this before meshing. Try.. |
|
![]() |
![]() |
![]() |
![]() |
#7 |
Senior Member
Carlo_P
Join Date: May 2019
Location: Italy
Posts: 176
Rep Power: 8 ![]() |
If you want, you can also try this softwware Helyx-Os, that provide a GUI for openFOAM and snappy.
It would be easier to mesh there. |
|
![]() |
![]() |
![]() |
![]() |
#8 |
Member
Tommaso M.
Join Date: Sep 2018
Location: Milan, Italy
Posts: 67
Rep Power: 7 ![]() |
I succeeded in creating .stl file from GMSH but then I used snappy for the mesh. It sounds strange, but I'm not able to properly "control" the mesh generation in GMSH (using GUI).
Again, thank you all for your help! |
|
![]() |
![]() |
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
A high order curvilinear mesh generation(converting) tool is strongly recommended | hyperman | Main CFD Forum | 2 | August 7, 2018 17:30 |
[snappyHexMesh] SnappyHexMesh no layers and no decent mesh for complex geometry | pizzaspinate | OpenFOAM Meshing & Mesh Conversion | 1 | February 25, 2015 07:05 |
3D Hybrid Mesh Errors | DarrenC | ANSYS Meshing & Geometry | 11 | August 5, 2013 06:42 |
[ICEM] Generating Mesh for STL Car in Windtunnel Simulation | tommymoose | ANSYS Meshing & Geometry | 48 | April 15, 2013 04:24 |
[snappyHexMesh] snappyHexMesh won't work - zeros everywhere! | sc298 | OpenFOAM Meshing & Mesh Conversion | 2 | March 27, 2011 21:11 |