33 std::vector< std::pair<int, boxSide> > m_bndPart;
55 m_params(params), m_bndPart(bndPart)
92 for(
size_t i = 0; i < m_bndPart.size(); i++)
102 { m_velocityField = velocity; }
107 { m_pressureField = pressure; }
114 m_velocityField = velocity;
115 m_pressureField = pressure;
120 void setBndPart(
const std::vector< std::pair<int, boxSide> >& bndPart)
121 { m_bndPart = bndPart; }
125 {
return m_quantValue; }
147 using Base::m_mapData;
148 using Base::m_quantValue;
149 using Base::m_velocityField;
161 Base(params, bndPart)
189#ifndef GISMO_BUILD_LIB
190#include GISMO_HPP_HEADER(gsFlowBndEvaluators.hpp)
Struct which represents a certain side of a box.
Definition gsBoundary.h:85
A scalar of vector field defined on a m_parametric geometry.
Definition gsField.h:55
Flow rate evaluator.
Definition gsFlowBndEvaluators.h:138
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 initMembers()
Initialize the class members.
Definition gsFlowBndEvaluators.h:170
A base class for boundary evaluators.
Definition gsFlowBndEvaluators.h:28
void setVelocityField(const gsField< T > &velocity)
Set the velocity field for evaluation.
Definition gsFlowBndEvaluators.h:101
void evaluate()
Evaluate the quantity, i.e., perform the integration over the given boundary part.
Definition gsFlowBndEvaluators.h:88
virtual void evalOnElement(index_t patchID, boxSide side, const gsMatrix< T > &quNodes, const gsVector< T > &quWeights)
Evaluate the quantity in one element of the boundary part.
Definition gsFlowBndEvaluators.h:76
void evalOnPatchSide(index_t patchID, boxSide side)
Evaluate the quantity over one patch side.
Definition gsFlowBndEvaluators.hpp:20
void setPressureField(const gsField< T > &pressure)
Set the pressure field for evaluation.
Definition gsFlowBndEvaluators.h:106
void setSolutionFields(const gsField< T > &velocity, const gsField< T > &pressure)
Set the velocity and pressure fields for evaluation.
Definition gsFlowBndEvaluators.h:112
gsFlowBndEvaluator(const gsFlowSolverParams< T > ¶ms)
Constructor.
Definition gsFlowBndEvaluators.h:45
void initMembers()
Initialize the class members.
Definition gsFlowBndEvaluators.h:64
void setBndPart(const std::vector< std::pair< int, boxSide > > &bndPart)
Set the boundary part, over which the quantity will be integrated.
Definition gsFlowBndEvaluators.h:120
gsFlowBndEvaluator(const gsFlowSolverParams< T > ¶ms, const std::vector< std::pair< int, boxSide > > &bndPart)
Constructor.
Definition gsFlowBndEvaluators.h:54
T getValue()
Get the computed value.
Definition gsFlowBndEvaluators.h:124
A class that holds all parameters needed by the incompressible flow solver.
Definition gsFlowSolverParams.h:34
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
#define GISMO_NO_IMPLEMENTATION
Definition gsDebug.h:129
A class that holds all parameters needed by the incompressible flow solver.
The G+Smo namespace, containing all definitions for the library.
@ NEED_VALUE
Value of the object.
Definition gsForwardDeclarations.h:72
@ NEED_OUTER_NORMAL
Outward normal on the boundary.
Definition gsForwardDeclarations.h:86