Solution of ODEs with relaxation method.
More...
#include <ODERelax.h>
List of all members.
Detailed Description
Solution of ODEs with relaxation method.
- Version:
- 0.5, 06/22/2008
- Since:
- GridRipper 0.4, 09/17/2006
- Author:
- Peter Csizmadia
Constructor & Destructor Documentation
Constructs the ODE solver.
- Parameters:
-
Constructs the ODE solver.
- Parameters:
-
| props | properties |
| maxi | grid size (maximum grid point index) |
Constructs the ODE solver.
- Parameters:
-
| ode | the ODE |
| data | the field values |
| order | discretization order (2 or 4) |
Member Function Documentation
string gridripper::odesolver::relax::ODERelax::getDataFormat |
( |
|
) |
[inline] |
Gets the output data format.
- Returns:
- the format string
int gridripper::odesolver::relax::ODERelax::getMaxI |
( |
|
) |
[inline] |
Gets the grid size.
- Returns:
- the number of points minus 1.
int gridripper::odesolver::relax::ODERelax::getNumIterations |
( |
|
) |
[inline] |
Gets the number of iterations.
- Returns:
- the number of iterations
ODE& gridripper::odesolver::relax::ODERelax::getODE |
( |
|
) |
const [inline] |
double gridripper::odesolver::relax::ODERelax::getRelativeError |
( |
|
) |
[inline] |
Gets the relative error of the solution after the final iteration.
- Returns:
- the relative error
Performs the next iteration.
Called by solve.
- Returns:
- the relative error
void gridripper::odesolver::relax::ODERelax::setNumIterations |
( |
int |
n |
) |
[inline] |
Sets the number of iterations.
- Parameters:
-
| n | number of iterations or -1 to stop only when the relative error cannot be decreased further |
Solves the system of equation.
- Parameters:
-
| sol | output vector for the solution |
The documentation for this class was generated from the following file:
- /home/laszloa/SVN/GR/gridripper/include/gridripper/odesolver/relax/ODERelax.h