G+Smo  24.08.0
Geometry + Simulation Modules
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
gsVisitorMoments< T, paramCoef > Class Template Reference

Detailed Description

template<class T, bool paramCoef = false>
class gismo::gsVisitorMoments< T, paramCoef >

Visitor for the moment vector of a function.

Assembles the linear term

\[ (f,v)_\Omega, \]

where \(f\) is the right-hand-side function and \(v\) is the test function.

+ Collaboration diagram for gsVisitorMoments< T, paramCoef >:

Public Member Functions

void assemble (gsDomainIterator< T > &, gsVector< T > const &quWeights)
 Assemble on element.
 
void evaluate (const gsBasis< T > &basis, const gsGeometry< T > &geo, const gsMatrix< T > &quNodes)
 Evaluate on element.
 
 gsVisitorMoments (const gsFunction< T > &rhs)
 Constructor for gsVisitorMoments. More...
 
void initialize (const gsBasis< T > &basis, const index_t, const gsOptionList &options, gsQuadRule< T > &rule)
 Initialize.
 
void localToGlobal (const index_t patchIndex, const std::vector< gsMatrix< T > > &, gsSparseSystem< T > &system)
 Adds the contributions to the sparse system.
 
void localToGlobal (const gsDofMapper &mapper, const gsMatrix< T > &eliminatedDofs, const index_t patchIndex, gsSparseMatrix< T > &sysMatrix, gsMatrix< T > &rhsMatrix)
 Adds the contributions to the sparse system.
 

Constructor & Destructor Documentation

gsVisitorMoments ( const gsFunction< T > &  rhs)
inline

Constructor for gsVisitorMoments.

Parameters
rhsRight-hand-side function/source term