|
STAR
Cal STAR — firmware, DAQ server, and engine design
|
Functions | |
| Dict[str, Any] | _strip_none_fp (Dict[str, Any] fp) |
| None | _apply_throat_mm2 (Any cfg, float mm2) |
| Tuple[float, float, float, float] | _apply_cd_caps (Any cfg, float cd_o_inf, float cd_f_inf) |
| Tuple[Any, Dict[str, Any], Dict[str, Any]] | _build_req_and_cfg (Path base_cfg_path, *, float throat_lo_mm2, float throat_hi_mm2, float p_o_lo, float p_o_hi, float p_f_lo, float p_f_hi, float max_lox_psi, float max_fuel_psi) |
| None | main () |
Variables | |
| ROOT = Path(__file__).resolve().parents[1] | |
| float | F_TARGET = 8000.0 |
| float | MR_TARGET = 3.5 |
| float | _RATIO_CD_MIN_INF_O = 0.15 / 0.40 |
| float | _RATIO_CD_MIN_INF_F = 0.2 / 0.30 |
| list | CASES |
Cd **design-assumption** sensitivity (Layer‑1): vary ``Cd_inf`` / ``Cd_min`` only.
Does **not** change injector equations (``engine/core/injectors/impinging.py`` unchanged).
Does **not** commit new Cd defaults — cases override config in-memory before ``run_layer1_optimization``.
Cases (assume ``Cd_*`` applies to oxidizer vs fuel discharge caps::
A baseline: Cd_O = 0.40, Cd_F = 0.30
B: Cd_O = 0.60, Cd_F = 0.60
C: Cd_O = 0.70, Cd_F = 0.70
D: Cd_O = 0.60, Cd_F = 0.70
``Cd_min`` per stream preserves the oxidizer:fuel baseline **ratio**
``Cd_min / Cd_inf`` from ``configs/impinging_lox_ch4_8000N.yaml`` (0.15/0.40 and 0.2/0.3).
Layer‑1 targets (via requirements):
- Thrust target 8000 N, MR target 3.5
- Impinging R hinge [0.93, 1.07]
- ΔP_inj/Pc hinge **both streams** [0.15, 0.40]
- Tank pressures co‑optimized within CLI bands
- Default throat band: Region B [2520, 2600] mm² ; optional ±12.5% around YAML ``A_throat``
Outputs one summary CSV plus per-console case blocks.
Example::
python scripts/sensitivity_cd_assumptions_layer1.py \\
--output-csv output/sensitivity_cd_layer1_summary.csv
|
protected |
Definition at line 83 of file sensitivity_cd_assumptions_layer1.py.
Referenced by main().
|
protected |
Definition at line 71 of file sensitivity_cd_assumptions_layer1.py.
References max.
Referenced by _build_req_and_cfg().
|
protected |
Definition at line 93 of file sensitivity_cd_assumptions_layer1.py.
References _apply_throat_mm2(), _strip_none_fp(), and min.
Referenced by main().
|
protected |
Definition at line 67 of file sensitivity_cd_assumptions_layer1.py.
Referenced by _build_req_and_cfg().
| None sensitivity_cd_assumptions_layer1.main | ( | ) |
Definition at line 170 of file sensitivity_cd_assumptions_layer1.py.
References _apply_cd_caps(), _build_req_and_cfg(), format(), and main().
Referenced by main().
|
protected |
Definition at line 57 of file sensitivity_cd_assumptions_layer1.py.
|
protected |
Definition at line 56 of file sensitivity_cd_assumptions_layer1.py.
| list sensitivity_cd_assumptions_layer1.CASES |
Definition at line 59 of file sensitivity_cd_assumptions_layer1.py.
| float sensitivity_cd_assumptions_layer1.F_TARGET = 8000.0 |
Definition at line 53 of file sensitivity_cd_assumptions_layer1.py.
| float sensitivity_cd_assumptions_layer1.MR_TARGET = 3.5 |
Definition at line 54 of file sensitivity_cd_assumptions_layer1.py.
| sensitivity_cd_assumptions_layer1.ROOT = Path(__file__).resolve().parents[1] |
Definition at line 46 of file sensitivity_cd_assumptions_layer1.py.