#include <FluidParameters.h>
Inheritance diagram for GpuThesis::FluidParameters:
Public Member Functions | |
float | getDiffusion () const |
void | setDiffusion (float diffusion) |
float | getViscosity () const |
void | setViscosity (float viscosity) |
float | getVorticity () const |
void | setVorticity (float vorticity) |
unsigned int | getJacobiSteps () const |
void | setJacobiSteps (unsigned int jacobiSteps) |
|
Diffusion is the rate at which the fluid density diffuses.
|
|
Jacobi steps controls how many steps are used in the diffusion and projection solvers. The more Jacobi steps the more accurate diffusion and projection.
|
|
Viscosity is similar to diffusion, but for the velocity field. Higher viscosity makes the fluid feel more thick, like syrup, glue, etc.
|
|
Vorticity is the rate at which vortices in the velocity field are enhanced. Higher vorticity causes more turbulence.
|
|
Set the diffusion.
|
|
Set the number of jacobi steps.
|
|
Set the viscosity.
|
|
Set the vorticity.
|