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

Functions

None _clean_frozen (Dict[str, Any] req)
float _sf (Any x)
Tuple[float, float] _dp_ratios (Dict[str, Any] perf)
Tuple[float, float] _cds (Dict[str, Any] perf)
None _scale_dc (DischargeConfig dc, float factor)
Any _cd_scaled_cfg (Any base_cfg, float fo, float ff)
bool _mission_ok (Dict[str, Any] perf, *, float r_lo, float r_hi, float dp_lo, float dp_hi)
None _print_cd_audit (Path cfg_path)
None _print_case (str name, Dict[str, Any] perf, Any opt_cfg, *, Tuple[float, float] r_band)
None _cd_sensitivity_grid (Any opt_cfg, float po_pa, float pf_pa)
None main ()

Variables

 ROOT = Path(__file__).resolve().parents[1]
float PSI_TO_PA = 6894.76

Detailed Description

Part 2–3: free-throat Layer-1 with relaxed momentum_ratio_R bands + metrics/Cd reporting.

Requirements keys (optimizer-only; no injector physics edits)::

    impinging_momentum_R_min / impinging_momentum_R_max  — ratio-space deadband for W_MOM hinge

Runs Case A [0.85, 1.15] and Case B [0.75, 1.25], then ±10%% Cd scaling diagnostic on Case B optimum.

Also prints Part 1 Cd model summary from YAML ``discharge`` + ``engine.core.discharge.cd_from_re``.

Function Documentation

◆ _cd_scaled_cfg()

Any run_layer1_relaxed_momentum_cd_audit._cd_scaled_cfg ( Any base_cfg,
float fo,
float ff )
protected

Definition at line 81 of file run_layer1_relaxed_momentum_cd_audit.py.

References _scale_dc().

Referenced by _cd_sensitivity_grid().

◆ _cd_sensitivity_grid()

None run_layer1_relaxed_momentum_cd_audit._cd_sensitivity_grid ( Any opt_cfg,
float po_pa,
float pf_pa )
protected

Definition at line 166 of file run_layer1_relaxed_momentum_cd_audit.py.

References _cd_scaled_cfg().

Referenced by main().

◆ _cds()

Tuple[float, float] run_layer1_relaxed_momentum_cd_audit._cds ( Dict[str, Any] perf)
protected

Definition at line 69 of file run_layer1_relaxed_momentum_cd_audit.py.

References _sf().

Referenced by _print_case(), and main().

◆ _clean_frozen()

None run_layer1_relaxed_momentum_cd_audit._clean_frozen ( Dict[str, Any] req)
protected

Definition at line 35 of file run_layer1_relaxed_momentum_cd_audit.py.

Referenced by main().

◆ _dp_ratios()

Tuple[float, float] run_layer1_relaxed_momentum_cd_audit._dp_ratios ( Dict[str, Any] perf)
protected

Definition at line 55 of file run_layer1_relaxed_momentum_cd_audit.py.

Referenced by _mission_ok(), and _print_case().

◆ _mission_ok()

bool run_layer1_relaxed_momentum_cd_audit._mission_ok ( Dict[str, Any] perf,
* ,
float r_lo,
float r_hi,
float dp_lo,
float dp_hi )
protected

Definition at line 88 of file run_layer1_relaxed_momentum_cd_audit.py.

References _dp_ratios(), and _sf().

Referenced by main().

◆ _print_case()

None run_layer1_relaxed_momentum_cd_audit._print_case ( str name,
Dict[str, Any] perf,
Any opt_cfg,
* ,
Tuple[float, float] r_band )
protected

Definition at line 133 of file run_layer1_relaxed_momentum_cd_audit.py.

References _cds(), and _dp_ratios().

Referenced by main().

◆ _print_cd_audit()

None run_layer1_relaxed_momentum_cd_audit._print_cd_audit ( Path cfg_path)
protected

Definition at line 112 of file run_layer1_relaxed_momentum_cd_audit.py.

Referenced by main().

◆ _scale_dc()

None run_layer1_relaxed_momentum_cd_audit._scale_dc ( DischargeConfig dc,
float factor )
protected

Definition at line 76 of file run_layer1_relaxed_momentum_cd_audit.py.

References min.

Referenced by _cd_scaled_cfg().

◆ _sf()

float run_layer1_relaxed_momentum_cd_audit._sf ( Any x)
protected

Definition at line 45 of file run_layer1_relaxed_momentum_cd_audit.py.

Referenced by _cds(), and _mission_ok().

◆ main()

None run_layer1_relaxed_momentum_cd_audit.main ( )

Variable Documentation

◆ PSI_TO_PA

float run_layer1_relaxed_momentum_cd_audit.PSI_TO_PA = 6894.76

Definition at line 27 of file run_layer1_relaxed_momentum_cd_audit.py.

◆ ROOT

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

Definition at line 24 of file run_layer1_relaxed_momentum_cd_audit.py.