ENH: Tutorials - updated use of -log to use -s

This commit is contained in:
Andrew Heather 2016-04-26 09:31:44 +01:00
parent 51380edd52
commit a7dcf8fc61
6 changed files with 32 additions and 36 deletions

View File

@ -771,7 +771,7 @@ void Foam::meshToMesh::mapAndOpTgtToSrc
const CombineOp& cop
) const
{
srcField = Type(Tero);
srcField = Type(Zero);
AMI.interpolateToSource
(

View File

@ -8,14 +8,14 @@ rm -f log.* constant/polyMesh/*Level
runApplication blockMesh
runApplication -log log.createPatch.cyclic \
runApplication -s cyclic \
createPatch -dict system/createPatchDict.cyclic -overwrite
runApplication snappyHexMesh -overwrite
rm -rf 0
runApplication -log log.createPatch.ami \
runApplication -s ami \
createPatch -dict system/createPatchDict.ami -overwrite
runApplication transformPoints -scale '(0.01 0.01 0.01)'

View File

@ -9,17 +9,14 @@ cd ${0%/*} || exit 1 # Run from this directory
# Set application name
application=$(getApplication)
# Get number of processors to run on
nProcs=4 #$(getNumberOfProcessors)
# decompose
runApplication -log log.decomposePar.cabin decomposePar -region cabin
runApplication -log log.decomposePar.ice decomposePar -region ice
runApplication -log log.decomposePar.exterior decomposePar -region exterior
runApplication -s cabin decomposePar -region cabin
runApplication -s ice decomposePar -region ice
runApplication -s exterior decomposePar -region exterior
runParallel $application $nProcs
runParallel $application
runApplication -log log.reconstructPar.cabin reconstructPar -region cabin
runApplication -log log.reconstructPar.ice reconstructPar -region ice
runApplication -log log.reconstructPar.exterior reconstructPar -region exterior
runApplication -s cabin reconstructPar -region cabin
runApplication -s ice reconstructPar -region ice
runApplication -s exterior reconstructPar -region exterior

View File

@ -10,27 +10,27 @@ runApplication blockMesh
#runApplication decomposePar
# redistributePar to do decomposition
runParallel redistributePar 2 -decompose
runParallel redistributePar -decompose
# Bit of renumbering and running
runParallel -log log.renumberMesh-CuthillMcKee renumberMesh 2 -overwrite
runParallel -log log.icoFoam-CuthillMcKee icoFoam 2
runParallel -s CuthillMcKee renumberMesh -overwrite
runParallel -s CuthillMcKee icoFoam
# Bit of bad renumbering and running
runParallel -log log.renumberMesh-parallel renumberMesh 2 -overwrite -dict system/renumberMeshDict-random
runParallel -log log.icoFoam-random icoFoam 2
runParallel -s random renumberMesh -overwrite -dict system/renumberMeshDict-random
runParallel -s random icoFoam
# Pick up last result
cp system/controlDict-latestTime system/controlDict
# Redistribute to 5 processors
runParallel -log log.redistributePar-5 redistributePar 5 -decomposeParDict system/decomposeParDict-5 -cellDist
runParallel -s 5 redistributePar -np 5 -decomposeParDict system/decomposeParDict-5 -cellDist
# Run a bit more
runParallel -log log.icoFoam-5 icoFoam 5 -decomposeParDict system/decomposeParDict-5
runParallel -s 5 icoFoam -np 5 -decomposeParDict system/decomposeParDict-5
# Reconstruct mesh and results
runParallel -log log.redistributePar-1 redistributePar 5 -reconstruct -decomposeParDict system/decomposeParDict
runParallel -s 1 redistributePar -np 5 -reconstruct -decomposeParDict system/decomposeParDict
# ----------------------------------------------------------------- end-of-file
# -----------------------------------------------------------------------------

View File

@ -4,30 +4,30 @@ cd ${0%/*} || exit 1 # Run from this directory
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
application=`getApplication`
application=$(getApplication)
# create mesh
# Create mesh
runApplication blockMesh
# copy 0.org to 0
# Copy 0.org to 0
cp -r 0.org 0
# create sets
# Create sets
runApplication topoSet
# create baffles and fields
# Create baffles and fields
runApplication createBaffles -overwrite
runApplication $application
#- redistributePar to do decomposition
runParallel redistributePar 3 -decompose -cellDist
#- RedistributePar to do decomposition
runParallel redistributePar -decompose -cellDist
#- Continue running for a bit more
runParallel -log log.reactingParcelFoam-par $application 3
runParallel -s parallel $application
#- Reconstruct all times
runParallel -log log.redistributePar-1 redistributePar 3 -reconstruct
runParallel -s 1 redistributePar -reconstruct
# ----------------------------------------------------------------- end-of-file

View File

@ -6,16 +6,15 @@ cd ${0%/*} || exit 1 # Run from this directory
./Allrun.pre
#runApplication `getApplication`
runParallel `getApplication` 5
runParallel $(getApplication)
unset FOAM_SIGFPE
runParallel -log log.reconstruct redistributePar 5 -reconstruct
runParallel -s reconstruct redistributePar -reconstruct
# A bit more testing of decomposing
\cp system/controlDict_nextWrite system/controlDict
runParallel -log log.decompose redistributePar 5 -decompose -latestTime
runParallel -log log.interDyMFoam_restart `getApplication` 5
runParallel -s decompose redistributePar -decompose -latestTime
runParallel -s restart $(getApplication)
# ----------------------------------------------------------------- end-of-file