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

Functions

 _to_jsonable (v)
 main ()

Variables

list ANCHOR_FIELDS
list DIAG_FIELDS

Detailed Description

Capture a golden anchor fixture for the unification effort (UNIFICATION_PLAN.md Phase 1).

Runs deterministic forward evaluations against a target EngineDesign tree (main worktree or HEAD)
and dumps the physics outputs as JSON. Stability fields are recorded for reference but are NOT part
of the equivalence set (the stability model intentionally changed on this branch).

Usage:
    python scripts/unify_capture_anchor.py <target_engine_design_root> <config_yaml> <out_json>

IMPORTANT: run with cwd = <target_engine_design_root> so the target tree's `engine` package is the
one imported (sys.path[0] insertion below enforces it as well).

Function Documentation

◆ _to_jsonable()

unify_capture_anchor._to_jsonable ( v)
protected

Definition at line 21 of file unify_capture_anchor.py.

Referenced by main().

◆ main()

unify_capture_anchor.main ( )

Definition at line 41 of file unify_capture_anchor.py.

References _to_jsonable(), and main().

Referenced by main().

Variable Documentation

◆ ANCHOR_FIELDS

list unify_capture_anchor.ANCHOR_FIELDS
Initial value:
1= [
2 "Pc", "F", "Isp", "MR", "mdot_O", "mdot_F", "mdot_total",
3 "P_exit", "Tc", "Cf", "v_exit", "M_exit", "eps",
4]

Definition at line 30 of file unify_capture_anchor.py.

◆ DIAG_FIELDS

list unify_capture_anchor.DIAG_FIELDS
Initial value:
1= [
2 "Cd_O", "Cd_F", "delta_p_injector_O", "delta_p_injector_F",
3 "delta_p_feed_O", "delta_p_feed_F", "D32_O", "D32_F",
4 "We_O", "We_F", "momentum_ratio_R", "TMR", "J",
5]

Definition at line 34 of file unify_capture_anchor.py.