altEngine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Private Member Functions | Private Attributes | List of all members
Sph Class Reference

#include <sph.h>

Collaboration diagram for Sph:
Collaboration graph
[legend]

Public Member Functions

 Sph ()
 
void init (int num_particle)
 
void step (int frame)
 
void render ()
 

Private Member Functions

void calc_density_pressure (int i)
 
void calc_force (int i)
 
void calc_pos (int i)
 
void update_grid ()
 
void update_neighbors ()
 
float norm2 (vec3 &x, vec3 &y)
 

Private Attributes

particle_tpart
 
bool initialized
 
unsigned int last_rendered
 
unsigned int last_calculated
 
int num_particle
 
vec3 max_bound
 
vec3 min_bound
 
int grid_width
 
int grid_height
 
int grid_depth
 
voxel_t grid [GRID_SIZE][GRID_SIZE][GRID_SIZE]
 
float poly6_kern
 
float grad_poly6_kern
 
float lap_poly6_kern
 
float spiky_kern
 
float viscosity_kern
 

Constructor & Destructor Documentation

Sph::Sph ( )

Here is the call graph for this function:

Member Function Documentation

void Sph::calc_density_pressure ( int  i)
private

Here is the call graph for this function:

Here is the caller graph for this function:

void Sph::calc_force ( int  i)
private

Here is the call graph for this function:

Here is the caller graph for this function:

void Sph::calc_pos ( int  i)
private

Here is the call graph for this function:

Here is the caller graph for this function:

void Sph::init ( int  num_particle)

Here is the call graph for this function:

Here is the caller graph for this function:

float Sph::norm2 ( vec3 x,
vec3 y 
)
inlineprivate

Here is the caller graph for this function:

void Sph::render ( )
void Sph::step ( int  frame)

Here is the call graph for this function:

void Sph::update_grid ( )
private

Here is the call graph for this function:

Here is the caller graph for this function:

void Sph::update_neighbors ( )
private

Here is the caller graph for this function:

Member Data Documentation

float Sph::grad_poly6_kern
private
voxel_t Sph::grid[GRID_SIZE][GRID_SIZE][GRID_SIZE]
private
int Sph::grid_depth
private
int Sph::grid_height
private
int Sph::grid_width
private
bool Sph::initialized
private
float Sph::lap_poly6_kern
private
unsigned int Sph::last_calculated
private
unsigned int Sph::last_rendered
private
vec3 Sph::max_bound
private
vec3 Sph::min_bound
private
int Sph::num_particle
private
particle_t* Sph::part
private
float Sph::poly6_kern
private
float Sph::spiky_kern
private
float Sph::viscosity_kern
private

The documentation for this class was generated from the following files: