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

Base State class, meant to be subclassed.

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

Base State class, meant to be subclassed.

property plane(self)

Fundamental plane of the frame.

property attractor(self)

Main attractor.

property n(self)

Mean motion.

property period(self)

Period of the orbit.

abstract to_vectors(self)

Converts to position and velocity vector representation.

Returns

Return type

RVState

abstract to_classical(self)

Converts to classical orbital elements representation.

Returns

Return type

ClassicalState

abstract to_equinoctial(self)

Converts to modified equinoctial elements representation.

Returns

Return type

ModifiedEquinoctialState

class poliastro.twobody.states.ClassicalState(attractor, p, ecc, inc, raan, argp, nu, plane)

Bases: poliastro.twobody.states.BaseState

State defined by its classical orbital elements.

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_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.

class poliastro.twobody.states.RVState(attractor, r, v, plane)

Bases: poliastro.twobody.states.BaseState

State defined by its position and velocity vectors.

property r(self)

Position vector.

property v(self)

Velocity vector.

to_vectors(self)

Converts to position and velocity vector representation.

to_classical(self)

Converts to classical orbital elements representation.

class poliastro.twobody.states.ModifiedEquinoctialState(attractor, p, f, g, h, k, L, plane)

Bases: poliastro.twobody.states.BaseState

Base State class, meant to be subclassed.

property p(self)
property f(self)
property g(self)
property h(self)
property k(self)
property L(self)
to_classical(self)

Converts to classical orbital elements representation.

Returns

Return type

ClassicalState