Next: Model setting without an Up: Alternative formulation Previous: Alternative formulation Contents Index Script for Creating Mesh - Draft Tube Region Following bash script can be used to run all at once. It is recommended to create file, e.g. buildMesh: #!/bin/bash # check environment if [[ $(echo $WM_PROJECT_VERSION | cut -c1-3) != "2.3" ]]; then echo "You need OpenFOAM 2.3 to build the mesh." exit 0 fi rm -rf 1 2 3 4 processor* rm -f final *.log echo " - run blockMesh" blockMesh > blockMesh.log echo " - run surfaceFeatureExtract" surfaceFeatureExtract > surfaceFeatureExtract.log echo " - parallel decomposition (4 processes)" decomposePar > decomposePar.log echo " - run snappyHexMesh" mpirun -np 4 snappyHexMesh -parallel > snappyHexMesh.log echo " - parallel reconstruction" reconstructParMesh -latestTime > reconstructPar.log echo " - reordering boundary types" changeDictionary > changeDictionary.log echo " - renumberMesh" renumberMesh -latestTime > renumberMesh.log ln -s 4 final Script can be executed, e.g.:# sh buildMesh Figure: Francis turbine complete model view. 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