|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object vmm.core.Exhibit vmm.ode.ODE_2D vmm.ode.firstorder2D.ODE1stOrder2D
public abstract class ODE1stOrder2D
Represents a simple vector field in two dimensions, with the abilty to compute integral curves of the field. The user starts a curve by clicking the start point with the middle mouse button, or by clicking with the ALT key down (Option key on Mac). The most recently added integral curve is shown in green; older curves are in red. The green curve can be extended using the "Continue Orbit" command in the Action menu. A "Show Projeccted Orbits" command adds an auxiliary view at the bottom of the display where the x and y coordinates of the points on the green orbit are plotted.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class vmm.ode.ODE_2D |
---|
ODE_2D.ODEView |
Field Summary |
---|
Fields inherited from class vmm.core.Exhibit |
---|
decorations, exhibitNeedsRedraw, isMorphing, morphingView, parameters, previousTransform |
Constructor Summary | |
---|---|
ODE1stOrder2D()
Constructor sets the default background to be black |
Method Summary | |
---|---|
protected MouseTask |
makeDefaultMouseTask(ODE_2D.ODEView view)
Should construct and return a mouse task appropriate for this exhibit, to be used in the specified view. |
protected void |
nextEulerPoint(double[] pointData,
double dt)
Computes the next point on an integral curve, using Euler's method. |
protected void |
nextRungeKuttaPoint(double[] pointData,
double dt)
Computes the next point on an integral curve, using the Runge-Kutta method. |
protected double |
vectorField_x(double x,
double y,
double t)
Returns the x-component of the vector field at point (x,y) and time t. |
protected double |
vectorField_y(double x,
double y,
double t)
Returns the x-component of the vector field at point (x,y) and time t. |
protected abstract double |
x1Prime(double x,
double y)
Defines the x1-component of the vector field. |
protected abstract double |
x2Prime(double x,
double y)
Defines the x2-component of the vector field. |
Methods inherited from class vmm.ode.ODE_2D |
---|
doDraw, extractPointFromData, getCreateAnimation, getDefaultView |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ODE1stOrder2D()
Method Detail |
---|
protected abstract double x1Prime(double x, double y)
protected abstract double x2Prime(double x, double y)
protected final double vectorField_x(double x, double y, double t)
ODE_2D
ODE_2D.canShowVectorField
propery to true should
override this method to compute the correct value.
vectorField_x
in class ODE_2D
protected final double vectorField_y(double x, double y, double t)
ODE_2D
ODE_2D.canShowVectorField
propery to true should
override this method to compute the correct value.
vectorField_y
in class ODE_2D
protected void nextEulerPoint(double[] pointData, double dt)
ODE_2D
nextEulerPoint
in class ODE_2D
protected void nextRungeKuttaPoint(double[] pointData, double dt)
ODE_2D
nextRungeKuttaPoint
in class ODE_2D
protected MouseTask makeDefaultMouseTask(ODE_2D.ODEView view)
ODE_2D
makeDefaultMouseTask
in class ODE_2D
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |