-
Notifications
You must be signed in to change notification settings - Fork 1
/
Allrun
executable file
·55 lines (36 loc) · 1.47 KB
/
Allrun
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/bin/sh
cd "${0%/*}" || exit # Run from this directory
. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions
#------------------------------------------------------------------------------
# copy motorbike surface from resources directory
mkdir -p constant/triSurface
cp -f \
"$FOAM_TUTORIALS"/resources/geometry/motorBike.obj.gz \
constant/triSurface/
if [ ! -d "openfoam-convergence-detection" ] ; then
git clone https://github.com/airshaper/openfoam-convergence-detection.git
fi
wmake -j openfoam-convergence-detection
runApplication surfaceFeatureExtract
runApplication blockMesh
runApplication decomposePar
# Using distributedTriSurfaceMesh?
if foamDictionary -entry geometry -value system/snappyHexMeshDict | \
grep -q distributedTriSurfaceMesh
then
echo "surfaceRedistributePar does not need to be run anymore"
echo " - distributedTriSurfaceMesh will do on-the-fly redistribution"
fi
runParallel snappyHexMesh -overwrite
runParallel topoSet
#- For non-parallel running: - set the initial fields
# restore0Dir
#- For parallel running: set the initial fields
restore0Dir -processor
runParallel patchSummary
runParallel potentialFoam -writephi
runParallel checkMesh -writeFields '(nonOrthoAngle)' -constant
runParallel $(getApplication)
runApplication reconstructParMesh -constant
runApplication reconstructPar -latestTime
#------------------------------------------------------------------------------