/*--------------------------------*- C++ -*----------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org \\ / A nd | Version: 8 \\/ M anipulation | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; object snappyHexMeshDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // castellatedMesh true; snap true; addLayers false; geometry { inlet { type triSurfaceMesh; file "inlet.stl"; } outlet { type triSurfaceMesh; file "outlet.stl"; } wall { type triSurfaceMesh; file "wall.stl"; } TurbinNozzle { type triSurfaceMesh; file "TurbinNozzle.stl"; } TurbinRotor { type triSurfaceMesh; file "TurbinRotor.stl"; } RotorZone { type triSurfaceMesh; file "RotorZone.stl"; } }; castellatedMeshControls { maxLocalCells 100000; maxGlobalCells 2000000; minRefinementCells 0; maxLoadUnbalance 0.10; nCellsBetweenLevels 2; features ( { file "TurbinNozzle.eMesh"; level 2; } { file "TurbinRotor.eMesh"; level 2; } { file "RotorZone.eMesh"; level 2; } { file "wall.eMesh"; level 1; } ); refinementSurfaces { inlet { level (1 1) patchInfo { type patch; } } outlet { level (1 1) patchInfo { type patch; } } wall { level (1 1) patchInfo { type wall; ingrops (Wall); } } TrubinNozzle { level (2 2) patchInfo { type wall; ingrops (Wall); } } TurbinRotor { level (2 2); patchInfo { type wall; } faceZone TurbinRotor; facetype baffle; } RotorZone { level (2 2) faceZone RotorZone; cellZone RotorZone; cellZoneInside inside; } } resolveFeatureAngle 30; refinementRegions { } locationInMesh (0 0 0); allowFreeStandingZoneFaces true; } snapControls { nSmoothPatch 3; tolerance 1.0; nSolveIter 100; nRelaxIter 5; nFeatureSnapIter 5; } addLayersControls { relativeSizes true; layers { } expansionRatio 1.0; finalLayerThickness 0.3; minThickness 0.1; nGrow 0; featureAngle 30; nRelaxIter 3; nSmoothSurfaceNormals 1; nSmoothNormals 3; nSmoothThickness 10; maxFaceThicknessRatio 0.5; maxThicknessToMedialRatio 0.3; minMedianAxisAngle 90; nBufferCellsNoExtrude 0; nLayerIter 50; } meshQualityControls { maxNonOrtho 65; maxBoundarySkewness 20; maxInternalSkewness 4; maxConcave 80; minVol 1e-13; minTetQuality -1; minArea -1; minTwist 0.01; minDeterminant 0.001; minFaceWeight 0.05; minVolRatio 0.01; minTriangleTwist -1; nSmoothScale 4; errorReduction 0.75; relaxed { maxNonOrtho 75; } } mergeTolerance 1e-6; // ************************************************************************* //