|
[Sponsors] |
[snappyHexMesh] How to change patch types in snappyHexMesh? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
September 25, 2013, 23:15 |
How to change patch types in snappyHexMesh?
|
#1 |
Member
Vishal
Join Date: Jul 2013
Posts: 73
Rep Power: 12 |
Hi all,
I am meshing using snappyHexMesh for the first time. I have a *.stl file wherein i have defined 3 solids - wall, inlet, outlet (those are the names given to the solids) when running snappyHexMesh this is part of the output Adding patches for surface regions ---------------------------------- Patch Type Region ----- ---- ------ xyz: 6 wall xyz_wall 7 wall xyz_inlet 8 wall xyz_outlet Added patches in = 0.02 s As you can see it has defined all the three boundaris as "wall" but inlet and outlet (of a pipe for example) are always defined as "patch". So how do i change the patch type of "inlet" and "outlet"? Do i need to change only the boundary file in constant/polymesh? Or is there any other way to define it using snappyHexMesh - I saw something called as "patchInfo" in SHM but not sure how to use it to define different patch types to different boundaries. |
|
May 26, 2014, 07:25 |
|
#2 |
New Member
Join Date: Sep 2012
Posts: 13
Rep Power: 14 |
Hi,
I just stumbled upon this post and think I know the answer, if it is still needed. If you refer to https://github.com/OpenFOAM/OpenFOAM...ppyHexMeshDict you can see, that there is a patchInfo entry in "refinementsurfaces". If you don't set the patchInfo entry, SHM will refer to any given .stl-patch as "wall" by default. So all you need to do is give it the patchInfo like this: Code:
// Surface based refinement refinementSurfaces { yourStl.stl { // Surface-wise min and max refinement level level (2 2); // Optional specification of patch type (default is wall). No // constraint types (cyclic, symmetry) etc. are allowed. patchInfo { type patch; } } } Hope that helps, cheers! |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
steadyUniversalMRFFoam Tutorial fails in MixingPlane | HenrikJohansson | OpenFOAM Bugs | 0 | February 14, 2019 04:48 |
Possible Bug in pimpleFoam (or createPatch) (or fluent3DMeshToFoam) | cfdonline2mohsen | OpenFOAM | 3 | October 21, 2013 09:28 |
chtMultiRegionFoam Tutorial | m.nichols19 | OpenFOAM | 12 | September 9, 2010 11:56 |
CheckMeshbs errors | ivanyao | OpenFOAM Running, Solving & CFD | 2 | March 11, 2009 02:34 |
Problem with rhoSimpleFoam | matteo_gautero | OpenFOAM Running, Solving & CFD | 0 | February 28, 2008 06:51 |