Computes a source term based on input variables from N nodalArrays in combination with geometric factors.
indVars_inName
(string vector, required)exprs
(string vector, required)preExprs
(string vector, optional)other
(strings, optional)in
(string vector, required)out
(string vector, required)The following block demonstrates exprHyperSrc used in combination with classicMusclUpdater (1d, 2d, 3d) and eulerEqn to compute \(\nabla\cdot\left[ \mathcal{F} \left( \mathbf{w} \right) \right] - \mathcal{S} \left( \mathbf{w}, x, y, z, t \right)\):
<Updater hyper>
kind = classicMuscl2d
onGrid = domain
timeIntegrationScheme = none
numericalFlux = hllcEulerFlux
limiter = [muscl]
variableForm = primitive
in = [q]
out = [qnew]
cfl = 0.3
equations = [euler]
sources = [gravity]
<Equation euler>
kind = eulerEqn
correctNans = false
gasGamma = GAMMA
</Equation>
<Source gravity>
kind = exprHyperSrc
inpRange = [0,1,2,3,4]
outRange = [0,1,2,3,4]
gravity = GRAVITY # m/s^2
indVars = ["rho", "rhou", "rhov", "rhow", "Er"]
exprs = ["0.0", "0.0", "-rho*gravity", "0.0", "-gravity*rhov"]
</Source>
</Updater>