Skip to main content

Crate hpr_motor

Crate hpr_motor 

Source
Expand description

Solid rocket motor model (thrust, propellant mass, CG and inertia over time), .eng/.rse reading and writing, and catalog types.

Guide: Solid motors, .eng files and .rse files: the models, their sources, how well they are validated and what they leave out.

  • curve: thrust curves, total impulse, NFPA 1125 burn time and average thrust.
  • class: impulse classes (1/8A to O and beyond).
  • motor: the solid motor: consumption, mass properties and ambient-pressure thrust, with grains (BATES grains) and mass (axisymmetric mass elements).
  • eng and rse: RASP and RockSim motor files, with delay strings.
  • catalog: the offline catalog and its bundled ThrustCurve.org curves.

Re-exports§

pub use catalog::Catalog;
pub use catalog::CatalogCurve;
pub use catalog::CatalogMotor;
pub use class::ImpulseClass;
pub use curve::ThrustCurve;
pub use delay::Delay;
pub use delay::DelayList;
pub use delay::DelayWarning;
pub use error::MotorError;
pub use grains::BatesGrains;
pub use grains::GrainShape;
pub use mass::MassElement;
pub use motor::EXHAUST_VELOCITY_RANGE_M_S;
pub use motor::MotorState;
pub use motor::Nozzle;
pub use motor::Propellant;
pub use motor::PropellantColumn;
pub use motor::SolidMotor;
pub use text::ParseWarning;
pub use text::Parsed;
pub use text::WarningKind;

Modules§

catalog
An offline motor catalog: motor metadata, thrust curves, and each curve’s provenance and license.
class
Impulse classes: the letter in a motor’s designation that bands its total impulse.
convert
Converting motor files between RASP .eng and RockSim .rse.
curve
Thrust curves: thrust against time, and the impulse, burn time and average thrust derived from them.
delay
Ejection delays: the time from burnout to the ejection charge, or none for a plugged motor.
eng
RASP .eng motor files: reading and writing, built from the public spec (docs/format/eng.md).
error
Error types for the motor model, its file formats and the catalog.
grains
BATES grains: a stack of identical hollow cylindrical grains that burn on their bores and, unless inhibited, on both ends.
mass
Axisymmetric mass elements: a mass on the motor axis with its own axial and transverse moments of inertia, and how elements combine.
motor
The solid motor model: thrust, propellant consumption, and the motor’s mass, center of mass and inertia at any time in the burn.
rse
RockSim .rse motor files: reading and writing (docs/format/rse.md).
text
Shared pieces of the text formats: parse warnings and number reading.