Commit f0375fc3 authored by Andrew Heather's avatar Andrew Heather
Browse files

Merge branch 'develop' of develop.openfoam.com:Development/OpenFOAM-plus into develop

parents 0f6f3e3c 8752f77a
......@@ -4,7 +4,7 @@ cd ${0%/*} || exit 1 # Run from this directory
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
application=`getApplication`
application=$(getApplication)
runApplication $application
......
......@@ -4,7 +4,7 @@ cd ${0%/*} || exit 1 # Run from this directory
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
application=`getApplication`
application=$(getApplication)
./makeMesh
runApplication $application
......
......@@ -5,7 +5,7 @@ cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/RunFunctions
# copy motorbike surface from resources directory
cp $FOAM_TUTORIALS/resources/geometry/motorBike.obj.gz constant/triSurface/
\cp $FOAM_TUTORIALS/resources/geometry/motorBike.obj.gz constant/triSurface/
runApplication surfaceFeatureExtract
runApplication blockMesh
......@@ -13,12 +13,12 @@ runApplication blockMesh
runApplication decomposePar
runParallel snappyHexMesh -overwrite
#- For non-parallel running
#cp -r 0.org 0 > /dev/null 2>&1
#- For non-parallel running: - set the initial fields
# restore0Dir
#- For parallel running
ls -d processor* | xargs -I {} rm -rf ./{}/0
ls -d processor* | xargs -I {} cp -r 0.org ./{}/0
#- For parallel running: set the initial fields
\ls -d processor* | xargs -I {} \rm -rf ./{}/0
\ls -d processor* | xargs -I {} \cp -r 0.org ./{}/0
runParallel patchSummary
runParallel potentialFoam
......
......@@ -5,12 +5,13 @@ cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/RunFunctions
# Get application directory
application=`getApplication`
application=$(getApplication)
runApplication blockMesh
runApplication topoSet
runApplication refineHexMesh c0 -overwrite
cp -r 0.org 0
restore0Dir
#runApplication $application
runApplication decomposePar -cellDist
......
......@@ -16,10 +16,12 @@ runParallel snappyHexMesh -overwrite
find . -type f -iname "*level*" -exec rm {} \;
ls -d processor* | xargs -I {} cp -r 0.org ./{}/0
# - set the initial fields
\ls -d processor* | xargs -I {} \rm -rf ./{}/0
\ls -d processor* | xargs -I {} \cp -r 0.org ./{}/0
runParallel topoSet
runParallel `getApplication`
runParallel $(getApplication)
runApplication reconstructParMesh -constant
runApplication reconstructPar
......
......@@ -4,7 +4,7 @@ cd ${0%/*} || exit 1 # Run from this directory
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
application=`getApplication`
application=$(getApplication)
# create mesh
runApplication blockMesh
......
......@@ -4,11 +4,17 @@ cd ${0%/*} || exit 1 # Run from this directory
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
cd hopperInitialState
cleanCase
(
cd hopperInitialState || exit 1
cd ../hopperEmptying
cleanCase
rm -rf 0
cleanCase
)
(
cd hopperEmptying || exit 1
cleanCase
rm -rf 0
)
#------------------------------------------------------------------------------
......@@ -4,20 +4,24 @@ cd ${0%/*} || exit 1 # Run from this directory
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
cd hopperInitialState
runApplication blockMesh
runApplication decomposePar
runParallel `getApplication`
runApplication reconstructPar -latestTime
cd ..
(
cd hopperInitialState || exit 1
cd hopperEmptying
rm -rf 0
cp -r 0.org 0
runApplication blockMesh
runApplication mapFields ../hopperInitialState -sourceTime latestTime
runApplication decomposePar
runParallel `getApplication`
runApplication reconstructPar
runApplication blockMesh
runApplication decomposePar
runParallel $(getApplication)
runApplication reconstructPar -latestTime
)
(
cd hopperEmptying || exit 1
restore0Dir
runApplication blockMesh
runApplication mapFields ../hopperInitialState -sourceTime latestTime
runApplication decomposePar
runParallel $(getApplication)
runApplication reconstructPar
)
#------------------------------------------------------------------------------
......@@ -5,6 +5,6 @@ cd ${0%/*} || exit 1 # Run from this directory
./Allrun.pre
application=`getApplication`
application=$(getApplication)
runApplication $application
#!/bin/sh
. $WM_PROJECT_DIR/bin/tools/RunFunctions
cp -rf 0.org 0
restore0Dir
runApplication blockMesh
#runApplication setSet -batch wallFilmRegion.setSet
......
......@@ -6,6 +6,6 @@ cd ${0%/*} || exit 1 # Run from this directory
./Allrun.pre
application=`getApplication`
application=$(getApplication)
runApplication $application
......@@ -6,7 +6,7 @@ cd ${0%/*} || exit 1 # Run from this directory
./Allrun.pre
application=`getApplication`
application=$(getApplication)
runApplication -s wallFilmRegion decomposePar -region wallFilmRegion
runApplication -s primaryRegion decomposePar
......
......@@ -4,7 +4,7 @@ cd ${0%/*} || exit 1 # Run from this directory
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
cp -rf 0.org 0
restore0Dir
# create the underlying block mesh
runApplication blockMesh
......
......@@ -5,6 +5,6 @@ cd ${0%/*} || exit 1 # Run from this directory
./Allrun.pre
application=`getApplication`
application=$(getApplication)
runApplication $application
#!/bin/sh
. $WM_PROJECT_DIR/bin/tools/RunFunctions
cp -rf 0.org 0
restore0Dir
runApplication blockMesh
......
......@@ -5,6 +5,6 @@ cd ${0%/*} || exit 1 # Run from this directory
./Allrun.pre
application=`getApplication`
application=$(getApplication)
runApplication $application
#!/bin/sh
. $WM_PROJECT_DIR/bin/tools/RunFunctions
cp -rf 0.org 0
restore0Dir
runApplication blockMesh
......
......@@ -6,13 +6,10 @@ cd ${0%/*} || exit 1 # Run from this directory
cleanCase
# remove 0 directory
rm -rf 0
# remove 0 directory and post-processing directories
\rm -rf 0 postProcessing
# remove post-processing directory
rm -rf postProcessing
# copy 0.org to 0
cp -r 0.org 0
# restore 0/ directory from 0.org/
\cp -r 0.org 0
#------------------------------------------------------------------------------
......@@ -4,7 +4,7 @@ cd ${0%/*} || exit 1 # Run from this directory
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
application=`getApplication`
application=$(getApplication)
# create mesh
runApplication blockMesh
......
......@@ -7,14 +7,14 @@ cd ${0%/*} || exit 1 # Run from this directory
# create mesh
runApplication blockMesh
cp -r 0.org 0
restore0Dir
# initialise with potentialFoam solution
runApplication potentialFoam
rm -f 0/phi
\rm -f 0/phi
# run the solver
runApplication `getApplication`
runApplication $(getApplication)
#------------------------------------------------------------------------------
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment