Assembles an internal NuTo::DofMatrixSparse<double> from arbitrary contributions and provides access to it.
More...
#include <Assembler.h>
Assembles an internal NuTo::DofMatrixSparse<double> from arbitrary contributions and provides access to it.
NuTo::MatrixAssembler::MatrixAssembler |
( |
DofContainer< int > |
sizes = {} | ) |
|
ctor
- Parameters
-
sizes | number of global dofs for each dof type |
void NuTo::MatrixAssembler::Add |
( |
const DofMatrix< double > & |
m, |
|
|
const DofVector< int > & |
numbering, |
|
|
std::vector< DofType > |
dofTypes = {} |
|
) |
| |
adds an arbitrary contribution m
to the internal DofMatrixSparse
- Parameters
-
m | contribution, e.g. a local element/cell matrix |
numbering | mapping from local (0...numbering.size()) to global (0...sizes) |
dofTypes | specific dof types to assemble - an empty value will assemble all available dof types from the numbering |
void NuTo::MatrixAssembler::Finish |
( |
| ) |
|
transforms the internal triplet lists into an DofMatrixSparse and drops the triplet lists
- Returns
- current state of the internal DofMatrixSparse
void NuTo::MatrixAssembler::Resize |
( |
DofContainer< int > |
sizes | ) |
|
resizes the internal DofMatrixSparse
- Parameters
-
sizes | number of global dofs for each dof type |
void NuTo::MatrixAssembler::SetZero |
( |
| ) |
|
sets the entries of the internal DofMatrixSparse to zero but keeps the nonzeros
The documentation for this class was generated from the following files: