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
......@@ -30,7 +30,7 @@ do
done
# Run
runParallel `getApplication`
runParallel $(getApplication)
# Reconstruct
runApplication reconstructPar -allRegions
......
......@@ -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
......
......@@ -17,7 +17,7 @@ do
sed "s/XXX/$e/g" constant/transportProperties.template \
> constant/transportProperties
runApplication -s $e `getApplication`
runApplication -s $e $(getApplication)
# extract y+, U+
# note: both must be added to foamLog.db
......
......@@ -83,7 +83,7 @@ do
esac
previousCase="$caseName"
( cd $caseName && runApplication `getApplication` )
( cd $caseName && runApplication $(getApplication) )
done
#------------------------------------------------------------------------------
......@@ -5,7 +5,7 @@ cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/RunFunctions
# Get application directory
application=`getApplication`
application=$(getApplication)
runApplication fluentMeshToFoam elbow.msh
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
......
......@@ -14,4 +14,4 @@ runApplication createBaffles -overwrite
# remove zero-sized patches
runApplication createPatch -overwrite
cp -rf 0.org 0
restore0Dir
......@@ -8,6 +8,6 @@ cd ${0%/*} || exit 1 # Run from this directory
runApplication decomposePar
runParallel `getApplication`
runParallel $(getApplication)
runApplication reconstructPar
......@@ -11,11 +11,8 @@ cp $FOAM_TUTORIALS/resources/geometry/propellerTip.obj.gz constant/triSurface/
# - meshing
runApplication blockMesh
runApplication surfaceFeatureExtract
runApplication snappyHexMesh -overwrite
runApplication renumberMesh -overwrite
# force removal of fields generated by snappy
......@@ -31,4 +28,4 @@ runApplication createPatch -overwrite
#runApplication moveDynamicMesh -checkAMI
# - set the initial fields
cp -rf 0.org 0
restore0Dir
......@@ -4,14 +4,19 @@ cd ${0%/*} || exit 1 # Run from this directory
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
cd wingMotion_snappyHexMesh
cleanCase
(
cd wingMotion_snappyHexMesh || exit 1
cleanCase
)
cd ../wingMotion2D_simpleFoam
cleanCase
rm -rf 0
cd ../wingMotion2D_pimpleDyMFoam
cleanCase
rm -rf 0
(
cd wingMotion2D_simpleFoam || exit 1
cleanCase
rm -rf 0
)
(
cd wingMotion2D_pimpleDyMFoam || exit 1
cleanCase
rm -rf 0
)
......@@ -5,26 +5,36 @@ cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/RunFunctions
# Make 3D mesh in slab of cells.
cd wingMotion_snappyHexMesh
runApplication blockMesh
runApplication snappyHexMesh -overwrite
(
cd wingMotion_snappyHexMesh || exit 1
runApplication blockMesh
runApplication snappyHexMesh -overwrite
)
# Make a 2D mesh by extruding a patch and solve to steady state.
cd ../wingMotion2D_simpleFoam
runApplication extrudeMesh
runApplication createPatch -overwrite
cp -r 0.org 0
runApplication simpleFoam
# Copy the mesh from the steady state case and map the results to a
# mesh motion case, then solve transient.
cd ../wingMotion2D_pimpleDyMFoam
cp -r ../wingMotion2D_simpleFoam/constant/polyMesh constant
cp -r 0.org 0
runApplication mapFields ../wingMotion2D_simpleFoam -sourceTime latestTime -consistent
mv 0/pointDisplacement.unmapped 0/pointDisplacement
runApplication decomposePar
runParallel `getApplication`
runApplication reconstructPar
(
cd wingMotion2D_simpleFoam || exit 1
runApplication extrudeMesh
runApplication createPatch -overwrite
restore0Dir
runApplication simpleFoam
)
# Copy mesh from the steady state case, map the results to a mesh motion case,
# then solve transient.
(
cd wingMotion2D_pimpleDyMFoam || exit 1
\rm -rf constant/polyMesh
\cp -r ../wingMotion2D_simpleFoam/constant/polyMesh constant
restore0Dir
runApplication mapFields ../wingMotion2D_simpleFoam -sourceTime latestTime -consistent
\mv 0/pointDisplacement.unmapped 0/pointDisplacement
runApplication decomposePar
runParallel $(getApplication)
runApplication reconstructPar
)
#------------------------------------------------------------------------------
......@@ -4,14 +4,14 @@
. $WM_PROJECT_DIR/bin/tools/RunFunctions
# Get application name
application=`getApplication`
application=$(getApplication)
runApplication blockMesh
# Create faceZones for baffles and fan
runApplication topoSet
cp -r 0.org 0
restore0Dir
# Create wall and cyclic baffles and the fields on them
runApplication createBaffles -overwrite
......
......@@ -5,7 +5,7 @@ cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/RunFunctions
# Get application directory
application=`getApplication`
application=$(getApplication)
runApplication blockMesh
......
......@@ -5,7 +5,7 @@ cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/RunFunctions
# Get application directory
application=`getApplication`
application=$(getApplication)
runApplication blockMesh
runApplication transformPoints -scale '(1.6666 1 1)'
......
......@@ -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 blockMesh
......
......@@ -31,7 +31,7 @@ then
cloneParallelCase motorBike motorBikeLES
# Do the LES case
cp lesFiles/Allrun motorBikeLES/
\cp lesFiles/Allrun motorBikeLES/
(cd motorBikeLES && foamRunTutorials)
fi
......
......@@ -4,12 +4,13 @@
. $WM_PROJECT_DIR/bin/tools/RunFunctions
# Set-up the LES case
cp ../lesFiles/fvS* ../lesFiles/controlDict system/
cp ../lesFiles/turbulenceProperties constant/
\cp ../lesFiles/fvS* ../lesFiles/controlDict system/
\cp ../lesFiles/turbulenceProperties constant/
ls -d processor* | xargs -I {} rm -rf ./{}/0 $1
ls -d processor* | xargs -I {} mv ./{}/500 ./{}/0 $1
ls -d processor* | xargs -I {} rm -rf ./{}/0/uniform $1
# $1 for special test cases?
\ls -d processor* | xargs -I {} \rm -rf ./{}/0 $1
\ls -d processor* | xargs -I {} \mv ./{}/500 ./{}/0 $1
\ls -d processor* | xargs -I {} \rm -rf ./{}/0/uniform $1
runParallel pisoFoam
......
......@@ -5,26 +5,27 @@ 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/
# Make dummy 0 directory
mkdir 0
runApplication blockMesh
# cp system/decomposeParDict.hierarchical system/decomposeParDict
# \cp system/decomposeParDict.hierarchical system/decomposeParDict
runApplication decomposePar -decomposeParDict system/decomposeParDict.hierarchical
# cp system/decomposeParDict.ptscotch system/decomposeParDict
# \cp system/decomposeParDict.ptscotch system/decomposeParDict
runParallel snappyHexMesh -decomposeParDict system/decomposeParDict.ptscotch -profiling -overwrite -parallel
find . -type f -iname "*level*" -exec rm {} \;
ls -d processor* | xargs -I {} cp -r 0.org ./{}/0 $1
#- set the initial fields
# $1 for special test cases?
\ls -d processor* | xargs -I {} \rm -rf ./{}/0 $1
\ls -d processor* | xargs -I {} \cp -r 0.org ./{}/0 $1
runParallel renumberMesh -overwrite
runParallel potentialFoam -initialiseUBCs
runParallel `getApplication`
runParallel $(getApplication)
#------------------------------------------------------------------------------
......@@ -7,5 +7,5 @@ m4 system/blockMeshDict.m4 > system/blockMeshDict
. $WM_PROJECT_DIR/bin/tools/RunFunctions
runApplication blockMesh
runApplication `getApplication`
runApplication $(getApplication)
......@@ -6,6 +6,6 @@ cd ${0%/*} || exit 1 # Run from this directory
./Allrun.pre
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