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

Functions

float _paper (float Re, float lod)
DischargeConfig _sharp (float lod, **kw)
 test_matches_paper (Re, lod)
 test_audit_magnitudes_ld4 (Re, want)
 test_piecewise_keeps_legacy_a_re ()
 test_no_inlet_keeps_legacy_a_re ()

Detailed Description

Cd(Re) of a drilled orifice follows Lichtarowicz, Duggins & Markland (1965).

J. Mech. Eng. Sci. 7(2):210-219, sharp-inlet long orifice, non-cavitating, 2 <= L/d <= 10:

    1/Cd = 1/Cd_u + 20 (1 + 2.25 L/d)/Re - 0.0015 (L/d) / (1 + 7.5 [log10(0.00015 Re)]^2)
    Cd_u = 0.827 - 0.0085 L/d

The module anchors Cd_u to its inlet table (sharp 0.80 at the fit's L/d 3.18), which for a sharp
inlet reproduces the published Cd_u exactly; that is what the expected values below use. The old
law, Cd_inf - a_Re / sqrt(Re) with an unsourced a_Re = 0.18, sat ~0.06 high at Re 2e3.

Expected values are computed here from the paper's expression, not from the module.

Function Documentation

◆ _paper()

float test_cd_lichtarowicz_re._paper ( float Re,
float lod )
protected

Definition at line 24 of file test_cd_lichtarowicz_re.py.

Referenced by test_matches_paper().

◆ _sharp()

DischargeConfig test_cd_lichtarowicz_re._sharp ( float lod,
** kw )
protected

◆ test_audit_magnitudes_ld4()

test_cd_lichtarowicz_re.test_audit_magnitudes_ld4 ( Re,
want )

Definition at line 47 of file test_cd_lichtarowicz_re.py.

References _sharp().

◆ test_matches_paper()

test_cd_lichtarowicz_re.test_matches_paper ( Re,
lod )

Definition at line 38 of file test_cd_lichtarowicz_re.py.

References _paper(), _sharp(), and min.

◆ test_no_inlet_keeps_legacy_a_re()

test_cd_lichtarowicz_re.test_no_inlet_keeps_legacy_a_re ( )

Definition at line 57 of file test_cd_lichtarowicz_re.py.

◆ test_piecewise_keeps_legacy_a_re()

test_cd_lichtarowicz_re.test_piecewise_keeps_legacy_a_re ( )

Definition at line 51 of file test_cd_lichtarowicz_re.py.

References _sharp().