26 for (index_t k = 0; k < npts; k++)
28 index_t coeffID = (m_coeff.size() == 1) ? 0 : k;
29 result(k) = m_coeff(coeffID) * mapData.measure(k);
39 gsVector<T> coeffMeasure = this->getCoeffGeoMapProduct(mapData);
44 const index_t nQuPoints = quWeights.rows();
46 for (
index_t k = 0; k < nQuPoints; k++)
48 const T weight = quWeights(k) * coeffMeasure(k);
49 localMat.noalias() += weight * (testFunVals.col(k) * shapeFunVals.col(k).transpose());
58 gsVector<T> coeffMeasure = this->getCoeffGeoMapProduct(mapData);
63 const index_t nQuPoints = quWeights.rows();
66 for (
index_t k = 0; k < nQuPoints; k++)
68 const T weight = quWeights(k) * coeffMeasure(k);
70 transformGradients(mapData, k, testFunGrads, testFunPhysGrad);
71 transformGradients(mapData, k, shapeFunGrads, shapeFunPhysGrad);
73 localMat.noalias() += weight * (testFunPhysGrad.transpose() * shapeFunPhysGrad);
82 m_pRhsFun->eval_into(mapData.values[0], m_rhsVals);
84 const index_t nQuPoints = quWeights.rows();
86 for (
index_t k = 0; k < nQuPoints; k++)
88 const T weight = quWeights(k) * mapData.measure(k);
90 localMat.noalias() += weight * (testFunData[0].col(k) * m_rhsVals.col(k).transpose());
virtual void assemble(const gsMapData< T > &mapData, const gsVector< T > &quWeights, const std::vector< gsMatrix< T > > &testFunData, const std::vector< gsMatrix< T > > &shapeFunData, gsMatrix< T > &localMat)
Assemble the current local matrix.
Definition gsFlowTerms.hpp:56
virtual void assemble(const gsMapData< T > &mapData, const gsVector< T > &quWeights, const std::vector< gsMatrix< T > > &testFunData, const std::vector< gsMatrix< T > > &shapeFunData, gsMatrix< T > &localMat)
Assemble the current local matrix.
Definition gsFlowTerms.hpp:37
virtual void assemble(const gsMapData< T > &mapData, const gsVector< T > &quWeights, const std::vector< gsMatrix< T > > &testFunData, const std::vector< gsMatrix< T > > &shapeFunData, gsMatrix< T > &localMat)
Assemble the current local matrix.
Definition gsFlowTerms.hpp:80
A class computing individual terms of the weak formulation appearing in incompressible flow problems.
Definition gsFlowTerms.h:22
the gsMapData is a cache of pre-computed function (map) values.
Definition gsFuncData.h:349
gsMatrix< T > points
input (parametric) points
Definition gsFuncData.h:372
A matrix with arbitrary coefficient type and fixed or dynamic size.
Definition gsMatrix.h:41
A vector with arbitrary coefficient type and fixed or dynamic size.
Definition gsVector.h:37
#define index_t
Definition gsConfig.h:32
The G+Smo namespace, containing all definitions for the library.