mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: adjust tutorial Allrun scripts (issue #310)
- A few without a 'cd' at the start. Use $(getApplication) directly in more places (for clarity).
This commit is contained in:
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -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
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user