org.opensourcephysics.sip.ch06
Class Lorenz

java.lang.Object
  extended by org.opensourcephysics.display3d.simple3d.Element
      extended by org.opensourcephysics.display3d.simple3d.Group
          extended by org.opensourcephysics.sip.ch06.Lorenz
All Implemented Interfaces:
Data, Element, Group, InteractionSource, ODE

public class Lorenz
extends Group
implements ODE

Lorenz model.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.opensourcephysics.display3d.simple3d.Group
Group.Loader
 
Field Summary
 
Fields inherited from class org.opensourcephysics.display3d.simple3d.Group
datasetID
 
Fields inherited from class org.opensourcephysics.display3d.simple3d.Element
targetPosition, targetSize
 
Fields inherited from interface org.opensourcephysics.display3d.core.Element
TARGET_POSITION, TARGET_SIZE
 
Constructor Summary
Lorenz()
          Lorenz constructor.
 
Method Summary
protected  void doStep()
          Does an animation step.
 void getRate(double[] state, double[] rate)
          Gets the rate of change using the argument's state variables.
 double[] getState()
          The state[] array contains: x,y,z, t
 void initialize(double x, double y, double z)
           
 
Methods inherited from class org.opensourcephysics.display3d.simple3d.Group
addElement, addElements, getColumnNames, getData2D, getData3D, getDataList, getDatasets, getElement, getElements, getExtrema, getFillColors, getID, getLineColors, getLoader, getTargetHit, removeAllElements, removeElement, setID
 
Methods inherited from class org.opensourcephysics.display3d.simple3d.Element
addInteractionListener, getAxesMode, getDrawingPanel3D, getHotSpotBodyCoordinates, getInteractionTarget, getName, getSizeX, getSizeY, getSizeZ, getStyle, getTransformation, getX, getY, getZ, isReallyVisible, isVisible, loadUnmutableObjects, removeInteractionListener, setName, setSizeX, setSizeXYZ, setSizeXYZ, setSizeY, setSizeZ, setTransformation, setVisible, setX, setXYZ, setXYZ, setY, setZ, toBodyFrame, toSpaceFrame
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.opensourcephysics.display3d.core.Element
getDrawingPanel3D, getName, getSizeX, getSizeY, getSizeZ, getStyle, getTransformation, getX, getY, getZ, isVisible, loadUnmutableObjects, setName, setSizeX, setSizeXYZ, setSizeXYZ, setSizeY, setSizeZ, setTransformation, setVisible, setX, setXYZ, setXYZ, setY, setZ, toBodyFrame, toSpaceFrame
 
Methods inherited from interface org.opensourcephysics.display3d.core.interaction.InteractionSource
addInteractionListener, getInteractionTarget, removeInteractionListener
 
Methods inherited from interface org.opensourcephysics.display.Data
getName
 

Constructor Detail

Lorenz

public Lorenz()
Lorenz constructor.

Method Detail

doStep

protected void doStep()
Does an animation step.


getState

public double[] getState()
The state[] array contains: x,y,z, t

Specified by:
getState in interface ODE
Returns:
the state

initialize

public void initialize(double x,
                       double y,
                       double z)

getRate

public void getRate(double[] state,
                    double[] rate)
Description copied from interface: ODE
Gets the rate of change using the argument's state variables. This method may be invoked many times with different intermediate states as an ODESolver is carrying out the solution.

Specified by:
getRate in interface ODE
Parameters:
state - the state array
rate - the rate array