|
[Sponsors] |
[snappyHexMesh] How To Prepare a Large, Complex Geometry for SnappyHexMesh? |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
New Member
Mads Ivarson
Join Date: Jul 2019
Posts: 14
Rep Power: 3 ![]() |
Hello!
I am relatively new to OpenFOAM, and I am tasked to simulate flow in a small, rocky river using the interFoam solver. I have the 3D model of the river, however, I have a couple of questions before I try to create the mesh: - Does the geometry have to be closed to use SnappyHexMesh, meaning do I need to add a 'roof' representing the atmosphere? Currently my model consists of the banks, riverbed, a dam and inlet/outlet planes. - Would it be preferrable to keep the riverbank, riverbed and dam as one STL, or split them apart? I think they will all have the same boundary conditions. I will attach pictures of the geometry. Imgur album: https://imgur.com/a/9B8c4NQ These are my initial questions, I would really appreciate some input! Cheers |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,379
Rep Power: 26 ![]() |
You don't need a roof. Just prepare your background mesh accordingly - snappyHexMesh will never make anything larger. Same for the inlet and outlet planes.
If you never change the parts, it doesn't really matter if you have one or multiple STLs. If for instance you want to check different dams it makes sense to have a separate STL just for the dam to replace it easier. InterFoam is picky about the mesh. Avoid sudden changes in mesh density at the fluid interface, and pay attention to good mesh quality (orthogonality, skewness).
__________________
*On twitter @akidTwit *Spend as much time formulating your questions as you expect people to spend on their answer. |
|
![]() |
![]() |
![]() |
![]() |
#3 | |
New Member
Mads Ivarson
Join Date: Jul 2019
Posts: 14
Rep Power: 3 ![]() |
Quote:
So if I understand you correctly, the roof and inlet/outlet planes are unnecessary as long as the block i make around the geometry does this job? There is a slight slope to the river, and it is not completely straight, so a box will not envelop it perfectly, AFAIK. Will I then use setFields to specify for interFoam that i don't want water on the 'underside' of the model? |
||
![]() |
![]() |
![]() |
![]() |
#4 |
Senior Member
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,379
Rep Power: 26 ![]() |
There should be no underside of the model. Your top, left, right, front and back should be given by your background mesh, and snappyHexMesh will snap the bottom boundary to your riverbank STL. This is indeed not currently possible with your STL, because the river is not straight and your banks don't extend far enough to the sides. You will need to extend the banks, or build an atmosphere STL boundary as you initially suggested.
__________________
*On twitter @akidTwit *Spend as much time formulating your questions as you expect people to spend on their answer. |
|
![]() |
![]() |
![]() |
![]() |
#5 | |
New Member
Mads Ivarson
Join Date: Jul 2019
Posts: 14
Rep Power: 3 ![]() |
Quote:
|
||
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Solving complex geometry with compressible flow | gfoam | FLUENT | 1 | May 19, 2017 15:56 |
[snappyHexMesh] SnappyHexMesh no layers and no decent mesh for complex geometry | pizzaspinate | OpenFOAM Meshing & Mesh Conversion | 1 | February 25, 2015 08:05 |
Meshing in a complex geometry | Jay_upd | Mesh Generation & Pre-Processing | 0 | February 20, 2015 11:16 |
[ICEM] Dealing with complex geometry imported form SolidWorks | Daniel_Khazaei | ANSYS Meshing & Geometry | 2 | September 30, 2013 21:42 |
how to deal with complex geometry using ICEM? | prayskyer | CFX | 3 | June 20, 2006 08:33 |