G+Smo  25.01.0
Geometry + Simulation Modules
 
Loading...
Searching...
No Matches
gsFlowBndEvaluator_flowRate< T > Class Template Reference

Detailed Description

template<class T>
class gismo::gsFlowBndEvaluator_flowRate< T >

Flow rate evaluator.

Template Parameters
Treal number type
+ Inheritance diagram for gsFlowBndEvaluator_flowRate< T >:
+ Collaboration diagram for gsFlowBndEvaluator_flowRate< T >:

Public Member Functions

void evaluate ()
 Evaluate the quantity, i.e., perform the integration over the given boundary part.
 
getValue ()
 Get the computed value.
 
void setBndPart (const std::vector< std::pair< int, boxSide > > &bndPart)
 Set the boundary part, over which the quantity will be integrated.
 
void setPressureField (const gsField< T > &pressure)
 Set the pressure field for evaluation.
 
void setSolutionFields (const gsField< T > &velocity, const gsField< T > &pressure)
 Set the velocity and pressure fields for evaluation.
 
void setVelocityField (const gsField< T > &velocity)
 Set the velocity field for evaluation.
 

Protected Member Functions

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.
 
void evalOnPatchSide (index_t patchID, boxSide side)
 Evaluate the quantity over one patch side.
 
void initMembers ()
 Initialize the class members.
 

Member Function Documentation

◆ evalOnElement()

template<class T >
void evalOnElement ( index_t  patchID,
boxSide  side,
const gsMatrix< T > &  quNodes,
const gsVector< T > &  quWeights 
)
protectedvirtual

Evaluate the flow rate in one element of the boundary part.

Parameters
[in]patchIDpatch index
[in]sidepatch side
[in]quNodesquadrature nodes for the given element
[in]quWeightsquadrature weights for the given element

Reimplemented from gsFlowBndEvaluator< T >.

◆ evalOnPatchSide()

template<class T >
void evalOnPatchSide ( index_t  patchID,
boxSide  side 
)
protectedinherited

Evaluate the quantity over one patch side.

Parameters
[in]patchIDpatch index
[in]sidepatch side

◆ setBndPart()

template<class T >
void setBndPart ( const std::vector< std::pair< int, boxSide > > &  bndPart)
inlineinherited

Set the boundary part, over which the quantity will be integrated.

Parameters
[in]bndPartcontainer of pairs (patch, side) defining the boundary part

◆ setPressureField()

template<class T >
void setPressureField ( const gsField< T > &  pressure)
inlineinherited

Set the pressure field for evaluation.

Parameters
[in]pressurethe new pressure field

◆ setSolutionFields()

template<class T >
void setSolutionFields ( const gsField< T > &  velocity,
const gsField< T > &  pressure 
)
inlineinherited

Set the velocity and pressure fields for evaluation.

Parameters
[in]velocitythe new velocity field
[in]pressurethe new pressure field

◆ setVelocityField()

template<class T >
void setVelocityField ( const gsField< T > &  velocity)
inlineinherited

Set the velocity field for evaluation.

Parameters
[in]velocitythe new velocity field