|
[Sponsors] |
[snappyHexMesh] Orifice mesh with snappyHexMesh |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 29, 2013, 03:27 |
Orifice mesh with snappyHexMesh
|
#1 |
Senior Member
|
Good Morning Foamers,
I decide to leave ICEM and start to use OpenFOAM mesh tools!! The first geometry that I want to mesh is an internal flow in a cylindrical orifice! I want to use snappyHexMex but i do not know how I can start! Anyone has some hints (a dict example file would be very useful!!), or can suggest to me some tutorial?? Here is the geometry Thx Marco |
|
January 31, 2013, 14:10 |
Reason to change
|
#2 |
New Member
Mussie
Join Date: Feb 2011
Posts: 7
Rep Power: 15 |
Hello, meshing on OpenFOAM will be a little difficult as to compare to commercial softwares, that is why it is given as option to import a meshed case from a third party software. May , I know the reason for your change from the use of ICEM ? ICEM is a better and easier meshing tool compare to openFOAM's mesher?
anyway, try this link :www.somogyibence.hu/documents/Cornell2/ Last edited by afeworkimussie; January 31, 2013 at 14:41. |
|
January 31, 2013, 15:21 |
meshing with snappy hex mesh
|
#3 |
Senior Member
Roman Thiele
Join Date: Aug 2009
Location: Eindhoven, NL
Posts: 374
Rep Power: 21 |
One good start are the meshing tutorials in OpenFOAM. They use snappyHexMesh and you can try to work with them first.
Additionally, after doing the first tries with the tutorials, try to set up simple cases and try out some of the options in the snappyHexMeshDict, most of the options are well described in the version that is included in the tutorials. otherwise search for the snappyHexMeshDict, that comes with OpenFOAM on your computer like "locate snappyHexMeshDict". There should be one in the source folder for snappyHexMesh. Some of the options, that are harder to understand are also explained in the forums.
__________________
~roman |
|
February 8, 2013, 03:58 |
|
#4 |
Senior Member
|
Hi Romant,
I am sorry for the late response! I am dealing with my snappy mesh! I export my .stl file from solidWorks and I got two problems: 1)Even if I exported the file with the lowest tolerance it is not enough for a good mesh..do you know how can I improve the quality of the stl file by means of some foam utility? 2)How can I add patch to my .stl file. Do I need to do it by hand (make diverse parts and tie all of them) or is it a more brilliant solution? Regards Marco |
|
February 8, 2013, 05:25 |
|
#5 |
Senior Member
Roman Thiele
Join Date: Aug 2009
Location: Eindhoven, NL
Posts: 374
Rep Power: 21 |
I usually did this latter to have different patches (take the thing apart in blender for example) and save the parts single. However, if solidworks supports something like names stl files, the patches will appear automatically after meshing.
check your stl quality by opening it in paraview.
__________________
~roman |
|
February 8, 2013, 05:31 |
|
#6 |
Senior Member
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 556
Rep Power: 27 |
Hi
For such a simple geometry I would make it fully structured mesh using eg. Salome. http://www.salome-platform.org/user-...lome-tutorials Of course if you are doing it with the purpose of learning snappyHexMesh then you need to split your geometry into different stl's based on you patches. Otherwise you need a CAD software that can split into named stl's. Not many do so it is not the best solution. If you want to make a finer surface stl you can save the geometry as a step file and use Netgen or Gmsh to make a really fine surface mesh. They can both export to stl and Gmsh can also be run in batch mode so you can convert all the parts using a script. Snappy deals with multiple stl's just fine. Best
__________________
Linnemann PS. I do not do personal support, so please post in the forums. |
|
February 8, 2013, 05:35 |
|
#7 |
Senior Member
|
Hi Roman and Hi Niels ,
thanks for your quick reply! Which software do you use for making the .stl file? Must all the single parts of my solid be closed ? The last question..After I have the single parts (that correspond to the single patches) do I need just to cat the diverse stl file, for example with the cat command of linux? Thx Regards Marco |
|
February 8, 2013, 05:42 |
|
#8 |
Senior Member
Roman Thiele
Join Date: Aug 2009
Location: Eindhoven, NL
Posts: 374
Rep Power: 21 |
I use SolidEdge and also used Salome (as linnemann noticed). As he also noticed, you can just have the seperate stl files in snappyHexMesh, no need to concatonate them.
What do you mean with all of them must be closed? If your surfaces together make a closed surface (all stl files together) then it will work. If you want to cut apart a full stl surface, take a look at blender, in which you can see the different triangles that make a surface. you can select them and cut them to represent a different single surface (which is not necessarily closed). You can then save all of these single surfaces and mesh all at once in snappyHexMesh. I think the igloo tutorial uses different surfaces (as boxes and half spheres).
__________________
~roman |
|
February 8, 2013, 06:02 |
|
#9 |
Senior Member
|
Hi roman,
Now, I understand your post! Anyway, I try to explain myself better. By using a .stl file for each patche can I have problem in the intersacions and in the borders between them? I mean, can they ovelaps each other? Does it no matter under snappy point of view? Thanks Greets Marco |
|
February 8, 2013, 06:04 |
|
#10 |
Senior Member
Roman Thiele
Join Date: Aug 2009
Location: Eindhoven, NL
Posts: 374
Rep Power: 21 |
I am not sure if they can overlap, but I think they should not overlap. If you cut the stl surface apart, then there should not be any overlap.
__________________
~roman |
|
February 8, 2013, 06:18 |
|
#11 |
Senior Member
|
Let's take the bottom border betweem the inlet patch and the wall of my orifice. In order to make sure that there is no empty space (otherwise I cannot get an internal mesh) this border needs a little overlap!
Do you agree with me? So..during the creation of each .stl file I must account for this phenomena. Anyway, I will do some trials and I will back to post as soon as possible (maybe with a mesh) Thanks to anyone for the hints Regards Marco |
|
February 28, 2013, 14:02 |
|
#12 |
Senior Member
Matthew Denno
Join Date: Feb 2010
Posts: 138
Rep Power: 16 |
I see that this tread is a little old, but my solution to this is to create two different sets of geometries (stl files) one with overlaps and one without. This way I use the one with overlaps as input to snappy and use the other one to extract feature edges. I have used this approach with pipe ends for example and it has worked well.
|
|
March 7, 2013, 16:11 |
|
#13 |
Senior Member
Join Date: Nov 2009
Location: Michigan
Posts: 135
Rep Power: 16 |
In ICEM you can create surface mesh and export it as stl
Names of the patches are preserved |
|
March 8, 2013, 02:55 |
|
#14 |
Senior Member
|
Hi Omkar,
that would be amazing! Can you short explain me how can I do it or give me some reference? For istance, can I import a stl (from solidworks) and refine it in ICEM? Thanks Marco |
|
March 8, 2013, 10:04 |
|
#15 |
Senior Member
Join Date: Nov 2009
Location: Michigan
Posts: 135
Rep Power: 16 |
Hi Marco,
Instead import the geometry into ICEM (iges/step/catia....), name the patches as you want, mesh the surfaces (only surface mesh) and then File-export mesh-write stl I have not imported stl in ICEM and refined it so dont know if its possible |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[snappyHexMesh] Creating very fine, high accuracy mesh with snappyHexMesh | JD_Welch | OpenFOAM Meshing & Mesh Conversion | 10 | July 5, 2023 12:50 |
[snappyHexMesh] Creating multiple multiple cell zones with snappyHexMesh - a newbie in deep water! | divergence | OpenFOAM Meshing & Mesh Conversion | 0 | January 23, 2019 05:17 |
[snappyHexMesh] snappyHexMesh & Mesh around a missile | sasanghomi | OpenFOAM Meshing & Mesh Conversion | 2 | October 15, 2014 20:54 |
3D Hybrid Mesh Errors | DarrenC | ANSYS Meshing & Geometry | 11 | August 5, 2013 07:42 |
[snappyHexMesh] SnappyHexMesh not generate mesh first time | mavimo | OpenFOAM Meshing & Mesh Conversion | 4 | August 26, 2008 08:08 |