Updates a nodalArray based on algebraic expressions of the input variables.
in
out
indVars
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 combiner has predefined variables including x,y,z representing the spatial location of the cell, t and dt, representing time and time step and dVolume representing the volume of a cell.
<Updater pressCalc>
kind = funcUpdater2d
onGrid = domain
in = [qnew]
out = [pressure]
indVars = ["rho", "rhou", "rhov", "rhow", "Er"]
gamma = GAMMA
preExprs = ["pr = (Er - 0.5*(rhou^2+rhov^2+rhow^2)/rho)*(gamma-1)"]
exprs = ["pr"]
</Updater>