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

Functions

 _python_physics (monkeypatch)
 config ()
 _feed (config, K0)
 _lengths (config)
 test_the_designs_own_feed_needs_no_change (config)
 test_a_lossier_feed_opens_the_holes_by_the_orifice_law (config)
 new_lod (config, d, lengths, side)
 test_a_lighter_feed_shrinks_the_holes_and_says_it_needs_a_new_plate (config)
 test_drills_are_the_standard_sizes (no, inch)
 test_reconciling_closes_the_gap_on_the_stand (config)

Variables

float STUDY_LOCKUP_PSIA = 564.7
str CFG = Path(__file__).parent.parent / "configs" / "ethalox_6800N.yaml"
float PSI = 6894.757293168361
float P_TANK = 578.0 * PSI
float AMBIENT = 94070.0
tuple SIDES = ("oxidizer", "fuel")
 feedtwin = pytest.importorskip("feedtwin", reason="lib/feedtwin is not installed")
str GN2 = "copv_study_gn2"

Detailed Description

The injector reconciler: holes resized so the design point holds through the drawing's feed.

Checked against things the reconciler does not compute itself:
  * the orifice law. At restored flows, m = Cd A sqrt(2 rho dp) on each side, so the new area over
    the old is (Cd_old / Cd_new) sqrt(dp_old / dp_new), with Cd and dp from EngineDesign's solve;
  * the design's own feed asks for no change (the opt-in rule: nothing to do, nothing done);
  * drill diameters are ASME B94.11M's, in inches;
  * on the 6.8 kN engine and the stand drawing, the burn after reconciling sees its injector at the
    pressure Forward mode sized it for (the feed fit's manifold gap closes), and the burn's mean
    thrust rises toward the design point it fell short of.

Function Documentation

◆ _feed()

test_layerx_reconcile._feed ( config,
K0 )
protected

◆ _lengths()

◆ _python_physics()

test_layerx_reconcile._python_physics ( monkeypatch)
protected

Definition at line 37 of file test_layerx_reconcile.py.

◆ config()

test_layerx_reconcile.config ( void )

Definition at line 42 of file test_layerx_reconcile.py.

◆ new_lod()

test_layerx_reconcile.new_lod ( config,
d,
lengths,
side )

◆ test_a_lighter_feed_shrinks_the_holes_and_says_it_needs_a_new_plate()

test_layerx_reconcile.test_a_lighter_feed_shrinks_the_holes_and_says_it_needs_a_new_plate ( config)

Definition at line 91 of file test_layerx_reconcile.py.

References _feed(), and _lengths().

◆ test_a_lossier_feed_opens_the_holes_by_the_orifice_law()

test_layerx_reconcile.test_a_lossier_feed_opens_the_holes_by_the_orifice_law ( config)

Definition at line 64 of file test_layerx_reconcile.py.

References _feed(), _lengths(), and new_lod().

◆ test_drills_are_the_standard_sizes()

test_layerx_reconcile.test_drills_are_the_standard_sizes ( no,
inch )

Definition at line 103 of file test_layerx_reconcile.py.

◆ test_reconciling_closes_the_gap_on_the_stand()

test_layerx_reconcile.test_reconciling_closes_the_gap_on_the_stand ( config)

Definition at line 124 of file test_layerx_reconcile.py.

◆ test_the_designs_own_feed_needs_no_change()

test_layerx_reconcile.test_the_designs_own_feed_needs_no_change ( config)

Definition at line 57 of file test_layerx_reconcile.py.

References _lengths().

Variable Documentation

◆ AMBIENT

float test_layerx_reconcile.AMBIENT = 94070.0

Definition at line 32 of file test_layerx_reconcile.py.

◆ CFG

str test_layerx_reconcile.CFG = Path(__file__).parent.parent / "configs" / "ethalox_6800N.yaml"

Definition at line 29 of file test_layerx_reconcile.py.

◆ feedtwin

test_layerx_reconcile.feedtwin = pytest.importorskip("feedtwin", reason="lib/feedtwin is not installed")

Definition at line 113 of file test_layerx_reconcile.py.

◆ GN2

str test_layerx_reconcile.GN2 = "copv_study_gn2"

Definition at line 117 of file test_layerx_reconcile.py.

◆ P_TANK

float test_layerx_reconcile.P_TANK = 578.0 * PSI

Definition at line 31 of file test_layerx_reconcile.py.

◆ PSI

float test_layerx_reconcile.PSI = 6894.757293168361

Definition at line 30 of file test_layerx_reconcile.py.

◆ SIDES

tuple test_layerx_reconcile.SIDES = ("oxidizer", "fuel")

Definition at line 33 of file test_layerx_reconcile.py.

◆ STUDY_LOCKUP_PSIA

float test_layerx_reconcile.STUDY_LOCKUP_PSIA = 564.7

Definition at line 23 of file test_layerx_reconcile.py.