Fluid3dSolver::Projection Class Reference

#include <Fluid3dSolver.h>

Inheritance diagram for Fluid3dSolver::Projection:

Fluid3dSolver::ProjectionImpl List of all members.

Public Member Functions

void setNumIterations (unsigned int numIterations)
void setVoxelSize (float voxelSize)
void run ()
void setDivergenceForceTexture (unsigned int textureId)

Detailed Description

Projection is used for making a velocity field mass conserving, by solving a system of linear equations, using an iterative approach.


Member Function Documentation

void Fluid3dSolver::Projection::run  ) 
 

Runs the projection.

void Fluid3dSolver::Projection::setDivergenceForceTexture unsigned int  textureId  ) 
 

Sets the divergence force texture. This texture is added to the divergence texture before solving the Poisson equation in run().

void Fluid3dSolver::Projection::setNumIterations unsigned int  numIterations  ) 
 

Sets the number of iterations to be used when solving the linear system.

Parameters:
numIterations the number of iterations.

void Fluid3dSolver::Projection::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:49 2006 for GPU Thesis by  doxygen 1.4.6-NO