SG++-Doxygen-Documentation
sgpp::solver::ODESolver Class Referenceabstract

#include <ODESolver.hpp>

Inheritance diagram for sgpp::solver::ODESolver:
sgpp::solver::SGSolver sgpp::solver::AdamsBashforth sgpp::solver::CrankNicolson sgpp::solver::Euler sgpp::solver::StepsizeControl sgpp::solver::StepsizeControlEJ sgpp::solver::StepsizeControlH sgpp::solver::VarTimestep sgpp::solver::StepsizeControlBDF sgpp::solver::StepsizeControlMC

Public Member Functions

 ODESolver (size_t imax, double timestepSize)
 Std-Constructor. More...
 
virtual void solve (SLESolver &LinearSystemSolver, sgpp::solver::OperationParabolicPDESolverSystem &System, bool bIdentifyLastStep=false, bool verbose=false)=0
 Pure virtual Function that defines a solve method for an ODE solver. More...
 
virtual ~ODESolver ()
 Std-Destructor. More...
 
- Public Member Functions inherited from sgpp::solver::SGSolver
double getEpsilon ()
 gets the the epsilon, that is used in the SGSolver More...
 
size_t getNumberIterations ()
 function that returns the number of needed solve steps More...
 
double getResiduum ()
 function the returns the residuum (current or final), error of the solver More...
 
void setEpsilon (double eps)
 resets the epsilon, that is used in the SGSolver More...
 
void setMaxIterations (size_t nIterations)
 resets the number of maximum iterations More...
 
 SGSolver (size_t nMaximumIterations, double epsilon)
 Std-Constructor. More...
 
virtual ~SGSolver ()
 Std-Destructor. More...
 

Additional Inherited Members

- Protected Attributes inherited from sgpp::solver::SGSolver
double myEpsilon
 epsilon needed in the, e.g. final error in the iterative solver, or a timestep More...
 
size_t nIterations
 Number of Iterations needed for the solve. More...
 
size_t nMaxIterations
 Number of maximum iterations for cg. More...
 
double residuum
 residuum More...
 

Constructor & Destructor Documentation

◆ ODESolver()

sgpp::solver::ODESolver::ODESolver ( size_t  imax,
double  timestepSize 
)
inline

Std-Constructor.

Parameters
imaxnumber of maximum executed iterations
timestepSizethe size of one timestep

◆ ~ODESolver()

virtual sgpp::solver::ODESolver::~ODESolver ( )
inlinevirtual

Std-Destructor.

References solve().

Member Function Documentation

◆ solve()

virtual void sgpp::solver::ODESolver::solve ( SLESolver LinearSystemSolver,
sgpp::solver::OperationParabolicPDESolverSystem System,
bool  bIdentifyLastStep = false,
bool  verbose = false 
)
pure virtual

Pure virtual Function that defines a solve method for an ODE solver.

Parameters
LinearSystemSolverreference to an instance of a linear system solver that is used by this ODE solver
Systemreference to an sgpp::base::OperationMatrix Object that implements the matrix vector multiplication
bIdentifyLastStepset this to true to tell System the last step
verboseprints information during execution of the solver

Implemented in sgpp::solver::StepsizeControl, sgpp::solver::Euler, sgpp::solver::CrankNicolson, and sgpp::solver::AdamsBashforth.

Referenced by ~ODESolver().


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