Initial condition calculated by solving an ODE using relaxation method. More...
#include <ODERelaxInit.h>
Public Member Functions | |
| ODERelaxInit (string &args, const Parameters *p, const PDE &pde) throw (InitCond::Exception&) | |
| Creates initial condition. | |
| string | getMessage () |
| Gets information about initial condition generation. | |
Protected Member Functions | |
| void | init (PDE *pde, GReal_t x, FieldWrapper &phi) throw (InitCond::Exception&) |
| Initializes the grid at the specified point. | |
| void | endInit () |
| Called at the end of init. | |
Initial condition calculated by solving an ODE using relaxation method.
| gridripper::amr1d::initcond::ODERelaxInit::ODERelaxInit | ( | string & | args, | |
| const Parameters * | p, | |||
| const PDE & | pde | |||
| ) | throw (InitCond::Exception&) |
Creates initial condition.
| args | the arguments | |
| p | the parameters | |
| pde | the PDE |
| void gridripper::amr1d::initcond::ODERelaxInit::endInit | ( | ) | [protected, virtual] |
Called at the end of init.
This method can free temporarily allocated memory or perform other clean-up tasks. The default implementations is empty.
Reimplemented from gridripper::amr1d::FuncInitCond.
| string gridripper::amr1d::initcond::ODERelaxInit::getMessage | ( | ) | [inline] |
Gets information about initial condition generation.
| void gridripper::amr1d::initcond::ODERelaxInit::init | ( | PDE * | pde, | |
| GReal_t | x, | |||
| FieldWrapper & | phi | |||
| ) | throw (InitCond::Exception&) [protected, virtual] |
Initializes the grid at the specified point.
| pde | the PDE | |
| x | the x coordinate | |
| phi | output array for the field values |
Implements gridripper::amr1d::FuncInitCond.
1.7.1