I am trying to write some code for a fluid simulation. I have read about Smoothed Particle Hydrodynamics (SPH) and my question is related to the properties of the smoothing kernel.
- How do I set the support $h$ for a kernel?
I found the following kernel function used in SPH
$$\frac{315}{64 \pi h^9}(h^2 - r^2)^3 dr$$
Since one of the properties of the kernel used is that it has to be normalized, i.e. $$\int_{-h}^{h} \frac{315}{64 \pi h^9}(h^2 - r^2)^3 dr = 1$$
- I think that to set the correct value for $h$ is to compute that integral, is this correct?
I ask this because with random numbers in my code I found that it just doesn't work and I start to believe it is my problem is related to the parameters of the simulation, like the support of the kernel.