org.jbox2d.util.sph
Class SPHGroup
java.lang.Object
org.jbox2d.util.sph.SPHGroup
public class SPHGroup
- extends Object
Constructor Summary |
SPHGroup(int nParts,
AABB aabb,
processing.core.PApplet parent,
float tStep)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
t
public SmoothParticle[] t
param
public Parameter param
SPHGroup
public SPHGroup(int nParts,
AABB aabb,
processing.core.PApplet parent,
float tStep)
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