template<class T>
class gismo::gsExprEvaluator< T >
Generic evaluator of isogeometric expressions.
The expressions may be scalar ot vector-valued. Computed quatities can be global or element.wise.
Note the following will not return correct result (return value is a reference): gsInfo << "Eval:"<< ev.eval(a) + ev.eval(b) <<"\n"; Use the evaluator once at a time.
|
gsAsConstVector< T > | allValues () const |
| Returns a vector containing the last computed values per element.
|
|
gsAsConstMatrix< T > | allValues (index_t nR, index_t nC) const |
| Returns the last computed values per element, resized as a matrix.
|
|
void | calcRoot (const index_t p) |
| Calculates the p-th root of the lastly computed quantities (eg. integrals)
|
|
void | calcSqrt () |
| Calculates the square root of the lastly computed quantities (eg. integrals)
|
|
const std::vector< T > & | elementwise () const |
| Returns an std::vector containing the last computed values per element.
|
|
template<class E > |
void | eval (const expr::_expr< E > &expr, gsGridIterator< T, mode, d > &git, const index_t patchInd=0) |
|
template<class E > |
gsAsConstMatrix< T > | eval (const expr::_expr< E > &testExpr, const gsVector< T > &pt, const index_t patchInd=0) |
|
element | getElement () |
| Returns a handle to an isogeometric element.
|
|
geometryMap | getMap (const gsMultiPatch< T > &mp) |
| Registers mp as an isogeometric geometry map and return a handle to it.
|
|
geometryMap | getMap (const gsFunctionSet< T > &gm) |
| Registers g as an isogeometric geometry map and return a handle to it.
|
|
variable | getVariable (const gsFunctionSet< T > &func, index_t dim=1) |
| Registers func as a variable and returns a handle to it.
|
|
expr::gsComposition< T > | getVariable (const gsFunctionSet< T > &func, geometryMap G) |
| Registers func as a variable defined on G and returns a handle to it.
|
|
template<class E > |
T | integral (const expr::_expr< E > &expr) |
| Calculates the integral of the expression expr on the whole integration domain.
|
|
template<class E > |
T | integralBdr (const expr::_expr< E > &expr) |
|
template<class E > |
T | integralBdr (const expr::_expr< E > &expr, const bContainer &bdrlist) |
|
template<class E > |
T | integralBdrBc (const bcRefList &BCs, const expr::_expr< E > &expr) |
|
template<class E > |
T | integralElWise (const expr::_expr< E > &expr) |
| Calculates the integral of the expression expr on each element.
|
|
template<class E > |
T | integralInterface (const expr::_expr< E > &expr) |
|
template<class E > |
T | integralInterface (const expr::_expr< E > &expr, const intContainer &iFaces) |
|
template<class E > |
T | max (const expr::_expr< E > &expr) |
|
template<class E > |
T | maxElWise (const expr::_expr< E > &expr) |
|
template<class E > |
T | maxInterface (const expr::_expr< E > &expr) |
|
template<class E > |
T | maxInterface (const expr::_expr< E > &expr, const intContainer &iFaces) |
|
template<class E > |
T | min (const expr::_expr< E > &expr) |
|
template<class E > |
T | minElWise (const expr::_expr< E > &expr) |
|
template<class E > |
T | minInterface (const expr::_expr< E > &expr) |
|
template<class E > |
T | minInterface (const expr::_expr< E > &expr, const intContainer &iFaces) |
|
size_t | nValues () const |
| The number of lastly computed values.
|
|
void | setIntegrationElements (const gsMultiBasis< T > &mesh) |
| Sets the domain of integration. More...
|
|
template<class E > |
void | testEval (const expr::_expr< E > &expr, const gsVector< T > &pt, const index_t patchInd=0) |
|
T | value () const |
| Returns the last computed value.
|
|
template<class E > |
void | writeParaview (const expr::_expr< E > &expr, geometryMap G, std::string const &fn) |
| Creates a paraview file named fn containing valies of the. More...
|
|
template<class E > |
void | writeParaview (const expr::_expr< E > &expr, std::string const &fn) |
| Creates a paraview file named fn containing valies of the. More...
|
|