Bodies module

Important Bodies. Contains some predefined bodies of the Solar System: * Sun (☉) * Earth (♁) * Moon (☾) * Mercury (☿) * Venus (♀) * Mars (♂) * Jupiter (♃) * Saturn (♄) * Uranus (⛢) * Neptune (♆) * Pluto (♇) and a way to define new bodies (Body class). Data references can be found in constant

class einsteinpy.bodies.Body(name='Generic Body', mass=<Quantity 0. kg>, q=<Quantity 0. C>, R=<Quantity 0. km>, differential=None, parent=None)[source]

Bases: object

Class to create a generic Body

Parameters
  • name (string) – Name or ID of the body

  • mass (kg) – Mass of the body

  • q (C, optional) – Charge on the body

  • R (units) – Radius of the body

  • differential (*, optional) – Complete coordinates of the body

  • parent (Body, optional) – The parent object of the body Useful in case of multibody systems