|
[Sponsors] |
[snappyHexMesh] OpenFOAM mesh generation for irregular open channel |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 21, 2017, 21:24 |
OpenFOAM mesh generation for irregular open channel
|
#1 |
New Member
Kurt
Join Date: Feb 2017
Posts: 10
Rep Power: 9 |
I have a surface mesh that I want to build a case using the interfoam solver to simulate multiphase flow.
I’m having a hard time wrapping my head around the best way to generate the mesh for this, I'm assuming snappyhexmesh. I have a watertight .stl representing the ground/wall, but I'm not sure what I need to do next. Do I need to create the background mesh that's larger than the surface file I have? or does there need to be a flat plane to act as a clipping boundary to create the patches for the inlets / outlets? The surface I have curves to follow the channel so I assume there would need to be multiple blocks. Any help is appreciated |
|
June 22, 2017, 04:29 |
|
#2 |
Super Moderator
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52 |
Good morning Kurt,
you next is to generate the background mesh. Normally it is a good advice to make the mesh larger than the enclosed STL file. I prefer that way but it depend on the geometry. Sometimes you get screwed cells at the patches (depend on the position of the cells) and then I move my mesh in the corresponding direction, make it finer or coarsen it or make it just a bit smaller than the patches (which are aligned with the background patches). However, my first suggestion is to make the backgroundmesh larger but keep in mind that you should have pure cube cells. Well you also can make some aspect ratio but the best results are always with pure cube cells. Hope this give you some idea. Further information can be found in the UserGuide or here Good luck
__________________
Keep foaming, Tobias Holzmann |
|
June 22, 2017, 21:16 |
|
#3 |
New Member
Kurt
Join Date: Feb 2017
Posts: 10
Rep Power: 9 |
I have looked at the snappyhexmesh wiki it still does not make sense to me.
For the example with the car in the background cube, the bottom of the mesh corresponds to the ground. If it does not hit the .stl the whole z range is included in the computational domain, which is accurate. Whereas for the case of the open channel, if snappyhexmesh does not hit the .stl, and the whole z range is included, wouldn't it simulate water flowing under the surface rather than on top of it? Or is there a way to clip back the mesh to generate the boundary patches afterward? |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[swak4Foam] funkyDoCalc with OF2.3 massflow | NiFl | OpenFOAM Community Contributions | 14 | November 25, 2020 04:30 |
Trouble compiling utilities using source-built OpenFOAM | Artur | OpenFOAM Programming & Development | 14 | October 29, 2013 11:59 |
[swak4Foam] build problem swak4Foam OF 2.2.0 | mcathela | OpenFOAM Community Contributions | 14 | April 23, 2013 14:59 |
Geometry and mesh generation in OpenFoam | pokeng | OpenFOAM Pre-Processing | 1 | October 28, 2011 22:40 |
Latest news in mesh generation | Robert Schneiders | Main CFD Forum | 0 | March 2, 1999 05:07 |