Class FluidSolver3D

java.lang.Object
toxi.sim.fluids.FluidSolver3D

public class FluidSolver3D extends Object
  • Field Details

    • diff

      public float diff
    • visc

      public float visc
  • Constructor Details

    • FluidSolver3D

      public FluidSolver3D(int size, float diffusion, float viscosity, float dt)
  • Method Details

    • addDensity

      public void addDensity(int x, int y, int z, float amount)
    • addVelocity

      public void addVelocity(int x, int y, int z, Vec3D amount)
    • clearAt

      public void clearAt(int x, int y, int z)
    • decay

      public final void decay(float decay)
    • getDensity

      public float[] getDensity()
      Returns:
      the density
    • setAt

      public void setAt(int x, int y, int z, float dens, ReadonlyVec3D vel)
    • update

      public void update()