pytmosph3r.planetary_system.planet
Module Contents
- mass_to_surface_gravity(mass: astropy.units.Quantity[pytmosph3r.util.pt.mass], radius: astropy.units.Quantity[pytmosph3r.util.pt.length])[source]
Compute the gravity at the surface of a sphere of radius radius and mass mass.
- Parameters:
mass (Quantity[mass]) – Mass of the planet.
radius (Quantity[length]) – Radius of the planet.
- Returns:
Return the gravity at the surface of the planet.
- Return type:
(Quantity[acceleration])
- class Planet(surface_gravity: float | astropy.units.Quantity[pytmosph3r.util.pt.acceleration], radius: float | astropy.units.Quantity[pytmosph3r.util.pt.length], **kwargs)[source]
Bases:
pytmosph3r.log.Logger
Represent a planet, while allowing to get the position of the star in the planet frame.
- Parameters:
surface_gravity (float) – Surface gravity of the planet (m.s-2)
radius (float) – Radius of the planet (m)
- property mass
Planet mass (\(kg\)).
- property mass_jup: float
Planet mass (in Jupiter mass).
- property radius_jup: float
Planet radius (in Jupiter radii).
- radius
Planet radius (in m).
- surface_gravity
Surface gravity (\(m\cdot s^{-2}\)).