|
STAR
Cal STAR — firmware, DAQ server, and engine design
|
Functions | |
| Tuple[float, float, List[str]] | effective_flow_areas_from_cd (Any diagnostics, float A_geom_O, float A_geom_F) |
| None | merge_effective_area_warnings (Dict[str, Any] diagnostics, List[str] warnings) |
Effective injector flow capacity: A_eff = Cd * A_geom with numeric fallback.
| Tuple[float, float, List[str]] engine.core.injectors.flow_capacity.effective_flow_areas_from_cd | ( | Any | diagnostics, |
| float | A_geom_O, | ||
| float | A_geom_F ) |
Compute A_eff_O, A_eff_F from closure diagnostics Cd_O/Cd_F.
If Cd is missing, non-finite, or <= 0 for a stream, fall back to geometric area
for that stream and record a warning tag (caller may attach to diagnostics).
Parameters
----------
diagnostics:
Injector / closure diagnostics dict containing optional ``Cd_O``, ``Cd_F``.
A_geom_O, A_geom_F:
Geometric flow areas [m²] (sum of orifice areas per stream).
Returns
-------
A_eff_O, A_eff_F, warnings
Effective areas [m²] and a list of warning tokens, e.g.
``Cd_O_fallback_geometric``.
Definition at line 10 of file flow_capacity.py.
| None engine.core.injectors.flow_capacity.merge_effective_area_warnings | ( | Dict[str, Any] | diagnostics, |
| List[str] | warnings ) |
Append warnings list onto diagnostics dict in-place (idempotent merge).
Definition at line 51 of file flow_capacity.py.