|
SERiF v0.0.1a
Stellar Evolution and Rotation in Four Dimensions
|
The potential -G M_c/|x - x_c| of a point-mass companion outside the star. More...
#include <companion.hpp>
Public Types | |
| using | Vector = RigidRotation::Vector |
Public Member Functions | |
| PointMassCompanion (const double gravitational_mass, const Vector &position, const bool tidal_only=false) | |
| gravitational_mass is G M_c in the model's units; position is the companion's fixed location. | |
| double | potential (const Vector &x) const |
| Evaluate -G M_c/|x - x_c|, plus G M_c x.x_c/|x_c|^3 when only the tide acts. | |
| Vector | potential_gradient (const Vector &x) const |
| Evaluate G M_c (x - x_c)/|x - x_c|^3, plus G M_c x_c/|x_c|^3 when only the tide acts. | |
| double | gravitational_mass () const noexcept |
| Inspect G M_c. | |
| const Vector & | position () const noexcept |
| Inspect the companion's location. | |
| bool | tidal_only () const noexcept |
| Whether the companion's uniform pull is removed, leaving only its tide. | |
Private Member Functions | |
| double | uniform_scale () const |
| G M_c/|x_c|^3, the coefficient of the uniform pull at the origin. | |
Private Attributes | |
| double | m_gravitational_mass |
| Vector | m_position |
| bool | m_tidal_only |
The potential -G M_c/|x - x_c| of a point-mass companion outside the star.
|
inline |
gravitational_mass is G M_c in the model's units; position is the companion's fixed location.
|
inlinenodiscardnoexcept |
Inspect G M_c.
|
inlinenodiscardnoexcept |
Inspect the companion's location.
|
inlinenodiscard |
Evaluate -G M_c/|x - x_c|, plus G M_c x.x_c/|x_c|^3 when only the tide acts.
|
inlinenodiscard |
Evaluate G M_c (x - x_c)/|x - x_c|^3, plus G M_c x_c/|x_c|^3 when only the tide acts.
|
inlinenodiscardnoexcept |
Whether the companion's uniform pull is removed, leaving only its tide.
|
inlinenodiscardprivate |
G M_c/|x_c|^3, the coefficient of the uniform pull at the origin.
|
private |
|
private |
|
private |