GpuThesis::FluidParameters Class Reference

#include <FluidParameters.h>

Inheritance diagram for GpuThesis::FluidParameters:

GpuThesis::Fluid3dSimulator List of all members.

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)

Detailed Description

Contains all the parameters governing a fluid simulation.


Member Function Documentation

float GpuThesis::FluidParameters::getDiffusion  )  const
 

Diffusion is the rate at which the fluid density diffuses.

Returns:
the diffusion.

unsigned int GpuThesis::FluidParameters::getJacobiSteps  )  const
 

Jacobi steps controls how many steps are used in the diffusion and projection solvers. The more Jacobi steps the more accurate diffusion and projection.

Returns:
the number of jacobi steps.

float GpuThesis::FluidParameters::getViscosity  )  const
 

Viscosity is similar to diffusion, but for the velocity field. Higher viscosity makes the fluid feel more thick, like syrup, glue, etc.

Returns:
the viscosity.

float GpuThesis::FluidParameters::getVorticity  )  const
 

Vorticity is the rate at which vortices in the velocity field are enhanced. Higher vorticity causes more turbulence.

Returns:
the vorticity.

void GpuThesis::FluidParameters::setDiffusion float  diffusion  ) 
 

Set the diffusion.

See also:
getDiffusion
Parameters:
diffusion the new diffusion

void GpuThesis::FluidParameters::setJacobiSteps unsigned int  jacobiSteps  ) 
 

Set the number of jacobi steps.

See also:
getJacobiSteps
Parameters:
jacobiSteps the new number of jacobi steps.

void GpuThesis::FluidParameters::setViscosity float  viscosity  ) 
 

Set the viscosity.

See also:
getViscosity
Parameters:
viscosity the new viscosity.

void GpuThesis::FluidParameters::setVorticity float  vorticity  ) 
 

Set the vorticity.

See also:
getVorticity
Parameters:
vorticity the new vorticity.


The documentation for this class was generated from the following files:
Generated on Fri Jun 16 08:42:50 2006 for GPU Thesis by  doxygen 1.4.6-NO