LifeV
MatrixElemental Class Reference

#include <MatrixElemental.hpp>

+ Collaboration diagram for MatrixElemental:

Public Types

typedef KNM< Realmatrix_type
 
typedef KNM_< Realmatrix_view
 

Public Member Functions

 ~MatrixElemental ()
 
 MatrixElemental (UInt nNode1, UInt nbr1, UInt nbc1)
 
 MatrixElemental (UInt nNode1, UInt nbr1, UInt nbc1, UInt nNode2, UInt nbr2, UInt nbc2)
 This is the constructor for the local matrix involving 2 finite elements. More...
 
 MatrixElemental (UInt nNode1, UInt nbr1, UInt nbc1, UInt nNode2, UInt nbr2, UInt nbc2, UInt nNode3, UInt nbr3, UInt nbc3)
 
matrix_typemat ()
 
UInt nBlockRow () const
 
UInt nBlockCol () const
 
matrix_view block (UInt i, UInt j)
 
void zero ()
 
void showMe (std::ostream &c=std::cout)
 
void operator*= (Real coef)
 

Private Attributes

matrix_type _mat
 
UInt _nBlockRow
 
UInt _nBlockCol
 
std::vector< UInt_nRow
 
std::vector< UInt_firstRow
 
std::vector< UInt_nCol
 
std::vector< UInt_firstCol
 

Detailed Description

Definition at line 44 of file MatrixElemental.hpp.

Member Typedef Documentation

◆ matrix_type

typedef KNM<Real> matrix_type

Definition at line 48 of file MatrixElemental.hpp.

◆ matrix_view

typedef KNM_<Real> matrix_view

Definition at line 49 of file MatrixElemental.hpp.

Constructor & Destructor Documentation

◆ ~MatrixElemental()

Definition at line 40 of file MatrixElemental.cpp.

◆ MatrixElemental() [1/3]

MatrixElemental ( UInt  nNode1,
UInt  nbr1,
UInt  nbc1 
)

Definition at line 44 of file MatrixElemental.cpp.

+ Here is the caller graph for this function:

◆ MatrixElemental() [2/3]

MatrixElemental ( UInt  nNode1,
UInt  nbr1,
UInt  nbc1,
UInt  nNode2,
UInt  nbr2,
UInt  nbc2 
)

This is the constructor for the local matrix involving 2 finite elements.

There are 6 arguments for this constructor. The arguements nbNode1 and nbNode2 are simply the number of basis function for each finite element.

The 4 others are used to describe the number of blocks on want in the matrix.

Warning: all the blocks do not have the same size!

Indeed, nbr1 describes the number of blocks that have a "height" of nbNode1, nbr2 the number of blocks that have a "height" of nbNode2, and the same with the columns for nbc1 and nbc2 (Think about it as a "local Stokes matrix": nbr1 and nbc1 are 3 (components for the velocity), nbr2 and nbc2 are 1 (pressure is scalar)).

Definition at line 73 of file MatrixElemental.cpp.

+ Here is the caller graph for this function:

◆ MatrixElemental() [3/3]

MatrixElemental ( UInt  nNode1,
UInt  nbr1,
UInt  nbc1,
UInt  nNode2,
UInt  nbr2,
UInt  nbc2,
UInt  nNode3,
UInt  nbr3,
UInt  nbc3 
)

Definition at line 116 of file MatrixElemental.cpp.

+ Here is the caller graph for this function:

Member Function Documentation

◆ mat()

matrix_type& mat ( )
inline

Definition at line 75 of file MatrixElemental.hpp.

◆ nBlockRow()

UInt nBlockRow ( ) const
inline

Definition at line 79 of file MatrixElemental.hpp.

◆ nBlockCol()

UInt nBlockCol ( ) const
inline

Definition at line 83 of file MatrixElemental.hpp.

◆ block()

matrix_view block ( UInt  i,
UInt  j 
)
inline

Definition at line 89 of file MatrixElemental.hpp.

◆ zero()

void zero ( )
inline

Definition at line 96 of file MatrixElemental.hpp.

+ Here is the caller graph for this function:

◆ showMe()

void showMe ( std::ostream &  c = std::cout)

Definition at line 172 of file MatrixElemental.cpp.

◆ operator*=()

void operator*= ( Real  coef)
inline

Definition at line 103 of file MatrixElemental.hpp.

Field Documentation

◆ _mat

matrix_type _mat
private

Definition at line 109 of file MatrixElemental.hpp.

◆ _nBlockRow

UInt _nBlockRow
private

Definition at line 111 of file MatrixElemental.hpp.

◆ _nBlockCol

UInt _nBlockCol
private

Definition at line 112 of file MatrixElemental.hpp.

◆ _nRow

std::vector<UInt> _nRow
private

Definition at line 113 of file MatrixElemental.hpp.

◆ _firstRow

std::vector<UInt> _firstRow
private

Definition at line 114 of file MatrixElemental.hpp.

◆ _nCol

std::vector<UInt> _nCol
private

Definition at line 115 of file MatrixElemental.hpp.

◆ _firstCol

std::vector<UInt> _firstCol
private

Definition at line 116 of file MatrixElemental.hpp.


The documentation for this class was generated from the following files: