![]() |
NLMech
0.1.0
|
A class for mass matrix. More...
#include <massMatrix.h>

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::MassMatrixDeck * | d_massMatrixDeck_p |
| Mass matrix deck. More... | |
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.
|
explicit |
Constructor.
| deck | Input deck which contains user-specified information |

|
inline |
Prints the information about the instance of the object.
| nt | Number of tabs to append before each line of string |
| lvl | Level of information sought (higher level means more information) |

| std::string fe::MassMatrix::printStr | ( | int | nt = 0, |
| int | lvl = 0 |
||
| ) | const |
Returns the string containing information about the instance of the object.
| nt | Number of tabs to append before each line of string |
| lvl | Level of information sought (higher level means more information) |
Referenced by print().


|
private |
Inverse of the exact mass matrix.
We use Blaze matrix library with float data type.
|
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().