/*--------------------------------*- C++ -*----------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org \\ / A nd | Version: 9 \\/ M anipulation | \*---------------------------------------------------------------------------*/ FoamFile { format ascii; class dictionary; object snappyHexMeshDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // #includeEtc "caseDicts/mesh/generation/snappyHexMeshDict.cfg" castellatedMesh on; snap on; addLayers off; geometry { cylinders { type triSurfaceMesh; file "cylinders.obj"; } refinementBox { type searchableBox; min ( 0 0 -9.02252); max (600 600 9.02252); } }; castellatedMeshControls { maxLocalCells 70000000; maxGlobalCells 2000000000; features ( { file "cylinders.eMesh"; level 2; } ); refinementSurfaces { cylinders { level (0 0); patchInfo { type wall; } } } refinementRegions { refinementBox { mode inside; level 1; } } locationInMesh (1 1 1); } snapControls { explicitFeatureSnap true; implicitFeatureSnap false; } addLayersControls { layers { "CAD.*" { nSurfaceLayers 0; } } relativeSizes true; expansionRatio 1.2; finalLayerThickness 0.5; minThickness 1e-3; } meshQualityControls {} writeFlags ( // scalarLevels // layerSets // layerFields ); mergeTolerance 1e-6; // ************************************************************************* //