lagrangian: Support meshToMesh mapping
Lagrangian is now compatible with the meshToMesh topology changer. If a cloud is being simulated and this topology changer is active, then the cloud data will be automatically mapped between the specified sequence of meshes in the same way as the finite volume data. This works both for serial and parallel simulations. In addition, mapFieldsPar now also supports mapping of Lagrangian data when run in parallel.
This commit is contained in:
@ -4,11 +4,14 @@ 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
|
||||
cleanCase
|
||||
)
|
||||
|
||||
cd ../hopperEmptying
|
||||
cleanCase
|
||||
rm -rf 0
|
||||
(
|
||||
cd hopperEmptying || exit 1
|
||||
cleanCase
|
||||
)
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -4,20 +4,21 @@ 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
|
||||
runApplication blockMesh
|
||||
runApplication decomposePar
|
||||
runParallel $(getApplication)
|
||||
runApplication reconstructPar
|
||||
)
|
||||
|
||||
cd hopperEmptying
|
||||
rm -rf 0
|
||||
cp -R 0.orig 0
|
||||
runApplication blockMesh
|
||||
runApplication mapFields ../hopperInitialState -sourceTime latestTime
|
||||
runApplication decomposePar
|
||||
runParallel $(getApplication)
|
||||
runApplication reconstructPar
|
||||
(
|
||||
cd hopperEmptying || exit 1
|
||||
runApplication blockMesh
|
||||
runApplication decomposePar
|
||||
runParallel mapFieldsPar ../hopperInitialState -sourceTime latestTime
|
||||
runParallel $(getApplication)
|
||||
runApplication reconstructPar
|
||||
)
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user