I'm currently trying to create an SPH fluid simulator. To get started I've tried to implement the paper from Müller. So the whole algorithm is based on calculating three different forces (pressure, viscosity and surface tension).
The pressure-force can be calculated with equation 9
where the derivitive of the kernel function is the partial derivitive whit respect to r_{i,x}
r_{i,y}
r_{i,z}
. So we get a three dimensional vector out of it.
But for viscosity and surface tension we need the second derivitive of W
which should be a three dimensional vector too but equation 14
and 19
expect a scalar?
Anyone got a hint for me?