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

[snappyHexMesh] definition of boundary patches in snappyhexmesh

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 4, 2019, 13:28
Default definition of boundary patches in snappyhexmesh
  #1
Senior Member
 
Join Date: Nov 2011
Posts: 109
Rep Power: 14
robboflea is on a distinguished road
Hi all,


I am new to openfoam and I have a domain like the one below.


domain.png


All the external faces are walls besides the two rectangular inlet and outlet.
I would like to mesh it with snappyhexmesh. I have created a multi-zone stl file with three different zones: 'walls', 'inlet' and 'outlet'.
The problem is that I do not seem to understand how to go forward. Any help on a typical pipeline would be appreciated.


The problem is that I don't understand how to create the boundary patches. Should I create them from the very beginning, meaning when I set up the blocking in blockmesh? Or can the blockmesh grid be just a plain box without any info on boundary patches? If I should create an 'inlet' and 'outlet' boundary patch in blockmesh does this mean that I have to create two blocks in blockmesh like the ones in the figure below?


blocks.png


Thanks a lot for the help!
robboflea is offline   Reply With Quote

Old   April 8, 2019, 08:30
Default
  #2
New Member
 
Jack Collins
Join Date: Feb 2019
Posts: 1
Rep Power: 0
jackaroo is on a distinguished road
Dear robbolea,


I've been having a similar issue when attempting to make a mesh for chtMultiRegionFoam where I have a single STL file that includes "walls" for a fluid domain that interface a solid, an inlet and an outlet.



After using snappyHexMesh I lose the patch info, even if regions are defined in the snappyHexMeshDict.



Did you manage to get anywhere with this?

Any help would be appreciated!
jackaroo is offline   Reply With Quote

Old   April 8, 2019, 10:16
Default
  #3
Senior Member
 
Join Date: Nov 2011
Posts: 109
Rep Power: 14
robboflea is on a distinguished road
Hi Jackaroo,


in the end I gave up with snappy and I am now using cfmesh (it comes with OpenFOAM at least the version I am currently using v1812). The process is quite straightforward. After you create the stl file wih the boundary patches you have to run the surfaceFeatureEdges utility to make sure that edges in the geometry will be kept during meshing. After this you can run cfmesh (cartesianMesh or pMesh).


Hope this helps!
robboflea 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
Centrifugal fan-reverse flow in outlet lesds to a mass in flow field xiexing CFX 3 March 29, 2017 10:00
Setting rotating frame of referece. RPFigueiredo CFX 3 October 28, 2014 04:59
Accessing multiple boundary patches from a custom boundary condition file ripudaman OpenFOAM Programming & Development 0 October 22, 2014 18:34
Radiation interface hinca CFX 15 January 26, 2014 17:11
Low Mixing time Problem Mavier CFX 5 April 29, 2013 00:00


All times are GMT -4. The time now is 03:19.