org.jbox2d.util.sph
Class SPHGroup

java.lang.Object
  extended by org.jbox2d.util.sph.SPHGroup

public class SPHGroup
extends java.lang.Object


Field Summary
 Parameter param
           
 SmoothParticle[] t
           
 
Constructor Summary
SPHGroup(int nParts, AABB aabb, processing.core.PApplet parent, float tStep)
           
 
Method Summary
 void calcCorrectDeltaT()
          Calculates the correct timestep given the current setup of the system, prints a message if the current time step is too large.
 void calcPressure()
          This method calculates the pressure of each particle
 void calcSPHEquations(SmoothParticle p1, SmoothParticle p2)
          Calculates SPH density/velocity contributions to p1 as a result of p2.
 void updateParticles()
          Handle a time step, including SPH forces
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

t

public SmoothParticle[] t

param

public Parameter param
Constructor Detail

SPHGroup

public SPHGroup(int nParts,
                AABB aabb,
                processing.core.PApplet parent,
                float tStep)
Method Detail

calcPressure

public void calcPressure()
This method calculates the pressure of each particle


calcSPHEquations

public void calcSPHEquations(SmoothParticle p1,
                             SmoothParticle p2)
Calculates SPH density/velocity contributions to p1 as a result of p2.


calcCorrectDeltaT

public void calcCorrectDeltaT()
Calculates the correct timestep given the current setup of the system, prints a message if the current time step is too large.


updateParticles

public void updateParticles()
Handle a time step, including SPH forces