Go to the documentation of this file.
6 #define kMass 0.010543f //kg uniform particle mass
7 #define kRadius 0.005f //m -- physical particle radius (for collision detection against mainly)
8 #define kH (0.03f) //m 6 * kRadius -- radius particles will interact with neighbors
9 #define kH2 (0.0009f) //m^2 (kH * kH) -- radius of interaction squared
10 #define kStiffness 0.08f
11 #define kRestDensity 82.0f //kg.m^3
12 #define kLinearViscocity 0.02f
17 #define kWallStiff 10000
19 #define kDeltaTime 0.004f
20 #define kMaxAccel 200 //m.s^2
22 #define kEpsilon 0.000001f
30 #define POLY6_KERN (315.0f / (64.0f * MY_PI * (float)pow(kH, 9)))
31 #define GRAD_POLY6_KERN 945.0f / (32.0f * MY_PI * (float)pow(kH, 9));
32 #define LAP_POLY6_KERN 945.0f / (32.0f * MY_PI * (float)pow(kH, 9));
33 #define SPIKY_KERN (-45.0f / (MY_PI * (float)pow(kH, 6)))
34 #define VISCOSITY_KERN (45.0f / (MY_PI * (float)pow(kH, 6)))
36 #define MAX_NEIGHBOR 64
54 #define MAX_GRID_PARTICLE 4000