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

Functions

 _python_physics (monkeypatch)
 _eval (cfg)
 test_declaring_the_supply_share_lowers_the_margin_and_moves_nothing_else ()

Variables

 CFG = os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), "configs", "ethalox_6800N.yaml")
float PSI = 6894.757293168361

Detailed Description

The chug loop reads the line's resistance, not the regulator's droop folded into K0.

Layer X's feed fit makes Forward mode agree with a burn by writing K0 = K_line + K_supply: the
supply term is the regulator sagging under flow. It lowers the injector inlet like a line loss, so
it belongs in K0 for the operating point; at chug frequencies it is the regulator's compliance,
which the stability model carries separately (Regulator), so as a feed resistance it was counted
twice and raised the gain margin. ``feed_system.<side>.supply_K`` names that share.

Judged on the model's own structure, not on a number it produced: the operating point must not
move at all, the default must be exactly the old behaviour, and the margin must fall when the
share is declared.

Function Documentation

◆ _eval()

test_chug_supply_share._eval ( cfg)
protected

◆ _python_physics()

test_chug_supply_share._python_physics ( monkeypatch)
protected

Definition at line 29 of file test_chug_supply_share.py.

◆ test_declaring_the_supply_share_lowers_the_margin_and_moves_nothing_else()

test_chug_supply_share.test_declaring_the_supply_share_lowers_the_margin_and_moves_nothing_else ( )

Definition at line 40 of file test_chug_supply_share.py.

References _eval().

Variable Documentation

◆ CFG

test_chug_supply_share.CFG = os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), "configs", "ethalox_6800N.yaml")

Definition at line 24 of file test_chug_supply_share.py.

◆ PSI

float test_chug_supply_share.PSI = 6894.757293168361

Definition at line 25 of file test_chug_supply_share.py.