Next: Model setting without an Up: Alternative formulation Previous: Alternative formulation Contents Index Script for creating mesh - Rotor Region Following bash script can be used to run all at once. It is recommended to create file, e.g. createMesh.sh: #!/bin/bash surfaceFeatureExtract | tee 1-surfaceFeatureExtract.log surfaceBooleanFeatures intersection constant/triSurface/t-housing.stl \ constant/triSurface/interface-t1.stl | tee 2-surfaceBooleanFeatures.log rm -rf *.obj blockMesh | tee 3-blockMesh.log decomposePar | tee 4-decomposePar.log mpirun -np 4 snappyHexMesh -parallel | tee 5-snappyHexMesh.log reconstructParMesh -mergeTol 1e-6 -latestTime | tee 6-reconstructParMesh.log renumberMesh -latestTime | tee 7-renumberMesh.log transformPoints -scale '(1e-3 1e-3 1e-3)' | tee 8-transformPoints.log checkMesh -latestTime | tee 9-checkMesh.log cp -rf 3/polyMesh/* constant/polyMesh/ rm -rf 1 2 3 4 processor* Script file can be executed, e.g.: sh createMesh.sh OpenFOAM Training by CFD Support, CFD SUPPORT, info@cfdsupport.com +420 212 243 883 © CFD support, s.r.o., Sokolovská 270/201, 190 00 Praha 9, Czech Republic