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:

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

## ◆ OperationEllipticPDESolverSystem()

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

Constructor.

Parameters
 SparseGrid the grid, for which the system should be solved rhs the right hand side of the corresponding system

## ◆ ~OperationEllipticPDESolverSystem()

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

Destructor.

## ◆ generateRHS()

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

generates the right hand side of the system

Returns
returns the rhs

## ◆ 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
 alpha sgpp::base::DataVector that contains the ansatzfunctions' coefficients result sgpp::base::DataVector into which the result of the space discretization operation is stored

Implements sgpp::base::OperationMatrix.

## ◆ BoundGrid

 sgpp::base::Grid* sgpp::pde::OperationEllipticPDESolverSystem::BoundGrid
protected

## ◆ 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

Stores number of gridpoints, inner grid.

## ◆ rhs

 sgpp::base::DataVector* sgpp::pde::OperationEllipticPDESolverSystem::rhs
protected

the right hand side of the system

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