| Space |
Space.angular_momentum() -> Vector |
Compute total mass-weighted angular momentum vector (with mu as mass, G=1) of all bodies in space |
| Space |
Space.body(name: string, mu: float) -> Body |
Create a body at the origin with zero velocity and positive gravitational parameter mu |
| Space |
Space.body(name: string, mu: float, x: float, y: float, z: float, vx: float, vy: float, vz: float) -> Body |
Create a body with positive gravitational parameter mu and Cartesian position (x, y, z) and velocity (vx, vy, vz) |
| Space |
Space.clear_kernels() -> void |
Unload all SPICE kernels currently loaded in the host process |
| Space |
Space.energy() -> float |
Compute total mass-weighted mechanical energy (kinetic plus potential, mu as mass) of all bodies in space |
| Space |
Space.energy_drift() -> float |
Return the largest relative energy change recorded during the most recent space.propagate call |
| Space |
Space.ephemeris(target: string, observer: string, frame: string, et: float) -> Matrix |
Query geometric 1x6 state matrix (km and km/s, aberration NONE) from loaded SPICE kernels at ephemeris time et |
| Space |
Space.frame(from: string, to: string, et: float) -> Matrix |
Return the 3x3 coordinate rotation matrix from reference frame from to frame to at ephemeris time et |
| Space |
Space.load_kernel(path: string) -> void |
Validate and load a local binary (DAF/DAS) or text (\begindata) SPICE kernel or metakernel |
| Space |
Space.propagate(duration: float, points: int, step: float, method: string, tol: float) -> Matrix |
Propagate all bodies created in space over duration across points rows using symplectic or rk45 |
| Space |
Space.system() -> System |
Create an empty independent N-body System |
| Space |
Space.time(text: string) -> float |
Convert a time string to SPICE ephemeris time (ET seconds past J2000); requires a loaded leap-second kernel for UTC |
| System |
System.add(body: Body) -> System |
Copy the current state of body into the system and return the system for chaining |
| System |
System.angular_momentum() -> Vector |
Compute total mass-weighted angular momentum vector of bodies in this system |
| System |
System.energy() -> float |
Compute total mass-weighted mechanical energy of bodies in this system |
| System |
System.energy_drift() -> float |
Return the largest relative energy change recorded during the most recent system.propagate call |
| System |
System.propagate(duration: float, points: int, step: float, method: string, tol: float) -> Matrix |
Propagate the bodies in this system over duration across points rows using symplectic or rk45 |
| Body |
Body.elements(central_mu: float) -> Elements |
Convert the body Cartesian state to classical orbital elements around central_mu |
| Body |
Body.mu() -> float |
Return the body gravitational parameter mu |
| Body |
Body.name() -> string |
Return the body name |
| Body |
Body.propagate(central_mu: float, dt: float) -> State |
Propagate the body analytically for dt along its two-body Keplerian orbit around central_mu |
| Body |
Body.state() -> State |
Return the initial Cartesian State of the body |
| State |
State.elements(central_mu: float) -> Elements |
Convert this Cartesian state to classical orbital elements around central_mu |
| State |
State.position() -> Vector |
Return the 3D position Vector |
| State |
State.propagate(central_mu: float, dt: float) -> State |
Propagate this Cartesian state analytically for dt along a two-body Keplerian orbit around central_mu |
| State |
State.velocity() -> Vector |
Return the 3D velocity Vector |
| Elements |
Elements.a() -> float |
Return the semi-major axis a |
| Elements |
Elements.e() -> float |
Return the orbital eccentricity e |
| Elements |
Elements.i() -> float |
Return the orbital inclination i in radians |
| Elements |
Elements.raan() -> float |
Return the right ascension of the ascending node in radians |
| Elements |
Elements.argp() -> float |
Return the argument of periapsis in radians |
| Elements |
Elements.nu() -> float |
Return the true anomaly in radians |
| Elements |
Elements.to_state(central_mu: float) -> State |
Convert these classical orbital elements to a Cartesian State around central_mu |
| Vector |
Vector.get(index: int) -> float |
Return component 0 (x), 1 (y), or 2 (z) |
| Vector |
Vector.x() -> float |
Return the x coordinate |
| Vector |
Vector.y() -> float |
Return the y coordinate |
| Vector |
Vector.z() -> float |
Return the z coordinate |
| Matrix |
Matrix.rows() -> int |
Return the number of rows in the matrix |
| Matrix |
Matrix.cols() -> int |
Return the number of columns in the matrix |
| Matrix |
Matrix.get(row: int, col: int) -> float |
Return the value at 0-based (row, col) |
| Matrix |
Matrix.save_csv(path: string) -> void |
Write the matrix to path as comma-separated values with 17 significant digits per cell |