pointMassGravityModel
-
class PointMassGravityModel : public GravityModel
- #include <pointMassGravityModel.h>
The point mass gravity model
Public Functions
-
inline virtual std::optional<std::string> initializeParameters() override
Does nothing, as the point-mass gravity model has no parameters other than
muBody, which must be set separately
-
virtual std::optional<std::string> initializeParameters(const GravBodyData&) override
Reads the only necessary parameter (
muBody) from the givenGravBodyData
-
virtual Eigen::Vector3d computeField(const Eigen::Vector3d &position_planetFixed) const override
Returns the gravity acceleration at a position around this body.
The position is given in the body-fixed reference frame. Likewise, the resulting acceleration should be given in the body-fixed reference frame.
-
virtual double computePotentialEnergy(const Eigen::Vector3d &positionWrtPlanet_N) const override
Compute point-mass specific potential energy.
Note
The historical parameter name is retained for Python keyword compatibility. This radial potential is independent of the position frame’s orientation.
- Parameters:
positionWrtPlanet_N – Position relative to the body in its body-fixed frame [m].
- Returns:
Specific potential energy
-muBody/r, with zero at infinity [m^2/s^2].
Public Members
-
double muBody = 0
[m^3/s^2] Gravitation parameter for the planet
-
inline virtual std::optional<std::string> initializeParameters() override