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

echo "   - rotating drafttube"
transformPoints -rotate '( (1 0 0) (0 1 0) )' > log.rotate
transformPoints -rotate '( (1 0 0) (0 1 0) )' >> log.rotate

ln -s 4 final

Script can be executed, e.g.:

# sh buildMesh