|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opensourcephysics.numerics.AbstractODESolver
org.opensourcephysics.numerics.EulerRichardson
public class EulerRichardson
An Euler-Richardson (midpoint) method ODE solver. The Euler-Richardson method uses the state at the beginning of the interval to estimate the state at the midpoint. x(midpoint) = x(n) + v(n)*dt/2 v(midpoint) = v(n) + a(n)*dt/2 t(midpoint) = t(n) + dt/2 The midpoint state is then used to calculate the final state.
| Field Summary |
|---|
| Fields inherited from class org.opensourcephysics.numerics.AbstractODESolver |
|---|
numEqn, ode, stepSize |
| Constructor Summary | |
|---|---|
EulerRichardson(ODE ode)
Constructs the EulerRichardson ODESolver for a system of ordinary differential equations. |
|
| Method Summary | |
|---|---|
void |
initialize(double stepSize)
Initializes the ODE solver. |
double |
step()
Steps (advances) the differential equations by the stepSize. |
| Methods inherited from class org.opensourcephysics.numerics.AbstractODESolver |
|---|
getStepSize, setStepSize |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EulerRichardson(ODE ode)
ode - the system of differential equations.| Method Detail |
|---|
public void initialize(double stepSize)
initialize in interface ODESolverinitialize in class AbstractODESolverstepSize - public double step()
step in interface ODESolverstep in class AbstractODESolver
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||