33 Real d = this->inSamplingDistance()->getValue();
34 Real H = this->inSmoothingLength()->getValue();
39 switch (this->varKernelType()->currentKey())
52 int half_res = (int)(H / d + 1);
53 for (
int i = -half_res; i <= half_res; i++)
54 for (
int j = -half_res; j <= half_res; j++)
55 for (
int k = -half_res; k <= half_res; k++)
60 Real r =
sqrt(x * x + y * y + z * z);
61 total_weight +=
V * kern->
Weight(r, H);
void calculateScalingFactor()
virtual ~ParticleApproximation()