org.opensourcephysics.sip.ch14.latticegas
Class FastLatticeGas

java.lang.Object
  extended by org.opensourcephysics.sip.ch14.latticegas.FastLatticeGas
All Implemented Interfaces:
Drawable

public class FastLatticeGas
extends java.lang.Object
implements Drawable


Field Summary
 double flowSpeed
           
 int spatialAveragingLength
           
 double velocityScale
           
 
Constructor Summary
FastLatticeGas()
           
 
Method Summary
 void draw(DrawingPanel panel, java.awt.Graphics g)
          Draws a representation of an object in a drawing panel.
 void initialize(int _lx, int _ly, double density)
           
 void step()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

flowSpeed

public double flowSpeed

velocityScale

public double velocityScale

spatialAveragingLength

public int spatialAveragingLength
Constructor Detail

FastLatticeGas

public FastLatticeGas()
Method Detail

initialize

public void initialize(int _lx,
                       int _ly,
                       double density)

step

public void step()

draw

public void draw(DrawingPanel panel,
                 java.awt.Graphics g)
Description copied from interface: Drawable
Draws a representation of an object in a drawing panel.

Specified by:
draw in interface Drawable