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

[snappyHexMesh] refinement by region

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 3, 2019, 12:48
Default refinement by region
  #1
Member
 
shima
Join Date: Feb 2018
Posts: 58
Rep Power: 4
shimakasaei is on a distinguished road
Hi all,
I am using snappyhexmesh for my model. I am modeling 3blocks and I want to refine mesh area around the blocks. When I use refinement box with searchable type, and define refinement box -with the area that I want to be refined- in refinement region, it does create mesh but not refine them as I expect.

Can anyone please let me know where the problem is?

here is snappyhexmeshdict:

/*--------------------------------*- C++-*----------------------------------*\\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.1.1 |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object snappyHexMeshDict;
}

castellatedMesh true;
snap true;
addLayers false;

geometry
{
A3b1.stl
{
type triSurfaceMesh;
name A3b1;
}
A3b2.stl
{
type triSurfaceMesh;
name A3b2;
}
A3b3.stl
{
type triSurfaceMesh;
name A3b3;
}


refinementBox //USER DEFINED REGION NAME
{
type searchableBox; //REGION DEFINED BY BOUNDING BOX
min (5.6 0 0); //parameters
max ( 7.5 1.5 0.5 );
}

}

castellatedMeshControls
{
maxLocalCells 10000000;
maxGlobalCells 10000000;
minRefinementCells 10;
maxLoadUnbalance 0.10;
nCellsBetweenLevels 3;

features
(
);

refinementSurfaces
{
A3b1
{
level (0 0);
}
A3b2
{
level (0 0);
}
A3b3
{
level (0 0);
}
}

resolveFeatureAngle 65;

refinementRegions
{
refinementBox
{
mode inside;
levels ((0.001 3));
}
}
locationInMesh (0.005 0.005 0.005);
allowFreeStandingZoneFaces true;
}

snapControls
{
nSmoothPatch 3;
tolerance 4.0;
nSolveIter 30;
nRelaxIter 5;
nFeatureSnapIter 5;
}

addLayersControls
{
relativeSizes true;

layers
{

}

expansionRatio 1.0;
finalLayerThickness 0.3;
minThickness 0.1;
nGrow 1;
featureAngle 30;
nRelaxIter 3;
nSmoothSurfaceNormals 1;
nSmoothNormals 3;
nSmoothThickness 10;
maxFaceThicknessRatio 0.5;
maxThicknessToMedialRatio 0.3;
minMedianAxisAngle 130;
nBufferCellsNoExtrude 0;
nLayerIter 50;
nRelaxedIter 20;
}

meshQualityControls
{
maxNonOrtho 65;
maxBoundarySkewness 20;
maxInternalSkewness 4;
maxConcave 80;
minVol 1e-13;
minTetQuality -1E30;
minArea -1;
minTwist 0.02;
minDeterminant 0.001;
minFaceWeight 0.02;
minVolRatio 0.01;
minTriangleTwist -1;
nSmoothScale 4;
errorReduction 0.75;
//relaxed
// {
// maxNonOrtho 80;
// }
}

debug 0;
mergeTolerance 1e-6;




Thanks,
Shima
shimakasaei is offline   Reply With Quote

Old   July 5, 2019, 07:32
Default
  #2
Member
 
Thomas Sprich
Join Date: Mar 2015
Posts: 70
Rep Power: 7
Swift is on a distinguished road
Hi Shima,

Try making this change under refinementRegions:

Code:
refinementRegions
{
refinementBox
{
mode inside;
levels ((1E15 3));
}
}
Does this work

Thomas
Swift is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 running killed! Mark JIN OpenFOAM Meshing & Mesh Conversion 3 March 12, 2020 18:50
[snappyHexMesh] Multi Region Mesh of a car filter Zephiro88 OpenFOAM Meshing & Mesh Conversion 3 September 11, 2019 20:34
SimpleFoam & Theater jipai OpenFOAM Running, Solving & CFD 3 June 18, 2019 11:11
[snappyHexMesh] Refinement region - distance not working Rasmusiwersen OpenFOAM Meshing & Mesh Conversion 1 May 3, 2019 07:37
p_rgh initial residual no change with different settings manuc OpenFOAM Running, Solving & CFD 3 June 26, 2018 16:53


All times are GMT -4. The time now is 15:34.