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

[snappyHexMesh] snappy works but does not add layers...why?

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   March 25, 2013, 05:28
Default snappy works but does not add layers...why?
  #1
Member
 
sandy
Join Date: Mar 2013
Location: Cardiff, UK
Posts: 74
Rep Power: 13
sandy13 is on a distinguished road
Dear foamers,
Please any body can help me. My snappy utility for my work, but it does not add layers. My geometry and the snappy is like in photos, can any one have a go on my snappy dictionary below..
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.1.1 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object snappyHexMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

castellatedMesh true;
snap true;
addLayers true;

geometry
{
injector.stl
{
type triSurfaceMesh;
name injector;
}
}


castellatedMeshControls
{
maxLocalCells 500000;
maxGlobalCells 1000000;
minRefinementCells 100;
nCellsBetweenLevels 6;
features
();
refinementSurfaces
{
injector
{
level (4 3);
}
}

refinementRegions
{
}
resolveFeatureAngle 200;

locationInMesh (0 0 0);
allowFreeStandingZoneFaces false;
}
snapControls
{
nSmoothPatch 3;
tolerance 4;
nSolveIter 60;
nRelaxIter 5;
}
addLayersControls
{
relativeSizes true;
layers
{
injector
{
nSurfaceLayers 4;
}
}/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.1.1 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object snappyHexMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

castellatedMesh true;
snap true;
addLayers true;

geometry
{
injector.stl
{
type triSurfaceMesh;
name injector;
}
}


castellatedMeshControls
{
maxLocalCells 500000;
maxGlobalCells 1000000;
minRefinementCells 100;
nCellsBetweenLevels 6;
features
();
refinementSurfaces
{
injector
{
level (4 3);
}
}

refinementRegions
{
}
resolveFeatureAngle 200;

locationInMesh (0 0 0);
allowFreeStandingZoneFaces false;
}
snapControls
{
nSmoothPatch 3;
tolerance 4;
nSolveIter 60;
nRelaxIter 5;
}
addLayersControls
{
relativeSizes true;
layers
{
injector
{
nSurfaceLayers 4;
}
}
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 1;
nLayerIter 50;
}
meshQualityControls
{
maxNonOrtho 65;
maxBoundarySkewness 20;
maxInternalSkewness 4;
maxConcave 80;
minVol 1e-13;
minTetQuality 1e-30;
minArea -1;
minTwist 0.05;
minDeterminant 0.001;
minFaceWeight 0.05;
minVolRatio 0.01;
minTriangleTwist -1;
nSmoothScale 4;
errorReduction 0.75;
minFlatness 0.5;
}

debug 0;
mergeTolerance 1e-6;

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 1;
nLayerIter 50;
}
meshQualityControls
{
maxNonOrtho 65;
maxBoundarySkewness 20;
maxInternalSkewness 4;
maxConcave 80;
minVol 1e-13;
minTetQuality 1e-30;
minArea -1;
minTwist 0.05;
minDeterminant 0.001;
minFaceWeight 0.05;
minVolRatio 0.01;
minTriangleTwist -1;
nSmoothScale 4;
errorReduction 0.75;
minFlatness 0.5;
}

debug 0;
mergeTolerance 1e-6;

Sandy,
Attached Images
File Type: jpg paraview mesh.jpg (37.6 KB, 119 views)
File Type: jpg snappy picture.jpg (14.8 KB, 110 views)
sandy13 is offline   Reply With Quote

 


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] Impossible to add layers in SnappyHexMesh knightwalker OpenFOAM Meshing & Mesh Conversion 4 March 27, 2019 17:09
[OpenFOAM] Checking layers generated by snappy with paraview bentkj ParaView 1 February 22, 2018 03:32
[snappyHexMesh] snappy does not add layer to whole body 5tern OpenFOAM Meshing & Mesh Conversion 0 October 20, 2016 10:09
[snappyHexMesh] Adding layers goes wrong with SnappyHexMesh Elise OpenFOAM Meshing & Mesh Conversion 1 April 22, 2013 02:32
[snappyHexMesh] Add layers and deformation Prosiaczek OpenFOAM Meshing & Mesh Conversion 0 April 11, 2012 18:27


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