NuTo
Numerics Tool
Public Member Functions | List of all members
NuTo::SimpleAssembler Class Reference

#include <SimpleAssembler.h>

Public Member Functions

 SimpleAssembler ()=default
 
 SimpleAssembler (DofInfo dofInfo)
 
DofVector< double > BuildVector (const Group< CellInterface > &cells, std::vector< DofType > dofTypes, CellInterface::VectorFunction f) const
 
DofMatrixSparse< double > BuildMatrix (const Group< CellInterface > &cells, std::vector< DofType > dofTypes, CellInterface::MatrixFunction f) const
 
DofVector< double > BuildDiagonallyLumpedMatrix (const Group< CellInterface > &cells, std::vector< DofType > dofTypes, CellInterface::MatrixFunction f) const
 Assembles a diagonally lumped matrix from local matrices calculated by f. More...
 
void SetDofInfo (DofInfo dofInfo)
 

Constructor & Destructor Documentation

NuTo::SimpleAssembler::SimpleAssembler ( )
default
SimpleAssembler::SimpleAssembler ( DofInfo  dofInfo)

Member Function Documentation

DofVector< double > SimpleAssembler::BuildDiagonallyLumpedMatrix ( const Group< CellInterface > &  cells,
std::vector< DofType dofTypes,
CellInterface::MatrixFunction  f 
) const

Assembles a diagonally lumped matrix from local matrices calculated by f.

Parameters
cellsgroup of cells to be used for assembly
dofTypesvector of dofTypes
Returns
a dof vector that represents a collection of diagonal matrices
Remarks
HRZ lumping is used here, the assumptions made are:
  • shape functions sum to 1, only then the total mass for a cell can be calculated by summing over all entries of the local mass matrix
  • the total mass of a cell is the same for all components of the considered dof
DofMatrixSparse< double > SimpleAssembler::BuildMatrix ( const Group< CellInterface > &  cells,
std::vector< DofType dofTypes,
CellInterface::MatrixFunction  f 
) const
DofVector< double > SimpleAssembler::BuildVector ( const Group< CellInterface > &  cells,
std::vector< DofType dofTypes,
CellInterface::VectorFunction  f 
) const
void SimpleAssembler::SetDofInfo ( DofInfo  dofInfo)

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