org.gicentre.utils.network.traer.physics
Class ModifiedEulerIntegrator

java.lang.Object
  extended by org.gicentre.utils.network.traer.physics.Integrator
      extended by org.gicentre.utils.network.traer.physics.ModifiedEulerIntegrator

public class ModifiedEulerIntegrator
extends Integrator

Modified Euler integrator that evolves the state of a particle system. Compared to the Runge-Kutta integrator, this one is faster, but can be less stable.

Author:
Jeffrey Traer Bernstein, Carl Pearson and minor modifications by Jo Wood.

Nested Class Summary
 
Nested classes/interfaces inherited from class org.gicentre.utils.network.traer.physics.Integrator
Integrator.METHOD
 
Field Summary
 
Fields inherited from class org.gicentre.utils.network.traer.physics.Integrator
s
 
Constructor Summary
ModifiedEulerIntegrator(ParticleSystem s)
          Sets up the integrator.
 
Method Summary
 ModifiedEulerIntegrator step(float deltaT)
          Advances the integrator by one step.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModifiedEulerIntegrator

public ModifiedEulerIntegrator(ParticleSystem s)
Sets up the integrator.

Parameters:
s - Particle system upon which to perform the integration.
Method Detail

step

public ModifiedEulerIntegrator step(float deltaT)
Advances the integrator by one step.

Specified by:
step in class Integrator
Parameters:
deltaT - the magnitude of the time step to advance.
Returns:
The Integrator after stepping forward by the given time step.


giCentre Utilities V.3.3, API documentation generated 6th April, 2013