Body Module#
The pryngles.body module provides the base classes for create and assign physical, orbital and
optical parameters to an astrophysical body within a simulation for an arbitrary extrasolar system (see System Module).
Inheritance from Body Class#
Base class Body provides fundamental attributes for all astrophysical bodies in a simulated extrasolar system.
Subclasses Star, Planet, and Ring inherit from Body and specialize its functionality:
Examples#
>>> # Let's create the body components of an exoplanetary system
>>> Star = pr.Star(kind = 'Star', defaults = pr.STAR_DEFAULTS, parent = None)
>>> Planet = pr.Planet(kind = 'Planet', defaults = pr.PLANET_DEFAULTS, parent = Star)
>>> Ring = pr.Ring(kind = 'Ring', defaults = pr.RING_DEFAULTS, parent = Planet)