NLMech  0.1.0
fe::MassMatrix Class Reference

A class for mass matrix. More...

#include <massMatrix.h>

Collaboration diagram for fe::MassMatrix:
Collaboration graph

Public Member Functions

 MassMatrix (inp::MassMatrixDeck *deck)
 Constructor. More...
 
void print (int nt=0, int lvl=0) const
 Prints the information about the instance of the object. More...
 
std::string printStr (int nt=0, int lvl=0) const
 Returns the string containing information about the instance of the object. More...
 

Private Attributes

util::SymMatrixFij d_invM
 Inverse of the exact mass matrix. More...
 
std::vector< double > d_invMDiag
 Inverse of a diagonal mass matrix stored as a vector.
 
inp::MassMatrixDeckd_massMatrixDeck_p
 Mass matrix deck. More...
 

Detailed Description

A class for mass matrix.

In this class we compute and store the inverse of a mass matrix. We can either compute the exact mass matrix and its inverse (using Blaze library) or we can use row-sum approximation (lumping) to approximate the matrix as diagonal matrix.

Order of quadrature approximation in computation of elements of mass matrix can be specified in the input file, see inp::MassMatrixDeck.

Note
This class is needed only when the discretization is of weak_finite_element type. This class requires data fe::Mesh::d_gMap and fe::Mesh::d_gInvMap.

Constructor & Destructor Documentation

◆ MassMatrix()

fe::MassMatrix::MassMatrix ( inp::MassMatrixDeck deck)
explicit

Constructor.

Parameters
deckInput deck which contains user-specified information
Here is the call graph for this function:

Member Function Documentation

◆ print()

void fe::MassMatrix::print ( int  nt = 0,
int  lvl = 0 
) const
inline

Prints the information about the instance of the object.

Parameters
ntNumber of tabs to append before each line of string
lvlLevel of information sought (higher level means more information)
Here is the call graph for this function:

◆ printStr()

std::string fe::MassMatrix::printStr ( int  nt = 0,
int  lvl = 0 
) const

Returns the string containing information about the instance of the object.

Parameters
ntNumber of tabs to append before each line of string
lvlLevel of information sought (higher level means more information)
Returns
string String containing information about this object

Referenced by print().

Here is the call graph for this function:
Here is the caller graph for this function:

Field Documentation

◆ d_invM

util::SymMatrixFij fe::MassMatrix::d_invM
private

Inverse of the exact mass matrix.

We use Blaze matrix library with float data type.

◆ d_massMatrixDeck_p

inp::MassMatrixDeck* fe::MassMatrix::d_massMatrixDeck_p
private

Mass matrix deck.

Deck contains information such as order of quadrature approximation and type of approximation to be used for mass matrix.

Referenced by MassMatrix().


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