CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[snappyHexMesh] OpenFOAM mesh generation for irregular open channel

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 21, 2017, 21:24
Default OpenFOAM mesh generation for irregular open channel
  #1
New Member
 
Kurt
Join Date: Feb 2017
Posts: 10
Rep Power: 9
ksmithgall is on a distinguished road
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
ksmithgall is offline   Reply With Quote

Old   June 22, 2017, 04:29
Default
  #2
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
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
Tobi is offline   Reply With Quote

Old   June 22, 2017, 21:16
Default
  #3
New Member
 
Kurt
Join Date: Feb 2017
Posts: 10
Rep Power: 9
ksmithgall is on a distinguished road
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?
ksmithgall is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 23:01.