MoCSI API Reference
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
ElementManager< T > Class Template Reference

Class that manages the building of the global capacitance and stiffness matrix and forcing vector from the element wise matrices. More...

#include <ElementManager.h>

Collaboration diagram for ElementManager< T >:
Collaboration graph

Public Member Functions

 ElementManager (int size, std::shared_ptr< MatrixFactory< T > > matrix_factory)
 Constructor for cases, where the cell list will be set later.
 
 ElementManager (int size, std::vector< std::unique_ptr< GenericElement< T > > > &all_cells, std::shared_ptr< MatrixFactory< T > > matrix_factory)
 
void assembleFemMatrices ()
 Calls all the element matrix creation function to assemble the global FEM matrices and vectors.
 
void setCells (std::vector< std::unique_ptr< GenericElement< T > > > &all_cells)
 Does the cell sorting for the cases where the ElementManager has been default constructed.
 

Public Attributes

std::shared_ptr< GenericMatrix< T > > m_capacitance_matrix {}
 
std::shared_ptr< GenericMatrix< T > > m_stiffness_matrix {}
 
std::valarray< Tm_forcing_vector {}
 

Detailed Description

template<typename T>
class ElementManager< T >

Class that manages the building of the global capacitance and stiffness matrix and forcing vector from the element wise matrices.

Constructor & Destructor Documentation

◆ ElementManager() [1/2]

template<typename T >
ElementManager< T >::ElementManager ( int  size,
std::shared_ptr< MatrixFactory< T > >  matrix_factory 
)

Constructor for cases, where the cell list will be set later.

◆ ElementManager() [2/2]

template<typename T >
ElementManager< T >::ElementManager ( int  size,
std::vector< std::unique_ptr< GenericElement< T > > > &  all_cells,
std::shared_ptr< MatrixFactory< T > >  matrix_factory 
)

Constructor that already sets the interior and boundary cell lists.

Parameters
all_cellsThe vector containing all created elements as std::unique_ptr.

Member Function Documentation

◆ assembleFemMatrices()

template<typename T >
void ElementManager< T >::assembleFemMatrices ( )

Calls all the element matrix creation function to assemble the global FEM matrices and vectors.

◆ setCells()

template<typename T >
void ElementManager< T >::setCells ( std::vector< std::unique_ptr< GenericElement< T > > > &  all_cells)

Does the cell sorting for the cases where the ElementManager has been default constructed.

Parameters
all_cellsThe vector containing all created elements as std::unique_ptr.

Member Data Documentation

◆ m_capacitance_matrix

template<typename T >
std::shared_ptr<GenericMatrix<T> > ElementManager< T >::m_capacitance_matrix {}

◆ m_forcing_vector

template<typename T >
std::valarray<T> ElementManager< T >::m_forcing_vector {}

◆ m_stiffness_matrix

template<typename T >
std::shared_ptr<GenericMatrix<T> > ElementManager< T >::m_stiffness_matrix {}

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