/*--------------------------------*- 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; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // Which of the steps to run castellatedMesh true; snap true; addLayers false; geometry { yuanguan.stl { type triSurfaceMesh; name yuanguan; } Box { type searchableBox; min (-5 -2.5 -3); max (34 2.5 3); } }; castellatedMeshControls { maxLocalCells 100000; maxGlobalCells 2000000; minRefinementCells 0; maxLoadUnbalance 0.10; nCellsBetweenLevels 1; features ( { file"yuanguan.eMesh"; level 2; } ); refinementSurfaces { yuanguan { level (2 2); regions { in { level (2 2); patchInfo { type wall; } } out { level (2 2); patchInfo { type wall; } } wall { level (2 2); patchInfo { type wall; } } } } }; refinementRegions { box { mode inside; levels ((2 2)); } }; locationInMesh (5 0 0); resolveFeatureAngle 30; planarAngle 30; allowFreeStandingZoneFaces true; nCellsBetweenLevels 3; }; snapControls { nSmoothPatch 10; tolerance 2.0; nSolveIter 300; nRelaxIter 10; }; addLayersControls { relativeSizes true; expansionRatio 1.2; finalLayerThickness 0.5; minThickness 0.1; layers { yuanguan_wall { nSurfaceLayers 3; } maxY { nSurfaceLayers 1; expansionRatio 1.3; finalLayerThickness 0.3; minThickness 0.1; } } nGrow 0; featureAngle 130; maxFaceThicknessRatio 0.5; nSmoothSurfaceNormals 1; nSmoothThickness 10; minMedialAxisAngle 90; maxThicknessToMedialRatio 0.3; nSmoothNormals 3; slipFeatureAngle 30; nRelaxIter 5; nBufferCellsNoExtrude 0; nLayerIter 50; nRelaxedIter 20; }; meshQualityControls { #include "meshQualityDict" relaxed { maxNonOrtho 75; } nSmoothScale 4; errorReduction 0.75; }; mergeTolerance 1e-6; // ************************************************************************* //