The computePrimitiveState updater computes a vector of primitive variables, \(\mathbf{w} = \mathbf{w}(\mathbf{q})\), (e.g. density, velocity, pressure), given a vector of conserved variables \(\mathbf{q}\) (e.g. density, momentum, total energy) according to relationship specified by a Hyperbolic Equations.
The computePrimitiveState updater accepts the parameters below, in addition to those required by Updater.
in
(string vector, required)out
(string vector, required)Equation
(block, required)The following block demonstrates the twoTemperatureMhdDednerEqn used in combination with computePrimitiveState(1d, 2d, 3d) to compute \(\mathbf{w} \left( \mathbf{q} \right)\)
<Updater computePrimitiveState>
kind = computePrimitiveState1d
onGrid = domain
# input data-structures
in = [q,electricField,current,chargeState,resistivity]
# ouput data-structures
out = [w]
<Equation mhd>
kind = twoTemperatureMhdDednerEqn
gasGamma = GAS_GAMMA
electronGamma = $ELECTRON_GAMMA$
basementDensity = $BASEMENT_DENSITY$
basementPressure = $BASEMENT_PRESSURE$
externalEfield = "electricField"
currentVector = "current"
</Equation>
</Updater>