STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
engine.pipeline.measurements Namespace Reference

Functions

 _m (Any cfg, str key)
Any apply_measurements (Any cfg)
Dict[str, Dict[str, Any]] calibration_state (Any cfg)

Variables

dict CLOSES

Detailed Description

Measured values in place of the model's assumptions.

``apply_measurements(cfg)`` returns a copy of the config with every measurement written where the
assumed number used to enter, so every caller of the engine (forward mode, Time-Series, Layer 1)
uses it without knowing it exists. ``calibration_state(cfg)`` says, per forward-mode calibration
key, whether it is measured and by what.

  cd_O, cd_F         discharge.<side>: a fixed Cd (the discharge model's Re and inlet terms off)
  em                 combustion.efficiency: rupe_Em_opt = E_m, curvature 0 (E_m flat in M)
  d32_O_um, d32_F_um spray.smd.d32_measured_*: held at the measured value
  nozzle_efficiency  chamber_geometry.nozzle_efficiency
  chug_frequency_hz  reference only: forward mode shows it beside the model's

Function Documentation

◆ _m()

engine.pipeline.measurements._m ( Any cfg,
str key )
protected

Definition at line 19 of file measurements.py.

Referenced by apply_measurements(), and calibration_state().

◆ apply_measurements()

Any engine.pipeline.measurements.apply_measurements ( Any cfg)
A copy of ``cfg`` with its measurements applied; ``cfg`` itself when it has none.

Definition at line 24 of file measurements.py.

References _m().

◆ calibration_state()

Dict[str, Dict[str, Any]] engine.pipeline.measurements.calibration_state ( Any cfg)
Per calibration key: ``{"state": "measured"|"partial"|"assumed", "sources": [...]}``.

Definition at line 59 of file measurements.py.

References _m().

Variable Documentation

◆ CLOSES

dict engine.pipeline.measurements.CLOSES
Initial value:
1= {
2 "cd": ("cd_O", "cd_F"),
3 "em": ("em",),
4 "smd": ("d32_O_um", "d32_F_um"),
5 "nozzle": ("nozzle_efficiency",),
6}

Definition at line 51 of file measurements.py.