mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-12-28 03:37:59 +00:00
tutorials: Use getApplication to set the application rather than hard-coding it
This commit is contained in:
@ -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="interFoam"
|
||||
|
||||
setDamBreakFine ()
|
||||
{
|
||||
blockMeshDict="constant/polyMesh/blockMeshDict"
|
||||
@ -33,7 +30,7 @@ setDamBreakFine ()
|
||||
runApplication blockMesh
|
||||
cp 0/alpha1.org 0/alpha1
|
||||
runApplication setFields
|
||||
runApplication $application
|
||||
runApplication `getApplication`
|
||||
)
|
||||
|
||||
# Clone case
|
||||
@ -50,7 +47,7 @@ cloneCase damBreak damBreakFine
|
||||
cp ../damBreak/0/alpha1.org 0/alpha1
|
||||
runApplication setFields
|
||||
runApplication decomposePar
|
||||
runParallel $application 4
|
||||
runParallel `getApplication` 4
|
||||
runApplication reconstructPar
|
||||
)
|
||||
|
||||
@ -61,7 +58,7 @@ cloneCase damBreak damBreakFine
|
||||
runApplication blockMesh
|
||||
cp 0/alpha1.org 0/alpha1
|
||||
runApplication setFields
|
||||
runApplication $application
|
||||
runApplication `getApplication`
|
||||
)
|
||||
|
||||
# ----------------------------------------------------------------- end-of-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="interFoam"
|
||||
|
||||
setDamBreakFine ()
|
||||
{
|
||||
blockMeshDict="constant/polyMesh/blockMeshDict"
|
||||
@ -42,7 +39,7 @@ cloneCase damBreak damBreakFine
|
||||
runApplication blockMesh
|
||||
runApplication setFields
|
||||
runApplication decomposePar
|
||||
runParallel $application 4
|
||||
runParallel `getApplication` 4
|
||||
runApplication reconstructPar
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user