Fluid3dSolver::Diffusion Class Reference

#include <Fluid3dSolver.h>

Inheritance diagram for Fluid3dSolver::Diffusion:

Fluid3dSolver::DiffusionImpl List of all members.

Public Member Functions

void setDiffusionRates (float r, float g, float b, float a)
void setNumJacobiSteps (unsigned int numJacobiSteps)
void setVoxelSize (float voxelSize)
void run (float timestep)

Detailed Description

Diffuses a value field (represented by a flat 3d texture) by solving a set of linear equations.


Member Function Documentation

void Fluid3dSolver::Diffusion::run float  timestep  ) 
 

Performs one computation step of the diffusion.

Parameters:
timestep the time step to be used in the computation step.

void Fluid3dSolver::Diffusion::setDiffusionRates float  r,
float  g,
float  b,
float  a
 

Sets the diffusion rates to be used on the different channels.

Parameters:
r the diffusion rate used for texture channel red.
g the diffusion rate used for texture channel green.
b the diffusion rate used for texture channel blue.
a the diffusion rate used for texture channel alpha.

void Fluid3dSolver::Diffusion::setNumJacobiSteps unsigned int  numJacobiSteps  ) 
 

Sets the number of jacobi steps to be used.

Parameters:
numJacobiSteps the number of jacobi steps.

void Fluid3dSolver::Diffusion::setVoxelSize float  voxelSize  ) 
 

Sets the voxel size of the computation domain.

Parameters:
voxelSize the voxel size to be set.


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