Skip to main content

Crate astrodyn_runner

Crate astrodyn_runner 

Source
Expand description

Standalone simulation runner for JEOD physics.

Provides a Simulation struct for batch propagation, scripting, and Tier 3 cross-validation tests. Owns all state and runs the astrodyn pipeline internally.

ECS adapters should not depend on this crate — use the per-body functions from astrodyn directly instead.

§Example

use astrodyn_runner::SimulationBuilderExt;
use astrodyn::recipes::Mission;

let mut sim = Mission::iss_leo().into_builder().build().unwrap();
sim.step_n(10);
let output = sim.body(0);
assert!(output.trans.position.raw_si().length() > 6_000_000.0);

Re-exports§

pub use branded::BodyIdx;
pub use branded::BrandedSimulation;
pub use branded::SourceIdx;
pub use error::StepError;
pub use builder::SimulationBuilderExt;
pub use astrodyn;

Modules§

branded
Branded Simulation<'sim> wrapper with compile-time index isolation between concurrent simulations (#152).
builder
Runner-side terminal methods for the relocated astrodyn::SimulationBuilder.
error
Error type returned by stepping methods on Simulation.
prelude
Glob-import prelude for runner-side ergonomics.

Structs§

ContactPairConfig
Registration of a contact interaction between two bodies.
DetachedSubtreeState
Composite-body inertial state of a free-flying mass-tree subtree (i.e. a tree root that is not the integrated body). All fields are in the simulation’s root inertial frame.
FrameAttachState
Attachment of a body to a non-body reference frame (port of JEOD’s DynBody::frame_attach member, populated by attach_to_frame).
GroundContactPairConfig
Registration of a ground-contact interaction between a vehicle and a planetary surface.
GroundFacet
Infinite-surface “ground” facet anchored to a planet via a Terrain model.
Simulation
ECS-agnostic simulation runner.
SphericalTerrain
Spherical-Earth terrain — ground at a fixed planet radius.
VehicleOutput
Read-only view of vehicle state after stepping.

Enums§

RotationModel
Rotation model for a gravity source’s planet-fixed frame.

Traits§

Terrain
Planetary terrain model that maps a planet-fixed query position to a ground point and outward surface normal.

Type Aliases§

FrameId
Handle into the FrameTree arena.