#include <sph.h>

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_t * | part |
| 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 |
| Sph::Sph | ( | ) |

|
private |


|
private |


|
private |


| void Sph::init | ( | int | num_particle | ) |


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

|
private |


|
private |

|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
1.8.2