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

Class that manages the assembly of the global linear system of equations to be passed to the solver. More...

#include <MatrixManager.h>

Collaboration diagram for MatrixManager< T >:
Collaboration graph

Public Member Functions

 MatrixManager (int size, SimulationClassBase< T > *sim, std::shared_ptr< MatrixFactory< T > > matrix_factory)
 Constructor for MatrixManager.
 
void assembleGlobalLse (std::shared_ptr< GenericMatrix< T > > capacitance_matrix, std::shared_ptr< GenericMatrix< T > > stiffness_matrix, std::valarray< T > &forcing_vector)
 Function which assembles the global linear system of equations from the global FEM matrices.
 

Public Attributes

std::shared_ptr< GenericMatrix< T > > lhs_matrix {}
 
std::valarray< Trhs_vector {}
 

Detailed Description

template<typename T>
class MatrixManager< T >

Class that manages the assembly of the global linear system of equations to be passed to the solver.

Constructor & Destructor Documentation

◆ MatrixManager()

template<typename T >
MatrixManager< T >::MatrixManager ( int  size,
SimulationClassBase< T > *  sim,
std::shared_ptr< MatrixFactory< T > >  matrix_factory 
)

Constructor for MatrixManager.

Member Function Documentation

◆ assembleGlobalLse()

template<typename T >
void MatrixManager< T >::assembleGlobalLse ( std::shared_ptr< GenericMatrix< T > >  capacitance_matrix,
std::shared_ptr< GenericMatrix< T > >  stiffness_matrix,
std::valarray< T > &  forcing_vector 
)

Function which assembles the global linear system of equations from the global FEM matrices.

Parameters
capacitance_matrixThe global capacitance matrix.
stiffness_matrixThe global stiffness matrix.
forcing_vectorThe global forcing vector.

Member Data Documentation

◆ lhs_matrix

template<typename T >
std::shared_ptr<GenericMatrix<T> > MatrixManager< T >::lhs_matrix {}

◆ rhs_vector

template<typename T >
std::valarray<T> MatrixManager< T >::rhs_vector {}

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