org.jcpsim.ode
Class DifferentialEquation

java.lang.Object
  extended by org.jcpsim.ode.DifferentialEquation

public abstract class DifferentialEquation
extends java.lang.Object

Superclass for a differential equation.


Constructor Summary
DifferentialEquation()
           
 
Method Summary
 double _get()
           
abstract  double dxdt(double t)
          Has to be overridden. x can be accessed with get().
 double get()
          Gets the value of the state variable.
abstract  double initialValue()
          Has to be overridden.
 void rk4_1(double t, double dt2)
           
 void rk4_2(double t, double dt2)
           
 void rk4_3(double t, double dt)
           
 void rk4_4(double t, double dt6)
           
 void setInitialValue()
           
 void step_Euler(double t, double dt)
          The simplest integration method (should only be used for testing purposes).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DifferentialEquation

public DifferentialEquation()
Method Detail

get

public double get()
Gets the value of the state variable. Initial values are set by setInitialValue().


_get

public double _get()

initialValue

public abstract double initialValue()
Has to be overridden.


setInitialValue

public void setInitialValue()

dxdt

public abstract double dxdt(double t)
Has to be overridden. x can be accessed with get().


step_Euler

public void step_Euler(double t,
                       double dt)
The simplest integration method (should only be used for testing purposes). Performs one integration step of this differential equation with fixed stepsize dt


rk4_1

public void rk4_1(double t,
                  double dt2)

rk4_2

public void rk4_2(double t,
                  double dt2)

rk4_3

public void rk4_3(double t,
                  double dt)

rk4_4

public void rk4_4(double t,
                  double dt6)


jCpSim (Java CardioPulmonary SIMulations), v0.2.01
Dr. Frank Fischer, frank@jcpsim.org, http://www.jcpsim.org