Exemple #1
0
    def test_reynolds(self):
        """tests reynolds number"""

        self.assertEqual(
            atm_unit_reynolds_number(55000.,
                                     2.4,
                                     alt_units='ft',
                                     reynolds_units='1/ft'),
            2244166.3810534105)
        self.assertEqual(
            atm_unit_reynolds_number(55000.,
                                     2.4,
                                     alt_units='ft',
                                     reynolds_units='1/in'), 187013.8650877842)
        self.assertEqual(
            atm_unit_reynolds_number(55000.,
                                     2.4,
                                     alt_units='ft',
                                     reynolds_units='1/m'), 7362750.594007252)

        with self.assertRaises(RuntimeError):
            atm_unit_reynolds_number(55000.,
                                     2.4,
                                     alt_units='ft',
                                     reynolds_units='1/mm')
Exemple #2
0
 def test_re(self):
     re = atm_unit_reynolds_number(55000., 2.4)
     self.assertEqual(atm_unit_reynolds_number(55000., 2.4), 2244166.3810534105)
Exemple #3
0
 def test_reynolds(self):
     """tests reynolds number"""
     reynolds = atm_unit_reynolds_number(55000., 2.4)
     self.assertEqual(reynolds, 2244166.3810534105)
 def test_re(self):
     re = atm_unit_reynolds_number(55000., 2.4)
     self.assertEqual(atm_unit_reynolds_number(55000., 2.4),
                      2244166.3810534105)