Module: 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
Returns the gravitational potential energy at a position around this body.
The position is given relative to the body and in the inertial reference frame.
Public Members
-
double muBody = 0
[m^3/s^2] Gravitation parameter for the planet
-
inline virtual std::optional<std::string> initializeParameters() override