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

Functions

ComponentInstance body (**object overrides)
Manifold copv_manifold ()
None test_only_flow_ports_carry_mass ()
None test_an_instrument_port_reads_plenum_pressure_exactly ()
None test_a_conditional_port_is_a_stub_while_shut ()
None test_port_loss_is_turn_plus_fitting ()
None test_a_straight_through_port_does_not_turn ()
None test_loss_is_symmetric_in_flow_direction ()
None test_smaller_ports_cost_more ()
None test_derived_turn_K_grows_as_the_port_narrows ()
None test_a_manifold_refuses_to_be_one_branch ()
None test_expansion_produces_one_branch_per_port ()
None test_expansion_requires_a_node_for_every_port ()
None test_expansion_rejects_an_unknown_port ()
None test_duplicate_ports_are_rejected ()
None test_a_port_wider_than_its_plenum_is_flagged ()
None test_a_one_outlet_manifold_is_flagged_as_a_fitting ()
None test_a_healthy_manifold_is_clean ()

Variables

 GAS = FlowConditions(rho=39.0, mu=1.78e-5, p_upstream=4500 * 6894.757293168361)

Detailed Description

Manifolds: a plenum with ports, and the three kinds of port.

The team's COPV manifold is the worked example -- one inlet, a transducer tap,
a relief valve, a fill quick-disconnect and the regulator feed -- because it is
the case that motivated the dead-end peeling in Phase 04 and the port taxonomy
here.

Function Documentation

◆ body()

◆ copv_manifold()

◆ test_a_conditional_port_is_a_stub_while_shut()

None test_manifold.test_a_conditional_port_is_a_stub_while_shut ( )
A shut relief and a capped port are topologically identical.

Physically they are nothing alike, which is why the kind is declared. This
test pins the declaration, not the behaviour -- the behaviour is the same.

Definition at line 75 of file test_manifold.py.

References copv_manifold().

◆ test_a_healthy_manifold_is_clean()

None test_manifold.test_a_healthy_manifold_is_clean ( )

Definition at line 224 of file test_manifold.py.

References check(), and copv_manifold().

◆ test_a_manifold_refuses_to_be_one_branch()

None test_manifold.test_a_manifold_refuses_to_be_one_branch ( )
The failure that stops port losses from silently vanishing.

Definition at line 146 of file test_manifold.py.

References copv_manifold().

◆ test_a_one_outlet_manifold_is_flagged_as_a_fitting()

None test_manifold.test_a_one_outlet_manifold_is_flagged_as_a_fitting ( )

Definition at line 212 of file test_manifold.py.

References body().

◆ test_a_port_wider_than_its_plenum_is_flagged()

None test_manifold.test_a_port_wider_than_its_plenum_is_flagged ( )

Definition at line 203 of file test_manifold.py.

References body().

◆ test_a_straight_through_port_does_not_turn()

None test_manifold.test_a_straight_through_port_does_not_turn ( )
An in-line outlet is not a side tapping and should not be charged as one.

Definition at line 104 of file test_manifold.py.

References copv_manifold().

◆ test_an_instrument_port_reads_plenum_pressure_exactly()

None test_manifold.test_an_instrument_port_reads_plenum_pressure_exactly ( )
A transducer tap has no flow, so it has no drop. Ever.

Definition at line 64 of file test_manifold.py.

References copv_manifold().

◆ test_derived_turn_K_grows_as_the_port_narrows()

None test_manifold.test_derived_turn_K_grows_as_the_port_narrows ( )
Rung 6 of the K ladder: derived from the area ratio when nothing better.

Definition at line 136 of file test_manifold.py.

◆ test_duplicate_ports_are_rejected()

None test_manifold.test_duplicate_ports_are_rejected ( )

Definition at line 192 of file test_manifold.py.

References body().

◆ test_expansion_produces_one_branch_per_port()

None test_manifold.test_expansion_produces_one_branch_per_port ( )

Definition at line 153 of file test_manifold.py.

References copv_manifold().

◆ test_expansion_rejects_an_unknown_port()

None test_manifold.test_expansion_rejects_an_unknown_port ( )

Definition at line 180 of file test_manifold.py.

References copv_manifold().

◆ test_expansion_requires_a_node_for_every_port()

None test_manifold.test_expansion_requires_a_node_for_every_port ( )
Including the instrument ones -- that is how a tap reads plenum pressure.

Definition at line 170 of file test_manifold.py.

References copv_manifold().

◆ test_loss_is_symmetric_in_flow_direction()

None test_manifold.test_loss_is_symmetric_in_flow_direction ( )
A manifold port does not care which way the gas goes through it.

Definition at line 113 of file test_manifold.py.

References copv_manifold().

◆ test_only_flow_ports_carry_mass()

None test_manifold.test_only_flow_ports_carry_mass ( )

Definition at line 58 of file test_manifold.py.

References copv_manifold().

◆ test_port_loss_is_turn_plus_fitting()

None test_manifold.test_port_loss_is_turn_plus_fitting ( )

Definition at line 91 of file test_manifold.py.

References copv_manifold().

◆ test_smaller_ports_cost_more()

None test_manifold.test_smaller_ports_cost_more ( )
Quartic in bore: halving a port is 16x the loss at the same mass flow.

Definition at line 126 of file test_manifold.py.

References body().

Variable Documentation

◆ GAS

test_manifold.GAS = FlowConditions(rho=39.0, mu=1.78e-5, p_upstream=4500 * 6894.757293168361)

Definition at line 29 of file test_manifold.py.