18 #include <gsAssembler/gsVisitorMass.h>
69 const index_t numActive = actives.rows();
78 localMat.setZero(numActive, numActive);
85 for (
index_t k = 0; k < quWeights.rows(); ++k)
88 const T weight = quWeights[k] * md.measure(k);
91 transformGradients(md, k, basisData, basisPhGrads);
93 localMat.noalias() += weight * ( basisPhGrads.transpose() * basisPhGrads );
104 using Base:: basisData;
108 using Base::localMat;
Abstract base class representing a geometry map.
Definition: gsGeometry.h:92
Class representing a reference quadrature rule.
Definition: gsQuadRule.h:28
The visitor computes element grad-grad integrals.
Definition: gsVisitorGradGrad.h:33
virtual void computeMap(gsMapData< T > &InOut) const
Computes map function data.
Definition: gsFunction.hpp:822
Abstract class representing a PDE (partial differential equation).
Definition: gsPde.h:43
#define index_t
Definition: gsConfig.h:32
The visitor computes element mass integrals.
Definition: gsVisitorMass.h:29
gsVisitorGradGrad(const gsPde< T > &pde)
Definition: gsVisitorGradGrad.h:43
static gsQuadRule< T > get(const gsBasis< T > &basis, const gsOptionList &options, short_t fixDir=-1)
Constructs a quadrature rule based on input options.
Definition: gsQuadrature.h:48
Class which enables iteration over all elements of a parameter domain.
Definition: gsDomainIterator.h:67
void evaluate(const gsBasis< T > &basis, const gsGeometry< T > &geo, gsMatrix< T > &quNodes)
Evaluate on element.
Definition: gsVisitorGradGrad.h:60
void initialize(const gsBasis< T > &basis, const index_t, const gsOptionList &options, gsQuadRule< T > &rule)
Initialize.
Definition: gsVisitorGradGrad.h:47
The density of the measure pull back.
Definition: gsForwardDeclarations.h:76
#define GISMO_UNUSED(x)
Definition: gsDebug.h:112
Gradient transformation matrix.
Definition: gsForwardDeclarations.h:77
Class which holds a list of parameters/options, and provides easy access to them. ...
Definition: gsOptionList.h:32
virtual void deriv_into(const gsMatrix< T > &u, gsMatrix< T > &result) const
Evaluates the first partial derivatives of the nonzero basis function.
Definition: gsBasis.hpp:451
void assemble(gsDomainIterator< T > &, gsVector< T > const &quWeights)
Assemble on element.
Definition: gsVisitorGradGrad.h:82
A basis represents a family of scalar basis functions defined over a common parameter domain...
Definition: gsBasis.h:78
virtual void active_into(const gsMatrix< T > &u, gsMatrix< index_t > &result) const
Returns the indices of active basis functions at points u, as a list of indices, in result...
Definition: gsBasis.hpp:293