|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcore.math.RungeKuttaIntegration
Runge Kutta Integration 4th order.
Field Summary | |
(package private) int |
dim
The number of first order equations we are integrating. |
private VecTimeField |
field
The derivative matrix of the dependent variables we are integrating. |
(package private) double |
maxStep
The maxstep we take to get to the point requested if stepped is true. |
(package private) boolean |
stepped
If this is true then we step to the requested point in steps of maxstep, and if it is false we step to the requested point directly in the one step requested. |
private Vec |
x
Variables used to compute the stages of the RK step. |
Constructor Summary | |
RungeKuttaIntegration()
Constructor for the straight Runge Kutta 4th order integration. |
|
RungeKuttaIntegration(double maxStep)
Constructor for the stepped Runge Kutta 4th order integration. |
Method Summary | |
private void |
ComputeStep(double s,
double ds)
Compute one RK step from s to s + ds. |
void |
Evolve(VecTimeField field,
Vec x,
double s,
double ds)
Evolve the system from x at s to the new x at x + ds, in one step or a number of small steps, depending on what is requested. |
void |
SetStep(double maxStep)
Sets the maxStep if it has not already been set in the constructor call. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
boolean stepped
double maxStep
int dim
private Vec x
private VecTimeField field
Constructor Detail |
public RungeKuttaIntegration()
public RungeKuttaIntegration(double maxStep)
maxStep
- The maximum step we take.Method Detail |
public void SetStep(double maxStep)
maxStep
- The maximum step we can take.public void Evolve(VecTimeField field, Vec x, double s, double ds)
field
- gives the time derivatives of the variables in xx
- the vector state of the system, which depends on times
- independent variable, e.g. timeds
- step size in the independent variableprivate void ComputeStep(double s, double ds)
s
- the independent variableds
- the step in the independent variable
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |