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

[snappyHexMesh] Refinement too far from surface

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 24, 2022, 11:57
Exclamation Refinement too far from surface
  #1
New Member
 
Anon
Join Date: Dec 2020
Posts: 20
Rep Power: 5
CfdUser5855 is on a distinguished road
Hi all,

This should be an easy one, but I can't seem to fix it.

My mesh is created no problem, passes mesh checks etc. But as seen in the attached photo, it refines far too high up the domain.

I've tried changing refinement region, changing to mode distance, changing the levels etc but it always creates the same mesh.

Can anyone please advise how I can lower where the refinement starts? The domain is 250 m tall, and I ideally want the nearest 50 m to the surface refined and the rest is alright.

Below is my snappyhexmesh:

castellatedMesh true;
snap true;
addLayers true;

geometry
{
refinementBox
{
type searchableBox;
min (1635 518305 0);
max (2700 519270 200);
}

DuneField
{
type triSurfaceMesh;
file "DuneField.stl";
}
};



castellatedMeshControls
{

maxLocalCells 2000000000;

maxGlobalCells 2000000000;

minRefinementCells 1;

maxLoadUnbalance 0.10;

nCellsBetweenLevels 1;


refinementSurfaces
{
DuneField
{
// Surface-wise min and max refinement level
level (0 0);

// Optional region-wise level specification

regions
{
refinementBox
{
level (5 5);
}
}

}
}

resolveFeatureAngle 5;

refinementRegions
{

refinementBox
{
mode inside;
levels ((5 5)); //4 4 or 6 6
}

}


locationInMesh (2000 518500 250);

allowFreeStandingZoneFaces true;
}




snapControls
{
nSmoothPatch 3;

tolerance 2.0;

nSolveIter 30;

nRelaxIter 5;
}




addLayersControls
{

relativeSizes true;

layers
{
}

expansionRatio 1.0;

finalLayerThickness 0.3;

minThickness 0.25;

nGrow 0;

featureAngle 60;

nRelaxIter 5;

nSmoothSurfaceNormals 1;

nSmoothNormals 3;

nSmoothThickness 10;

maxFaceThicknessRatio 0.5;

maxThicknessToMedialRatio 0.3;

minMedianAxisAngle 90;

nBufferCellsNoExtrude 0;

nLayerIter 50;

nRelaxedIter 20;
}


meshQualityControls
{
maxNonOrtho 45;
maxBoundarySkewness 10;
maxInternalSkewness 2;
maxConcave 80;
minVol 1e-13;

minTetQuality 1e-30;

minArea -1;

minTwist 0.05;

minDeterminant 0.001;

minFaceWeight 0.05;

minVolRatio 0.01;

minTriangleTwist -1;

relaxed
{
maxNonOrtho 45;
}
}

mergeTolerance 1e-5;



Thanks
Attached Images
File Type: jpg Mesh.jpg (66.3 KB, 13 views)
CfdUser5855 is offline   Reply With Quote

Reply

Tags
refinement, snappy hex mesh


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
[snappyHexMesh] snappyHexMesh stuck when snap is turned on yukuns OpenFOAM Meshing & Mesh Conversion 3 February 2, 2021 13:05
problem with parallel calculations OF8 mpirun otaolafr OpenFOAM Programming & Development 0 January 5, 2021 07:33
[snappyHexMesh] Surface triangulation using snappyHexMesh shaileshbg OpenFOAM Meshing & Mesh Conversion 4 October 17, 2019 04:42
[snappyHexMesh] Bad meshing result on corrugated metal sheet UebertreibeR OpenFOAM Meshing & Mesh Conversion 1 August 19, 2016 04:55
[snappyHexMesh] problems using snappyHexMesh 2.1.0 on a supercomputer Sunxing OpenFOAM Meshing & Mesh Conversion 9 September 20, 2014 09:30


All times are GMT -4. The time now is 10:56.