Exemplo n.º 1
0
 def test_sys_flow_rate_zero_coeff(self):
     v = Valve(flow_coeff=0.0, drop=7.5)
     with pytest.raises(ValueError) as excinfo:
         v.valve_flow_out(v.Cv, v.deltaP)
     exception_msg = excinfo.value.args[0]
     assert exception_msg == "Input values must be > 0."
Exemplo n.º 2
0
 def test_sys_flow_rate_neg_press(self):
     v = Valve(drop=-30.0)
     with pytest.raises(ValueError) as excinfo:
         v.valve_flow_out(v.Cv, v.deltaP)
     exception_msg = excinfo.value.args[0]
     assert exception_msg == "Input values must be > 0."
Exemplo n.º 3
0
 def test_sys_flow_rate_expected(self):
     v = Valve(flow_coeff=15.0, drop=7.5)
     v.valve_flow_out(v.Cv, v.deltaP)
     assert v.flow_out == 41.07919181288746