gridripper::amr1d::Integrator Class Reference

Time integrator. More...

Inheritance diagram for gridripper::amr1d::Integrator:

gridripper::amr1d::gridint::FirstOrder gridripper::amr1d::gridint::ICN gridripper::amr1d::gridint::LW2 gridripper::amr1d::gridint::RK2 gridripper::amr1d::gridint::RK4

List of all members.

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


Detailed Description

Time integrator.

Numerical method to integrate a PDE on the grid.

Version:
0.5, 02/21/2009
Author:
Peter Csizmadia

Member Function Documentation

final Grad gridripper::amr1d::Integrator::getGrad (  )  [inline]

Gets the numerical differentiation scheme.

Returns:
the fourth order differentiation scheme

final Grid.Interpolator gridripper::amr1d::Integrator::getInterpolator (  )  [inline]

Gets the margin interpolator for this numerical method.

Returns:
the interpolator

final int gridripper::amr1d::Integrator::getInterpolatorType (  )  [inline]

Gets the interpolator type.

Returns:
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.

Returns:
the number of additional points

abstract void gridripper::amr1d::Integrator::integrate ( int  ir  )  [pure virtual]

Integrates a partial differential equation.

Parameters:
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.

Parameters:
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.

Parameters:
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.

Returns:
error propogation velocity in points/time step

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.

Parameters:
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.

Returns:
the time step

final void gridripper::amr1d::Integrator::setDeltaT ( double  dt  )  [inline]

Sets the time step.

Parameters:
dt the time step

final Grid gridripper::amr1d::Integrator::getGrid (  )  [inline]

Gets the grid.

Returns:
the grid

final PDE gridripper::amr1d::Integrator::getPDE (  )  [inline]

Gets the PDE.

Returns:
the PDE


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

Generated on Wed Jun 17 18:47:25 2009 for GridRipper by  doxygen 1.5.6