Crate altrios_core

source ·
Expand description

Crate containing models for second-by-second fuel and energy consumption of simulation of locomotive consists comprising collections of individual locomotives, which comprise various powertrain components (engine, generator/alternator, battery, and electric drivetrain) – all connected to a detailed train model.

§Helpful Tips

Every struct in this crate implements methods for serializing/deserializing itself to/from a handful of standard data formats as strings or file read/write operations using traits::SerdeAPI.

§Features:

  • pyo3: enable this feature to expose ALTRIOS structs, methods, and functions to Python

Modules§

  • Module containing submodules for consists, locomotives, and powertrain models
  • Meet-pass
  • Import uom si system and add unit constants Zero values should be created using standard uom syntax ($Quantity::ZERO) after adding “use crate::imports::*” Non-zero values should be created using standard uom syntax ($Quantity::new::<$unit>($value)) or multiplication syntax ($value * $UNIT_CONSTANT)
  • Module providing unit constants (e.g. 1 kg) for an assortment of dimensional quantities.

Macros§