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

Functions

 _s (a)
 _c (a)
 _geometry ()
 _write (path, loop)
 synthetic (tmp_path)
 test_the_plate_and_its_channels_come_back_from_the_lines (synthetic)
 test_passages_run_from_facet_to_flank_at_the_jet_angle (synthetic)
 test_a_jet_angle_the_drawing_does_not_carry_locates_nothing (synthetic)
 test_section_thickness_is_the_metal_on_the_axial_line (synthetic)
 test_an_open_profile_is_refused (tmp_path)
 test_the_shipped_drawing_against_hand_numbers ()
 _cfg ()
 test_layout_takes_the_drawing_and_flags_what_the_config_contradicts ()
 test_ring_manifold_uses_the_drawn_section ()

Variables

 ezdxf = pytest.importorskip("ezdxf")
float IN = 0.0254
str DRAWING = "configs/cad/ethalox_6500N_injector_revolve_2026-09-28.dxf"
 T
 R
 TH_O
 TH_F
 E_O_R
 F_O
 E_D = F_O * _s(TH_O)
 F_F = F_O * _s(TH_O) / _s(TH_F)
float E_F_R = 1.72
 L_O
 L_F
float G = 0.04

Detailed Description

The injector plate read from its revolve sketch (engine/core/injectors/plate_dxf.py).

The synthetic plate is built from a chosen answer -- exits, passage lengths, facets normal to
the passages, a flat-bottomed groove -- and the reader must recover that answer from the lines
alone. The shipped drawing is checked against numbers worked by hand from its coordinates.

Function Documentation

◆ _c()

test_plate_dxf._c ( a)
protected

Definition at line 21 of file test_plate_dxf.py.

Referenced by _geometry().

◆ _cfg()

test_plate_dxf._cfg ( )
protected
The stand's config with its drawing as the geometry (the config itself only checks it).

Definition at line 152 of file test_plate_dxf.py.

Referenced by test_layout_takes_the_drawing_and_flags_what_the_config_contradicts(), and test_ring_manifold_uses_the_drawn_section().

◆ _geometry()

test_plate_dxf._geometry ( )
protected

Definition at line 36 of file test_plate_dxf.py.

References _c(), and _s().

Referenced by synthetic(), and test_an_open_profile_is_refused().

◆ _s()

test_plate_dxf._s ( a)
protected

Definition at line 17 of file test_plate_dxf.py.

Referenced by _geometry().

◆ _write()

test_plate_dxf._write ( path,
loop )
protected

Definition at line 54 of file test_plate_dxf.py.

Referenced by synthetic().

◆ synthetic()

test_plate_dxf.synthetic ( tmp_path)

Definition at line 64 of file test_plate_dxf.py.

References _geometry(), and _write().

◆ test_a_jet_angle_the_drawing_does_not_carry_locates_nothing()

test_plate_dxf.test_a_jet_angle_the_drawing_does_not_carry_locates_nothing ( synthetic)

Definition at line 104 of file test_plate_dxf.py.

◆ test_an_open_profile_is_refused()

test_plate_dxf.test_an_open_profile_is_refused ( tmp_path)

Definition at line 121 of file test_plate_dxf.py.

References _geometry().

◆ test_layout_takes_the_drawing_and_flags_what_the_config_contradicts()

test_plate_dxf.test_layout_takes_the_drawing_and_flags_what_the_config_contradicts ( )

Definition at line 160 of file test_plate_dxf.py.

References _cfg().

◆ test_passages_run_from_facet_to_flank_at_the_jet_angle()

test_plate_dxf.test_passages_run_from_facet_to_flank_at_the_jet_angle ( synthetic)

Definition at line 89 of file test_plate_dxf.py.

◆ test_ring_manifold_uses_the_drawn_section()

test_plate_dxf.test_ring_manifold_uses_the_drawn_section ( )

Definition at line 175 of file test_plate_dxf.py.

References _cfg().

◆ test_section_thickness_is_the_metal_on_the_axial_line()

test_plate_dxf.test_section_thickness_is_the_metal_on_the_axial_line ( synthetic)

Definition at line 110 of file test_plate_dxf.py.

◆ test_the_plate_and_its_channels_come_back_from_the_lines()

test_plate_dxf.test_the_plate_and_its_channels_come_back_from_the_lines ( synthetic)

Definition at line 71 of file test_plate_dxf.py.

◆ test_the_shipped_drawing_against_hand_numbers()

test_plate_dxf.test_the_shipped_drawing_against_hand_numbers ( )
By hand from the sketch's coordinates (inches). LOX channel: 0.300 wide floor 0.4868 deep,
then a facet 0.0819 across rising 0.0573: 0.300 x 0.4868 + 0.0819 x (0.4868 - 0.0573/2)
= 0.18357 in^2. LOX exit at the flank midpoint, r = (1.209 + 1.291)/2 = 1.250 in; the passage
to the facet midpoint (1.06575, 0.29185) from (1.250, 0.0287) is 0.3213 in = 8.16 mm.

Definition at line 134 of file test_plate_dxf.py.

Variable Documentation

◆ DRAWING

str test_plate_dxf.DRAWING = "configs/cad/ethalox_6500N_injector_revolve_2026-09-28.dxf"

Definition at line 14 of file test_plate_dxf.py.

◆ E_D

test_plate_dxf.E_D = F_O * _s(TH_O)

Definition at line 29 of file test_plate_dxf.py.

◆ E_F_R

float test_plate_dxf.E_F_R = 1.72

Definition at line 31 of file test_plate_dxf.py.

◆ E_O_R

test_plate_dxf.E_O_R

Definition at line 28 of file test_plate_dxf.py.

◆ ezdxf

test_plate_dxf.ezdxf = pytest.importorskip("ezdxf")

Definition at line 11 of file test_plate_dxf.py.

◆ F_F

test_plate_dxf.F_F = F_O * _s(TH_O) / _s(TH_F)

Definition at line 30 of file test_plate_dxf.py.

◆ F_O

test_plate_dxf.F_O

Definition at line 28 of file test_plate_dxf.py.

◆ G

float test_plate_dxf.G = 0.04

Definition at line 33 of file test_plate_dxf.py.

◆ IN

float test_plate_dxf.IN = 0.0254

Definition at line 13 of file test_plate_dxf.py.

◆ L_F

test_plate_dxf.L_F

Definition at line 32 of file test_plate_dxf.py.

◆ L_O

test_plate_dxf.L_O

Definition at line 32 of file test_plate_dxf.py.

◆ R

test_plate_dxf.R

Definition at line 26 of file test_plate_dxf.py.

◆ T

test_plate_dxf.T

Definition at line 26 of file test_plate_dxf.py.

◆ TH_F

test_plate_dxf.TH_F

Definition at line 27 of file test_plate_dxf.py.

◆ TH_O

test_plate_dxf.TH_O

Definition at line 27 of file test_plate_dxf.py.