Point Evaluators

Point evaluators allow to evaluate the Solution at arbitrary points.

GradientRobustMultiPhysics.PointEvaluatorType
struct PointEvaluator{T<:Real, Tv<:Real, Ti<:Integer, FEType<:AbstractFiniteElement, FEOP<:??, AT<:AssemblyType, ACT<:AbstractAction}

structure that allows to evaluate a FEVectorBlock at arbitrary points

source
GradientRobustMultiPhysics.PointEvaluatorMethod
function PointEvaluator(FEB::FEVectorBlock, FEOP::AbstractFunctionOperator, action::AbstractAction = NoAction(); AT = ON_CELLS)

constructor for PointEvaluator that evaluate the given FEVectorBlock with the specified operator (possibly postprocessed by an action) at arbitrary points inside entities of the given assembly type

source
GradientRobustMultiPhysics.evaluate!Method
function evaluate!(
    result,                     # target for result
    PE::PointEvaluator,         
    xref,                       # local coordinates inside item
    item                        # item number
    ) where  {T, Tv, Ti, FEType, FEOP, AT, ACT}

Evaluates the PointEvaluator at the point with the given local coordinates insides the item with the specified item number. (To get the local coordinates, currently a CellFinder has to be maintained manually, this might change in future.)

source
GradientRobustMultiPhysics.evaluateMethod
function evaluate(PE::PointEvaluator)

Returns the function (result,xref,cell) –> evaluate!(result,PE,xref,cell)

(e.g. to be used as a callback function in vectorplot!)

source

Noteworthy Examples

Example 224 uses PointEvaluator to evaluate the pressure difference in a flow around an obstacle and to offer a callback function for a quiver plot.