/*--------------------------------*- C++ -*----------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org \\ / A nd | Version: 7 \\/ M anipulation | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; object snappyHexMeshDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // castellatedMesh true; snap true; addLayers false; geometry { rotating { type triSurfaceMesh; file "rotating.stl"; } fixed { type triSurfaceMesh; file "fixed.stl"; } rotatingzone { type triSurfaceMesh; file "rotatingZone.stl"; } } castellatedMeshControls { maxLocalCells 100000; maxGlobalCells 2000000; minRefinementCells 0; nCellsBetweenLevels 2; maxLoadUnbalance 0.10; features ( { file "fixed.eMesh"; level 0; } { file "rotating.eMesh"; level 1; } { file "rotatingZone.eMesh"; level 1; } ); resolveFeatureAngle 30; refinementSurfaces { rotatingZone { level (2 2); cellZone rotatingzone; faceZone rotatingzone; cellZoneInside inside; } rotating { level (1 1); } fixed { level (0 0); } } refinementRegions { rotatingZone { mode distance; levels ((1.0 5) (2.0 3)); } } locationInMesh (0.0 0.1 0.0); // Inside point allowFreeStandingZoneFaces true; } // Settings for the snapping. snapControls { nSmoothPatch 3; tolerance 1.0; nSolveIter 300; nRelaxIter 10; nFeatureSnapIter 10; implicitFeatureSnap true; explicitFeatureSnap false; multiRegionFeatureSnap true; } // Settings for the layer addition. addLayersControls { relativeSizes true; layers { } expansionRatio 1.0; finalLayerThickness 0.3; minThickness 0.25; nGrow 0; featureAngle 30; nRelaxIter 5; nSmoothSurfaceNormals 1; nSmoothNormals 3; nSmoothThickness 10; maxFaceThicknessRatio 0.5; maxThicknessToMedialRatio 0.3; minMedianAxisAngle 90; nBufferCellsNoExtrude 0; nLayerIter 50; nRelaxedIter 20; } meshQualityControls { #include "meshQualityDict" relaxed { maxNonOrtho 75; } } writeFlags ( ); mergeTolerance 1E-6; // ************************************************************************* //