SG++-Doxygen-Documentation
sgpp::pde::OperationEllipticPDESolverSystem Class Referenceabstract

Abstract definition of a System that is used to solve elliptic partial differential equations. More...

#include <OperationEllipticPDESolverSystem.hpp>

Inheritance diagram for sgpp::pde::OperationEllipticPDESolverSystem:
sgpp::base::OperationMatrix sgpp::pde::OperationEllipticPDESolverSystemDirichlet sgpp::pde::OperationEllipticPDESolverSystemFreeBoundaries sgpp::pde::PoissonEquationEllipticPDESolverSystemDirichlet

Public Member Functions

virtual sgpp::base::DataVectorgenerateRHS ()=0
 generates the right hand side of the system More...
 
size_t getNumGridPointsComplete ()
 Returns the number of grid points for the complete grid. More...
 
size_t getNumGridPointsInner ()
 Returns the number of grid points for the inner grid. More...
 
virtual void mult (sgpp::base::DataVector &alpha, sgpp::base::DataVector &result)=0
 Multiplicates a vector with the matrix \( L \). More...
 
 OperationEllipticPDESolverSystem (sgpp::base::Grid &SparseGrid, sgpp::base::DataVector &rhs)
 Constructor. More...
 
virtual ~OperationEllipticPDESolverSystem ()
 Destructor. More...
 
- Public Member Functions inherited from sgpp::base::OperationMatrix
 OperationMatrix ()
 Constructor. More...
 
virtual ~OperationMatrix ()
 Destructor. More...
 

Protected Attributes

sgpp::base::GridBoundGrid
 Pointer to the grid object. More...
 
size_t numGridpointsComplete
 Stores number of gridpoints, complete grid. More...
 
size_t numGridpointsInner
 Stores number of gridpoints, inner grid. More...
 
sgpp::base::DataVectorrhs
 the right hand side of the system More...
 

Detailed Description

Abstract definition of a System that is used to solve elliptic partial differential equations.

So an instance of this class has to pass to any SLE Solver used in SGpp.

\(L \vec{u} = rhs\)

L: space discretization (L-Operator) rhs: right hand side

Constructor & Destructor Documentation

◆ OperationEllipticPDESolverSystem()

sgpp::pde::OperationEllipticPDESolverSystem::OperationEllipticPDESolverSystem ( sgpp::base::Grid SparseGrid,
sgpp::base::DataVector rhs 
)

Constructor.

Parameters
SparseGridthe grid, for which the system should be solved
rhsthe right hand side of the corresponding system

◆ ~OperationEllipticPDESolverSystem()

sgpp::pde::OperationEllipticPDESolverSystem::~OperationEllipticPDESolverSystem ( )
virtual

Destructor.

Member Function Documentation

◆ generateRHS()

virtual sgpp::base::DataVector* sgpp::pde::OperationEllipticPDESolverSystem::generateRHS ( )
pure virtual

generates the right hand side of the system

Returns
returns the rhs

Implemented in sgpp::pde::OperationEllipticPDESolverSystemDirichlet, and sgpp::pde::OperationEllipticPDESolverSystemFreeBoundaries.

◆ getNumGridPointsComplete()

size_t sgpp::pde::OperationEllipticPDESolverSystem::getNumGridPointsComplete ( )

Returns the number of grid points for the complete grid.

Returns
the number of grid points for the complete grid

References numGridpointsComplete.

Referenced by sgpp::pde::PoissonEquationSolver::solvePDE().

◆ getNumGridPointsInner()

size_t sgpp::pde::OperationEllipticPDESolverSystem::getNumGridPointsInner ( )

Returns the number of grid points for the inner grid.

Returns
the number of grid points for the inner grid

References numGridpointsInner.

Referenced by sgpp::pde::PoissonEquationSolver::solvePDE().

◆ mult()

virtual void sgpp::pde::OperationEllipticPDESolverSystem::mult ( sgpp::base::DataVector alpha,
sgpp::base::DataVector result 
)
pure virtual

Multiplicates a vector with the matrix \( L \).

Parameters
alphasgpp::base::DataVector that contains the ansatzfunctions' coefficients
resultsgpp::base::DataVector into which the result of the space discretization operation is stored

Implements sgpp::base::OperationMatrix.

Implemented in sgpp::pde::OperationEllipticPDESolverSystemDirichlet, and sgpp::pde::OperationEllipticPDESolverSystemFreeBoundaries.

Member Data Documentation

◆ BoundGrid

◆ numGridpointsComplete

size_t sgpp::pde::OperationEllipticPDESolverSystem::numGridpointsComplete
protected

Stores number of gridpoints, complete grid.

Referenced by getNumGridPointsComplete().

◆ numGridpointsInner

size_t sgpp::pde::OperationEllipticPDESolverSystem::numGridpointsInner
protected

◆ rhs


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