Public Member Functions | |
final Grad | getGrad () |
Gets the numerical differentiation scheme. | |
final Grid.Interpolator | getInterpolator () |
Gets the margin interpolator for this numerical method. | |
final int | getInterpolatorType () |
Gets the interpolator type. | |
final int | getInterpolationBufferSize () |
Gets the number of interpolation related additional points. | |
abstract void | integrate (int ir) |
Integrates a partial differential equation. | |
abstract void | richardson (AMError amerr, int ir) |
Richardson error estimation. | |
double | getError (int i) |
Gets the Richardson error in the specified grid point. | |
final void | setTimeStepCount (int tsc) |
final int | getTimeStepCount () |
abstract void | getResult (int i, double[] w) |
Gets the result of the integration at the specified point. | |
abstract int | getNumVelocity () |
Gets the numerical error propagation velocity. | |
abstract Integrator | createIntegrator (Grid g, Sigma sigma) |
Creates a new integrator instance for the specified grid. | |
abstract Integrator | cloneIntegrator (Grid g) |
Sigma | getSigma () |
final double | getDeltaT () |
Gets the time step. | |
final void | setDeltaT (double dt) |
Sets the time step. | |
final Grid | getGrid () |
Gets the grid. | |
final PDE | getPDE () |
Gets the PDE. | |
final void | updateGrid (int ir) |
Static Public Member Functions | |
static Integrator | create (String name, PDE pde, Sigma sigma) throws IllegalArgumentException |
Protected Member Functions | |
Integrator (Integrator gi, Grid g) | |
Integrator (Grid g, PDE pde, String[] optsarr, int deftype, Sigma sigma) | |
Integrator (Grid g, PDE pde, Grad d, Grad d2, int deftype, Sigma sigma) | |
void | calcErrors (AMError amerr, Grid g, Grid g2, double c) |
Protected Attributes | |
int | timeStepCount = 0 |
Grad | gradOp = null |
Grad | gradOp2 = null |
Numerical method to integrate a PDE on the grid.
final Grad gridripper::amr1d::Integrator::getGrad | ( | ) | [inline] |
Gets the numerical differentiation scheme.
final Grid.Interpolator gridripper::amr1d::Integrator::getInterpolator | ( | ) | [inline] |
Gets the margin interpolator for this numerical method.
final int gridripper::amr1d::Integrator::getInterpolatorType | ( | ) | [inline] |
Gets the interpolator type.
final int gridripper::amr1d::Integrator::getInterpolationBufferSize | ( | ) | [inline] |
Gets the number of interpolation related additional points.
The margin of a refined parent grid must always be wide enough to make centered interpolation possible for its child grids. 4 additional points are needed for the 5th order interpolation.
abstract void gridripper::amr1d::Integrator::integrate | ( | int | ir | ) | [pure virtual] |
Integrates a partial differential equation.
ir | refined step count (0...r-1) |
Implemented in gridripper::amr1d::gridint::FirstOrder, gridripper::amr1d::gridint::ICN, gridripper::amr1d::gridint::LW2, gridripper::amr1d::gridint::RK2, and gridripper::amr1d::gridint::RK4.
abstract void gridripper::amr1d::Integrator::richardson | ( | AMError | amerr, | |
int | ir | |||
) | [pure virtual] |
Richardson error estimation.
amerr | the error calculation method | |
ir | refined step count (0...r-1) |
Implemented in gridripper::amr1d::gridint::FirstOrder, gridripper::amr1d::gridint::ICN, gridripper::amr1d::gridint::LW2, gridripper::amr1d::gridint::RK2, and gridripper::amr1d::gridint::RK4.
abstract void gridripper::amr1d::Integrator::getResult | ( | int | i, | |
double[] | w | |||
) | [pure virtual] |
Gets the result of the integration at the specified point.
i | the grid point index | |
w | the integration result will be copied here |
Implemented in gridripper::amr1d::gridint::FirstOrder, gridripper::amr1d::gridint::ICN, gridripper::amr1d::gridint::LW2, gridripper::amr1d::gridint::RK2, and gridripper::amr1d::gridint::RK4.
abstract int gridripper::amr1d::Integrator::getNumVelocity | ( | ) | [pure virtual] |
Gets the numerical error propagation velocity.
Implemented in gridripper::amr1d::gridint::FirstOrder, gridripper::amr1d::gridint::ICN, gridripper::amr1d::gridint::LW2, gridripper::amr1d::gridint::RK2, and gridripper::amr1d::gridint::RK4.
abstract Integrator gridripper::amr1d::Integrator::createIntegrator | ( | Grid | g, | |
Sigma | sigma | |||
) | [pure virtual] |
Creates a new integrator instance for the specified grid.
g | the grid | |
sigma | dissipation term is multiplied by this factor |
Implemented in gridripper::amr1d::gridint::FirstOrder, gridripper::amr1d::gridint::ICN, gridripper::amr1d::gridint::LW2, gridripper::amr1d::gridint::RK2, and gridripper::amr1d::gridint::RK4.
final double gridripper::amr1d::Integrator::getDeltaT | ( | ) | [inline] |
Gets the time step.
final void gridripper::amr1d::Integrator::setDeltaT | ( | double | dt | ) | [inline] |
Sets the time step.
dt | the time step |
final Grid gridripper::amr1d::Integrator::getGrid | ( | ) | [inline] |
Gets the grid.