Performs operations on a set of input nodalArray to produce a dynVector by integrating along a specified trajectory. Uses an expression updater to evaluate the expression. The expression evaluator recognizes positions “x”,”y”,”z” and time “t” and these can be used to evaluate functions of time and space.
in
(string vector)out
(string)layout
(string)startPosition
endPosition
numberOfSamples
indVars_inName
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 computeLineIntegral>
kind = lineIntegral2d
onGrid = domain
startPosition = [0.0, 0.0]
endPosition = [0.5, 0.5]
numberOfSamples = 100
layout = [cellBin]
in = [potential]
indVars_potential = ["phi"]
exprs = ["phi"]
out = [lineIntegralPhi]
</Updater>