22 gsVector<T> coeffMeasure = this->getCoeffGeoMapProduct(mapData);
29 const index_t nQuPoints = quWeights.rows();
31 for (
index_t k = 0; k < nQuPoints; k++)
33 const T weight = quWeights(k) * coeffMeasure(k);
35 transformGradients(mapData, k, testFunGrads, testFunPhysGrad);
37 for (
size_t i = 0; i != localMat.size(); ++i)
38 localMat[i].noalias() += weight * (shapeFunVals.col(k) * testFunPhysGrad.row(i)).transpose();
47 gsVector<T> coeffMeasure = this->getCoeffGeoMapProduct(mapData);
54 const index_t nQuPoints = quWeights.rows();
56 for (
index_t k = 0; k < nQuPoints; k++)
58 const T weight = quWeights(k) * coeffMeasure(k);
60 transformGradients(mapData, k, shapeFunGrads, shapeFunPhysGrad);
62 for (
size_t i = 0; i != localMat.size(); ++i)
63 localMat[i].noalias() += weight * (shapeFunPhysGrad.row(i) * testFunVals(k) );
72 this->computeCoeffSolU(mapData);
73 gsVector<T> coeffMeasure = this->getCoeffGeoMapProduct(mapData);
80 const index_t nQuPoints = quWeights.rows();
82 for (
index_t k = 0; k < nQuPoints; k++)
84 const T weight = quWeights(k) * coeffMeasure(k);
86 transformGradients(mapData, k, shapeFunGrads, shapeFunPhysGrad);
88 localMat.noalias() += weight * (testFunVals.col(k) * (this->m_solUVals.col(k).transpose() * shapeFunPhysGrad));
virtual void assemble(const gsMapData< T > &mapData, const gsVector< T > &quWeights, const std::vector< gsMatrix< T > > &testFunData, const std::vector< gsMatrix< T > > &shapeFunData, std::vector< gsMatrix< T > > &localMat)
Assemble the current local matrices.
Definition gsINSTerms.hpp:20
virtual void assemble(const gsMapData< T > &mapData, const gsVector< T > &quWeights, const std::vector< gsMatrix< T > > &testFunData, const std::vector< gsMatrix< T > > &shapeFunData, std::vector< gsMatrix< T > > &localMat)
Assemble the current local matrices.
Definition gsINSTerms.hpp:45
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 gsINSTerms.hpp:70
the gsMapData is a cache of pre-computed function (map) values.
Definition gsFuncData.h:349
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.