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

Functions

str _fmt_pa_psi (float pa)
None _stream_breakdown (str name, float p_tank_pa, float pc_pa, float|None d_inj, float|None d_feed)
None main ()

Variables

 ROOT = Path(__file__).resolve().parents[1]
float PSI_PER_PA = 1.0 / 6894.76

Detailed Description

Print tank→chamber pressure budget per propellant stream from a runner.evaluate call.

Model used in ``impinging`` / ``pintle`` injectors::

    P_injector = P_tank − ΔP_feed
    ΔP_injector = max(0, P_injector − Pc)

Therefore::

    P_tank − Pc = ΔP_feed + ΔP_injector

``delta_p_remaining`` is the closure residual::

    (P_tank − Pc) − ΔP_feed − ΔP_injector

which should be ~0 Pa when diagnostics are consistent.

Fraction of total tank-to-chamber drop::

    f_feed = ΔP_feed / (P_tank − Pc)
    f_injector = ΔP_injector / (P_tank − Pc)

Example::

    python scripts/report_pressure_budget_breakdown.py \\
      --config configs/impinging_lox_ch4_8000N.yaml \\
      --po-psi 566.8 --pf-psi 780.1 --silent

Function Documentation

◆ _fmt_pa_psi()

str report_pressure_budget_breakdown._fmt_pa_psi ( float pa)
protected

Definition at line 46 of file report_pressure_budget_breakdown.py.

◆ _stream_breakdown()

None report_pressure_budget_breakdown._stream_breakdown ( str name,
float p_tank_pa,
float pc_pa,
float | None d_inj,
float | None d_feed )
protected

Definition at line 50 of file report_pressure_budget_breakdown.py.

Referenced by main().

◆ main()

None report_pressure_budget_breakdown.main ( )

Definition at line 80 of file report_pressure_budget_breakdown.py.

References _stream_breakdown(), and main().

Referenced by main().

Variable Documentation

◆ PSI_PER_PA

float report_pressure_budget_breakdown.PSI_PER_PA = 1.0 / 6894.76

Definition at line 40 of file report_pressure_budget_breakdown.py.

◆ ROOT

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

Definition at line 37 of file report_pressure_budget_breakdown.py.