Performs an identical arithmetic operation on all components of a set of input nodalArrays and stores the ouput in a single user-specifed nodalArray using an expression evaluator. All input and output data structures must have the same number of components. The expression evaluator recognizes positions x, y, z and time t, along with the current timestep, dt, and the cell volume, dVolume. The expression evaluator checks the user supplied expression for validity and errors on finding undefined expressions.
The uniformCombiner accepts the following parameters, in addition to those required by Updater:
in
(string vector, required)out
(string vector, required)indVars_inName
(string vector, required)exprs
(string vector, required)preExprs
(string vector, optional)other
(strings, optional)The code block below demonstrates the addition of two input nodalArray and placing the result into one single output nodalArray:
<Updater computeQ2>
kind = uniformCombiner1d
onGrid = domain
in = [q1, k2]
out = [q2]
indVars_q1 = ["q1"]
indVars_k2 = ["k2"]
exprs = ["q1+dt*k2"]
</Updater>