mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
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:
@ -16,8 +16,6 @@ intersectSurfaces()
|
||||
surfaceBooleanFeatures intersection "$@"
|
||||
}
|
||||
|
||||
# Set application name
|
||||
application=$(getApplication)
|
||||
|
||||
\rm -rf 0
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
@ -16,5 +16,4 @@ runApplication foamyQuadMesh -overwrite
|
||||
runApplication extrude2DMesh -overwrite polyMesh2D
|
||||
runApplication checkMesh -allGeometry -allTopology -constant -noZero
|
||||
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -11,5 +11,4 @@ runApplication decomposePar
|
||||
runParallel rhoCentralFoam
|
||||
runApplication reconstructPar
|
||||
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -9,5 +9,4 @@ runApplication foamyQuadMesh -overwrite
|
||||
runApplication extrude2DMesh -overwrite MeshedSurface
|
||||
runApplication checkMesh -allGeometry -allTopology -constant -noZero
|
||||
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -9,5 +9,4 @@ runApplication foamyQuadMesh -overwrite
|
||||
runApplication extrude2DMesh -overwrite polyMesh2D
|
||||
runApplication checkMesh -allGeometry -allTopology -constant -noZero
|
||||
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user