STYLE: adjust tutorial Allrun scripts (issue #310)

- A few without a 'cd' at the start.
  Use $(getApplication) directly in more places (for clarity).
This commit is contained in:
Mark Olesen
2016-11-21 10:18:00 +01:00
parent 21679c04e4
commit a6a90838fa
150 changed files with 226 additions and 378 deletions

View File

@ -16,8 +16,6 @@ intersectSurfaces()
surfaceBooleanFeatures intersection "$@"
}
# Set application name
application=$(getApplication)
\rm -rf 0

View File

@ -6,9 +6,6 @@ cd ${0%/*} || exit 1 # Run from this directory
cp system/controlDict.flow system/controlDict
# Set application name
application=$(getApplication)
rm -rf 0
runApplication createBaffles -overwrite
@ -17,7 +14,7 @@ runApplication mergeOrSplitBaffles -split -overwrite
# Get rid of zero faced patches
runApplication createPatch -overwrite
# Copy fields after meshing to avoind the generation of unnecessary patch fields
# Copy fields after meshing to avoid the generation of unnecessary patch fields
restore0Dir
# Initialize alpha
@ -28,7 +25,7 @@ runApplication -s main \
decomposePar -force
# Run
runParallel $application
runParallel $(getApplication)
# Reconstruct
runApplication reconstructPar -noFunctionObjects

View File

@ -16,5 +16,4 @@ runApplication foamyQuadMesh -overwrite
runApplication extrude2DMesh -overwrite polyMesh2D
runApplication checkMesh -allGeometry -allTopology -constant -noZero
#------------------------------------------------------------------------------

View File

@ -11,5 +11,4 @@ runApplication decomposePar
runParallel rhoCentralFoam
runApplication reconstructPar
#------------------------------------------------------------------------------

View File

@ -9,5 +9,4 @@ runApplication foamyQuadMesh -overwrite
runApplication extrude2DMesh -overwrite MeshedSurface
runApplication checkMesh -allGeometry -allTopology -constant -noZero
#------------------------------------------------------------------------------

View File

@ -9,5 +9,4 @@ runApplication foamyQuadMesh -overwrite
runApplication extrude2DMesh -overwrite polyMesh2D
runApplication checkMesh -allGeometry -allTopology -constant -noZero
#------------------------------------------------------------------------------

View File

@ -1,5 +1,5 @@
#!/bin/sh
cd ${0%/*} || exit 1 # run from this directory
cd ${0%/*} || exit 1 # Run from this directory
# Source tutorial clean functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions

View File

@ -1,4 +1,6 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
@ -8,3 +10,5 @@ cp $FOAM_TUTORIALS/resources/geometry/flange.stl.gz constant/triSurface/
runApplication blockMesh
runApplication surfaceFeatureExtract
runApplication snappyHexMesh -overwrite
#------------------------------------------------------------------------------