예제 #1
0
    def test_02(self):

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

        Value = SA.alt2dynamic_viscosity(84500, alt_units='m')
        Truth = 1.2575e-5
        self.assertTrue(RE(Value, Truth) <= 1e-4)
예제 #2
0
    def test_02(self):

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

        Value = SA.alt2dynamic_viscosity(84500, alt_units="m")
        Truth = 1.2575e-5
        self.failUnless(RE(Value, Truth) <= 1e-4)
예제 #3
0
    def test_01(self):

        # from US Standard Atmosphere, 1976

        Value = SA.alt2dynamic_viscosity(-5000, alt_units='m')
        Truth = 1.9421e-5
        self.assertTrue(RE(Value, Truth) <= 1e-4)
예제 #4
0
    def test_01(self):

        # from US Standard Atmosphere, 1976

        Value = SA.alt2dynamic_viscosity(-5000, alt_units="m")
        Truth = 1.9421e-5
        self.failUnless(RE(Value, Truth) <= 1e-4)