You are not logged in.

#1 2011-11-28 14:59:06

spider853
Member
Registered: 2011-11-28
Posts: 1

Help with smooth particles hydrodynamics

Hi, I've started to write a simulator for SPH, and I'm fallowing a paper on SPH simulation,
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:
http://i41.tinypic.com/2yv70rd.jpg
http://i43.tinypic.com/kdn19s.jpg
http://i41.tinypic.com/2jfm9gh.jpg

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

Offline

 
Your Ad Here

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson