executed with foamRun for single region simulations of foamMultiRun for
multi-region simulations. Replaces rhoCentralFoam and all the corresponding
tutorials have been updated and moved to tutorials/modules/shockFluid.
Unlike rhoCentralFoam shockFluid supports mesh refinement/unrefinement, topology
change, run-time mesh-to-mesh mapping, load-balancing in addition to general
mesh-motion.
The tutorials/modules/shockFluid/movingCone case has been updated to demonstrate
run-time mesh-to-mesh mapping mesh topology change based on the
tutorials/modules/incompressibleFluid/movingCone. shockFluid s
Description
Solver module for density-based solution of compressible flow
Based on central-upwind schemes of Kurganov and Tadmor with support for
mesh-motion and topology change.
Reference:
\verbatim
Greenshields, C. J., Weller, H. G., Gasparini, L.,
& Reese, J. M. (2010).
Implementation of semi‐discrete, non‐staggered central schemes
in a colocated, polyhedral, finite volume framework,
for high‐speed viscous flows.
International journal for numerical methods in fluids, 63(1), 1-21.
\endverbatim
SourceFiles
shockFluid.C
See also
Foam::solvers::fluidSolver
Foam::solvers::incompressibleFluid
44 lines
1.1 KiB
Bash
Executable File
44 lines
1.1 KiB
Bash
Executable File
#!/bin/sh
|
|
cd ${0%/*} || exit 1 # Run from this directory
|
|
|
|
# Source tutorial run functions
|
|
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
|
|
|
mapTimes="1e-05 2e-05"
|
|
|
|
# Iterate the string variable using for loop
|
|
for mapTime in $mapTimes; do
|
|
|
|
runApplication -a blockMesh -dict blockMeshDict_$mapTime
|
|
runApplication -a decomposePar -force -noFields -dict decomposeParDict_$mapTime
|
|
|
|
rm -rf constant/meshToMesh_$mapTime
|
|
mkdir constant/meshToMesh_$mapTime
|
|
|
|
for procI in processor*
|
|
do
|
|
mv $procI/constant/polyMesh constant/meshToMesh_$mapTime/$procI
|
|
done
|
|
|
|
mv constant/polyMesh constant/meshToMesh_$mapTime
|
|
|
|
done
|
|
|
|
runApplication -a blockMesh -dict blockMeshDict
|
|
runApplication -a decomposePar -force
|
|
|
|
for mapTime in $mapTimes; do
|
|
|
|
for procI in processor*
|
|
do
|
|
mkdir $procI/constant/meshToMesh_$mapTime
|
|
mv constant/meshToMesh_$mapTime/$procI $procI/constant/meshToMesh_$mapTime/polyMesh
|
|
done
|
|
|
|
done
|
|
|
|
runParallel $(getApplication)
|
|
runApplication reconstructPar
|
|
|
|
#------------------------------------------------------------------------------
|