#include <odesolv.h>
Inheritance diagram for ODE_SOLVER:

Public Methods | |
| virtual void | IntegrateTo ( double tEnd, bool Continue = false ) = 0 |
| Integrates an IVP problem. More... | |
| void | Integrate ( bool Continue = false ) |
| Integrates an ODE_NUMERIC problem. More... | |
| void | SetDataRepr ( const PtrDataRepr Data ) |
| Sets a data representation object. More... | |
| void | SetStepControl ( const PtrStepCtrl Step ) |
| Sets a stepsize control object. More... | |
| const PtrStepCtrl | GetStepCtrl () const |
| Returns a pointer to the stepsize control object. | |
| void | VerboseOutput ( bool b ) |
| Indicates if verbose output is desired. More... | |
| bool | VerboseOutput () const |
| Is verbose output desired. More... | |
| void | PrintData ( ostream & os = cout ) |
| Prints data. More... | |
| void | GraphOutput ( bool b ) |
| Indicates if plots will be generated. More... | |
| bool | GraphOutput () const |
| Is graph output desired. More... | |
| void | ContinueOutput ( bool b ) |
| Indicates if the plots are to be extended. More... | |
| bool | ContinueOutput () const |
| Is graph output continued. More... | |
| void | DisplayStepSize ( const char * file_name = 0 ) const |
| Plots the stepsize versus time. More... | |
| void | DisplayOrder ( const char *file_name = 0 ) const |
| Plots the order versus time. More... | |
| bool | FirstStep () const |
| Is the first step. More... | |
| bool | AcceptedStep () const |
| Is a step accepted. More... | |
| virtual | ~ODE_SOLVER () |
| Destructor. | |
Protected Methods | |
| ODE_SOLVER ( const PtrODENumeric ODE, const PtrDataRepr Data, const PtrStepCtrl Step, const PtrSolverFlags Flags = new SOLVER_FLAGS, const PtrSolverStats Stats = new SOLVER_STATS ) | |
| Constructor. More... | |
| virtual void | InitSolver () = 0 |
| Initializes a solver. | |
| void | SetErrors ( double t, const INTERVAL_VECTOR & Y ) |
| Sets errors. More... | |
Protected Attributes | |
| PtrODENumeric | ODE |
| Pointer to an object representing the numerical problem. | |
| PtrDataRepr | DataRepr |
| Pointer to an object that contains a data representation object. | |
| PtrStepCtrl | StepControl |
| Pointer to an object that implements stepsize control. | |
| PtrSolverFlags | SolverFlags |
| Pointer to an object that updates control flags. | |
| PtrSolverStats | SolverStats |
| Pointer to an object that updates statistics. | |
Friends | |
| template<classT> T* | GetDataRepr ( const PtrODESolver Solver ) |
| Return a pointer to a DATA_REPR object. More... | |
|
|
Destructor.
|
|
|
Constructor.
|
|
|
Integrates an IVP problem. This function performs the integration of the problem that is set in the constructor.
Reimplemented in VODE_SOLVER. |
|
|
Integrates an ODE_NUMERIC problem. This function executes IntegrateTo( ODE->GetTEnd(),
Continue )
|
|
|
Sets a data representation object.
|
|
|
Sets a stepsize control object.
|
|
|
Returns a pointer to the stepsize control object.
|
|
|
Indicates if verbose output is desired.
|
|
|
Is verbose output desired.
This function returns the value that is set by the most recent call to |
|
|
Prints data. This function outputs data in the following format (the numbers are from integrating a test problem)
*** Integrated from [0,0] to [10,10]
*** Global Error 1.20e-07
*** User Time 2.20e-01(sec)
*** Accepted Steps 54
*** Rejected Steps 0
If
|
|
|
Indicates if plots will be generated.
|
|
|
Is graph output desired.
This function returns the value that is set by the most recent call to |
|
|
Indicates if the plots are to be extended.
|
|
|
Is graph output continued.
This function returns the value that is set by the most recent call to |
|
|
Plots the stepsize versus time.
This function should be called after an integration has been completed, and
If a
|
|
|
Plots the order versus time.
This function should be called after an integration has been completed, and
If a
|
|
|
Is the first step.
|
|
|
Is a step accepted.
|
|
|
Initializes a solver.
Reimplemented in VODE_SOLVER. |
|
|
Sets errors. This function sets relative and absolute error during an integration.
|
|
||||
|
Return a pointer to a DATA_REPR object.
Given a pointer to an ODE_SOLVER object, this function casts the pointer to its data representation object to a pointer of type
|
|
|
Pointer to an object representing the numerical problem.
|
|
|
Pointer to an object that contains a data representation object.
|
|
|
Pointer to an object that implements stepsize control.
|
|
|
Pointer to an object that updates control flags.
|
|
|
Pointer to an object that updates statistics.
|
1.2.0 written by Dimitri van Heesch,
© 1997-2000