10 assert(dim == 2 || dim == 3);
11 assert(particleDistance < re);
21 for (
int iX = -4; iX < 5; iX++) {
22 for (
int iY = -4; iY < 5; iY++) {
23 for (
int iZ = iZ_start; iZ < iZ_end; iZ++) {
24 if (((iX == 0) && (iY == 0)) && (iZ == 0))
27 double xj = particleDistance * (double) (iX);
28 double yj = particleDistance * (double) (iY);
29 double zj = particleDistance * (double) (iZ);
30 double dis2 = xj * xj + yj * yj + zj * zj;
31 double dis = sqrt(dis2);
double weight(double dis, double re)
Wight function for MPS method presented by Koshizuka and Oka, 1996