STYLE: adjust tutorial Allrun scripts (issue #310)

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

View File

@ -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
#------------------------------------------------------------------------------

View File

@ -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

View File

@ -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
#------------------------------------------------------------------------------

View File

@ -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
#------------------------------------------------------------------------------

View File

@ -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)
#------------------------------------------------------------------------------

View File

@ -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 $*)

View File

@ -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
#------------------------------------------------------------------------------

View File

@ -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 $*)

View File

@ -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
#------------------------------------------------------------------------------

View File

@ -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 $*)

View File

@ -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
#------------------------------------------------------------------------------

View File

@ -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 $*)

View File

@ -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
#------------------------------------------------------------------------------

View File

@ -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 $*)

View File

@ -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
#------------------------------------------------------------------------------

View File

@ -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)
#------------------------------------------------------------------------------

View File

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

View File

@ -1,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)
# -----------------------------------------------------------------------------

View File

@ -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 \

View File

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

View File

@ -1,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

View File

@ -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)
#------------------------------------------------------------------------------

View File

@ -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)
#------------------------------------------------------------------------------

View File

@ -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)
#------------------------------------------------------------------------------

View File

@ -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)
#------------------------------------------------------------------------------

View File

@ -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)
#------------------------------------------------------------------------------

View File

@ -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
#------------------------------------------------------------------------------

View File

@ -6,3 +6,5 @@ cd ${0%/*} || exit 1 # Run from this directory
runApplication blockMesh
runApplication $(getApplication)
#------------------------------------------------------------------------------

View File

@ -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)
#------------------------------------------------------------------------------

View File

@ -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
#------------------------------------------------------------------------------

View File

@ -10,5 +10,4 @@ runParallel dsmcInitialise
runParallel $(getApplication)
runApplication reconstructPar -noLagrangian
#------------------------------------------------------------------------------

View File

@ -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

View File

@ -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
#------------------------------------------------------------------------------

View File

@ -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)
#------------------------------------------------------------------------------

View File

@ -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)
#------------------------------------------------------------------------------

View File

@ -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)
#------------------------------------------------------------------------------

View File

@ -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 )

View File

@ -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)
#------------------------------------------------------------------------------

View File

@ -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)
#------------------------------------------------------------------------------

View File

@ -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)
#------------------------------------------------------------------------------

View File

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

View File

@ -1,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

View File

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

View File

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

View File

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

View File

@ -24,3 +24,5 @@ runApplication topoSet -region cabin -dict system/topoSetDictRegister
restore0Dir
runApplication $(getApplication)
#------------------------------------------------------------------------------

View File

@ -7,3 +7,5 @@ cd ${0%/*} || exit 1 # Run from this directory
./Allrun.pre
runApplication $(getApplication)
# -----------------------------------------------------------------------------

View File

@ -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
# -----------------------------------------------------------------------------

View File

@ -18,3 +18,5 @@ runApplication splitMeshRegions -cellZones -overwrite
# set the initial fields
restore0Dir
# -----------------------------------------------------------------------------

View File

@ -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)
# -----------------------------------------------------------------------------

View File

@ -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
# -----------------------------------------------------------------------------

View File

@ -25,3 +25,5 @@ paraFoam -touch -region porous
paraFoam -touch -region air
restore0Dir
# -----------------------------------------------------------------------------

View File

@ -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

View File

@ -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

View File

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

View File

@ -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)
#------------------------------------------------------------------------------

View File

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

View File

@ -1,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)
# -----------------------------------------------------------------------------

View File

@ -1,5 +1,5 @@
#!/bin/sh
cd ${0%/*} || exit 1 # run from this directory
cd ${0%/*} || exit 1 # Run from this directory
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
@ -20,3 +20,5 @@ runParallel $(getApplication)
#runApplication -s fine reconstructPar
#
#runApplication -s coarseMesh reconstructPar -region coarseMesh
# -----------------------------------------------------------------------------

View File

@ -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

View File

@ -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
#------------------------------------------------------------------------------

View File

@ -7,3 +7,5 @@ cd ${0%/*} || exit 1 # Run from this directory
./Allrun.pre
runApplication $(getApplication)
# -----------------------------------------------------------------------------

View File

@ -7,7 +7,7 @@ cd ${0%/*} || exit 1 # Run from this directory
./Allrun.pre
runApplication decomposePar
runParallel $(getApplication)
runApplication reconstructPar
# -----------------------------------------------------------------------------

View File

@ -12,3 +12,5 @@ runApplication topoSet -constant
runApplication createBaffles -overwrite
restore0Dir
# -----------------------------------------------------------------------------

View File

@ -7,7 +7,7 @@ cd ${0%/*} || exit 1 # Run from this directory
./Allrun.pre
runApplication decomposePar
runParallel $(getApplication)
runApplication reconstructPar
# -----------------------------------------------------------------------------

View File

@ -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

View File

@ -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)
# -----------------------------------------------------------------------------

View File

@ -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)
#------------------------------------------------------------------------------

View File

@ -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
# -----------------------------------------------------------------------------

View File

@ -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
#------------------------------------------------------------------------------

View File

@ -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)
#------------------------------------------------------------------------------

View File

@ -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

View File

@ -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 )

View File

@ -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)
#------------------------------------------------------------------------------

View File

@ -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)
#------------------------------------------------------------------------------

View File

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

View File

@ -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

View File

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

View File

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

View File

@ -1,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

View File

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

View File

@ -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)
#------------------------------------------------------------------------------

View File

@ -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
#------------------------------------------------------------------------------

View File

@ -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
#------------------------------------------------------------------------------

View File

@ -6,6 +6,6 @@ cd ${0%/*} || exit 1 # Run from this directory
./Allrun.pre
application=$(getApplication)
runApplication $(getApplication)
runApplication $application
#------------------------------------------------------------------------------

View File

@ -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
#------------------------------------------------------------------------------

View File

@ -33,3 +33,5 @@ find ./0 -maxdepth 1 -type f -exec \
paraFoam -touch
paraFoam -touch -region wallFilmRegion
#------------------------------------------------------------------------------

View File

@ -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
#------------------------------------------------------------------------------

View File

@ -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
#------------------------------------------------------------------------------

View File

@ -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
#------------------------------------------------------------------------------

View File

@ -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
#------------------------------------------------------------------------------

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -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

Some files were not shown because too many files have changed in this diff Show More