2 2

Next: Model setting without an Up: Alternative formulation Previous: Alternative formulation   Contents   Index

Script for Creating Mesh - Spiral Region

Following bash script can be used to run all at once. It is recommended to create file, e.g. buildMesh:

 

#!/bin/bash

rm -rf 1 2 3 4 processor*
rm -f final *.log

echo "   - run blockMesh"
blockMesh > blockMesh.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

kaplan turbine cfd openfoam complete model

Figure: Complete Kaplan water turbine model view.