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

Detailed Description

template<class T>
class gismo::gsINSTerm_PvalUdiv< T >

A class for integrals of the form: pressure shape function value * velocity test function divergence.

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

Public Member Functions

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.
 
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.
 

Protected Member Functions

virtual void evalCoeff (const gsMapData< T > &mapData0)
 Evaluate the term coefficient.
 

Member Function Documentation

◆ assemble() [1/2]

template<class T >
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 
)
inlinevirtualinherited

Assemble the current local matrix.

Parameters
[in]mapDatageometry mapping information
[in]quWeightsquadrature weights
[in]testFunDatatest basis data (0 - values, 1 - derivatives, 2 - 2nd derivatives)
[in]shapeFunDatashape basis data (0 - values, 1 - derivatives, 2 - 2nd derivatives)
[out]localMatresulting local matrix

Reimplemented in gsFlowTerm_ValVal< T >, gsFlowTerm_GradGrad< T >, gsFlowTerm_rhs< T >, and gsINSTerm_UsolGradVal< T >.

◆ assemble() [2/2]

template<class T >
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 
)
virtual

Assemble the current local matrices.

Parameters
[in]mapDatageometry mapping information
[in]quWeightsquadrature weights
[in]testFunDatatest basis data (0 - values, 1 - derivatives, 2 - 2nd derivatives)
[in]shapeFunDatashape basis data (0 - values, 1 - derivatives, 2 - 2nd derivatives)
[out]localMatvector of resulting local matrices (e.g. one for each velocity component)

Reimplemented from gsFlowTerm< T >.

◆ evalCoeff()

template<class T >
virtual void evalCoeff ( const gsMapData< T > &  mapData)
inlineprotectedvirtual

Evaluate the term coefficient.

The result is saved into m_coeff. If the coefficient is constant, m_coeff is a vector of size 1. If it is space-dependent, the size of m_coeff is equal to the number of evaluation points.

Parameters
[in]mapDatageometry map information (including the evaluation points)

Reimplemented from gsFlowTerm< T >.