Files
OpenFOAM-12/tutorials/modules/shockFluid/biconic25-55Run35/sampleCone
Henry Weller fe5a991ade solvers::shockFluid: New solver module for density-based solution of compressible flow
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
2023-01-18 14:10:48 +00:00

54 lines
1022 B
Bash
Executable File

#!/bin/sh
cd "${0%/*}" || exit 1 # Run from this directory
#
# FUNCTIONS
#
usage()
{
while [ "$#" -ge 1 ]; do echo "$1"; shift; done
cat<<USAGE
Usage: ${0##*/} [OPTION]
options:
-l -latestTime option for sample
-h help
Runs a set of samples across the cone face and concatenates output files
USAGE
exit 1
}
#------------------------------------------------------------------------------
unset timeOpt
# parse options
while [ "$#" -gt 0 ]
do
case "$1" in
-h | -help)
usage
;;
-l | -latestTime)
timeOpt="-latestTime"
shift
;;
*)
usage "unknown option/argument: '$*'"
;;
esac
done
sampleDir=postProcessing/sample
ext="$(find $sampleDir -mindepth 2 | head -1 | xargs basename | cut -d_ -f2-)"
for d in $sampleDir/*
do
cat "${d}/cone25_${ext}" "${d}/cone55_${ext}" "${d}/base_${ext}"\
> "${d}/biconic_${ext}"
done
#------------------------------------------------------------------------------