|
| Dict[str, Any] | motor_header (Any config) |
| str | _token (str text) |
| Tuple[List[float], List[float]] | curve (Dict[str, Any] result) |
| Optional[str] | _psia (Any value, int digits=1) |
| str | _t0_words (Dict[str, Any] result, Dict[str, Any] derived, Dict[str, Any] settings) |
| float | _trapz (List[float] t, List[float] f) |
| Tuple[float, float] | _run_mean (List[float] t, List[float] f) |
| str | to_eng (Dict[str, Any] result, *, str run_id="", Optional[str] name=None, Optional[float] diameter_mm=None, Optional[float] length_mm=None, Optional[float] dry_kg=None, str manufacturer="STAR", Optional[str] note=None) |
| str | filename (Dict[str, Any] result, str run_id="") |
| Dict[str, Any] | check (str text) |
A Layer X burn as a RASP ``.eng`` thrust curve, for OpenRocket.
The curve is the run's hand-off (``result["timeseries"]``): the thrust the flight in this run flew,
from Fire to the moment the first tank ran dry. RASP's layout::
; comments
NAME DIAMETER_mm LENGTH_mm DELAYS PROPELLANT_kg TOTAL_kg MANUFACTURER
time_s thrust_N
...
OpenRocket starts every curve from (0, 0) and needs it to end on zero thrust. The model's thrust
is on at Fire, so the first point sits ``EDGE_S`` after it and a zero point ``EDGE_S`` after the
last: the two ramps cost and add back half an edge of thrust each, and the file states its own
impulse against the run's.
Mass, as OpenRocket uses it: it removes the propellant mass in proportion to the impulse delivered.
``PROPELLANT_kg`` is what the burn consumed; ``TOTAL_kg`` adds the engine's dry mass
(``rocket.engine_mass``). Tanks, pressurant, bottle and unburned residual are not in it: in an
OpenRocket model of a liquid vehicle they are airframe components.
| Tuple[float, float] engine.layerx.eng._run_mean |
( |
List[float] | t, |
|
|
List[float] | f ) |
|
protected |
``(impulse [N s], mean thrust [N])`` as the run totals them (``delivered.summary``): each sample
after Fire carries the step that ends there, so the curve is step-held. The trapezoid of the same
samples is neither the run's figure nor the file's (LE4 (3): 23743.9 against the run's 23737.9 N-s).
Definition at line 116 of file eng.py.
Referenced by filename(), and to_eng().