SPH
Public Member Functions | List of all members
Analytic::StaticSphere Class Reference

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...
 

Detailed Description

Properties of a homogeneous sphere in rest (no temporal derivatives)

Definition at line 19 of file Functions.h.

Constructor & Destructor Documentation

◆ StaticSphere()

Analytic::StaticSphere::StaticSphere ( const Float  r0,
const Float  rho 
)
inline

Definition at line 28 of file Functions.h.

Member Function Documentation

◆ getAcceleration()

INLINE Vector Analytic::StaticSphere::getAcceleration ( const Vector r) const
inline

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.

◆ getEnergy()

INLINE Float Analytic::StaticSphere::getEnergy ( ) const
inline

Returns the gravitational potential energy of the sphere.

Definition at line 50 of file Functions.h.

◆ getPressure()

INLINE Float Analytic::StaticSphere::getPressure ( const Float  r) const
inline

Return the pressure at given radius r of a sphere self-compressed by gravity.

Definition at line 33 of file Functions.h.


The documentation for this class was generated from the following file: