altEngine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Classes | Macros
sph.h File Reference
#include "include.h"
Include dependency graph for sph.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  particle_t
 
struct  voxel_t
 
class  Sph
 

Macros

#define kMass   0.010543f
 
#define kRadius   0.005f
 
#define kH   (0.03f)
 
#define kH2   (0.0009f)
 
#define kStiffness   0.08f
 
#define kRestDensity   82.0f
 
#define kLinearViscocity   0.02f
 
#define kGravity   9.8f
 
#define kWallStiff   10000
 
#define kWallDamp   256
 
#define kDeltaTime   0.004f
 
#define kMaxAccel   200
 
#define kScale   0.04f
 
#define kEpsilon   0.000001f
 
#define POLY6_KERN   (315.0f / (64.0f * MY_PI * (float)pow(kH, 9)))
 
#define GRAD_POLY6_KERN   945.0f / (32.0f * MY_PI * (float)pow(kH, 9));
 
#define LAP_POLY6_KERN   945.0f / (32.0f * MY_PI * (float)pow(kH, 9));
 
#define SPIKY_KERN   (-45.0f / (MY_PI * (float)pow(kH, 6)))
 
#define VISCOSITY_KERN   (45.0f / (MY_PI * (float)pow(kH, 6)))
 
#define MAX_NEIGHBOR   64
 
#define GRID_SIZE   6
 
#define MAX_GRID_PARTICLE   4000
 

Macro Definition Documentation

#define GRAD_POLY6_KERN   945.0f / (32.0f * MY_PI * (float)pow(kH, 9));
#define GRID_SIZE   6
#define kDeltaTime   0.004f
#define kEpsilon   0.000001f
#define kGravity   9.8f
#define kH   (0.03f)
#define kH2   (0.0009f)
#define kLinearViscocity   0.02f
#define kMass   0.010543f
#define kMaxAccel   200
#define kRadius   0.005f
#define kRestDensity   82.0f
#define kScale   0.04f
#define kStiffness   0.08f
#define kWallDamp   256
#define kWallStiff   10000
#define LAP_POLY6_KERN   945.0f / (32.0f * MY_PI * (float)pow(kH, 9));
#define MAX_GRID_PARTICLE   4000
#define MAX_NEIGHBOR   64
#define POLY6_KERN   (315.0f / (64.0f * MY_PI * (float)pow(kH, 9)))
#define SPIKY_KERN   (-45.0f / (MY_PI * (float)pow(kH, 6)))
#define VISCOSITY_KERN   (45.0f / (MY_PI * (float)pow(kH, 6)))