33 Real d = this->inSamplingDistance()->getValue();
34 Real H = this->inSmoothingLength()->getValue();
39 switch (this->varKernelType()->currentKey())
59 case KT_CorrectedQuatic:
65 case KT_CorrectedMPSKernel:
73 int half_res = (int)(H / d + 1);
74 for (
int i = -half_res; i <= half_res; i++)
75 for (
int j = -half_res; j <= half_res; j++)
76 for (
int k = -half_res; k <= half_res; k++)
81 Real r =
sqrt(x * x + y * y + z * z);
82 total_weight +=
V * kern->
Weight(r, H);
void calculateScalingFactor()
virtual ~ParticleApproximation()