ENH: Tutorials - updated use of -log to use -s
This commit is contained in:
parent
51380edd52
commit
a7dcf8fc61
@ -771,7 +771,7 @@ void Foam::meshToMesh::mapAndOpTgtToSrc
|
|||||||
const CombineOp& cop
|
const CombineOp& cop
|
||||||
) const
|
) const
|
||||||
{
|
{
|
||||||
srcField = Type(Tero);
|
srcField = Type(Zero);
|
||||||
|
|
||||||
AMI.interpolateToSource
|
AMI.interpolateToSource
|
||||||
(
|
(
|
||||||
|
@ -8,14 +8,14 @@ rm -f log.* constant/polyMesh/*Level
|
|||||||
|
|
||||||
runApplication blockMesh
|
runApplication blockMesh
|
||||||
|
|
||||||
runApplication -log log.createPatch.cyclic \
|
runApplication -s cyclic \
|
||||||
createPatch -dict system/createPatchDict.cyclic -overwrite
|
createPatch -dict system/createPatchDict.cyclic -overwrite
|
||||||
|
|
||||||
runApplication snappyHexMesh -overwrite
|
runApplication snappyHexMesh -overwrite
|
||||||
|
|
||||||
rm -rf 0
|
rm -rf 0
|
||||||
|
|
||||||
runApplication -log log.createPatch.ami \
|
runApplication -s ami \
|
||||||
createPatch -dict system/createPatchDict.ami -overwrite
|
createPatch -dict system/createPatchDict.ami -overwrite
|
||||||
|
|
||||||
runApplication transformPoints -scale '(0.01 0.01 0.01)'
|
runApplication transformPoints -scale '(0.01 0.01 0.01)'
|
||||||
|
@ -9,17 +9,14 @@ cd ${0%/*} || exit 1 # Run from this directory
|
|||||||
# Set application name
|
# Set application name
|
||||||
application=$(getApplication)
|
application=$(getApplication)
|
||||||
|
|
||||||
# Get number of processors to run on
|
|
||||||
nProcs=4 #$(getNumberOfProcessors)
|
|
||||||
|
|
||||||
# decompose
|
# decompose
|
||||||
runApplication -log log.decomposePar.cabin decomposePar -region cabin
|
runApplication -s cabin decomposePar -region cabin
|
||||||
runApplication -log log.decomposePar.ice decomposePar -region ice
|
runApplication -s ice decomposePar -region ice
|
||||||
runApplication -log log.decomposePar.exterior decomposePar -region exterior
|
runApplication -s exterior decomposePar -region exterior
|
||||||
|
|
||||||
runParallel $application $nProcs
|
runParallel $application
|
||||||
|
|
||||||
runApplication -log log.reconstructPar.cabin reconstructPar -region cabin
|
runApplication -s cabin reconstructPar -region cabin
|
||||||
runApplication -log log.reconstructPar.ice reconstructPar -region ice
|
runApplication -s ice reconstructPar -region ice
|
||||||
runApplication -log log.reconstructPar.exterior reconstructPar -region exterior
|
runApplication -s exterior reconstructPar -region exterior
|
||||||
|
|
||||||
|
@ -10,27 +10,27 @@ runApplication blockMesh
|
|||||||
#runApplication decomposePar
|
#runApplication decomposePar
|
||||||
|
|
||||||
# redistributePar to do decomposition
|
# redistributePar to do decomposition
|
||||||
runParallel redistributePar 2 -decompose
|
runParallel redistributePar -decompose
|
||||||
|
|
||||||
# Bit of renumbering and running
|
# Bit of renumbering and running
|
||||||
runParallel -log log.renumberMesh-CuthillMcKee renumberMesh 2 -overwrite
|
runParallel -s CuthillMcKee renumberMesh -overwrite
|
||||||
runParallel -log log.icoFoam-CuthillMcKee icoFoam 2
|
runParallel -s CuthillMcKee icoFoam
|
||||||
|
|
||||||
# Bit of bad renumbering and running
|
# Bit of bad renumbering and running
|
||||||
runParallel -log log.renumberMesh-parallel renumberMesh 2 -overwrite -dict system/renumberMeshDict-random
|
runParallel -s random renumberMesh -overwrite -dict system/renumberMeshDict-random
|
||||||
runParallel -log log.icoFoam-random icoFoam 2
|
runParallel -s random icoFoam
|
||||||
|
|
||||||
# Pick up last result
|
# Pick up last result
|
||||||
cp system/controlDict-latestTime system/controlDict
|
cp system/controlDict-latestTime system/controlDict
|
||||||
|
|
||||||
# Redistribute to 5 processors
|
# 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
|
# 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
|
# 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
|
# -----------------------------------------------------------------------------
|
||||||
|
@ -4,30 +4,30 @@ cd ${0%/*} || exit 1 # Run from this directory
|
|||||||
# Source tutorial run functions
|
# Source tutorial run functions
|
||||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||||
|
|
||||||
application=`getApplication`
|
application=$(getApplication)
|
||||||
|
|
||||||
# create mesh
|
# Create mesh
|
||||||
runApplication blockMesh
|
runApplication blockMesh
|
||||||
|
|
||||||
# copy 0.org to 0
|
# Copy 0.org to 0
|
||||||
cp -r 0.org 0
|
cp -r 0.org 0
|
||||||
|
|
||||||
# create sets
|
# Create sets
|
||||||
runApplication topoSet
|
runApplication topoSet
|
||||||
|
|
||||||
# create baffles and fields
|
# Create baffles and fields
|
||||||
runApplication createBaffles -overwrite
|
runApplication createBaffles -overwrite
|
||||||
|
|
||||||
runApplication $application
|
runApplication $application
|
||||||
|
|
||||||
#- redistributePar to do decomposition
|
#- RedistributePar to do decomposition
|
||||||
runParallel redistributePar 3 -decompose -cellDist
|
runParallel redistributePar -decompose -cellDist
|
||||||
|
|
||||||
#- Continue running for a bit more
|
#- Continue running for a bit more
|
||||||
runParallel -log log.reactingParcelFoam-par $application 3
|
runParallel -s parallel $application
|
||||||
|
|
||||||
#- Reconstruct all times
|
#- Reconstruct all times
|
||||||
runParallel -log log.redistributePar-1 redistributePar 3 -reconstruct
|
runParallel -s 1 redistributePar -reconstruct
|
||||||
|
|
||||||
|
|
||||||
# ----------------------------------------------------------------- end-of-file
|
# ----------------------------------------------------------------- end-of-file
|
||||||
|
@ -6,16 +6,15 @@ cd ${0%/*} || exit 1 # Run from this directory
|
|||||||
|
|
||||||
./Allrun.pre
|
./Allrun.pre
|
||||||
|
|
||||||
#runApplication `getApplication`
|
runParallel $(getApplication)
|
||||||
runParallel `getApplication` 5
|
|
||||||
|
|
||||||
unset FOAM_SIGFPE
|
unset FOAM_SIGFPE
|
||||||
runParallel -log log.reconstruct redistributePar 5 -reconstruct
|
runParallel -s reconstruct redistributePar -reconstruct
|
||||||
|
|
||||||
# A bit more testing of decomposing
|
# A bit more testing of decomposing
|
||||||
\cp system/controlDict_nextWrite system/controlDict
|
\cp system/controlDict_nextWrite system/controlDict
|
||||||
runParallel -log log.decompose redistributePar 5 -decompose -latestTime
|
runParallel -s decompose redistributePar -decompose -latestTime
|
||||||
runParallel -log log.interDyMFoam_restart `getApplication` 5
|
runParallel -s restart $(getApplication)
|
||||||
|
|
||||||
|
|
||||||
# ----------------------------------------------------------------- end-of-file
|
# ----------------------------------------------------------------- end-of-file
|
||||||
|
Loading…
Reference in New Issue
Block a user