poliastro.twobody.states

Module Contents

Classes

BaseState

Base State class, meant to be subclassed.

ClassicalState

State defined by its classical orbital elements.

RVState

State defined by its position and velocity vectors.

ModifiedEquinoctialState

State defined by modified equinoctial elements representation.

class poliastro.twobody.states.BaseState(attractor, elements, plane)

Base State class, meant to be subclassed.

property plane(self)

Fundamental plane of the frame.

property attractor(self)

Main attractor.

n(self)

Mean motion.

period(self)

Period of the orbit.

r_p(self)

Radius of pericenter.

r_a(self)

Radius of apocenter.

t_p(self)

Elapsed time since latest perifocal passage.

to_tuple(self)
abstract to_value(self)

Converts to raw values with appropriate units.

abstract to_vectors(self)

Converts to position and velocity vector representation.

Return type

RVState

abstract to_classical(self)

Converts to classical orbital elements representation.

Return type

ClassicalState

abstract to_equinoctial(self)

Converts to modified equinoctial elements representation.

Return type

ModifiedEquinoctialState

class poliastro.twobody.states.ClassicalState(attractor, elements, plane)

Bases: BaseState

State defined by its classical orbital elements.

Orbital elements:

p~astropy.units.Quantity

Semilatus rectum.

ecc~astropy.units.Quantity

Eccentricity.

inc~astropy.units.Quantity

Inclination.

raan~astropy.units.Quantity

Right ascension of the ascending node.

argp~astropy.units.Quantity

Argument of the perigee.

nu~astropy.units.Quantity

True anomaly.

property p(self)

Semilatus rectum.

property a(self)

Semimajor axis.

property ecc(self)

Eccentricity.

property inc(self)

Inclination.

property raan(self)

Right ascension of the ascending node.

property argp(self)

Argument of the perigee.

property nu(self)

True anomaly.

to_value(self)

Converts to raw values with appropriate units.

to_vectors(self)

Converts to position and velocity vector representation.

to_classical(self)

Converts to classical orbital elements representation.

to_equinoctial(self)

Converts to modified equinoctial elements representation.

property plane(self)

Fundamental plane of the frame.

property attractor(self)

Main attractor.

n(self)

Mean motion.

period(self)

Period of the orbit.

r_p(self)

Radius of pericenter.

r_a(self)

Radius of apocenter.

t_p(self)

Elapsed time since latest perifocal passage.

to_tuple(self)
class poliastro.twobody.states.RVState(attractor, elements, plane)

Bases: BaseState

State defined by its position and velocity vectors.

Orbital elements:

r~astropy.units.Quantity

Position vector wrt attractor center.

v~astropy.units.Quantity

Velocity vector.

property r(self)

Position vector.

property v(self)

Velocity vector.

to_value(self)

Converts to raw values with appropriate units.

to_vectors(self)

Converts to position and velocity vector representation.

to_classical(self)

Converts to classical orbital elements representation.

property plane(self)

Fundamental plane of the frame.

property attractor(self)

Main attractor.

n(self)

Mean motion.

period(self)

Period of the orbit.

r_p(self)

Radius of pericenter.

r_a(self)

Radius of apocenter.

t_p(self)

Elapsed time since latest perifocal passage.

to_tuple(self)
abstract to_equinoctial(self)

Converts to modified equinoctial elements representation.

Return type

ModifiedEquinoctialState

class poliastro.twobody.states.ModifiedEquinoctialState(attractor, elements, plane)

Bases: BaseState

State defined by modified equinoctial elements representation.

Orbital elements:

p~astropy.units.Quantity

Semilatus rectum.

f~astropy.units.Quantity

Second modified equinoctial element.

g~astropy.units.Quantity

Third modified equinoctial element.

h~astropy.units.Quantity

Fourth modified equinoctial element.

k~astropy.units.Quantity

Fifth modified equinoctial element.

L~astropy.units.Quantity

True longitude.

property p(self)

Semilatus rectum.

property f(self)

Second modified equinoctial element.

property g(self)

Third modified equinoctial element.

property h(self)

Fourth modified equinoctial element.

property k(self)

Fifth modified equinoctial element.

property L(self)

True longitude.

to_value(self)

Converts to raw values with appropriate units.

to_classical(self)

Converts to classical orbital elements representation.

to_vectors(self)

Converts to position and velocity vector representation.

property plane(self)

Fundamental plane of the frame.

property attractor(self)

Main attractor.

n(self)

Mean motion.

period(self)

Period of the orbit.

r_p(self)

Radius of pericenter.

r_a(self)

Radius of apocenter.

t_p(self)

Elapsed time since latest perifocal passage.

to_tuple(self)
abstract to_equinoctial(self)

Converts to modified equinoctial elements representation.

Return type

ModifiedEquinoctialState