STYLE: use standardized 0.orig/ for overset tutorials

This commit is contained in:
Mark Olesen
2017-06-14 14:15:22 +02:00
parent 710f23aa35
commit 7eec9f0dd6
76 changed files with 82 additions and 71 deletions

View File

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

View File

@ -1,7 +1,5 @@
#!/bin/sh
cd ${0%/*} || exit 1 # run from this directory
# Source tutorial run functions
cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/RunFunctions
runApplication blockMesh
@ -13,8 +11,7 @@ runApplication createPatch -overwrite
# split mesh into 2 regions at the AMI coupled patch
runApplication mergeOrSplitBaffles -overwrite
echo "Copying 0.org to 0"
cp -r 0.org 0
restore0Dir
runApplication setFields
@ -22,4 +19,4 @@ runApplication setFields
runApplication $(getApplication)
# ----------------------------------------------------------------- end-of-file
#------------------------------------------------------------------------------

View File

@ -1,7 +1,5 @@
#!/bin/sh
cd ${0%/*} || exit 1 # run from this directory
# Source tutorial run functions
cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/RunFunctions
runApplication blockMesh
@ -13,15 +11,17 @@ runApplication createPatch -overwrite
# split mesh into 2 regions at the AMI coupled patch
runApplication mergeOrSplitBaffles -overwrite
echo "Copying 0.org to 0"
cp -r 0.org 0
restore0Dir
runApplication setFields
runApplication decomposePar
(cd processor0/constant/polyMesh/ && ln -s ../../../include/meshModifiers .)
(cd processor1/constant/polyMesh/ && ln -s ../../../include/meshModifiers .)
echo "Symlink include/meshModifiers"
find -maxdepth 1 -name "processor*" -type d | while read procDir
do
(cd $procDir/constant/polyMesh && ln -sf ../../../include/meshModifiers .)
done
runParallel $(getApplication)
@ -29,4 +29,4 @@ runApplication reconstructParMesh
runApplication reconstructPar
# ----------------------------------------------------------------- end-of-file
#------------------------------------------------------------------------------

View File

@ -1,11 +1,9 @@
#!/bin/sh
cd ${0%/*} || exit 1 # run from this directory
# Source tutorial clean functions
cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
rm -rf 0 > /dev/null 2>&1
cleanCase
# ----------------------------------------------------------------- end-of-file
rm -rf 0
#------------------------------------------------------------------------------

View File

@ -1,4 +1,5 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/RunFunctions
# Create background mesh
@ -10,8 +11,9 @@ runApplication mergeMeshes . ../floatingBody -overwrite
# Select cellSets for the different zones
runApplication topoSet
# Copy standard fields
rm -rf 0 && cp -r 0.org 0
restore0Dir
# Use cellSets to write zoneID
runApplication setFields
#------------------------------------------------------------------------------