![]() |
NuTo
Numerics Tool
|
Assembles an internal NuTo::DofVector<double> from arbitrary contributions and provides access to it. More...
#include <Assembler.h>
Public Member Functions | |
| VectorAssembler (DofContainer< int > sizes={}) | |
| ctor More... | |
| void | Resize (DofContainer< int > sizes) |
| resizes the internal DofVector More... | |
| void | Add (const DofVector< double > &v, const DofVector< int > &numbering, std::vector< DofType > dofTypes={}) |
adds an arbitrary contribution v to the internal DofVector More... | |
| void | SetZero () |
| sets the entries of the internal DofVector to zero More... | |
| const DofVector< double > & | Get () const |
| getter More... | |
Assembles an internal NuTo::DofVector<double> from arbitrary contributions and provides access to it.
| NuTo::VectorAssembler::VectorAssembler | ( | DofContainer< int > | sizes = {} | ) |
ctor
| sizes | number of global dofs for each dof type |
| void NuTo::VectorAssembler::Add | ( | const DofVector< double > & | v, |
| const DofVector< int > & | numbering, | ||
| std::vector< DofType > | dofTypes = {} |
||
| ) |
adds an arbitrary contribution v to the internal DofVector
| v | contribution, e.g. a local element/cell vector |
| 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 |
| const NuTo::DofVector< double > & NuTo::VectorAssembler::Get | ( | ) | const |
getter
| void NuTo::VectorAssembler::Resize | ( | DofContainer< int > | sizes | ) |
resizes the internal DofVector
| sizes | number of global dofs for each dof type |
| void NuTo::VectorAssembler::SetZero | ( | ) |
sets the entries of the internal DofVector to zero
1.8.11