Skip to main content

Crate sim_core

Crate sim_core 

Source
Expand description

Core: fixed-step integrator, state vector, signals, config loading, test harness. Knows no physics.

Re-exports§

pub use config::Bound;
pub use config::Config;
pub use config::ConfigError;
pub use config::ConfigHint;
pub use i18n::Translations;
pub use integrate::MOST_CUTS;
pub use integrate::Rk4;
pub use integrate::advance;
pub use integrate::advance_refined;
pub use machine::AxisInfo;
pub use machine::BASE_AXES;
pub use machine::BeltSection;
pub use machine::CamCurve;
pub use machine::CamMaster;
pub use machine::ENERGY_PARTS;
pub use machine::FRICTION_SIGNALS;
pub use machine::FrameMomentum;
pub use machine::FrictionContact;
pub use machine::LOSS_PREFIX;
pub use machine::Machine;
pub use machine::MachineEntry;
pub use machine::Mode;
pub use machine::MotorInfo;
pub use machine::RatingCheck;
pub use machine::SignalInfo;
pub use machine::TEMPERATURE_PREFIX;
pub use machine::THERMAL_KINDS;
pub use machine::TORQUE_PARTS;
pub use machine::ThermalPart;
pub use machine::Train;
pub use machine::tool_force_on_rates;
pub use scene::Aabb;
pub use scene::Arrow;
pub use scene::Capsule;
pub use scene::Label;
pub use scene::Obstacle;
pub use scene::Part;
pub use scene::Scene;
pub use scene::Shape;

Modules§

config
Machine configuration: one TOML file per machine, with a format version and units in the field names.
i18n
Translation tables in the simple-message subset of the Fluent format: key = text, # comments, { $arg } as the one placeholder.
integrate
Fixed-step integration. The core never looks at the wall clock.
machine
The machine interface: the one trait a kinematics has to implement.
scene
What a machine looks like, as data. A machine never renders; a front end draws these parts. Coordinates in metres: x to the right, y into the depth, z up.
testkit
The standard machine test suite. Every kinematics must pass it unchanged: transformation round trip, static hold, energy conservation, step-size convergence, determinism, and the energy balance with the losses the machine reports.