SPH
|
Properties of a homogeneous sphere in rest (no temporal derivatives) More...
#include <Functions.h>
Public Member Functions | |
StaticSphere (const Float r0, const Float rho) | |
INLINE Float | getPressure (const Float r) const |
Return the pressure at given radius r of a sphere self-compressed by gravity. More... | |
INLINE Vector | getAcceleration (const Vector &r) const |
Returns the gravitational acceleration at given radius r. More... | |
INLINE Float | getEnergy () const |
Returns the gravitational potential energy of the sphere. More... | |
Properties of a homogeneous sphere in rest (no temporal derivatives)
Definition at line 19 of file Functions.h.
Definition at line 28 of file Functions.h.
Returns the gravitational acceleration at given radius r.
The acceleration increases linearily up to r0 and then decreases with r^2.
Definition at line 43 of file Functions.h.
Returns the gravitational potential energy of the sphere.
Definition at line 50 of file Functions.h.
Return the pressure at given radius r of a sphere self-compressed by gravity.
Definition at line 33 of file Functions.h.