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

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)
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

Detailed Description

Region B Layer‑1: optimize impinging injector geometry with frozen tanks + throat band.

Targets from Pareto Region B exploration:
  - ``layer1_A_throat_mm2_min/max`` ≈ 2520–2600 mm²
  - Frozen tank stagnation pressures ~644 psi LOX, ~409 psi fuel (mid of 407–411)
  - ``max_fuel_tank_pressure_psi`` / pressure_config fuel cap ≤ 600 psi

Optimizes impinging jet parameters (n_elements, d_jet, spacing, impingement angles) and throat
within the band; L*, D_outer, expansion_ratio pinned from YAML frozen_parameters.

Post-processes ``iteration_history``: re-evaluates diverse near-best candidates and ranks by a
composite of mission error, ΔP/Pc band hinges (LOX [0.15,0.40], fuel [0.40,0.50]), and R hinge
around [0.93, 1.07].

Does **not** modify Cd or injector physics equations.

Example::

  python scripts/run_layer1_region_b_injector_geometry.py \\
    --layer1-max-iterations 175 --layer1-cma-restarts 2 \\
    --output-csv output/layer1_region_b_ranked.csv

Function Documentation

◆ _apply_hist_to_cfg()

None run_layer1_region_b_injector_geometry._apply_hist_to_cfg ( Any cfg,
Dict[str, Any] h )
protected

Definition at line 83 of file run_layer1_region_b_injector_geometry.py.

References _apply_throat_mm2().

Referenced by _evaluate_candidate().

◆ _apply_throat_mm2()

None run_layer1_region_b_injector_geometry._apply_throat_mm2 ( Any cfg,
float mm2 )
protected

Definition at line 57 of file run_layer1_region_b_injector_geometry.py.

References max.

Referenced by _apply_hist_to_cfg(), and main().

◆ _evaluate_candidate()

Optional[Dict[str, Any]] run_layer1_region_b_injector_geometry._evaluate_candidate ( Any cfg_template,
Dict[str, Any] h,
* ,
float P_O_psi,
float P_F_psi )
protected

Definition at line 96 of file run_layer1_region_b_injector_geometry.py.

References _apply_hist_to_cfg().

Referenced by main().

◆ _hist_signature()

Tuple[Any, ...] run_layer1_region_b_injector_geometry._hist_signature ( Dict[str, Any] h)
protected

Definition at line 69 of file run_layer1_region_b_injector_geometry.py.

Referenced by main().

◆ _strip_none_fp()

Dict[str, Any] run_layer1_region_b_injector_geometry._strip_none_fp ( Dict[str, Any] fp)
protected

Definition at line 53 of file run_layer1_region_b_injector_geometry.py.

Referenced by main().

◆ main()

None run_layer1_region_b_injector_geometry.main ( )

Variable Documentation

◆ F_TARGET

float run_layer1_region_b_injector_geometry.F_TARGET = 8000.0

Definition at line 49 of file run_layer1_region_b_injector_geometry.py.

◆ MR_TARGET

float run_layer1_region_b_injector_geometry.MR_TARGET = 3.5

Definition at line 50 of file run_layer1_region_b_injector_geometry.py.

◆ PSI_TO_PA

float run_layer1_region_b_injector_geometry.PSI_TO_PA = 6894.76

Definition at line 48 of file run_layer1_region_b_injector_geometry.py.

◆ ROOT

run_layer1_region_b_injector_geometry.ROOT = Path(__file__).resolve().parents[1]

Definition at line 37 of file run_layer1_region_b_injector_geometry.py.