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}\)).

build(model=None)[source]
classmethod fromJupiter(surface_gravity: float, radius: float)[source]

Create a Planet object using Jupiter values.

Parameters:
  • surface_gravity (float) – Surface gravity in m s-2

  • radius (float) – Planet radius in Jupiter radius.

gravity(height: float) float[source]

Gravity (\(m\cdot s^{-2}\)) at height (\(m\)) from planet.