mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
TUT: adjust tutorials for test loop
This commit is contained in:
@ -1,6 +1,5 @@
|
||||
#!/bin/sh
|
||||
cd "${0%/*}" || exit # Run from this directory
|
||||
. ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
(cd precursor && ./Allclean)
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
#!/bin/sh
|
||||
cd "${0%/*}" || exit # Run from this directory
|
||||
. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
# Run a precursor init case
|
||||
|
||||
@ -7,6 +7,6 @@ vibroAcousticCase="../main"
|
||||
|
||||
cleanCase0
|
||||
|
||||
rm -rf $vibroAcousticCase/constant/boundaryData
|
||||
rm -rf "$vibroAcousticCase"/constant/boundaryData
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
|
||||
@ -3,7 +3,8 @@ cd "${0%/*}" || exit # Run from this directory
|
||||
. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
[[ -d constant/polyMesh ]] || runApplication ./Allrun.pre
|
||||
# Generate mesh if required
|
||||
[ -d constant/polyMesh ] || ./Allrun.pre
|
||||
|
||||
restore0Dir
|
||||
|
||||
@ -14,7 +15,7 @@ runParallel $(getApplication)
|
||||
vibroAcousticCase="../main"
|
||||
dataDir="postProcessing/surfaces/window"
|
||||
|
||||
mkdir -p "$vibroAcousticCase/constant/boundaryData"
|
||||
cp -rf "$dataDir" "$vibroAcousticCase/constant/boundaryData/window"
|
||||
mkdir -p "$vibroAcousticCase"/constant/boundaryData
|
||||
cp -rf "$dataDir" "$vibroAcousticCase"/constant/boundaryData/window
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user