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

Functions

object _ethanol ()
float _K (object component, float mdot, object flow)
object _fitting (str kind, **Param extra)
None test_a_bend_fitting_reads_its_angle_in_degrees (float degrees)
None test_a_crane_multiple_is_of_the_fully_turbulent_f_T (str kind, float n, float mdot)
None test_an_unsplit_tee_is_cranes_f_T_multiple (str kind, float n)
None test_a_bend_fitting_equals_the_bend_component ()

Variables

 M = Provenance.MANUFACTURER
float BORE = 0.0095

Detailed Description

Fitting adapters against the ``fluids`` functions they adapt.

The module docstring of :mod:`feedtwin.comps.correlations` says every fitting is
an adapter onto ``fluids`` and computes nothing of its own. These hold it to
that: the K a fitting component prices must be the K ``fluids`` gives for the
same geometry, in the units ``fluids`` documents.

Function Documentation

◆ _ethanol()

◆ _fitting()

◆ _K()

float test_fittings_against_fluids._K ( object component,
float mdot,
object flow )
protected

◆ test_a_bend_fitting_equals_the_bend_component()

None test_fittings_against_fluids.test_a_bend_fitting_equals_the_bend_component ( )
Same geometry, two components, one correlation: one K.

Definition at line 92 of file test_fittings_against_fluids.py.

References _ethanol(), _fitting(), and _K().

◆ test_a_bend_fitting_reads_its_angle_in_degrees()

None test_fittings_against_fluids.test_a_bend_fitting_reads_its_angle_in_degrees ( float degrees)
``fluids.bend_rounded`` takes its angle in degrees.

The fitting's ``angle`` parameter is an *angle* dimension, so the model
layer hands it over in radians; passed straight through, a 90-degree bend
priced as a 1.57-degree one (K 0.018 against 0.229).

Definition at line 43 of file test_fittings_against_fluids.py.

References _ethanol(), _fitting(), and _K().

◆ test_a_crane_multiple_is_of_the_fully_turbulent_f_T()

None test_fittings_against_fluids.test_a_crane_multiple_is_of_the_fully_turbulent_f_T ( str kind,
float n,
float mdot )
Crane TP-410 gives these as ``K = n . f_T``, f_T the fully turbulent
friction factor of the pipe size (fluids' ``ft_Crane``) -- not the line's
friction factor at its own Reynolds number, which put a 30 f_T elbow
anywhere from 0.55 to 1.09 against Crane's 0.885 in 9.5 mm.

Definition at line 66 of file test_fittings_against_fluids.py.

References _ethanol(), _fitting(), and _K().

◆ test_an_unsplit_tee_is_cranes_f_T_multiple()

None test_fittings_against_fluids.test_an_unsplit_tee_is_cranes_f_T_multiple ( str kind,
float n )
A segment's tee carries one flow and does not know the other leg's, so
it is Crane's unsplit tee: through the run 20 f_T, turning through the
branch 60 f_T. It used to read fluids' converging-tee correlations at a
split of 0.5/0.5 -- which is *all* the flow from the branch -- giving
0.41 for the branch (Crane 1.77) and 0.525 for a run carrying nothing.

Definition at line 80 of file test_fittings_against_fluids.py.

References _ethanol(), _fitting(), and _K().

Variable Documentation

◆ BORE

float test_fittings_against_fluids.BORE = 0.0095

Definition at line 21 of file test_fittings_against_fluids.py.

◆ M

test_fittings_against_fluids.M = Provenance.MANUFACTURER

Definition at line 20 of file test_fittings_against_fluids.py.