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>, R=<Quantity 0. km>, differential=None, a=<Quantity 0. m>, q=<Quantity 0. C>, parent=None)[source]

Bases: object

Class to create a generic Body

Parameters
  • name (str) – Name/ID of the body

  • mass (kg) – Mass of the body

  • R (units) – Radius of the body

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

  • a (m, optional) – Spin factor of massive body. Should be less than half of schwarzschild radius.

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

  • is_attractor (Bool, optional) – To denote is this body is acting as attractor or not

  • parent (Body, optional) – The parent object of the body.