|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttoxi.sim.fluids.FluidSolver
public class FluidSolver
Optimized Jos Stam style fluid solver with vorticity confinement and buoyancy force.
Constructor Summary | |
---|---|
FluidSolver(int w,
int h,
float timeStep)
Creates a new instance of the given dimension uses the specified time step. |
Method Summary | |
---|---|
void |
decay(float decay)
|
void |
densitySolver()
The basic density solving routine. |
void |
reset()
Reset the datastructures. |
void |
velocitySolver()
The basic velocity solving routine as described by Stam. |
void |
vorticityConfinement(float[] Fvc_x,
float[] Fvc_y)
Calculate the vorticity confinement force for each cell in the fluid grid. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FluidSolver(int w, int h, float timeStep)
w
- matrix widthh
- matrix heighttimeStep
- Method Detail |
---|
public final void decay(float decay)
public void densitySolver()
public void reset()
public void velocitySolver()
public void vorticityConfinement(float[] Fvc_x, float[] Fvc_y)
Fvc_x
- The array to store the x component of the vorticity
confinement force for each cell.Fvc_y
- The array to store the y component of the vorticity
confinement force for each cell.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |