|
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[Any,...] | _hist_signature (Dict[str, Any] h) |
| None | _apply_hist_to_cfg (Any cfg, Dict[str, Any] h) |
| Tuple[float, float, float, float, float] | _prioritized_sort_key (Dict[str, Any] ev) |
| Optional[Dict[str, Any]] | _evaluate_candidate (Any cfg_template, Dict[str, Any] h, *, float P_O_psi, float P_F_psi) |
| None | main () |
Variables | |
| ROOT = Path(__file__).resolve().parents[1] | |
| float | PSI_TO_PA = 6894.76 |
| float | F_TARGET = 8000.0 |
| float | MR_TARGET = 3.5 |
| float | LARGE = 1.0e9 |
Region B Layer‑1: impinging geometry + **co-optimized** tank pressures (narrow bands).
- ``layer1_A_throat_mm2_min/max`` = 2520–2600 mm²
- LOX tank search: ``layer1_P_O_start_psi_min/max`` default 580–700 psi
- Fuel tank search: ``layer1_P_F_start_psi_min/max`` default 350–500 psi
- ``pressure_config`` caps: max LOX 700 psi, max fuel 500 psi (for ratio guidance in Layer‑1)
- ``layer1_infeasibility_gate_eps`` = 2e-3 (see ``layer1_static_optimization``)
Post-process: re-evaluates history + best point; ranks by lexicographic priorities:
1. Thrust near 8000 N
2. MR near 3.5
3. R near 1
4. Fuel ΔP/Pc near [0.40, 0.50]
5. Minimize LOX ΔP/Pc (lower is better)
Does **not** change Cd or injector physics.
Example::
python scripts/run_layer1_region_b_coop_pressures.py \\
--output-csv output/layer1_region_b_coop_ranked.csv
|
protected |
Definition at line 87 of file run_layer1_region_b_coop_pressures.py.
References _apply_throat_mm2().
Referenced by _evaluate_candidate().
|
protected |
Definition at line 59 of file run_layer1_region_b_coop_pressures.py.
References max.
Referenced by _apply_hist_to_cfg(), and main().
|
protected |
Definition at line 116 of file run_layer1_region_b_coop_pressures.py.
References _apply_hist_to_cfg(), and _prioritized_sort_key().
Referenced by main().
|
protected |
Definition at line 71 of file run_layer1_region_b_coop_pressures.py.
Referenced by main().
|
protected |
Lower tuple is better: thrust err, MR err, |R−1|, fuel ΔP hinge, LOX ΔP/Pc.
Definition at line 100 of file run_layer1_region_b_coop_pressures.py.
Referenced by _evaluate_candidate().
|
protected |
Definition at line 55 of file run_layer1_region_b_coop_pressures.py.
Referenced by main().
| None run_layer1_region_b_coop_pressures.main | ( | ) |
Definition at line 157 of file run_layer1_region_b_coop_pressures.py.
References _apply_throat_mm2(), _evaluate_candidate(), _hist_signature(), _strip_none_fp(), format(), main(), and min.
Referenced by main().
| float run_layer1_region_b_coop_pressures.F_TARGET = 8000.0 |
Definition at line 50 of file run_layer1_region_b_coop_pressures.py.
| float run_layer1_region_b_coop_pressures.LARGE = 1.0e9 |
Definition at line 52 of file run_layer1_region_b_coop_pressures.py.
| float run_layer1_region_b_coop_pressures.MR_TARGET = 3.5 |
Definition at line 51 of file run_layer1_region_b_coop_pressures.py.
| float run_layer1_region_b_coop_pressures.PSI_TO_PA = 6894.76 |
Definition at line 49 of file run_layer1_region_b_coop_pressures.py.
| run_layer1_region_b_coop_pressures.ROOT = Path(__file__).resolve().parents[1] |
Definition at line 38 of file run_layer1_region_b_coop_pressures.py.