Computes the maximum value (pressure or energy for example) over the domain. The value is stored in a dynVector.
in
(string vector)out
(string vector)indVars_name
(string vector)preExprs
(string vector)exprs
(string vector)other
(variable definition)In addition, an arbitrary number of constants can be defined that can then be used in evaluating expression in both preExprs and exprs
Also, the updater has predefined variables including x,y,z representing the spatial location of the cell and t the time.
<Updater computeMaxP>
kind = maxCombinedFields2d
onGrid = domain
in = [qnew]
out = [maxP]
mi = MI
mu0 = MU0
gamma = GAMMA
k=KB
indVars_qnew = ["rho","mx","my","mz","en","bx","by","bz","phi"]
exprs = ["(gamma-1)*(en-(0.5/mu0)*(bx*bx+by*by+bz*bz)-0.5*(mx*mx+my*my+mz*mz)/rho)"]
</Updater>