CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

mappedPatch in mesh created using snappyHex from .stl files

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 3, 2022, 10:51
Default mappedPatch in mesh created using snappyHex from .stl files
  #1
Senior Member
 
Join Date: Jun 2020
Posts: 100
Rep Power: 6
atul1018 is on a distinguished road
Hello Everyone

I have created a mesh using snappyHexMesh utility from STL file. The created mesh has patches such as inlet, outlet and so on. I want that the flow conditions at inlet boundary should be fully developed. In order to do that, I want to use mappedPatch bc.

I have done this before on normal meshes, which is created using blockmesh utility. In simple meshes, one needs to define the inlet is mappedPatch type boundary in blockMeshDict and then required fields can be mapped. But on the mesh created using snappyHex, I have no clue how and where can i define the inlet boundary as mappedPatch and coresponding mapping location. My blockMeshDict is rectangular domain having patches similar to my .stl files. After creating my background mesh (using blockMesh), i use snappyHexMesh to generate the mesh for my geomtery. in my knowldege, in doing this, I couldn't define my inlet boundary as mappedPatch in blockMeshDict unlike done for simple meshes.

Does any one has an idea, how can I provide mappedPatch bc in my created mesh from stl file?

Best Regards
Atul
atul1018 is offline   Reply With Quote

Old   February 1, 2022, 14:18
Default snappy mapped BC
  #2
jtp
New Member
 
John Pearson
Join Date: Feb 2022
Posts: 1
Rep Power: 0
jtp is on a distinguished road
Here is an example case, taken from snappyHexMeshDict:

refinementSurfaces
{
inlet
{
level (2 2);
patchInfo
{
type mappedPatch;
offset (0.5 0 0);
sampleRegion region0;
sampleMode nearestCell;
samplePatch none;
}
}
}

Then you finish configuring the mapped boundary condition in the "0" directory, it sounds like you have done this before.
jtp is offline   Reply With Quote

Old   February 2, 2022, 05:55
Default
  #3
Senior Member
 
Join Date: Jun 2020
Posts: 100
Rep Power: 6
atul1018 is on a distinguished road
Dear John

Thanks for your answer. Your suggestion seems to be a better option but I have manually changed the patch as mappedPatch in polyMesh/boundary file after blockMesh and snappyHexMesh execution and this worked fine as well.

Best Regards
Atul
atul1018 is offline   Reply With Quote

Reply

Tags
mappedpatch, snappyhexmesh, stl files


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
sliding mesh problem in CFX Saima CFX 46 September 11, 2021 08:38
[snappyHexMesh] snappyHexMesh stuck when snap is turned on yukuns OpenFOAM Meshing & Mesh Conversion 3 February 2, 2021 14:05
[snappyHexMesh] Snappyhex mesh: poor inlet mesh Swagga5aur OpenFOAM Meshing & Mesh Conversion 1 December 3, 2016 17:59
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 07:20
Problems in compiling paraview in Suse 10.3 platform chiven OpenFOAM Installation 3 December 1, 2009 08:21


All times are GMT -4. The time now is 14:00.