Exemple #1
0
    def test_02(self):

        # from http://wahiduddin.net/calc/calc_da.htm

        Value = SA.temp2dynamic_viscosity(59, temp_units='F')
        Truth = 1.7894e-5
        self.assertTrue(RE(Value, Truth) <= 1e-4)
    def test_02(self):

        # from http://wahiduddin.net/calc/calc_da.htm

        Value = SA.temp2dynamic_viscosity(59, temp_units="F")
        Truth = 1.7894e-5
        self.failUnless(RE(Value, Truth) <= 1e-4)
Exemple #3
0
    def test_01(self):

        # from US Standard Atmosphere, 1976

        Value = SA.temp2dynamic_viscosity(15, temp_units='C')
        Truth = 1.7894e-5
        self.assertTrue(RE(Value, Truth) <= 1e-4)
    def test_01(self):

        # from US Standard Atmosphere, 1976

        Value = SA.temp2dynamic_viscosity(15, temp_units="C")
        Truth = 1.7894e-5
        self.failUnless(RE(Value, Truth) <= 1e-4)