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

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...
 

Detailed Description

Assembles an internal NuTo::DofVector<double> from arbitrary contributions and provides access to it.

Constructor & Destructor Documentation

NuTo::VectorAssembler::VectorAssembler ( DofContainer< int >  sizes = {})

ctor

Parameters
sizesnumber of global dofs for each dof type

Member Function Documentation

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

Parameters
vcontribution, e.g. a local element/cell vector
numberingmapping from local (0...numbering.size()) to global (0...sizes)
dofTypesspecific 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

Returns
current state of the internal DofVector
void NuTo::VectorAssembler::Resize ( DofContainer< int >  sizes)

resizes the internal DofVector

Parameters
sizesnumber of global dofs for each dof type
void NuTo::VectorAssembler::SetZero ( )

sets the entries of the internal DofVector to zero


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