diff --git a/tutorials/DNS/dnsFoam/boxTurb16/Allrun b/tutorials/DNS/dnsFoam/boxTurb16/Allrun index 4ff5fb63f248b75430ae62a8870917fef189e286..125c236a6c74808003188cbb856c8644d66e7455 100755 --- a/tutorials/DNS/dnsFoam/boxTurb16/Allrun +++ b/tutorials/DNS/dnsFoam/boxTurb16/Allrun @@ -4,12 +4,9 @@ cd ${0%/*} || exit 1 # Run from this directory # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions -# Get application name -application=$(getApplication) - runApplication blockMesh runApplication boxTurb -runApplication $application +runApplication $(getApplication) runApplication -s enstrophy postProcess -func enstrophy #------------------------------------------------------------------------------ diff --git a/tutorials/basic/laplacianFoam/flange/Allrun b/tutorials/basic/laplacianFoam/flange/Allrun index ac1e880823e320228d9149db460c0daef0e993f5..59e996ba18f57017cacb2534754c9b3ba3c11d80 100755 --- a/tutorials/basic/laplacianFoam/flange/Allrun +++ b/tutorials/basic/laplacianFoam/flange/Allrun @@ -4,9 +4,6 @@ cd ${0%/*} || exit 1 # Run from this directory # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions -# Get application name -application=$(getApplication) - runAnsysToFoam() { if [ -f log.ansysToFoam ] @@ -19,7 +16,7 @@ runAnsysToFoam() } runAnsysToFoam flange.ans 0.001 -runApplication $application +runApplication $(getApplication) runApplication foamToEnsight -noZero runApplication foamToEnsightParts -noZero runApplication foamToVTK diff --git a/tutorials/basic/potentialFoam/cylinder/Allrun b/tutorials/basic/potentialFoam/cylinder/Allrun index fc215995a524779911dff4992c9d26b24ac5747a..ad39e41c0a3660ad65637c2d83c085ae3986df4d 100755 --- a/tutorials/basic/potentialFoam/cylinder/Allrun +++ b/tutorials/basic/potentialFoam/cylinder/Allrun @@ -4,11 +4,9 @@ cd ${0%/*} || exit 1 # Run from this directory # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions -application=$(getApplication) - restore0Dir runApplication blockMesh -runApplication $application -withFunctionObjects -writePhi -writep +runApplication $(getApplication) -withFunctionObjects -writePhi -writep runApplication streamFunction #------------------------------------------------------------------------------ diff --git a/tutorials/basic/potentialFoam/pitzDaily/Allrun b/tutorials/basic/potentialFoam/pitzDaily/Allrun index 8affee72b0f35fafb4b263e5d4112ee6a3967d5e..2c9adcb14b53b9a3e33da88eb6d239d2422edda9 100755 --- a/tutorials/basic/potentialFoam/pitzDaily/Allrun +++ b/tutorials/basic/potentialFoam/pitzDaily/Allrun @@ -4,11 +4,9 @@ cd ${0%/*} || exit 1 # Run from this directory # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions -application=$(getApplication) - restore0Dir runApplication blockMesh -runApplication $application -writePhi -writep +runApplication $(getApplication) -writePhi -writep runApplication streamFunction #------------------------------------------------------------------------------ diff --git a/tutorials/combustion/PDRFoam/flamePropagationWithObstacles/Allrun b/tutorials/combustion/PDRFoam/flamePropagationWithObstacles/Allrun index 12857916b89ad31196fd6649b513a9ffe0089f79..312f7aa370c487b73497f6464b0f38f8575d1733 100755 --- a/tutorials/combustion/PDRFoam/flamePropagationWithObstacles/Allrun +++ b/tutorials/combustion/PDRFoam/flamePropagationWithObstacles/Allrun @@ -1,7 +1,6 @@ #!/bin/sh cd ${0%/*} || exit 1 # Run from this directory - # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions @@ -12,7 +11,6 @@ runApplication topoSet runApplication PDRMesh -overwrite -# Run runApplication $(getApplication) #------------------------------------------------------------------------------ diff --git a/tutorials/combustion/chemFoam/gri/Allrun b/tutorials/combustion/chemFoam/gri/Allrun index 7175763e19724e82c8aaadcf9c8416ed2a9b12a3..9f91a1a6ccd1687bb46e465196a6d7615ee700d8 100755 --- a/tutorials/combustion/chemFoam/gri/Allrun +++ b/tutorials/combustion/chemFoam/gri/Allrun @@ -4,14 +4,12 @@ cd ${0%/*} || exit 1 # Run from this directory # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions -# Set application name -application=$(getApplication) runApplication chemkinToFoam \ chemkin/chem.inp chemkin/therm.dat chemkin/transportProperties \ constant/reactions constant/thermo -runApplication $application +runApplication $(getApplication) (cd validation && ./Allrun $*) diff --git a/tutorials/combustion/chemFoam/gri/validation/Allrun b/tutorials/combustion/chemFoam/gri/validation/Allrun index 0720352189f10e3469ea28e7dfa1e5060c4fcafc..041628b097f58cf578c6c382a93f8eed8a267627 100755 --- a/tutorials/combustion/chemFoam/gri/validation/Allrun +++ b/tutorials/combustion/chemFoam/gri/validation/Allrun @@ -1,5 +1,4 @@ #!/bin/sh - cd ${0%/*} || exit 1 # Run from this directory # Extract Chemkin II data into a friendlier format @@ -10,5 +9,3 @@ grep '^ Time (sec)' ../chemkin/senk.out | awk '{print $4 " " $8 }' \ ./createGraph #------------------------------------------------------------------------------ - - diff --git a/tutorials/combustion/chemFoam/h2/Allrun b/tutorials/combustion/chemFoam/h2/Allrun index de26a4017d4750deb022950c5cd98c87da8d6a6a..a90b3d865ce2bdd38cc3bc1255897171006ae8e7 100755 --- a/tutorials/combustion/chemFoam/h2/Allrun +++ b/tutorials/combustion/chemFoam/h2/Allrun @@ -4,10 +4,7 @@ cd ${0%/*} || exit 1 # Run from this directory # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions -# Set application name -application=$(getApplication) - -runApplication $application +runApplication $(getApplication) (cd validation && ./Allrun $*) diff --git a/tutorials/combustion/chemFoam/h2/validation/Allrun b/tutorials/combustion/chemFoam/h2/validation/Allrun index 0720352189f10e3469ea28e7dfa1e5060c4fcafc..041628b097f58cf578c6c382a93f8eed8a267627 100755 --- a/tutorials/combustion/chemFoam/h2/validation/Allrun +++ b/tutorials/combustion/chemFoam/h2/validation/Allrun @@ -1,5 +1,4 @@ #!/bin/sh - cd ${0%/*} || exit 1 # Run from this directory # Extract Chemkin II data into a friendlier format @@ -10,5 +9,3 @@ grep '^ Time (sec)' ../chemkin/senk.out | awk '{print $4 " " $8 }' \ ./createGraph #------------------------------------------------------------------------------ - - diff --git a/tutorials/combustion/chemFoam/ic8h18/Allrun b/tutorials/combustion/chemFoam/ic8h18/Allrun index de26a4017d4750deb022950c5cd98c87da8d6a6a..a90b3d865ce2bdd38cc3bc1255897171006ae8e7 100755 --- a/tutorials/combustion/chemFoam/ic8h18/Allrun +++ b/tutorials/combustion/chemFoam/ic8h18/Allrun @@ -4,10 +4,7 @@ cd ${0%/*} || exit 1 # Run from this directory # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions -# Set application name -application=$(getApplication) - -runApplication $application +runApplication $(getApplication) (cd validation && ./Allrun $*) diff --git a/tutorials/combustion/chemFoam/ic8h18/validation/Allrun b/tutorials/combustion/chemFoam/ic8h18/validation/Allrun index 0720352189f10e3469ea28e7dfa1e5060c4fcafc..041628b097f58cf578c6c382a93f8eed8a267627 100755 --- a/tutorials/combustion/chemFoam/ic8h18/validation/Allrun +++ b/tutorials/combustion/chemFoam/ic8h18/validation/Allrun @@ -1,5 +1,4 @@ #!/bin/sh - cd ${0%/*} || exit 1 # Run from this directory # Extract Chemkin II data into a friendlier format @@ -10,5 +9,3 @@ grep '^ Time (sec)' ../chemkin/senk.out | awk '{print $4 " " $8 }' \ ./createGraph #------------------------------------------------------------------------------ - - diff --git a/tutorials/combustion/chemFoam/ic8h18_TDAC/Allrun b/tutorials/combustion/chemFoam/ic8h18_TDAC/Allrun index 62adab28f3460c97ff3112e605c9fb2d5e5c8dcd..a90b3d865ce2bdd38cc3bc1255897171006ae8e7 100755 --- a/tutorials/combustion/chemFoam/ic8h18_TDAC/Allrun +++ b/tutorials/combustion/chemFoam/ic8h18_TDAC/Allrun @@ -4,10 +4,7 @@ cd ${0%/*} || exit 1 # Run from this directory # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions -# Set application name -application=`getApplication` - -runApplication $application +runApplication $(getApplication) (cd validation && ./Allrun $*) diff --git a/tutorials/combustion/chemFoam/ic8h18_TDAC/validation/Allrun b/tutorials/combustion/chemFoam/ic8h18_TDAC/validation/Allrun index 0720352189f10e3469ea28e7dfa1e5060c4fcafc..041628b097f58cf578c6c382a93f8eed8a267627 100755 --- a/tutorials/combustion/chemFoam/ic8h18_TDAC/validation/Allrun +++ b/tutorials/combustion/chemFoam/ic8h18_TDAC/validation/Allrun @@ -1,5 +1,4 @@ #!/bin/sh - cd ${0%/*} || exit 1 # Run from this directory # Extract Chemkin II data into a friendlier format @@ -10,5 +9,3 @@ grep '^ Time (sec)' ../chemkin/senk.out | awk '{print $4 " " $8 }' \ ./createGraph #------------------------------------------------------------------------------ - - diff --git a/tutorials/combustion/chemFoam/nc7h16/Allrun b/tutorials/combustion/chemFoam/nc7h16/Allrun index de26a4017d4750deb022950c5cd98c87da8d6a6a..a90b3d865ce2bdd38cc3bc1255897171006ae8e7 100755 --- a/tutorials/combustion/chemFoam/nc7h16/Allrun +++ b/tutorials/combustion/chemFoam/nc7h16/Allrun @@ -4,10 +4,7 @@ cd ${0%/*} || exit 1 # Run from this directory # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions -# Set application name -application=$(getApplication) - -runApplication $application +runApplication $(getApplication) (cd validation && ./Allrun $*) diff --git a/tutorials/combustion/chemFoam/nc7h16/validation/Allrun b/tutorials/combustion/chemFoam/nc7h16/validation/Allrun index 0720352189f10e3469ea28e7dfa1e5060c4fcafc..041628b097f58cf578c6c382a93f8eed8a267627 100755 --- a/tutorials/combustion/chemFoam/nc7h16/validation/Allrun +++ b/tutorials/combustion/chemFoam/nc7h16/validation/Allrun @@ -1,5 +1,4 @@ #!/bin/sh - cd ${0%/*} || exit 1 # Run from this directory # Extract Chemkin II data into a friendlier format @@ -10,5 +9,3 @@ grep '^ Time (sec)' ../chemkin/senk.out | awk '{print $4 " " $8 }' \ ./createGraph #------------------------------------------------------------------------------ - - diff --git a/tutorials/combustion/engineFoam/kivaTest/Allrun b/tutorials/combustion/engineFoam/kivaTest/Allrun index 33555b48098a6740d8bfa64f855d6a6524efdf60..d5434dff00792b057defd27be919037c2fc163d6 100755 --- a/tutorials/combustion/engineFoam/kivaTest/Allrun +++ b/tutorials/combustion/engineFoam/kivaTest/Allrun @@ -4,11 +4,7 @@ cd ${0%/*} || exit 1 # Run from this directory # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions -# Get application name -application=$(getApplication) - runApplication kivaToFoam -file otape17 - -runApplication $application +runApplication $(getApplication) #------------------------------------------------------------------------------ diff --git a/tutorials/combustion/fireFoam/LES/compartmentFire/Allclean b/tutorials/combustion/fireFoam/LES/compartmentFire/Allclean index be64e41b64f5511c0d92b81cf342e70ce9b6b5a7..b333961d48f9124298c175446d2196d3676d2e5f 100755 --- a/tutorials/combustion/fireFoam/LES/compartmentFire/Allclean +++ b/tutorials/combustion/fireFoam/LES/compartmentFire/Allclean @@ -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 diff --git a/tutorials/combustion/fireFoam/LES/compartmentFire/Allrun b/tutorials/combustion/fireFoam/LES/compartmentFire/Allrun index f4139300d2f3bb5b8cafe55ea7e26317d4025ad3..1fb613fedb3c671fbddaa847cdef14fba898b88e 100755 --- a/tutorials/combustion/fireFoam/LES/compartmentFire/Allrun +++ b/tutorials/combustion/fireFoam/LES/compartmentFire/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # run from this directory +cd ${0%/*} || exit 1 # Run from this directory # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions @@ -23,6 +23,6 @@ runParallel $(getApplication) paraFoam -touch paraFoam -touch -region panelRegion -(cd validation && ./crateGraphs) +(cd validation && ./createGraphs) # ----------------------------------------------------------------------------- diff --git a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/Allrun b/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/Allrun index c153fe65d5b7b86973eeb27d3ca6bd7ba538fe55..c46299855a1fe7dc288e8fbc4c884440ff63180f 100755 --- a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/Allrun +++ b/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/Allrun @@ -4,9 +4,6 @@ cd ${0%/*} || exit 1 # Run from this directory # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions -# Set application name -application=$(getApplication) - runApplication blockMesh runApplication -s cRefine \ diff --git a/tutorials/combustion/fireFoam/LES/simplePMMApanel/Allclean b/tutorials/combustion/fireFoam/LES/simplePMMApanel/Allclean index be64e41b64f5511c0d92b81cf342e70ce9b6b5a7..b333961d48f9124298c175446d2196d3676d2e5f 100755 --- a/tutorials/combustion/fireFoam/LES/simplePMMApanel/Allclean +++ b/tutorials/combustion/fireFoam/LES/simplePMMApanel/Allclean @@ -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 diff --git a/tutorials/combustion/fireFoam/LES/simplePMMApanel/Allrun b/tutorials/combustion/fireFoam/LES/simplePMMApanel/Allrun index 9a56766a61c83665993f2e86982e36d3f6dc2ed5..ba88bc10f317372bcd9c32c27fadb6ed300ee4a5 100755 --- a/tutorials/combustion/fireFoam/LES/simplePMMApanel/Allrun +++ b/tutorials/combustion/fireFoam/LES/simplePMMApanel/Allrun @@ -1,16 +1,12 @@ #!/bin/sh -cd ${0%/*} || exit 1 # run from this directory +cd ${0%/*} || exit 1 # Run from this directory # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions runApplication blockMesh - runApplication topoSet - runApplication extrudeToRegionMesh -overwrite - -# Run runApplication $(getApplication) paraFoam -touchAll diff --git a/tutorials/combustion/fireFoam/LES/smallPoolFire2D/Allrun b/tutorials/combustion/fireFoam/LES/smallPoolFire2D/Allrun index 819d8380acbcb8c10c3ea7c02bab696d1acdd785..942f56f2ec95697f5bcb7f25d2559e66d9d71918 100755 --- a/tutorials/combustion/fireFoam/LES/smallPoolFire2D/Allrun +++ b/tutorials/combustion/fireFoam/LES/smallPoolFire2D/Allrun @@ -1,7 +1,6 @@ #!/bin/sh cd ${0%/*} || exit 1 # Run from this directory - # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions @@ -11,7 +10,6 @@ runApplication createPatch -overwrite cp 0/ph_rgh.orig 0/ph_rgh -# Run runApplication $(getApplication) #------------------------------------------------------------------------------ diff --git a/tutorials/combustion/fireFoam/LES/smallPoolFire3D/Allrun b/tutorials/combustion/fireFoam/LES/smallPoolFire3D/Allrun index aaab3e36d7d5bccd64e59cd7c0f4d5ac53248466..8c42b7a25ef1f2eba1d6c1e537f79c1a4cbc3cf2 100755 --- a/tutorials/combustion/fireFoam/LES/smallPoolFire3D/Allrun +++ b/tutorials/combustion/fireFoam/LES/smallPoolFire3D/Allrun @@ -1,11 +1,9 @@ #!/bin/sh +cd ${0%/*} || exit 1 # Run from this directory # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions -# Set application name -application=$(getApplication) - runApplication blockMesh runApplication topoSet runApplication createPatch -overwrite @@ -13,8 +11,6 @@ runApplication createPatch -overwrite cp 0/ph_rgh.orig 0/ph_rgh runApplication decomposePar -force - -# Run -runParallel $application +runParallel $(getApplication) #------------------------------------------------------------------------------ diff --git a/tutorials/compressible/rhoPimpleFoam/RAS/angledDuct/Allrun b/tutorials/compressible/rhoPimpleFoam/RAS/angledDuct/Allrun index 4f55fd7efaf20c8631ec86210c8629a9a3fe234b..ccdfefe5c1ce337739caa5bddd0affe3cfc4aad0 100755 --- a/tutorials/compressible/rhoPimpleFoam/RAS/angledDuct/Allrun +++ b/tutorials/compressible/rhoPimpleFoam/RAS/angledDuct/Allrun @@ -1,10 +1,12 @@ #!/bin/sh cd ${0%/*} || exit 1 # Run from this directory -m4 system/blockMeshDict.m4 > system/blockMeshDict - # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions +m4 system/blockMeshDict.m4 > system/blockMeshDict + runApplication blockMesh runApplication $(getApplication) + +#------------------------------------------------------------------------------ diff --git a/tutorials/compressible/rhoPimpleFoam/RAS/angledDuctLTS/Allrun b/tutorials/compressible/rhoPimpleFoam/RAS/angledDuctLTS/Allrun index 4f55fd7efaf20c8631ec86210c8629a9a3fe234b..ccdfefe5c1ce337739caa5bddd0affe3cfc4aad0 100755 --- a/tutorials/compressible/rhoPimpleFoam/RAS/angledDuctLTS/Allrun +++ b/tutorials/compressible/rhoPimpleFoam/RAS/angledDuctLTS/Allrun @@ -1,10 +1,12 @@ #!/bin/sh cd ${0%/*} || exit 1 # Run from this directory -m4 system/blockMeshDict.m4 > system/blockMeshDict - # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions +m4 system/blockMeshDict.m4 > system/blockMeshDict + runApplication blockMesh runApplication $(getApplication) + +#------------------------------------------------------------------------------ diff --git a/tutorials/compressible/rhoPimpleFoam/RAS/mixerVessel2D/Allrun b/tutorials/compressible/rhoPimpleFoam/RAS/mixerVessel2D/Allrun index 2e9c3f7fb3a2d22443c91d89debe842a936ff205..52b2a4941d73838617c1741cb20f1d4a5f4acdf5 100755 --- a/tutorials/compressible/rhoPimpleFoam/RAS/mixerVessel2D/Allrun +++ b/tutorials/compressible/rhoPimpleFoam/RAS/mixerVessel2D/Allrun @@ -1,9 +1,10 @@ #!/bin/sh +cd ${0%/*} || exit 1 # Run from this directory # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions -application=$(getApplication) - ./makeMesh -runApplication $application +runApplication $(getApplication) + +#------------------------------------------------------------------------------ diff --git a/tutorials/compressible/rhoPimpleFoam/laminar/helmholtzResonance/Allrun b/tutorials/compressible/rhoPimpleFoam/laminar/helmholtzResonance/Allrun index 78bf41821afa9d0e361e0533b5f9a3d507c6bcd5..0e6804513047c17e3a7bcd78fcb4c8d4332a93cc 100755 --- a/tutorials/compressible/rhoPimpleFoam/laminar/helmholtzResonance/Allrun +++ b/tutorials/compressible/rhoPimpleFoam/laminar/helmholtzResonance/Allrun @@ -1,9 +1,10 @@ #!/bin/sh +cd ${0%/*} || exit 1 # Run from this directory -cd ${0%/*} || exit 1 - +# Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions + # Run function links the appropriate mesh files and clones the case run() { @@ -45,3 +46,5 @@ plot \ "modelled/postProcessing/probes/0/p" us 1:(\$4-1e5) t "Modelled Plenum" w l EOF + +#------------------------------------------------------------------------------ diff --git a/tutorials/compressible/rhoPimpleFoam/laminar/sineWaveDamping/Allrun b/tutorials/compressible/rhoPimpleFoam/laminar/sineWaveDamping/Allrun index 31f6bc34d0fbfcee28a030447f424b33f27ff6e4..8a77ff8076363a01e3fc0e676fcf87e9a5223fd5 100755 --- a/tutorials/compressible/rhoPimpleFoam/laminar/sineWaveDamping/Allrun +++ b/tutorials/compressible/rhoPimpleFoam/laminar/sineWaveDamping/Allrun @@ -6,3 +6,5 @@ cd ${0%/*} || exit 1 # Run from this directory runApplication blockMesh runApplication $(getApplication) + +#------------------------------------------------------------------------------ diff --git a/tutorials/compressible/rhoSimpleFoam/angledDuctExplicitFixedCoeff/Allrun b/tutorials/compressible/rhoSimpleFoam/angledDuctExplicitFixedCoeff/Allrun index bb18fc3feba924ebddaced6d10f819a199c2870b..ccdfefe5c1ce337739caa5bddd0affe3cfc4aad0 100755 --- a/tutorials/compressible/rhoSimpleFoam/angledDuctExplicitFixedCoeff/Allrun +++ b/tutorials/compressible/rhoSimpleFoam/angledDuctExplicitFixedCoeff/Allrun @@ -1,14 +1,12 @@ #!/bin/sh cd ${0%/*} || exit 1 # Run from this directory -m4 system/blockMeshDict.m4 > system/blockMeshDict - # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions -application=$(getApplication) +m4 system/blockMeshDict.m4 > system/blockMeshDict runApplication blockMesh -runApplication $application +runApplication $(getApplication) #------------------------------------------------------------------------------ diff --git a/tutorials/compressible/sonicFoam/laminar/shockTube/Allrun b/tutorials/compressible/sonicFoam/laminar/shockTube/Allrun index 8c093a9abede574ad55979bb460883b1f08dc352..4a38818ccc6299069bae93f5c8f48764be3b9ae1 100755 --- a/tutorials/compressible/sonicFoam/laminar/shockTube/Allrun +++ b/tutorials/compressible/sonicFoam/laminar/shockTube/Allrun @@ -4,12 +4,10 @@ cd ${0%/*} || exit 1 # Run from this directory # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions -application=$(getApplication) - restore0Dir runApplication blockMesh runApplication setFields -runApplication $application +runApplication $(getApplication) runApplication -s sample postProcess -func sample #------------------------------------------------------------------------------ diff --git a/tutorials/discreteMethods/dsmcFoam/wedge15Ma5/Allrun b/tutorials/discreteMethods/dsmcFoam/wedge15Ma5/Allrun index 3d5ec5cbd9fec109f1a3b956843e5297e88a495d..d433a8c02696351d94bc86c06d9f46dfe5e8702a 100755 --- a/tutorials/discreteMethods/dsmcFoam/wedge15Ma5/Allrun +++ b/tutorials/discreteMethods/dsmcFoam/wedge15Ma5/Allrun @@ -10,5 +10,4 @@ runParallel dsmcInitialise runParallel $(getApplication) runApplication reconstructPar -noLagrangian - #------------------------------------------------------------------------------ diff --git a/tutorials/discreteMethods/molecularDynamics/mdFoam/nanoNozzle/Allrun b/tutorials/discreteMethods/molecularDynamics/mdFoam/nanoNozzle/Allrun index c373ee10797d94fccb059947af2b28817d1cfdd8..66482be7d4b45256508f008b855a253015e35103 100755 --- a/tutorials/discreteMethods/molecularDynamics/mdFoam/nanoNozzle/Allrun +++ b/tutorials/discreteMethods/molecularDynamics/mdFoam/nanoNozzle/Allrun @@ -1,18 +1,14 @@ #!/bin/sh cd ${0%/*} || exit 1 # Run from this directory - # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions -application=$(getApplication) - runApplication blockMesh - runApplication decomposePar runParallel mdInitialise -runParallel $application +runParallel $(getApplication) runApplication reconstructPar diff --git a/tutorials/electromagnetics/mhdFoam/hartmann/Allrun b/tutorials/electromagnetics/mhdFoam/hartmann/Allrun index 332db2c7bfc8ab93a3b02a37b4c33227d769845e..8bf5318684b5cc1c547828577a784fe1666df0cd 100755 --- a/tutorials/electromagnetics/mhdFoam/hartmann/Allrun +++ b/tutorials/electromagnetics/mhdFoam/hartmann/Allrun @@ -4,11 +4,8 @@ cd ${0%/*} || exit 1 # Run from this directory # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions -# Set application name -application=$(getApplication) - runApplication blockMesh -runApplication $application +runApplication $(getApplication) runApplication -s sample postProcess -func sample #------------------------------------------------------------------------------ diff --git a/tutorials/heatTransfer/buoyantBoussinesqPimpleFoam/hotRoom/Allrun b/tutorials/heatTransfer/buoyantBoussinesqPimpleFoam/hotRoom/Allrun index 96d54eb8092de7eb605f4436bcaddd6c9123b17d..ac13b0642744f9c533dae77ee185700c2bf4536a 100755 --- a/tutorials/heatTransfer/buoyantBoussinesqPimpleFoam/hotRoom/Allrun +++ b/tutorials/heatTransfer/buoyantBoussinesqPimpleFoam/hotRoom/Allrun @@ -4,11 +4,9 @@ cd ${0%/*} || exit 1 # Run from this directory # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions -application=$(getApplication) - runApplication blockMesh \cp 0/T.orig 0/T runApplication setFields -runApplication $application +runApplication $(getApplication) #------------------------------------------------------------------------------ diff --git a/tutorials/heatTransfer/buoyantBoussinesqSimpleFoam/hotRoom/Allrun b/tutorials/heatTransfer/buoyantBoussinesqSimpleFoam/hotRoom/Allrun index 96d54eb8092de7eb605f4436bcaddd6c9123b17d..ac13b0642744f9c533dae77ee185700c2bf4536a 100755 --- a/tutorials/heatTransfer/buoyantBoussinesqSimpleFoam/hotRoom/Allrun +++ b/tutorials/heatTransfer/buoyantBoussinesqSimpleFoam/hotRoom/Allrun @@ -4,11 +4,9 @@ cd ${0%/*} || exit 1 # Run from this directory # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions -application=$(getApplication) - runApplication blockMesh \cp 0/T.orig 0/T runApplication setFields -runApplication $application +runApplication $(getApplication) #------------------------------------------------------------------------------ diff --git a/tutorials/heatTransfer/buoyantPimpleFoam/thermocoupleTestCase/Allrun b/tutorials/heatTransfer/buoyantPimpleFoam/thermocoupleTestCase/Allrun index 87eba62518a6664df1a24acaa1aa8918009a0f33..8a77ff8076363a01e3fc0e676fcf87e9a5223fd5 100755 --- a/tutorials/heatTransfer/buoyantPimpleFoam/thermocoupleTestCase/Allrun +++ b/tutorials/heatTransfer/buoyantPimpleFoam/thermocoupleTestCase/Allrun @@ -4,10 +4,7 @@ cd ${0%/*} || exit 1 # Run from this directory # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions -# Get application name -application=$(getApplication) - runApplication blockMesh -runApplication $application +runApplication $(getApplication) #------------------------------------------------------------------------------ diff --git a/tutorials/heatTransfer/buoyantSimpleFoam/buoyantCavity/Allrun b/tutorials/heatTransfer/buoyantSimpleFoam/buoyantCavity/Allrun index c751c9789ba1e111a88c5e0319fb1d245f361bf8..07d3f0e272d84b79f309141e6e8795ba528d2336 100755 --- a/tutorials/heatTransfer/buoyantSimpleFoam/buoyantCavity/Allrun +++ b/tutorials/heatTransfer/buoyantSimpleFoam/buoyantCavity/Allrun @@ -4,11 +4,8 @@ cd ${0%/*} || exit 1 # Run from this directory # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions -# Set application name -application=$(getApplication) - runApplication blockMesh -runApplication $application +runApplication $(getApplication) runApplication -s sample postProcess -latestTime -func sample ( cd validation && ./createGraphs ) diff --git a/tutorials/heatTransfer/buoyantSimpleFoam/circuitBoardCooling/Allrun b/tutorials/heatTransfer/buoyantSimpleFoam/circuitBoardCooling/Allrun index ae95e9ed6178a0e3289da1dcbbc5241fea4d3f1e..1927ad7c820c406be7273f93293e8e45bbe010ab 100755 --- a/tutorials/heatTransfer/buoyantSimpleFoam/circuitBoardCooling/Allrun +++ b/tutorials/heatTransfer/buoyantSimpleFoam/circuitBoardCooling/Allrun @@ -1,8 +1,8 @@ #!/bin/sh -. $WM_PROJECT_DIR/bin/tools/RunFunctions +cd ${0%/*} || exit 1 # Run from this directory -# Get application name -application=$(getApplication) +# Source tutorial run functions +. $WM_PROJECT_DIR/bin/tools/RunFunctions runApplication blockMesh @@ -11,4 +11,6 @@ restore0Dir # Create 1D and 3D baffles runApplication createBaffles -overwrite -runApplication $application +runApplication $(getApplication) + +#------------------------------------------------------------------------------ diff --git a/tutorials/heatTransfer/buoyantSimpleFoam/hotRadiationRoom/Allrun b/tutorials/heatTransfer/buoyantSimpleFoam/hotRadiationRoom/Allrun index ebc19b3d2a4adff39cf7ca06c6c671b012c42337..8a77ff8076363a01e3fc0e676fcf87e9a5223fd5 100755 --- a/tutorials/heatTransfer/buoyantSimpleFoam/hotRadiationRoom/Allrun +++ b/tutorials/heatTransfer/buoyantSimpleFoam/hotRadiationRoom/Allrun @@ -4,9 +4,7 @@ cd ${0%/*} || exit 1 # Run from this directory # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions -application=$(getApplication) - runApplication blockMesh -runApplication $application +runApplication $(getApplication) #------------------------------------------------------------------------------ diff --git a/tutorials/heatTransfer/buoyantSimpleFoam/hotRadiationRoomFvDOM/Allrun b/tutorials/heatTransfer/buoyantSimpleFoam/hotRadiationRoomFvDOM/Allrun index ebc19b3d2a4adff39cf7ca06c6c671b012c42337..8a77ff8076363a01e3fc0e676fcf87e9a5223fd5 100755 --- a/tutorials/heatTransfer/buoyantSimpleFoam/hotRadiationRoomFvDOM/Allrun +++ b/tutorials/heatTransfer/buoyantSimpleFoam/hotRadiationRoomFvDOM/Allrun @@ -4,9 +4,7 @@ cd ${0%/*} || exit 1 # Run from this directory # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions -application=$(getApplication) - runApplication blockMesh -runApplication $application +runApplication $(getApplication) #------------------------------------------------------------------------------ diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/externalSolarLoad/Allclean b/tutorials/heatTransfer/chtMultiRegionFoam/externalSolarLoad/Allclean index 4d24110e3a5d3caa4d8e587c78dd139ed60a6ab8..77d28a7dac0fd692f035fb0015bc29bd9db4c0b3 100755 --- a/tutorials/heatTransfer/chtMultiRegionFoam/externalSolarLoad/Allclean +++ b/tutorials/heatTransfer/chtMultiRegionFoam/externalSolarLoad/Allclean @@ -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 diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/externalSolarLoad/Allrun b/tutorials/heatTransfer/chtMultiRegionFoam/externalSolarLoad/Allrun index 4ab71d56f148d597f91a0ca4b78d32872b2ea5ff..c20d1cd3be032c37c84cf7c8287e888798bb0096 100755 --- a/tutorials/heatTransfer/chtMultiRegionFoam/externalSolarLoad/Allrun +++ b/tutorials/heatTransfer/chtMultiRegionFoam/externalSolarLoad/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # run from this directory +cd ${0%/*} || exit 1 # Run from this directory # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/externalSolarLoad/Allrun.pre b/tutorials/heatTransfer/chtMultiRegionFoam/externalSolarLoad/Allrun.pre index 9ab5e3c25a3f2c02ac509bcaa7bd04fc7bae64fb..a7367af14af6584018741d8bb9216cd1cbd15e35 100755 --- a/tutorials/heatTransfer/chtMultiRegionFoam/externalSolarLoad/Allrun.pre +++ b/tutorials/heatTransfer/chtMultiRegionFoam/externalSolarLoad/Allrun.pre @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # run from this directory +cd ${0%/*} || exit 1 # Run from this directory # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/Allrun b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/Allrun index 8d53d67ebef1f3cfd65e2a371ab58ef1aa20f10e..619f8c0af0ac2ab67801be7dfe8a1416e252bb4a 100755 --- a/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/Allrun +++ b/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/Allrun @@ -1,7 +1,6 @@ #!/bin/sh cd ${0%/*} || exit 1 # Run from this directory - # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/snappyMultiRegionHeater/Allrun b/tutorials/heatTransfer/chtMultiRegionFoam/snappyMultiRegionHeater/Allrun index c21e4adafc5d07096c4e4ff49e6eaeeda2b22686..e46f721088820fa427c6d6a87de109ea90bc5a30 100755 --- a/tutorials/heatTransfer/chtMultiRegionFoam/snappyMultiRegionHeater/Allrun +++ b/tutorials/heatTransfer/chtMultiRegionFoam/snappyMultiRegionHeater/Allrun @@ -1,7 +1,6 @@ #!/bin/sh cd ${0%/*} || exit 1 # Run from this directory - # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldCondensation/Allrun b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldCondensation/Allrun index b75fde5c9ae8f36318c4379bf242a02aa14b428f..7704bd9ea5536674fbf75cda78b97da1a051dc20 100755 --- a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldCondensation/Allrun +++ b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldCondensation/Allrun @@ -24,3 +24,5 @@ runApplication topoSet -region cabin -dict system/topoSetDictRegister restore0Dir runApplication $(getApplication) + +#------------------------------------------------------------------------------ diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/Allrun b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/Allrun index 25d83d176d84630f0032ac93497116d54765d03a..f4d82024cdbfa32827ca307c2aaf9f520d0d6b8b 100755 --- a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/Allrun +++ b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/Allrun @@ -7,3 +7,5 @@ cd ${0%/*} || exit 1 # Run from this directory ./Allrun.pre runApplication $(getApplication) + +# ----------------------------------------------------------------------------- diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/Allrun-parallel b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/Allrun-parallel index ba2fd3c6bb13e449cba1bd26389fe050283b9db3..4ec7e69c221bbfba7f424a3f3d68f44c7a460f39 100755 --- a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/Allrun-parallel +++ b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/Allrun-parallel @@ -6,17 +6,17 @@ cd ${0%/*} || exit 1 # Run from this directory ./Allrun.pre -# Set application name -application=$(getApplication) - -# decompose +# Decompose runApplication -s cabin decomposePar -region cabin runApplication -s ice decomposePar -region ice runApplication -s exterior decomposePar -region exterior -runParallel $application +runParallel $(getApplication) +# Reconstruct runApplication -s cabin reconstructPar -region cabin runApplication -s ice reconstructPar -region ice runApplication -s exterior reconstructPar -region exterior + +# ----------------------------------------------------------------------------- diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/Allrun.pre b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/Allrun.pre index 0818ebd1a40260e62abc584c3d06d02b8eeaa0d3..44fa75f381cc58c4e9a53a1bf2e31c3fbce7f83f 100755 --- a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/Allrun.pre +++ b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/Allrun.pre @@ -18,3 +18,5 @@ runApplication splitMeshRegions -cellZones -overwrite # set the initial fields restore0Dir + +# ----------------------------------------------------------------------------- diff --git a/tutorials/heatTransfer/chtMultiRegionSimpleFoam/heatExchanger/Allrun b/tutorials/heatTransfer/chtMultiRegionSimpleFoam/heatExchanger/Allrun index c6e1de86782f222b95c41cdc1f091718e25cdb9d..f4d82024cdbfa32827ca307c2aaf9f520d0d6b8b 100755 --- a/tutorials/heatTransfer/chtMultiRegionSimpleFoam/heatExchanger/Allrun +++ b/tutorials/heatTransfer/chtMultiRegionSimpleFoam/heatExchanger/Allrun @@ -1,10 +1,11 @@ #!/bin/sh - cd ${0%/*} || exit 1 # Run from this directory -./Allrun.pre - # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions +./Allrun.pre + runApplication $(getApplication) + +# ----------------------------------------------------------------------------- diff --git a/tutorials/heatTransfer/chtMultiRegionSimpleFoam/heatExchanger/Allrun-parallel b/tutorials/heatTransfer/chtMultiRegionSimpleFoam/heatExchanger/Allrun-parallel index 9e5b931edcb44dc7ec6ab0c66b863e0c48736d27..2be2e1edda0235c014544dc9384939cc01922958 100755 --- a/tutorials/heatTransfer/chtMultiRegionSimpleFoam/heatExchanger/Allrun-parallel +++ b/tutorials/heatTransfer/chtMultiRegionSimpleFoam/heatExchanger/Allrun-parallel @@ -1,5 +1,4 @@ #!/bin/sh - cd ${0%/*} || exit 1 # Run from this directory # Source tutorial run functions @@ -14,3 +13,5 @@ runParallel $(getApplication) runApplication -s air reconstructPar -latestTime -region air runApplication -s porous reconstructPar -latestTime -region porous + +# ----------------------------------------------------------------------------- diff --git a/tutorials/heatTransfer/chtMultiRegionSimpleFoam/heatExchanger/Allrun.pre b/tutorials/heatTransfer/chtMultiRegionSimpleFoam/heatExchanger/Allrun.pre index 9780d15756a99cbd58fa55ac1c5c307225c28f93..6d3c8f35440a242ddb97b78d39d6f3e979678a24 100755 --- a/tutorials/heatTransfer/chtMultiRegionSimpleFoam/heatExchanger/Allrun.pre +++ b/tutorials/heatTransfer/chtMultiRegionSimpleFoam/heatExchanger/Allrun.pre @@ -25,3 +25,5 @@ paraFoam -touch -region porous paraFoam -touch -region air restore0Dir + +# ----------------------------------------------------------------------------- diff --git a/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeaterRadiation/Allrun b/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeaterRadiation/Allrun index 8224dffa9cecfa534e484c4a5b499d5a5d6cac21..50db130fe2389cfd5a6a002daa902ceed5c13239 100755 --- a/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeaterRadiation/Allrun +++ b/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeaterRadiation/Allrun @@ -1,7 +1,6 @@ #!/bin/sh cd ${0%/*} || exit 1 # Run from this directory - # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions @@ -28,8 +27,6 @@ done runApplication $(getApplication) - - echo echo "creating files for paraview post-processing" echo diff --git a/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeaterRadiation/Allrun-parallel b/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeaterRadiation/Allrun-parallel index 919b7d0b75e30b88893e4f236f069c7760c60762..f8131b1da89504f7196bbf0fc05182805ab7d986 100755 --- a/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeaterRadiation/Allrun-parallel +++ b/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeaterRadiation/Allrun-parallel @@ -1,7 +1,6 @@ #!/bin/sh cd ${0%/*} || exit 1 # Run from this directory - # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions @@ -36,7 +35,6 @@ runParallel $(getApplication) runApplication reconstructPar -allRegions - echo echo "creating files for paraview post-processing" echo diff --git a/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeaterRadiation/Allrun.pre b/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeaterRadiation/Allrun.pre index 22b2e59f126117fc69efe40e2c3c9d2709fe41eb..e7adbdd5bc053b05555b54631a9ab384f0c43ee2 100755 --- a/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeaterRadiation/Allrun.pre +++ b/tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeaterRadiation/Allrun.pre @@ -1,7 +1,6 @@ #!/bin/sh cd ${0%/*} || exit 1 # Run from this directory - # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions diff --git a/tutorials/incompressible/SRFPimpleFoam/rotor2D/Allrun b/tutorials/incompressible/SRFPimpleFoam/rotor2D/Allrun index 021754896d883a41abdb24b4ad7788561d03e14f..52b2a4941d73838617c1741cb20f1d4a5f4acdf5 100755 --- a/tutorials/incompressible/SRFPimpleFoam/rotor2D/Allrun +++ b/tutorials/incompressible/SRFPimpleFoam/rotor2D/Allrun @@ -4,9 +4,7 @@ cd ${0%/*} || exit 1 # Run from this directory # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions -application=$(getApplication) - ./makeMesh -runApplication $application +runApplication $(getApplication) #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/icoFoam/cavityMappingTest/Allclean b/tutorials/incompressible/icoFoam/cavityMappingTest/Allclean index b5eb7e0aafa40af43d0cc09ad4fb1b7800b3b8cd..3512fe5e6ebf9617c4118087870cc4b589027bec 100755 --- a/tutorials/incompressible/icoFoam/cavityMappingTest/Allclean +++ b/tutorials/incompressible/icoFoam/cavityMappingTest/Allclean @@ -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 diff --git a/tutorials/incompressible/icoFoam/cavityMappingTest/Allrun b/tutorials/incompressible/icoFoam/cavityMappingTest/Allrun index 166a1200d591c5dfdc4a1d24c2b55bf4ab0b33e0..767ff8591ff643fea5b067019b2c2009634b552a 100755 --- a/tutorials/incompressible/icoFoam/cavityMappingTest/Allrun +++ b/tutorials/incompressible/icoFoam/cavityMappingTest/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # run from this directory +cd ${0%/*} || exit 1 # Run from this directory # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions @@ -13,3 +13,4 @@ runApplication -s fine blockMesh -dict system/blockMeshDict.fine runApplication $(getApplication) +# ----------------------------------------------------------------------------- diff --git a/tutorials/incompressible/icoFoam/cavityMappingTest/Allrun-parallel b/tutorials/incompressible/icoFoam/cavityMappingTest/Allrun-parallel index bd03d75d47d7c35b15bb7aa63dd63783322a4784..2577f9c8669aeadd51a325dcdd922808c5506033 100755 --- a/tutorials/incompressible/icoFoam/cavityMappingTest/Allrun-parallel +++ b/tutorials/incompressible/icoFoam/cavityMappingTest/Allrun-parallel @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # run from this directory +cd ${0%/*} || exit 1 # Run from this directory # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions @@ -20,3 +20,5 @@ runParallel $(getApplication) #runApplication -s fine reconstructPar # #runApplication -s coarseMesh reconstructPar -region coarseMesh + +# ----------------------------------------------------------------------------- diff --git a/tutorials/incompressible/icoFoam/elbow/Allrun b/tutorials/incompressible/icoFoam/elbow/Allrun index 6da96f6a7449cf37b120d9bb2a51add9457c65ab..d47748719619575f9d7d05f1d11ae001c8297a1f 100755 --- a/tutorials/incompressible/icoFoam/elbow/Allrun +++ b/tutorials/incompressible/icoFoam/elbow/Allrun @@ -4,11 +4,9 @@ cd ${0%/*} || exit 1 # Run from this directory # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions -# Get application directory -application=$(getApplication) runApplication fluentMeshToFoam elbow.msh -runApplication "$application" +runApplication $(getApplication) runApplication foamMeshToFluent runApplication foamDataToFluent diff --git a/tutorials/incompressible/pimpleDyMFoam/mixerVesselAMI2D/Allrun b/tutorials/incompressible/pimpleDyMFoam/mixerVesselAMI2D/Allrun index c454c9b3f638cae0f1a9c8cefe4a74b2af56a79e..162255286a9d87f59b4804ca4571d111e6c160d4 100755 --- a/tutorials/incompressible/pimpleDyMFoam/mixerVesselAMI2D/Allrun +++ b/tutorials/incompressible/pimpleDyMFoam/mixerVesselAMI2D/Allrun @@ -4,13 +4,11 @@ cd ${0%/*} || exit 1 # Run from this directory # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions -application=$(getApplication) - ./makeMesh -#runApplication $application +#runApplication $(getApplication) runApplication decomposePar -runParallel $application +runParallel $(getApplication) runApplication reconstructPar #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/pimpleDyMFoam/oscillatingInletACMI2D/Allrun b/tutorials/incompressible/pimpleDyMFoam/oscillatingInletACMI2D/Allrun index 25d83d176d84630f0032ac93497116d54765d03a..f4d82024cdbfa32827ca307c2aaf9f520d0d6b8b 100755 --- a/tutorials/incompressible/pimpleDyMFoam/oscillatingInletACMI2D/Allrun +++ b/tutorials/incompressible/pimpleDyMFoam/oscillatingInletACMI2D/Allrun @@ -7,3 +7,5 @@ cd ${0%/*} || exit 1 # Run from this directory ./Allrun.pre runApplication $(getApplication) + +# ----------------------------------------------------------------------------- diff --git a/tutorials/incompressible/pimpleDyMFoam/oscillatingInletACMI2D/Allrun-parallel b/tutorials/incompressible/pimpleDyMFoam/oscillatingInletACMI2D/Allrun-parallel index 3f7cab5d82e34e43d25b7b1a4dfbe80e21a7248f..51af1fb48a672f04f66ce275bf17d886679b535a 100755 --- a/tutorials/incompressible/pimpleDyMFoam/oscillatingInletACMI2D/Allrun-parallel +++ b/tutorials/incompressible/pimpleDyMFoam/oscillatingInletACMI2D/Allrun-parallel @@ -7,7 +7,7 @@ cd ${0%/*} || exit 1 # Run from this directory ./Allrun.pre runApplication decomposePar - runParallel $(getApplication) - runApplication reconstructPar + +# ----------------------------------------------------------------------------- diff --git a/tutorials/incompressible/pimpleDyMFoam/oscillatingInletACMI2D/Allrun.pre b/tutorials/incompressible/pimpleDyMFoam/oscillatingInletACMI2D/Allrun.pre index 5481027706858322aa3e00db9958e5e1f2df8dd2..c484c19d159ea442346b8edba7f124046dfa09b6 100755 --- a/tutorials/incompressible/pimpleDyMFoam/oscillatingInletACMI2D/Allrun.pre +++ b/tutorials/incompressible/pimpleDyMFoam/oscillatingInletACMI2D/Allrun.pre @@ -12,3 +12,5 @@ runApplication topoSet -constant runApplication createBaffles -overwrite restore0Dir + +# ----------------------------------------------------------------------------- diff --git a/tutorials/incompressible/pimpleDyMFoam/propeller/Allrun b/tutorials/incompressible/pimpleDyMFoam/propeller/Allrun index 3f7cab5d82e34e43d25b7b1a4dfbe80e21a7248f..51af1fb48a672f04f66ce275bf17d886679b535a 100755 --- a/tutorials/incompressible/pimpleDyMFoam/propeller/Allrun +++ b/tutorials/incompressible/pimpleDyMFoam/propeller/Allrun @@ -7,7 +7,7 @@ cd ${0%/*} || exit 1 # Run from this directory ./Allrun.pre runApplication decomposePar - runParallel $(getApplication) - runApplication reconstructPar + +# ----------------------------------------------------------------------------- diff --git a/tutorials/incompressible/pimpleFoam/LES/channel395/Allrun b/tutorials/incompressible/pimpleFoam/LES/channel395/Allrun index c34f2384400c2e7055fe566f7c4a8c8221ca8f7f..8d10da5a1f4adbaed4fb15afdb5e474ea5093c05 100755 --- a/tutorials/incompressible/pimpleFoam/LES/channel395/Allrun +++ b/tutorials/incompressible/pimpleFoam/LES/channel395/Allrun @@ -4,17 +4,15 @@ cd ${0%/*} || exit 1 # Run from this directory # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions -# Get application directory -application=$(getApplication) runApplication blockMesh #- Run serial -#runApplication $application +#runApplication $(getApplication) #- Run parallel runApplication decomposePar -cellDist -runParallel $application +runParallel $(getApplication) runApplication reconstructPar runApplication postChannel diff --git a/tutorials/incompressible/pimpleFoam/RAS/TJunctionFan/Allrun b/tutorials/incompressible/pimpleFoam/RAS/TJunctionFan/Allrun index 827542cfc5a366343ebbc97cdd52d80cb380ea35..1492c40ae0918bb27154ca93a05c2d8dff3711d9 100755 --- a/tutorials/incompressible/pimpleFoam/RAS/TJunctionFan/Allrun +++ b/tutorials/incompressible/pimpleFoam/RAS/TJunctionFan/Allrun @@ -1,10 +1,9 @@ #!/bin/sh +cd ${0%/*} || exit 1 # Run from this directory # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions -# Get application name -application=$(getApplication) runApplication blockMesh @@ -16,4 +15,6 @@ restore0Dir # Create wall and cyclic baffles and the fields on them runApplication createBaffles -overwrite -runApplication $application +runApplication $(getApplication) + +# ----------------------------------------------------------------------------- diff --git a/tutorials/incompressible/pimpleFoam/RAS/elipsekkLOmega/Allrun b/tutorials/incompressible/pimpleFoam/RAS/elipsekkLOmega/Allrun index 05b7969601d4822808359395b71f10ecef3b2b53..a1f6b6bbb67324d9c378d340aac069f6fa2046f2 100755 --- a/tutorials/incompressible/pimpleFoam/RAS/elipsekkLOmega/Allrun +++ b/tutorials/incompressible/pimpleFoam/RAS/elipsekkLOmega/Allrun @@ -4,23 +4,20 @@ cd ${0%/*} || exit 1 # Run from this directory # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions -# Get application directory -application=$(getApplication) runApplication blockMesh runApplication transformPoints -scale '(1.6666 1 1)' runApplication changeDictionary -instance system -dict system/changeDictionaryDict.X runApplication mirrorMesh -overwrite -rm log.mirrorMesh +rm -f log.mirrorMesh +rm -f log.changeDictionary -rm log.changeDictionary runApplication changeDictionary -instance system -dict system/changeDictionaryDict.Y - runApplication mirrorMesh -overwrite runApplication topoSet runApplication createPatch -overwrite -runApplication $application +runApplication $(getApplication) #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/pimpleFoam/channel395DFSEM/Allrun b/tutorials/incompressible/pimpleFoam/channel395DFSEM/Allrun index f9a700b1f01599076eca26ea02bb61c561a732ab..5d8a22acc0b4cdef500fdfb46bae6776c8de6358 100755 --- a/tutorials/incompressible/pimpleFoam/channel395DFSEM/Allrun +++ b/tutorials/incompressible/pimpleFoam/channel395DFSEM/Allrun @@ -1,20 +1,17 @@ #!/bin/sh -cd ${0%/*} || exit 1 # run from this directory +cd ${0%/*} || exit 1 # Run from this directory # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions -# Get application directory -application=$(getApplication) - runApplication blockMesh #- Run serial -#runApplication $application +#runApplication $(getApplication) #- Run parallel runApplication decomposePar -cellDist -runParallel $application +runParallel $(getApplication) #runApplication reconstructPar -latestTime # ----------------------------------------------------------------------------- diff --git a/tutorials/incompressible/pisoFoam/LES/motorBike/lesFiles/Allrun b/tutorials/incompressible/pisoFoam/LES/motorBike/lesFiles/Allrun index d6423dc58b14dbfd5a22251c89075e6d5459246f..e18982c7e64263d06288f0ea98e38138613df75f 100755 --- a/tutorials/incompressible/pisoFoam/LES/motorBike/lesFiles/Allrun +++ b/tutorials/incompressible/pisoFoam/LES/motorBike/lesFiles/Allrun @@ -1,4 +1,5 @@ #!/bin/sh +cd ${0%/*} || exit 1 # Run from this directory # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions @@ -17,3 +18,5 @@ runParallel pisoFoam runApplication reconstructParMesh -constant -mergeTol 1e-6 runApplication reconstructPar + +#------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/pisoFoam/laminar/porousBlockage/Allrun b/tutorials/incompressible/pisoFoam/laminar/porousBlockage/Allrun index fe3da42bf4bbf9c7c14f499dc94cdbda572dc3e2..db65453658e3edd89a9ea29fd51553d50eac62e1 100755 --- a/tutorials/incompressible/pisoFoam/laminar/porousBlockage/Allrun +++ b/tutorials/incompressible/pisoFoam/laminar/porousBlockage/Allrun @@ -4,12 +4,8 @@ cd ${0%/*} || exit 1 # Run from this directory # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions -application=$(getApplication) - runApplication blockMesh - runApplication topoSet - -runApplication $application +runApplication $(getApplication) #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/porousSimpleFoam/straightDuctImplicit/Allrun.pre b/tutorials/incompressible/porousSimpleFoam/straightDuctImplicit/Allrun.pre index 343d4f1efe1eae82f0c0a9656f5a52ef72e53f44..33bf5258ce2169182747d6a11df79d20ee65c23d 100755 --- a/tutorials/incompressible/porousSimpleFoam/straightDuctImplicit/Allrun.pre +++ b/tutorials/incompressible/porousSimpleFoam/straightDuctImplicit/Allrun.pre @@ -18,7 +18,7 @@ runApplication -s collapseFaces \ runApplication checkMesh -allTopology -allGeometry -latestTime -latestTime=`foamListTimes -latestTime` +latestTime=$(foamListTimes -latestTime) # Move the mesh into polyMesh rm -rf constant/polyMesh diff --git a/tutorials/incompressible/simpleFoam/T3A/Allrun b/tutorials/incompressible/simpleFoam/T3A/Allrun index aa2f738b3eef4a05cd075ec2501a24af3342211c..666bf88e7e4b4b71f1e544af0b93799b0ac1b21b 100755 --- a/tutorials/incompressible/simpleFoam/T3A/Allrun +++ b/tutorials/incompressible/simpleFoam/T3A/Allrun @@ -4,11 +4,8 @@ cd ${0%/*} || exit 1 # Run from this directory # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions -# Set application name -application=`getApplication` - runApplication blockMesh -runApplication $application +runApplication $(getApplication) ( cd validation && ./createGraphs ) diff --git a/tutorials/incompressible/simpleFoam/airFoil2D/Allrun b/tutorials/incompressible/simpleFoam/airFoil2D/Allrun index 89647850f5239766639961ac7b9da82a32064f43..c96f61d7ef3da434a039f14cfd7b4cf93718172d 100755 --- a/tutorials/incompressible/simpleFoam/airFoil2D/Allrun +++ b/tutorials/incompressible/simpleFoam/airFoil2D/Allrun @@ -4,8 +4,6 @@ cd ${0%/*} || exit 1 # Run from this directory # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions -application=$(getApplication) - -runApplication $application +runApplication $(getApplication) #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/simpleFoam/mixerVessel2D/Allrun b/tutorials/incompressible/simpleFoam/mixerVessel2D/Allrun index 021754896d883a41abdb24b4ad7788561d03e14f..52b2a4941d73838617c1741cb20f1d4a5f4acdf5 100755 --- a/tutorials/incompressible/simpleFoam/mixerVessel2D/Allrun +++ b/tutorials/incompressible/simpleFoam/mixerVessel2D/Allrun @@ -4,9 +4,7 @@ cd ${0%/*} || exit 1 # Run from this directory # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions -application=$(getApplication) - ./makeMesh -runApplication $application +runApplication $(getApplication) #------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/simpleFoam/motorBike/Allclean b/tutorials/incompressible/simpleFoam/motorBike/Allclean index 959198cb951ec2650be6768587cfd28a789812ee..1dca1e06777e5689add188ca9fe1474f8d53647b 100755 --- a/tutorials/incompressible/simpleFoam/motorBike/Allclean +++ b/tutorials/incompressible/simpleFoam/motorBike/Allclean @@ -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 diff --git a/tutorials/incompressible/simpleFoam/pipeCyclic/Allrun b/tutorials/incompressible/simpleFoam/pipeCyclic/Allrun index 17041f20bcccf14cf0daa22df77b39d7610f48d9..0cade47aa82d2fabaddb5e1844db8a6d3b89ce97 100755 --- a/tutorials/incompressible/simpleFoam/pipeCyclic/Allrun +++ b/tutorials/incompressible/simpleFoam/pipeCyclic/Allrun @@ -4,18 +4,15 @@ cd ${0%/*} || exit 1 # Run from this directory # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions -# Get application directory -application=$(getApplication) - runApplication blockMesh runApplication topoSet runApplication refineHexMesh c0 -overwrite restore0Dir -#runApplication $application +#runApplication $(getApplication) runApplication decomposePar -cellDist -runParallel $application +runParallel $(getApplication) runApplication reconstructPar diff --git a/tutorials/incompressible/simpleFoam/rotorDisk/Allclean b/tutorials/incompressible/simpleFoam/rotorDisk/Allclean index f68257aae3e970264f934ea831f92ace5ae41e31..47d0a0c0c111b14a7dbf60677c826c6f7e501436 100755 --- a/tutorials/incompressible/simpleFoam/rotorDisk/Allclean +++ b/tutorials/incompressible/simpleFoam/rotorDisk/Allclean @@ -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 diff --git a/tutorials/incompressible/simpleFoam/windAroundBuildings/Allclean b/tutorials/incompressible/simpleFoam/windAroundBuildings/Allclean index 03ba09eaba07646ab62f93ddace2f6231efc7c96..8039a7526408603e09e1efaf8ccf07c424296248 100755 --- a/tutorials/incompressible/simpleFoam/windAroundBuildings/Allclean +++ b/tutorials/incompressible/simpleFoam/windAroundBuildings/Allclean @@ -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 diff --git a/tutorials/incompressible/simpleFoam/windAroundBuildings/Allrun b/tutorials/incompressible/simpleFoam/windAroundBuildings/Allrun index 753dd9c94293e38a432f9bad986484eda22d7b7b..06dc7a18c55c4ada424c29a13d95eec58b926c8c 100755 --- a/tutorials/incompressible/simpleFoam/windAroundBuildings/Allrun +++ b/tutorials/incompressible/simpleFoam/windAroundBuildings/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # run from this directory +cd ${0%/*} || exit 1 # Run from this directory # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions diff --git a/tutorials/lagrangian/MPPICFoam/cyclone/Allclean b/tutorials/lagrangian/MPPICFoam/cyclone/Allclean index e7a7ea76ade6f295e14360c547b0372f3df4dd88..e274cef962b7a59a49bd8aa5d45c2fe7ec18b479 100755 --- a/tutorials/lagrangian/MPPICFoam/cyclone/Allclean +++ b/tutorials/lagrangian/MPPICFoam/cyclone/Allclean @@ -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 diff --git a/tutorials/lagrangian/coalChemistryFoam/simplifiedSiwek/Allrun b/tutorials/lagrangian/coalChemistryFoam/simplifiedSiwek/Allrun index 1d01582b285cdfc79bbc2c2525074137b0237260..158fb0bf528573eda64b6b9d98b39b30a07e4386 100755 --- a/tutorials/lagrangian/coalChemistryFoam/simplifiedSiwek/Allrun +++ b/tutorials/lagrangian/coalChemistryFoam/simplifiedSiwek/Allrun @@ -4,14 +4,12 @@ cd ${0%/*} || exit 1 # Run from this directory # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions -application=$(getApplication) - # create mesh runApplication blockMesh # create ignition cells cellSet runApplication topoSet -runApplication $application +runApplication $(getApplication) #------------------------------------------------------------------------------ diff --git a/tutorials/lagrangian/reactingParcelFilmFoam/cylinder/Allrun b/tutorials/lagrangian/reactingParcelFilmFoam/cylinder/Allrun index ebb4bc401cba320a82525297dcb680deab9af7ec..dbc0b12711ce8b61d182d0255c0ddd4d0e6a5fd1 100755 --- a/tutorials/lagrangian/reactingParcelFilmFoam/cylinder/Allrun +++ b/tutorials/lagrangian/reactingParcelFilmFoam/cylinder/Allrun @@ -1,10 +1,11 @@ #!/bin/sh cd ${0%/*} || exit 1 # Run from this directory +# Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions ./Allrun.pre -application=$(getApplication) +runApplication $(getApplication) -runApplication $application +#------------------------------------------------------------------------------ diff --git a/tutorials/lagrangian/reactingParcelFilmFoam/cylinder/Allrun.pre b/tutorials/lagrangian/reactingParcelFilmFoam/cylinder/Allrun.pre index e4d467e68eef7219e9d33d3b22a4b5a4adb8e7c6..1ad7fbb61c727c5cc43766f58d8ecdf9dc4f6996 100755 --- a/tutorials/lagrangian/reactingParcelFilmFoam/cylinder/Allrun.pre +++ b/tutorials/lagrangian/reactingParcelFilmFoam/cylinder/Allrun.pre @@ -1,4 +1,7 @@ #!/bin/sh +cd ${0%/*} || exit 1 # Run from this directory + +# Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions restore0Dir @@ -11,3 +14,5 @@ runApplication extrudeToRegionMesh -overwrite paraFoam -touch paraFoam -touch -region wallFilmRegion + +#------------------------------------------------------------------------------ diff --git a/tutorials/lagrangian/reactingParcelFilmFoam/hotBoxes/Allrun b/tutorials/lagrangian/reactingParcelFilmFoam/hotBoxes/Allrun index fa03916ababe270f90a56fc23907f0d76069e2dc..dbc0b12711ce8b61d182d0255c0ddd4d0e6a5fd1 100755 --- a/tutorials/lagrangian/reactingParcelFilmFoam/hotBoxes/Allrun +++ b/tutorials/lagrangian/reactingParcelFilmFoam/hotBoxes/Allrun @@ -6,6 +6,6 @@ cd ${0%/*} || exit 1 # Run from this directory ./Allrun.pre -application=$(getApplication) +runApplication $(getApplication) -runApplication $application +#------------------------------------------------------------------------------ diff --git a/tutorials/lagrangian/reactingParcelFilmFoam/hotBoxes/Allrun-parallel b/tutorials/lagrangian/reactingParcelFilmFoam/hotBoxes/Allrun-parallel index 7779179a354de3dca77e6bddac5a358a2b348918..a061f0da4c3649cde693c9cf91926e5a3c49743d 100755 --- a/tutorials/lagrangian/reactingParcelFilmFoam/hotBoxes/Allrun-parallel +++ b/tutorials/lagrangian/reactingParcelFilmFoam/hotBoxes/Allrun-parallel @@ -6,13 +6,12 @@ cd ${0%/*} || exit 1 # Run from this directory ./Allrun.pre -application=$(getApplication) - runApplication -s wallFilmRegion decomposePar -region wallFilmRegion runApplication -s primaryRegion decomposePar -runParallel $application +runParallel $(getApplication) runApplication -s wallFilmRegion reconstructPar -region wallFilmRegion runApplication -s primaryRegion reconstructPar +#------------------------------------------------------------------------------ diff --git a/tutorials/lagrangian/reactingParcelFilmFoam/hotBoxes/Allrun.pre b/tutorials/lagrangian/reactingParcelFilmFoam/hotBoxes/Allrun.pre index 952860d444d7b1d7ae5b84e6b835d29ad20a4f35..a9f16e526ad9ab32479ced026b66027c9a713bc1 100755 --- a/tutorials/lagrangian/reactingParcelFilmFoam/hotBoxes/Allrun.pre +++ b/tutorials/lagrangian/reactingParcelFilmFoam/hotBoxes/Allrun.pre @@ -33,3 +33,5 @@ find ./0 -maxdepth 1 -type f -exec \ paraFoam -touch paraFoam -touch -region wallFilmRegion + +#------------------------------------------------------------------------------ diff --git a/tutorials/lagrangian/reactingParcelFilmFoam/rivuletPanel/Allrun b/tutorials/lagrangian/reactingParcelFilmFoam/rivuletPanel/Allrun index ebb4bc401cba320a82525297dcb680deab9af7ec..dbc0b12711ce8b61d182d0255c0ddd4d0e6a5fd1 100755 --- a/tutorials/lagrangian/reactingParcelFilmFoam/rivuletPanel/Allrun +++ b/tutorials/lagrangian/reactingParcelFilmFoam/rivuletPanel/Allrun @@ -1,10 +1,11 @@ #!/bin/sh cd ${0%/*} || exit 1 # Run from this directory +# Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions ./Allrun.pre -application=$(getApplication) +runApplication $(getApplication) -runApplication $application +#------------------------------------------------------------------------------ diff --git a/tutorials/lagrangian/reactingParcelFilmFoam/rivuletPanel/Allrun.pre b/tutorials/lagrangian/reactingParcelFilmFoam/rivuletPanel/Allrun.pre index c82f75cd2dda061eb12b224966dc1ba98d153bba..4ff21dad8e0e653a56e5a4447916fd6ac792eb8d 100755 --- a/tutorials/lagrangian/reactingParcelFilmFoam/rivuletPanel/Allrun.pre +++ b/tutorials/lagrangian/reactingParcelFilmFoam/rivuletPanel/Allrun.pre @@ -1,4 +1,7 @@ #!/bin/sh +cd ${0%/*} || exit 1 # Run from this directory + +# Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions restore0Dir @@ -12,3 +15,5 @@ runApplication extrudeToRegionMesh -overwrite paraFoam -touch paraFoam -touch -region wallFilmRegion + +#------------------------------------------------------------------------------ diff --git a/tutorials/lagrangian/reactingParcelFilmFoam/splashPanel/Allrun b/tutorials/lagrangian/reactingParcelFilmFoam/splashPanel/Allrun index ebb4bc401cba320a82525297dcb680deab9af7ec..dbc0b12711ce8b61d182d0255c0ddd4d0e6a5fd1 100755 --- a/tutorials/lagrangian/reactingParcelFilmFoam/splashPanel/Allrun +++ b/tutorials/lagrangian/reactingParcelFilmFoam/splashPanel/Allrun @@ -1,10 +1,11 @@ #!/bin/sh cd ${0%/*} || exit 1 # Run from this directory +# Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions ./Allrun.pre -application=$(getApplication) +runApplication $(getApplication) -runApplication $application +#------------------------------------------------------------------------------ diff --git a/tutorials/lagrangian/reactingParcelFilmFoam/splashPanel/Allrun.pre b/tutorials/lagrangian/reactingParcelFilmFoam/splashPanel/Allrun.pre index 9292f83031bdfea5e212528f1373fe8e61042382..00eed56aae61f4d1786a3d9ec2cf9510e8b19478 100755 --- a/tutorials/lagrangian/reactingParcelFilmFoam/splashPanel/Allrun.pre +++ b/tutorials/lagrangian/reactingParcelFilmFoam/splashPanel/Allrun.pre @@ -1,4 +1,7 @@ #!/bin/sh +cd ${0%/*} || exit 1 # Run from this directory + +# Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions restore0Dir @@ -29,3 +32,5 @@ runApplication createPatch -region wallFilmRegion -overwrite paraFoam -touch paraFoam -touch -region wallFilmRegion + +#------------------------------------------------------------------------------ diff --git a/tutorials/mesh/foamyHexMesh/mixerVessel/Allrun-pre b/tutorials/mesh/foamyHexMesh/mixerVessel/Allrun-pre index 51b38f7a83a6bb7e3e5a461e25babc932577a278..e2508db192560393817c69c7152b8cc54c6cacea 100755 --- a/tutorials/mesh/foamyHexMesh/mixerVessel/Allrun-pre +++ b/tutorials/mesh/foamyHexMesh/mixerVessel/Allrun-pre @@ -16,8 +16,6 @@ intersectSurfaces() surfaceBooleanFeatures intersection "$@" } -# Set application name -application=$(getApplication) \rm -rf 0 diff --git a/tutorials/mesh/foamyHexMesh/mixerVessel/Allrun-simulation b/tutorials/mesh/foamyHexMesh/mixerVessel/Allrun-simulation index 6cf13f98ce797f148251f4976260e872d69f3558..392878e5d3ad71ad9bbf04b2191238b8722f805e 100755 --- a/tutorials/mesh/foamyHexMesh/mixerVessel/Allrun-simulation +++ b/tutorials/mesh/foamyHexMesh/mixerVessel/Allrun-simulation @@ -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 diff --git a/tutorials/mesh/foamyQuadMesh/OpenCFD/Allrun b/tutorials/mesh/foamyQuadMesh/OpenCFD/Allrun index 8653b499f5fd849d23ea523422ff563dc667d28c..cdd750415ca3bfd2f620023ca402fb31bc170efc 100755 --- a/tutorials/mesh/foamyQuadMesh/OpenCFD/Allrun +++ b/tutorials/mesh/foamyQuadMesh/OpenCFD/Allrun @@ -16,5 +16,4 @@ runApplication foamyQuadMesh -overwrite runApplication extrude2DMesh -overwrite polyMesh2D runApplication checkMesh -allGeometry -allTopology -constant -noZero - #------------------------------------------------------------------------------ diff --git a/tutorials/mesh/foamyQuadMesh/OpenCFD/Allrun-rhoCentralFoam b/tutorials/mesh/foamyQuadMesh/OpenCFD/Allrun-rhoCentralFoam index 266fee9c0b4af31482c6c6f707c4c4c51f9b9882..56aef09d09bc7fb6ba9811ad4e736e6b713a6781 100755 --- a/tutorials/mesh/foamyQuadMesh/OpenCFD/Allrun-rhoCentralFoam +++ b/tutorials/mesh/foamyQuadMesh/OpenCFD/Allrun-rhoCentralFoam @@ -11,5 +11,4 @@ runApplication decomposePar runParallel rhoCentralFoam runApplication reconstructPar - #------------------------------------------------------------------------------ diff --git a/tutorials/mesh/foamyQuadMesh/jaggedBoundary/Allrun b/tutorials/mesh/foamyQuadMesh/jaggedBoundary/Allrun index 150693b9fe41dfcd2771350c996a0bccfd1b9885..5434248652eb11560a5d697f51868be49f046dbb 100755 --- a/tutorials/mesh/foamyQuadMesh/jaggedBoundary/Allrun +++ b/tutorials/mesh/foamyQuadMesh/jaggedBoundary/Allrun @@ -9,5 +9,4 @@ runApplication foamyQuadMesh -overwrite runApplication extrude2DMesh -overwrite MeshedSurface runApplication checkMesh -allGeometry -allTopology -constant -noZero - #------------------------------------------------------------------------------ diff --git a/tutorials/mesh/foamyQuadMesh/square/Allrun b/tutorials/mesh/foamyQuadMesh/square/Allrun index 26543eaac4ccfe5c4a5950be41c095b65e5332c4..87a113fc1262e7e5e906c6c7e6ab3456d6b93ab4 100755 --- a/tutorials/mesh/foamyQuadMesh/square/Allrun +++ b/tutorials/mesh/foamyQuadMesh/square/Allrun @@ -9,5 +9,4 @@ runApplication foamyQuadMesh -overwrite runApplication extrude2DMesh -overwrite polyMesh2D runApplication checkMesh -allGeometry -allTopology -constant -noZero - #------------------------------------------------------------------------------ diff --git a/tutorials/mesh/parallel/cavity/Allclean b/tutorials/mesh/parallel/cavity/Allclean index 4ca786d36eb4942099f2811d857e4c9d3394b59d..1ddaee91ff1648c391e96c435bdbf076d0f58b87 100755 --- a/tutorials/mesh/parallel/cavity/Allclean +++ b/tutorials/mesh/parallel/cavity/Allclean @@ -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 diff --git a/tutorials/mesh/snappyHexMesh/flange/Allrun b/tutorials/mesh/snappyHexMesh/flange/Allrun index 49602feb6e7ad89f00a55e13ce697b4f0316ddd5..cae2427078d9cdba6f22a843765b4aa3fba683c8 100755 --- a/tutorials/mesh/snappyHexMesh/flange/Allrun +++ b/tutorials/mesh/snappyHexMesh/flange/Allrun @@ -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 + +#------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/MPPICInterFoam/twoPhasePachuka/Allrun b/tutorials/multiphase/MPPICInterFoam/twoPhasePachuka/Allrun index 18e8f4ad3a61571248cf859a3fb04e03b8431ed9..73737743f25f2b20cabb5cec8553b69582d99ecc 100755 --- a/tutorials/multiphase/MPPICInterFoam/twoPhasePachuka/Allrun +++ b/tutorials/multiphase/MPPICInterFoam/twoPhasePachuka/Allrun @@ -4,9 +4,6 @@ cd ${0%/*} || exit 1 # Run from this directory # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions -# Set application name -application=$(getApplication) - # create the underlying block mesh m4 system/pachuka.m4 > system/blockMeshDict diff --git a/tutorials/multiphase/cavitatingFoam/LES/throttle/Allrun b/tutorials/multiphase/cavitatingFoam/LES/throttle/Allrun index 6ed1c6ba9b493effcfa94a9350a40e6a3bf713f8..d399430e22495622a5d790dc939ef675016fd164 100755 --- a/tutorials/multiphase/cavitatingFoam/LES/throttle/Allrun +++ b/tutorials/multiphase/cavitatingFoam/LES/throttle/Allrun @@ -4,9 +4,6 @@ cd ${0%/*} || exit 1 # Run from this directory # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions -# Set application name -application=$(getApplication) - refineMeshByCellSet() { while [ $# -ge 1 ] @@ -27,6 +24,6 @@ refineMeshByCellSet() runApplication blockMesh refineMeshByCellSet 1 2 3 -runApplication $application +runApplication $(getApplication) #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/cavitatingFoam/LES/throttle3D/Allrun b/tutorials/multiphase/cavitatingFoam/LES/throttle3D/Allrun index e020b8a0fc2df5d4c7d01ee8855d8396fbd2e5ec..39816254dd490965cdb4f2f21302d0f771156ac4 100755 --- a/tutorials/multiphase/cavitatingFoam/LES/throttle3D/Allrun +++ b/tutorials/multiphase/cavitatingFoam/LES/throttle3D/Allrun @@ -4,9 +4,6 @@ cd ${0%/*} || exit 1 # Run from this directory # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions -# Set application name -application=$(getApplication) - refineMeshByCellSet() { while [ $# -ge 1 ] @@ -34,7 +31,7 @@ refineMeshByCellSet 1 2 3 #runApplication mapFields ../throttle -sourceTime latestTime runApplication decomposePar -runParallel $application +runParallel $(getApplication) runApplication reconstructPar #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/cavitatingFoam/RAS/throttle/Allrun b/tutorials/multiphase/cavitatingFoam/RAS/throttle/Allrun index 746320a279e3083e129740639f4436d502088579..d399430e22495622a5d790dc939ef675016fd164 100755 --- a/tutorials/multiphase/cavitatingFoam/RAS/throttle/Allrun +++ b/tutorials/multiphase/cavitatingFoam/RAS/throttle/Allrun @@ -4,8 +4,6 @@ cd ${0%/*} || exit 1 # Run from this directory # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions -application=$(getApplication) - refineMeshByCellSet() { while [ $# -ge 1 ] @@ -26,6 +24,6 @@ refineMeshByCellSet() runApplication blockMesh refineMeshByCellSet 1 2 3 -runApplication $application +runApplication $(getApplication) #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/compressibleInterDyMFoam/RAS/sloshingTank2D/Allrun b/tutorials/multiphase/compressibleInterDyMFoam/RAS/sloshingTank2D/Allrun index 603304a5ae32ab7377ac84e7e38028913058ab0f..31527e6ec22d7448f5b07e8185779d8f25750efa 100755 --- a/tutorials/multiphase/compressibleInterDyMFoam/RAS/sloshingTank2D/Allrun +++ b/tutorials/multiphase/compressibleInterDyMFoam/RAS/sloshingTank2D/Allrun @@ -8,6 +8,6 @@ m4 system/blockMeshDict.m4 > system/blockMeshDict runApplication blockMesh cp 0/alpha.water.orig 0/alpha.water runApplication setFields -runApplication `getApplication` +runApplication $(getApplication) #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/compressibleMultiphaseInterFoam/laminar/damBreak4phase/Allrun b/tutorials/multiphase/compressibleMultiphaseInterFoam/laminar/damBreak4phase/Allrun index 912c34cfdb7636863fe4782c6bfc402154698b0d..6cfec647c79d18f2504b7408b94bb8ddbe2e3086 100755 --- a/tutorials/multiphase/compressibleMultiphaseInterFoam/laminar/damBreak4phase/Allrun +++ b/tutorials/multiphase/compressibleMultiphaseInterFoam/laminar/damBreak4phase/Allrun @@ -4,13 +4,10 @@ cd ${0%/*} || exit 1 # Run from this directory # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions -# Set application name -application=$(getApplication) - restore0Dir runApplication blockMesh runApplication setFields -runApplication $application +runApplication $(getApplication) #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/driftFluxFoam/RAS/mixerVessel2D/Allrun b/tutorials/multiphase/driftFluxFoam/RAS/mixerVessel2D/Allrun index f5e6c61a9e087c0f799e0c700493698c1df8fcf4..f1273de8e41357a83af0b1253a297acf47413959 100755 --- a/tutorials/multiphase/driftFluxFoam/RAS/mixerVessel2D/Allrun +++ b/tutorials/multiphase/driftFluxFoam/RAS/mixerVessel2D/Allrun @@ -4,9 +4,7 @@ cd ${0%/*} || exit 1 # Run from this directory # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions -application=$(getApplication) - runApplication ./makeMesh -runApplication $application +runApplication $(getApplication) #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/driftFluxFoam/RAS/tank3D/Allrun b/tutorials/multiphase/driftFluxFoam/RAS/tank3D/Allrun index 89647850f5239766639961ac7b9da82a32064f43..c96f61d7ef3da434a039f14cfd7b4cf93718172d 100755 --- a/tutorials/multiphase/driftFluxFoam/RAS/tank3D/Allrun +++ b/tutorials/multiphase/driftFluxFoam/RAS/tank3D/Allrun @@ -4,8 +4,6 @@ cd ${0%/*} || exit 1 # Run from this directory # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions -application=$(getApplication) - -runApplication $application +runApplication $(getApplication) #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interCondensingEvaporatingFoam/condensatingVessel/Allrun b/tutorials/multiphase/interCondensingEvaporatingFoam/condensatingVessel/Allrun index ebc19b3d2a4adff39cf7ca06c6c671b012c42337..8a77ff8076363a01e3fc0e676fcf87e9a5223fd5 100755 --- a/tutorials/multiphase/interCondensingEvaporatingFoam/condensatingVessel/Allrun +++ b/tutorials/multiphase/interCondensingEvaporatingFoam/condensatingVessel/Allrun @@ -4,9 +4,7 @@ cd ${0%/*} || exit 1 # Run from this directory # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions -application=$(getApplication) - runApplication blockMesh -runApplication $application +runApplication $(getApplication) #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interDyMFoam/RAS/floatingObject/Allrun b/tutorials/multiphase/interDyMFoam/RAS/floatingObject/Allrun index 875319146664ef804b473341ee56b31c2f801c7a..6a9d0d022934b4f22d4e024107b9d9098409ce4a 100755 --- a/tutorials/multiphase/interDyMFoam/RAS/floatingObject/Allrun +++ b/tutorials/multiphase/interDyMFoam/RAS/floatingObject/Allrun @@ -4,14 +4,11 @@ cd ${0%/*} || exit 1 # Run from this directory # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions -# Set application name -application=$(getApplication) - runApplication blockMesh runApplication topoSet runApplication subsetMesh -overwrite c0 -patch floatingObject restore0Dir runApplication setFields -runApplication $application +runApplication $(getApplication) #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interDyMFoam/RAS/mixerVesselAMI/Allrun b/tutorials/multiphase/interDyMFoam/RAS/mixerVesselAMI/Allrun index f35012c3e0727eab2d157091f5ccc9b10705be80..83e66bcf9ca0b7ea6a39bb60a1ffc265e8ad9410 100755 --- a/tutorials/multiphase/interDyMFoam/RAS/mixerVesselAMI/Allrun +++ b/tutorials/multiphase/interDyMFoam/RAS/mixerVesselAMI/Allrun @@ -4,18 +4,10 @@ cd ${0%/*} || exit 1 # Run from this directory # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions -application=$(getApplication) - - ./Allrun.pre -# Decompose runApplication decomposePar -force - -# Run -runParallel $application - -# Reconstruct +runParallel $(getApplication) runApplication reconstructPar -noFunctionObjects #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interDyMFoam/RAS/mixerVesselAMI/Allrun.pre b/tutorials/multiphase/interDyMFoam/RAS/mixerVesselAMI/Allrun.pre index 1f8a3f5f9fb48e6782250651c0cb5b192fc52b59..0d993b2ee7d2f2d5e1535ac436220ae73a89bc13 100755 --- a/tutorials/multiphase/interDyMFoam/RAS/mixerVesselAMI/Allrun.pre +++ b/tutorials/multiphase/interDyMFoam/RAS/mixerVesselAMI/Allrun.pre @@ -4,9 +4,6 @@ cd ${0%/*} || exit 1 # Run from this directory # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions -# Set application name -application=$(getApplication) - \rm -rf 0 # Meshing diff --git a/tutorials/multiphase/interDyMFoam/RAS/motorBike/Allclean b/tutorials/multiphase/interDyMFoam/RAS/motorBike/Allclean index 29141d9f9bafbce5ead5f03ac5af0de7f993bb8b..5442dc1333e01662575c442766fce5c37b65a40a 100755 --- a/tutorials/multiphase/interDyMFoam/RAS/motorBike/Allclean +++ b/tutorials/multiphase/interDyMFoam/RAS/motorBike/Allclean @@ -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 diff --git a/tutorials/multiphase/interDyMFoam/RAS/motorBike/Allrun b/tutorials/multiphase/interDyMFoam/RAS/motorBike/Allrun index 8c8ea78f795dae0ee3f0165f3ca4c5a62d259215..d22cdd2cc4657de99bc5a60f25cdd222767ff088 100755 --- a/tutorials/multiphase/interDyMFoam/RAS/motorBike/Allrun +++ b/tutorials/multiphase/interDyMFoam/RAS/motorBike/Allrun @@ -16,5 +16,4 @@ runParallel -s reconstruct redistributePar -reconstruct runParallel -s decompose redistributePar -decompose -latestTime runParallel -s restart $(getApplication) - # ----------------------------------------------------------------------------- diff --git a/tutorials/multiphase/interDyMFoam/RAS/motorBike/Allrun.pre b/tutorials/multiphase/interDyMFoam/RAS/motorBike/Allrun.pre index 5b7c3d7bc2566143f2f0b27fd8c85f012c440a95..d4a3ff963991b574ceda910717f54f497aa43c45 100755 --- a/tutorials/multiphase/interDyMFoam/RAS/motorBike/Allrun.pre +++ b/tutorials/multiphase/interDyMFoam/RAS/motorBike/Allrun.pre @@ -29,3 +29,5 @@ runParallel snappyHexMesh -overwrite restore0Dir -processor runParallel setFields + +#------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interDyMFoam/laminar/sloshingTank2D/Allrun b/tutorials/multiphase/interDyMFoam/laminar/sloshingTank2D/Allrun index 603304a5ae32ab7377ac84e7e38028913058ab0f..e827b4c66ab5de7072778c2a80bac0f2db7523bc 100755 --- a/tutorials/multiphase/interDyMFoam/laminar/sloshingTank2D/Allrun +++ b/tutorials/multiphase/interDyMFoam/laminar/sloshingTank2D/Allrun @@ -7,7 +7,8 @@ cd ${0%/*} || exit 1 # Run from this directory m4 system/blockMeshDict.m4 > system/blockMeshDict runApplication blockMesh cp 0/alpha.water.orig 0/alpha.water + runApplication setFields -runApplication `getApplication` +runApplication $(getApplication) #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interDyMFoam/laminar/sloshingTank2D3DoF/Allrun b/tutorials/multiphase/interDyMFoam/laminar/sloshingTank2D3DoF/Allrun index 603304a5ae32ab7377ac84e7e38028913058ab0f..e827b4c66ab5de7072778c2a80bac0f2db7523bc 100755 --- a/tutorials/multiphase/interDyMFoam/laminar/sloshingTank2D3DoF/Allrun +++ b/tutorials/multiphase/interDyMFoam/laminar/sloshingTank2D3DoF/Allrun @@ -7,7 +7,8 @@ cd ${0%/*} || exit 1 # Run from this directory m4 system/blockMeshDict.m4 > system/blockMeshDict runApplication blockMesh cp 0/alpha.water.orig 0/alpha.water + runApplication setFields -runApplication `getApplication` +runApplication $(getApplication) #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interDyMFoam/laminar/sloshingTank3D/Allrun b/tutorials/multiphase/interDyMFoam/laminar/sloshingTank3D/Allrun index 603304a5ae32ab7377ac84e7e38028913058ab0f..e827b4c66ab5de7072778c2a80bac0f2db7523bc 100755 --- a/tutorials/multiphase/interDyMFoam/laminar/sloshingTank3D/Allrun +++ b/tutorials/multiphase/interDyMFoam/laminar/sloshingTank3D/Allrun @@ -7,7 +7,8 @@ cd ${0%/*} || exit 1 # Run from this directory m4 system/blockMeshDict.m4 > system/blockMeshDict runApplication blockMesh cp 0/alpha.water.orig 0/alpha.water + runApplication setFields -runApplication `getApplication` +runApplication $(getApplication) #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interDyMFoam/laminar/sloshingTank3D3DoF/Allrun b/tutorials/multiphase/interDyMFoam/laminar/sloshingTank3D3DoF/Allrun index 603304a5ae32ab7377ac84e7e38028913058ab0f..823b296e60dbaf5092ecb752a3077207902043b3 100755 --- a/tutorials/multiphase/interDyMFoam/laminar/sloshingTank3D3DoF/Allrun +++ b/tutorials/multiphase/interDyMFoam/laminar/sloshingTank3D3DoF/Allrun @@ -6,8 +6,9 @@ cd ${0%/*} || exit 1 # Run from this directory m4 system/blockMeshDict.m4 > system/blockMeshDict runApplication blockMesh + cp 0/alpha.water.orig 0/alpha.water runApplication setFields -runApplication `getApplication` +runApplication $(getApplication) #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interDyMFoam/laminar/sloshingTank3D6DoF/Allrun b/tutorials/multiphase/interDyMFoam/laminar/sloshingTank3D6DoF/Allrun index c1f08e0d5a1992512f06dfb64a4de45e49cd36d0..1f23b71a3d600438758d6c85ddb0a1edc9b360c4 100755 --- a/tutorials/multiphase/interDyMFoam/laminar/sloshingTank3D6DoF/Allrun +++ b/tutorials/multiphase/interDyMFoam/laminar/sloshingTank3D6DoF/Allrun @@ -7,6 +7,7 @@ cd ${0%/*} || exit 1 # Run from this directory m4 system/blockMeshDict.m4 > system/blockMeshDict runApplication blockMesh \cp 0/alpha.water.orig 0/alpha.water + runApplication setFields runApplication $(getApplication) diff --git a/tutorials/multiphase/interDyMFoam/laminar/testTubeMixer/Allrun b/tutorials/multiphase/interDyMFoam/laminar/testTubeMixer/Allrun index 9d4261f19ac9aa0bc3f11823a0a7da2197b8726e..0af06e79fb4e1b1d4fa9ba2328de784ba59c5fba 100755 --- a/tutorials/multiphase/interDyMFoam/laminar/testTubeMixer/Allrun +++ b/tutorials/multiphase/interDyMFoam/laminar/testTubeMixer/Allrun @@ -6,7 +6,8 @@ cd ${0%/*} || exit 1 # Run from this directory runApplication blockMesh cp 0/alpha.water.orig 0/alpha.water + runApplication setFields -runApplication `getApplication` +runApplication $(getApplication) #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interFoam/LES/nozzleFlow2D/Allrun b/tutorials/multiphase/interFoam/LES/nozzleFlow2D/Allrun index f56f378d9f03e5fe5c5b47117c9b465e0f008731..f110e3491b51d6cecaa0ad3e6aa6321cc909fac0 100755 --- a/tutorials/multiphase/interFoam/LES/nozzleFlow2D/Allrun +++ b/tutorials/multiphase/interFoam/LES/nozzleFlow2D/Allrun @@ -4,9 +4,6 @@ cd ${0%/*} || exit 1 # Run from this directory # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions -# Get application name -application=$(getApplication) - runApplication blockMesh for i in 1 2 @@ -18,6 +15,6 @@ do refineMesh -dict system/refineMeshDict -overwrite done -runApplication $application +runApplication $(getApplication) #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interFoam/RAS/angledDuct/Allrun b/tutorials/multiphase/interFoam/RAS/angledDuct/Allrun index 4f55fd7efaf20c8631ec86210c8629a9a3fe234b..ccdfefe5c1ce337739caa5bddd0affe3cfc4aad0 100755 --- a/tutorials/multiphase/interFoam/RAS/angledDuct/Allrun +++ b/tutorials/multiphase/interFoam/RAS/angledDuct/Allrun @@ -1,10 +1,12 @@ #!/bin/sh cd ${0%/*} || exit 1 # Run from this directory -m4 system/blockMeshDict.m4 > system/blockMeshDict - # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions +m4 system/blockMeshDict.m4 > system/blockMeshDict + runApplication blockMesh runApplication $(getApplication) + +#------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interFoam/RAS/damBreak/damBreak/Allrun b/tutorials/multiphase/interFoam/RAS/damBreak/damBreak/Allrun index b18d70e448c13fbaf243f01cff301f0dbb1c7193..ed61ac543538db7d3679847d004086dd7fe3952f 100755 --- a/tutorials/multiphase/interFoam/RAS/damBreak/damBreak/Allrun +++ b/tutorials/multiphase/interFoam/RAS/damBreak/damBreak/Allrun @@ -4,11 +4,8 @@ cd ${0%/*} || exit 1 # Run from this directory # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions -# Get application name -application=$(getApplication) - runApplication blockMesh runApplication setFields -runApplication $application +runApplication $(getApplication) #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interFoam/RAS/damBreakPorousBaffle/Allrun b/tutorials/multiphase/interFoam/RAS/damBreakPorousBaffle/Allrun index cdc9763e1b2c914ccc2c244c2cb2ef4a2a61913d..4c6866acbc18f0346e8d9badc6d118f3c6b9f7fd 100755 --- a/tutorials/multiphase/interFoam/RAS/damBreakPorousBaffle/Allrun +++ b/tutorials/multiphase/interFoam/RAS/damBreakPorousBaffle/Allrun @@ -4,14 +4,11 @@ cd ${0%/*} || exit 1 # Run from this directory # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions -# Get application name -application=$(getApplication) - runApplication blockMesh runApplication setFields runApplication createBaffles -overwrite -runApplication $application +runApplication $(getApplication) #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interFoam/RAS/waterChannel/Allmesh b/tutorials/multiphase/interFoam/RAS/waterChannel/Allmesh index c941916ef134723bcd5f545a3f6196db2193858e..f476661eb3ffd3867f9ab40b15f98cac9e19b318 100755 --- a/tutorials/multiphase/interFoam/RAS/waterChannel/Allmesh +++ b/tutorials/multiphase/interFoam/RAS/waterChannel/Allmesh @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # run from this directory +cd ${0%/*} || exit 1 # Run from this directory # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions diff --git a/tutorials/multiphase/interFoam/RAS/waterChannel/Allrun b/tutorials/multiphase/interFoam/RAS/waterChannel/Allrun index e799b7914b250867f4270f8258893c2e20ed1f6f..5a86d49dcb6c907ed66851839049b0cf9feef4f5 100755 --- a/tutorials/multiphase/interFoam/RAS/waterChannel/Allrun +++ b/tutorials/multiphase/interFoam/RAS/waterChannel/Allrun @@ -4,13 +4,11 @@ cd ${0%/*} || exit 1 # Run from this directory # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions -application=$(getApplication) - ./Allmesh cp 0/alpha.water.orig 0/alpha.water runApplication setFields -runApplication $application +runApplication $(getApplication) #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interFoam/RAS/weirOverflow/Allrun b/tutorials/multiphase/interFoam/RAS/weirOverflow/Allrun index 54d0dfc6794449e5ea4ef562181b8c1bc6b05ae1..e0a3d741250d5d5e5a4c9beb1381e4ca6fbaabc6 100755 --- a/tutorials/multiphase/interFoam/RAS/weirOverflow/Allrun +++ b/tutorials/multiphase/interFoam/RAS/weirOverflow/Allrun @@ -1,4 +1,5 @@ #!/bin/sh +cd ${0%/*} || exit 1 # Run from this directory # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions @@ -6,9 +7,9 @@ restore0Dir runApplication blockMesh - \cp 0/alpha.water.orig 0/alpha.water runApplication setFields - runApplication $(getApplication) + +#------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interFoam/laminar/capillaryRise/Allrun b/tutorials/multiphase/interFoam/laminar/capillaryRise/Allrun index 4c9e1c26d2a0a0d7949042fbb2b689cd5ed35f57..b52e0c12fd03a792f1d1c15400926fa3143d0460 100755 --- a/tutorials/multiphase/interFoam/laminar/capillaryRise/Allrun +++ b/tutorials/multiphase/interFoam/laminar/capillaryRise/Allrun @@ -4,11 +4,10 @@ cd ${0%/*} || exit 1 # Run from this directory # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions -application=$(getApplication) - runApplication blockMesh \cp 0/alpha.water.orig 0/alpha.water + runApplication setFields -runApplication $application +runApplication $(getApplication) #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interFoam/laminar/damBreak/damBreak/Allrun b/tutorials/multiphase/interFoam/laminar/damBreak/damBreak/Allrun index b18d70e448c13fbaf243f01cff301f0dbb1c7193..ed61ac543538db7d3679847d004086dd7fe3952f 100755 --- a/tutorials/multiphase/interFoam/laminar/damBreak/damBreak/Allrun +++ b/tutorials/multiphase/interFoam/laminar/damBreak/damBreak/Allrun @@ -4,11 +4,8 @@ cd ${0%/*} || exit 1 # Run from this directory # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions -# Get application name -application=$(getApplication) - runApplication blockMesh runApplication setFields -runApplication $application +runApplication $(getApplication) #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interFoam/laminar/mixerVessel2D/Allrun b/tutorials/multiphase/interFoam/laminar/mixerVessel2D/Allrun index 40baf145bebb4b2d5107a394ebf4f6b3ae8a53d9..d347ad0a845c463a62cdc2362058f4d7ee7d5745 100755 --- a/tutorials/multiphase/interFoam/laminar/mixerVessel2D/Allrun +++ b/tutorials/multiphase/interFoam/laminar/mixerVessel2D/Allrun @@ -4,11 +4,9 @@ cd ${0%/*} || exit 1 # Run from this directory # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions -application=$(getApplication) - runApplication ./makeMesh \cp 0/alpha.water.orig 0/alpha.water runApplication setFields -runApplication $application +runApplication $(getApplication) #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/multiphaseEulerFoam/damBreak4phase/Allrun b/tutorials/multiphase/multiphaseEulerFoam/damBreak4phase/Allrun index 912c34cfdb7636863fe4782c6bfc402154698b0d..6cfec647c79d18f2504b7408b94bb8ddbe2e3086 100755 --- a/tutorials/multiphase/multiphaseEulerFoam/damBreak4phase/Allrun +++ b/tutorials/multiphase/multiphaseEulerFoam/damBreak4phase/Allrun @@ -4,13 +4,10 @@ cd ${0%/*} || exit 1 # Run from this directory # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions -# Set application name -application=$(getApplication) - restore0Dir runApplication blockMesh runApplication setFields -runApplication $application +runApplication $(getApplication) #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/multiphaseEulerFoam/damBreak4phaseFine/Allrun b/tutorials/multiphase/multiphaseEulerFoam/damBreak4phaseFine/Allrun index a0ed70da03a7a41ab05ca3d71b7a07ed38f31c61..fb2c7cf7a737962f3394292d00843d75376f8677 100755 --- a/tutorials/multiphase/multiphaseEulerFoam/damBreak4phaseFine/Allrun +++ b/tutorials/multiphase/multiphaseEulerFoam/damBreak4phaseFine/Allrun @@ -4,15 +4,12 @@ cd ${0%/*} || exit 1 # Run from this directory # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions -# Set application name -application=$(getApplication) - restore0Dir runApplication blockMesh runApplication setFields runApplication decomposePar -runParallel $application +runParallel $(getApplication) runApplication reconstructPar #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/multiphaseEulerFoam/mixerVessel2D/Allrun b/tutorials/multiphase/multiphaseEulerFoam/mixerVessel2D/Allrun index f5e6c61a9e087c0f799e0c700493698c1df8fcf4..f1273de8e41357a83af0b1253a297acf47413959 100755 --- a/tutorials/multiphase/multiphaseEulerFoam/mixerVessel2D/Allrun +++ b/tutorials/multiphase/multiphaseEulerFoam/mixerVessel2D/Allrun @@ -4,9 +4,7 @@ cd ${0%/*} || exit 1 # Run from this directory # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions -application=$(getApplication) - runApplication ./makeMesh -runApplication $application +runApplication $(getApplication) #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/multiphaseInterDyMFoam/laminar/mixerVesselAMI2D/Allrun b/tutorials/multiphase/multiphaseInterDyMFoam/laminar/mixerVesselAMI2D/Allrun index f8ec2f0689d93219c4a6b366c4ae5d60ceea0d19..cf76c5c4a6c65fdff4a3308d97e24f34e1789b4b 100755 --- a/tutorials/multiphase/multiphaseInterDyMFoam/laminar/mixerVesselAMI2D/Allrun +++ b/tutorials/multiphase/multiphaseInterDyMFoam/laminar/mixerVesselAMI2D/Allrun @@ -4,16 +4,15 @@ cd ${0%/*} || exit 1 # Run from this directory # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions -application=$(getApplication) - ./makeMesh restore0Dir runApplication setFields -#runApplication $application +#runApplication $(getApplication) + #runApplication decomposePar -#runParallel $application +#runParallel $(getApplication) #runApplication reconstructPar #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/multiphaseInterFoam/laminar/damBreak4phase/Allrun b/tutorials/multiphase/multiphaseInterFoam/laminar/damBreak4phase/Allrun index 912c34cfdb7636863fe4782c6bfc402154698b0d..6cfec647c79d18f2504b7408b94bb8ddbe2e3086 100755 --- a/tutorials/multiphase/multiphaseInterFoam/laminar/damBreak4phase/Allrun +++ b/tutorials/multiphase/multiphaseInterFoam/laminar/damBreak4phase/Allrun @@ -4,13 +4,10 @@ cd ${0%/*} || exit 1 # Run from this directory # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions -# Set application name -application=$(getApplication) - restore0Dir runApplication blockMesh runApplication setFields -runApplication $application +runApplication $(getApplication) #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/multiphaseInterFoam/laminar/damBreak4phaseFine/Allrun b/tutorials/multiphase/multiphaseInterFoam/laminar/damBreak4phaseFine/Allrun index a0ed70da03a7a41ab05ca3d71b7a07ed38f31c61..fb2c7cf7a737962f3394292d00843d75376f8677 100755 --- a/tutorials/multiphase/multiphaseInterFoam/laminar/damBreak4phaseFine/Allrun +++ b/tutorials/multiphase/multiphaseInterFoam/laminar/damBreak4phaseFine/Allrun @@ -4,15 +4,12 @@ cd ${0%/*} || exit 1 # Run from this directory # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions -# Set application name -application=$(getApplication) - restore0Dir runApplication blockMesh runApplication setFields runApplication decomposePar -runParallel $application +runParallel $(getApplication) runApplication reconstructPar #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/multiphaseInterFoam/laminar/mixerVessel2D/Allrun b/tutorials/multiphase/multiphaseInterFoam/laminar/mixerVessel2D/Allrun index f5e6c61a9e087c0f799e0c700493698c1df8fcf4..f1273de8e41357a83af0b1253a297acf47413959 100755 --- a/tutorials/multiphase/multiphaseInterFoam/laminar/mixerVessel2D/Allrun +++ b/tutorials/multiphase/multiphaseInterFoam/laminar/mixerVessel2D/Allrun @@ -4,9 +4,7 @@ cd ${0%/*} || exit 1 # Run from this directory # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions -application=$(getApplication) - runApplication ./makeMesh -runApplication $application +runApplication $(getApplication) #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/potentialFreeSurfaceDyMFoam/oscillatingBox/Allrun b/tutorials/multiphase/potentialFreeSurfaceDyMFoam/oscillatingBox/Allrun index c2b53fdc45a52fddee2928fb01a0c754a5954358..7cdbc56f458c4aa2648d91383024eed3c4c5c2df 100755 --- a/tutorials/multiphase/potentialFreeSurfaceDyMFoam/oscillatingBox/Allrun +++ b/tutorials/multiphase/potentialFreeSurfaceDyMFoam/oscillatingBox/Allrun @@ -4,12 +4,9 @@ cd ${0%/*} || exit 1 # Run from this directory # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions -# Set application name -application=$(getApplication) - runApplication blockMesh -runApplication -s 1 topoSet +runApplication -s 1 topoSet runApplication subsetMesh -overwrite c0 -patch floatingObject @@ -20,6 +17,6 @@ runApplication createPatch -overwrite restore0Dir -runApplication $application +runApplication $(getApplication) #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/potentialFreeSurfaceFoam/oscillatingBox/Allrun b/tutorials/multiphase/potentialFreeSurfaceFoam/oscillatingBox/Allrun index 7f340efedbbafed441e0ddf2615c276424b20172..03b5ca3948231b2a68cbcaa5bbc2a0d72e5d693b 100755 --- a/tutorials/multiphase/potentialFreeSurfaceFoam/oscillatingBox/Allrun +++ b/tutorials/multiphase/potentialFreeSurfaceFoam/oscillatingBox/Allrun @@ -4,15 +4,12 @@ cd ${0%/*} || exit 1 # Run from this directory # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions -# Set application name -application=$(getApplication) - runApplication blockMesh runApplication topoSet runApplication subsetMesh -overwrite c0 -patch floatingObject restore0Dir -runApplication $application +runApplication $(getApplication) #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/reactingMultiphaseEulerFoam/laminar/mixerVessel2D/Allrun b/tutorials/multiphase/reactingMultiphaseEulerFoam/laminar/mixerVessel2D/Allrun index f5e6c61a9e087c0f799e0c700493698c1df8fcf4..f1273de8e41357a83af0b1253a297acf47413959 100755 --- a/tutorials/multiphase/reactingMultiphaseEulerFoam/laminar/mixerVessel2D/Allrun +++ b/tutorials/multiphase/reactingMultiphaseEulerFoam/laminar/mixerVessel2D/Allrun @@ -4,9 +4,7 @@ cd ${0%/*} || exit 1 # Run from this directory # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions -application=$(getApplication) - runApplication ./makeMesh -runApplication $application +runApplication $(getApplication) #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/reactingTwoPhaseEulerFoam/RAS/wallBoiling/Allrun b/tutorials/multiphase/reactingTwoPhaseEulerFoam/RAS/wallBoiling/Allrun index 11dd28b438873c682fb7d5b241d4ac3d611f1238..c056332036ab4e1ae0f90a6f704c5f4c28e184cb 100755 --- a/tutorials/multiphase/reactingTwoPhaseEulerFoam/RAS/wallBoiling/Allrun +++ b/tutorials/multiphase/reactingTwoPhaseEulerFoam/RAS/wallBoiling/Allrun @@ -4,16 +4,14 @@ cd ${0%/*} || exit 1 # Run from this directory # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions -application=`getApplication` - runApplication blockMesh -runApplication $application +runApplication $(getApplication) if ! isTest $@ then foamDictionary system/controlDict -entry endTime -set 5 foamDictionary 2/T.liquid -entry boundaryField.wall2.q -set 1e5 - runApplication -a $application + runApplication -a $(getApplication) fi #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/reactingTwoPhaseEulerFoam/RAS/wallBoilingIATE/Allrun b/tutorials/multiphase/reactingTwoPhaseEulerFoam/RAS/wallBoilingIATE/Allrun index 11dd28b438873c682fb7d5b241d4ac3d611f1238..c056332036ab4e1ae0f90a6f704c5f4c28e184cb 100755 --- a/tutorials/multiphase/reactingTwoPhaseEulerFoam/RAS/wallBoilingIATE/Allrun +++ b/tutorials/multiphase/reactingTwoPhaseEulerFoam/RAS/wallBoilingIATE/Allrun @@ -4,16 +4,14 @@ cd ${0%/*} || exit 1 # Run from this directory # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions -application=`getApplication` - runApplication blockMesh -runApplication $application +runApplication $(getApplication) if ! isTest $@ then foamDictionary system/controlDict -entry endTime -set 5 foamDictionary 2/T.liquid -entry boundaryField.wall2.q -set 1e5 - runApplication -a $application + runApplication -a $(getApplication) fi #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/reactingTwoPhaseEulerFoam/laminar/mixerVessel2D/Allrun b/tutorials/multiphase/reactingTwoPhaseEulerFoam/laminar/mixerVessel2D/Allrun index f5e6c61a9e087c0f799e0c700493698c1df8fcf4..f1273de8e41357a83af0b1253a297acf47413959 100755 --- a/tutorials/multiphase/reactingTwoPhaseEulerFoam/laminar/mixerVessel2D/Allrun +++ b/tutorials/multiphase/reactingTwoPhaseEulerFoam/laminar/mixerVessel2D/Allrun @@ -4,9 +4,7 @@ cd ${0%/*} || exit 1 # Run from this directory # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions -application=$(getApplication) - runApplication ./makeMesh -runApplication $application +runApplication $(getApplication) #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/twoLiquidMixingFoam/lockExchange/Allrun b/tutorials/multiphase/twoLiquidMixingFoam/lockExchange/Allrun index 912c34cfdb7636863fe4782c6bfc402154698b0d..6cfec647c79d18f2504b7408b94bb8ddbe2e3086 100755 --- a/tutorials/multiphase/twoLiquidMixingFoam/lockExchange/Allrun +++ b/tutorials/multiphase/twoLiquidMixingFoam/lockExchange/Allrun @@ -4,13 +4,10 @@ cd ${0%/*} || exit 1 # Run from this directory # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions -# Set application name -application=$(getApplication) - restore0Dir runApplication blockMesh runApplication setFields -runApplication $application +runApplication $(getApplication) #------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/twoPhaseEulerFoam/laminar/mixerVessel2D/Allrun b/tutorials/multiphase/twoPhaseEulerFoam/laminar/mixerVessel2D/Allrun index f5e6c61a9e087c0f799e0c700493698c1df8fcf4..f1273de8e41357a83af0b1253a297acf47413959 100755 --- a/tutorials/multiphase/twoPhaseEulerFoam/laminar/mixerVessel2D/Allrun +++ b/tutorials/multiphase/twoPhaseEulerFoam/laminar/mixerVessel2D/Allrun @@ -4,9 +4,7 @@ cd ${0%/*} || exit 1 # Run from this directory # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions -application=$(getApplication) - runApplication ./makeMesh -runApplication $application +runApplication $(getApplication) #------------------------------------------------------------------------------ diff --git a/tutorials/preProcessing/createZeroDirectory/cavity/Allrun b/tutorials/preProcessing/createZeroDirectory/cavity/Allrun index cdef18649d8d56dcec0d61944fba329e3d0b8b6e..909a10a372f915ddefeb5bb0c95d8527f13e1111 100755 --- a/tutorials/preProcessing/createZeroDirectory/cavity/Allrun +++ b/tutorials/preProcessing/createZeroDirectory/cavity/Allrun @@ -1,9 +1,11 @@ #!/bin/sh +cd ${0%/*} || exit 1 # Run from this directory + # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions runApplication blockMesh - runApplication createZeroDirectory - runApplication $(getApplication) + +#------------------------------------------------------------------------------ diff --git a/tutorials/preProcessing/createZeroDirectory/motorBike/Allrun b/tutorials/preProcessing/createZeroDirectory/motorBike/Allrun index dbb00a2dbb2ba88a4326318b8eddbe1392578210..bec223b5deefcf242fd633d7c247c9d903ce2b4a 100755 --- a/tutorials/preProcessing/createZeroDirectory/motorBike/Allrun +++ b/tutorials/preProcessing/createZeroDirectory/motorBike/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # run from this directory +cd ${0%/*} || exit 1 # Run from this directory # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions diff --git a/tutorials/preProcessing/createZeroDirectory/snappyMultiRegionHeater/Allclean b/tutorials/preProcessing/createZeroDirectory/snappyMultiRegionHeater/Allclean index 18b6490f109754978433ce39969e103d5a0becd8..c0d30ba4bfd0ba95d345685e6b55d77537f4345a 100755 --- a/tutorials/preProcessing/createZeroDirectory/snappyMultiRegionHeater/Allclean +++ b/tutorials/preProcessing/createZeroDirectory/snappyMultiRegionHeater/Allclean @@ -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 diff --git a/tutorials/preProcessing/createZeroDirectory/snappyMultiRegionHeater/Allrun b/tutorials/preProcessing/createZeroDirectory/snappyMultiRegionHeater/Allrun index fded3a87586dd15fb28b9fbbfee3a366f9401a2b..cd9d35d580f72613f6a84dbe5a30bc4d1bd4f1ce 100755 --- a/tutorials/preProcessing/createZeroDirectory/snappyMultiRegionHeater/Allrun +++ b/tutorials/preProcessing/createZeroDirectory/snappyMultiRegionHeater/Allrun @@ -1,5 +1,5 @@ #!/bin/sh -cd ${0%/*} || exit 1 # run from this directory +cd ${0%/*} || exit 1 # Run from this directory # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions diff --git a/tutorials/stressAnalysis/solidDisplacementFoam/plateHole/Allrun b/tutorials/stressAnalysis/solidDisplacementFoam/plateHole/Allrun index c64db75b8e6d2d96d9ffd2fb48aacec15c8543ab..9c5c0bb36eef9868cd2e10bd799961bd051e5a49 100755 --- a/tutorials/stressAnalysis/solidDisplacementFoam/plateHole/Allrun +++ b/tutorials/stressAnalysis/solidDisplacementFoam/plateHole/Allrun @@ -4,10 +4,8 @@ cd ${0%/*} || exit 1 # Run from this directory # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions -application=`getApplication` - runApplication blockMesh -runApplication $application +runApplication $(getApplication) runApplication -s sigma postProcess -func "components(sigma)" runApplication -s singleGraph postProcess -func singleGraph