cp system/controlDict.SHM system/controlDict cp system/fvSchemes.SHM system/fvSchemes cp system/fvSolution.SHM system/fvSolution blockMesh snappyHexMesh -dict system/snappyHexMeshDict.refineblockMesh -overwrite mv ./0/cellLevel ./constant/polyMesh/ mv ./0/pointLevel ./constant/polyMesh/ rm -r 0 checkMesh extrudeMesh -dict system/extrudeMeshDict.refineblockMesh rm constant/polyMesh/cellLevel rm constant/polyMesh/cellZones rm constant/polyMesh/pointLevel rm constant/polyMesh/pointZones rm constant/polyMesh/faceZones rm constant/polyMesh/level0Edge rm constant/polyMesh/surfaceIndex sed -i s/'ff_zMin'/'ff_SAVE'/g constant/polyMesh/boundary sed -i s/'ff_zMax'/'ff_zMin'/g constant/polyMesh/boundary sed -i s/'ff_SAVE'/'ff_zMax'/g constant/polyMesh/boundary checkMesh surfaceFeatureExtract decomposePar -force -decomposeParDict system/decomposeParDict.SHM snappyHexMesh -parallel -decomposeParDict system/decomposeParDict.SHM -dict system/snappyHexMeshDict -overwrite checkMesh -parallel -decomposeParDict system/decomposeParDict.SHM -latestTime -meshQuality reconstructParMesh -mergeTol 1e-08 -constant -latestTime echo -e -n '\n Mirror 3D mesh to apply cyclic BC ...\n' cp -r constant/polyMesh constant/polyMesh.origHalf mirrorMesh -overwrite topoSet -dict system/topoSetDict.faces.ff_zMin createPatch -overwrite -dict system/createPatchDict.mirrorMesh changeDictionary -constant -dict system/changeDictionaryDict.cyclicPatches -enableFunctionEntries topoSet -dict system/topoSetDict.faces.cyclic checkMesh -constant rm -r constant/polyMesh.origHalf cp -r 0.orig 0 cp system/controlDict.SHM system/controlDict cp system/fvSchemes.SHM system/fvSchemes cp system/fvSolution.SHM system/fvSolution decomposePar -force renumberMesh -parallel -overwrite cp system/controlDict.SRS.init system/controlDict cp system/fvSolution.SRS system/fvSolution cp system/fvSchemes.SRS system/fvSchemes applyBoundaryLayer -parallel -ybl 0.1 echo -e -n '\n Running initial SRS ...\n' cp system/controlDict.SRS.init system/controlDict cp system/fvSolution.SRS system/fvSolution cp system/fvSchemes.SRS system/fvSchemes rhoPimpleFoam -parallel echo -e -n '\n Running productive SRS ...\n' cp system/controlDict.SRS.avg system/controlDict cp system/fvSolution.SRS system/fvSolution cp system/fvSchemes.SRS system/fvSchemes rhoPimpleFoam -parallel postProcess -func sampleDict.surface.SRS -parallel -latestTime