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

[snappyHexMesh] Layered cell refinement by region?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 24, 2016, 09:13
Default Layered cell refinement by region?
  #1
Member
 
Join Date: Nov 2010
Posts: 62
Rep Power: 15
Doug68 is on a distinguished road
Looking at the attached picture, this is a cross section through a mesh.
To achieve this I ran the SHM twice on the mesh with different geometry settings and refinementRegions settings as per below:

geometry

// refinementBox01
// {
// type searchableBox;
// min (2 -2 0);
// max (10 2 2);
// }

refinementBox02
{
type searchableBox;
min (4 -1 0);
max (8 1 1);
}


refinementRegions
{
refinementBox02
{
mode inside;
levels ((0.1 4));
}

// refinementBox01
// {
// mode inside;
// levels ((0.1 2));
// }


First with the bigger region and then the smaller internal region (the setting shown are from the second run).
I think I should be able to achieve the same effect in 1 run of SHM, but I've failed to get that to work so far. Any advice on how to do it?
Attached Images
File Type: jpg CrossSection.jpg (184.2 KB, 11 views)
Doug68 is offline   Reply With Quote

Old   February 25, 2016, 02:47
Default
  #2
Senior Member
 
Join Date: Aug 2013
Posts: 407
Rep Power: 15
Antimony is on a distinguished road
Hi,

You can try the distance option instead of inside option in your refinement region. More information can be found at (http://cfd.direct/openfoam/user-guide/snappyhexmesh/) under the "Cell splitting in specified regions" heading

Hope this helps.

Cheers,
Antimony
Antimony is offline   Reply With Quote

Old   February 26, 2016, 00:00
Default
  #3
Member
 
Join Date: Nov 2010
Posts: 62
Rep Power: 15
Doug68 is on a distinguished road
Thanks Antimony, good to know I'll put that to use somehow for sure.
Doug68 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
[Other] refineWallLayer Error Yuby OpenFOAM Meshing & Mesh Conversion 2 November 11, 2021 11:04
[snappyHexMesh] sHM refinement away from surface nholt OpenFOAM Meshing & Mesh Conversion 1 June 14, 2016 14:36
[Commercial meshers] Using starToFoam clo OpenFOAM Meshing & Mesh Conversion 33 September 26, 2012 04:04
[Other] StarToFoam error Kart OpenFOAM Meshing & Mesh Conversion 1 February 4, 2010 04:38
Warning 097- AB Siemens 6 November 15, 2004 04:41


All times are GMT -4. The time now is 08:16.