Hi, I've started to write a simulator for SPH, and I'm fallowing a paper on SPH simulation,(adsbygoogle = window.adsbygoogle || []).push({});

The problem is that in that paper they show the formulas for computing force but they don't tell you on what vector do you need to apply this force.

So here are the formulas for pressure, viscosity and tension:

as you can see they return scalars. but I need vectors (2D or 3D) so I can apply it to the acceleration.

I suppose they are related to unit vector between the current particle and the neighbor particle (^rij)

but not sure if I need to sum or scale it...

Thanks

**Physics Forums | Science Articles, Homework Help, Discussion**

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Help with smooth particles hydrodynamics

Can you offer guidance or do you also need help?

Draft saved
Draft deleted

**Physics Forums | Science Articles, Homework Help, Discussion**