FEATool  v1.8
Finite Element Analysis Toolbox
 All Files Functions Pages
evalexpr.m File Reference

Description

EVALEXPR Evaluates an expression in points.

[ VEVAL ] = EVALEXPR( S_EXPR, XP, PROB, SOLNUM, VEC_EVAL ) Evaluates the expression S_EXPR in the points specified in XP (in global x/y/z-coordinates). PROB is a valid finite element problem struct. The VEC_EVAL flag (default true) toggles vectorized evaluation for dof variables with P0-P2 fem shape functions.

Input       Value/[Size]           Description
-----------------------------------------------------------------------------------
s_expr      string                 String expression to evaluate
xp          [n_sdim,n_xp]          Coordinates of evaluation points
prob        struct                 Problem definition struct
solnum      scalar {n_sols}        Solution number/time to evaluate
vec_eval    logical {true}         Use vectorized evaluation for dep. variables
                                                                                  .
Output      Value/(Size)           Description
-----------------------------------------------------------------------------------
vEval       [n_xp,1]               Output vector of evaluated values