示例#1
0
 /** Initializes the animation. */
 public void initialize() {
   double x = control.getDouble("initial x");
   double y = control.getDouble("initial y");
   double z = control.getDouble("initial z");
   double dt = control.getDouble("dt");
   lorenz.initialize(x, y, z);
   lorenz.ode_solver.initialize(dt);
   frame.setVisible(true);
 }
示例#2
0
 /** Does an animation step. */
 protected void doStep() {
   lorenz.doStep();
   frame.setMessage("t=" + decimalFormat.format(lorenz.state[3]));
 }