Files
OpenFOAM-12/tutorials/modules/incompressibleFluid/pitzDailySteadyMappedToRefined/Allrun-parallel
Will Bainbridge 2cf966de89 tutorials: Examples of mapFieldsPar usage
Two pitzDaily variants have been added; pitzDailySteadyMappedToPart, and
pitzDailySteadyMappedToRefined. These demonstrate usage of workflows
which involve mapping between cases with mapFieldsPar.

The pitzDailySteadyMappedToPart case demonstrates mapping onto a small
section of the mesh; in this case in the vicinity of the the corner of
the backstep. This mesh is not consistent with the source data, so
fields are required in the zero directory and cutting patches are used
to specify the properties at the inlets.

The pitzDailySteadyMappedToRefined case demonstrates mapping onto a
geometrically similar case with a different mesh density. This mesh is
consistent with the source, so no fields are needed and no cutting
patches are used. This case does, however, perturb the geometry of the
block mesh a bit, so that some of the refined case is not overlapping
the original case. This provides a test of the stabilisation
procedures within the mesh-to-mesh mapping functions.
2023-02-16 15:15:24 +00:00

36 lines
1.0 KiB
Bash
Executable File

#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
# Source tutorial run and clean functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
# Copy the source case
isTest "$@" && path=.. || path=$FOAM_TUTORIALS/modules/incompressibleFluid
cp -r $path/pitzDailySteady/constant .
cp -r $path/pitzDailySteady/system/* system
cp -r $path/pitzDailySteady .
# Run the source case in parallel
(
cd pitzDailySteady
isTest "$@" && cleanCase
cp ../system/decomposeParDict system
runApplication blockMesh -dict $FOAM_TUTORIALS/resources/blockMesh/pitzDaily
runApplication decomposePar
runParallel foamRun
)
# Mesh
./Allmesh
runApplication decomposePar
# Map from the source case into this case and run
runParallel mapFieldsPar pitzDailySteady -consistent -sourceTime latestTime
runParallel foamRun
# Reconstruct, including the values mapped to the zero directory
runApplication reconstructPar -withZero
#------------------------------------------------------------------------------