22 const gsBasis<T>* basis = &m_params.getBases().at(m_unkID).basis(patchID);
23 short_t dim = m_params.getPde().domain().targetDim();
24 m_mapData.patchId = patchID;
27 const int dir = side.direction();
28 for (
short_t i = 0; i < dim; ++i)
29 numQuadNodes[i] = basis->degree(i) + 1;
30 numQuadNodes[dir] = 1;
37 typename gsBasis<T>::domainIter domIt = basis->makeDomainIterator(side);
38 for (; domIt->good(); domIt->next())
40 QuRule.
mapTo(domIt->lowerCorner(), domIt->upperCorner(), quNodes, quWeights);
42 m_mapData.points = quNodes;
43 m_mapData.side = side;
44 m_params.getPde().patches().patch(patchID).computeMap(m_mapData);
46 this->evalOnElement(patchID, side, quNodes, quWeights);
57 gsMatrix<T> solUVals = m_velocityField.value(quNodes, patchID);
59 for (
index_t k = 0; k < quWeights.rows(); ++k)
64 m_quantValue += quWeights[k] * normal.dot(solUVals.col(k));
Struct which represents a certain side of a box.
Definition gsBoundary.h:85
A basis represents a family of scalar basis functions defined over a common parameter domain.
Definition gsBasis.h:79
virtual void evalOnElement(index_t patchID, boxSide side, const gsMatrix< T > &quNodes, const gsVector< T > &quWeights)
Evaluate the flow rate in one element of the boundary part.
Definition gsFlowBndEvaluators.hpp:55
void evalOnPatchSide(index_t patchID, boxSide side)
Evaluate the quantity over one patch side.
Definition gsFlowBndEvaluators.hpp:20
Class that represents the (tensor) Gauss-Legendre quadrature rule.
Definition gsGaussRule.h:28
A matrix with arbitrary coefficient type and fixed or dynamic size.
Definition gsMatrix.h:41
virtual void mapTo(const gsVector< T > &lower, const gsVector< T > &upper, gsMatrix< T > &nodes, gsVector< T > &weights) const
Maps quadrature rule (i.e., points and weights) from the reference domain to an element.
Definition gsQuadRule.h:177
A vector with arbitrary coefficient type and fixed or dynamic size.
Definition gsVector.h:37
#define short_t
Definition gsConfig.h:35
#define index_t
Definition gsConfig.h:32
The G+Smo namespace, containing all definitions for the library.