コード例 #1
0
    def test_frictionCoefficient(self):
        Re = 500000
        xtc = 0.5
        Cfflat = frictionCoefficient(Re, xtc)

        assert_rel_error(self, Cfflat, 0.003846, self.tol)

        Re = 4.7632e5
        xtc = 1.
        Cfflat = frictionCoefficient(Re, xtc)

        assert_rel_error(self, Cfflat, 0.0019241, self.tol)
コード例 #2
0
    def test_frictionCoefficient(self):
        Re = 500000
        xtc = 0.5
        Cfflat = frictionCoefficient(Re, xtc)

        assert_rel_error(self, Cfflat, 0.003846, self.tol)

        Re = 4.7632e5
        xtc = 1.
        Cfflat = frictionCoefficient(Re, xtc)

        assert_rel_error(self, Cfflat, 0.0019241, self.tol)
コード例 #3
0
ファイル: test_coefficients.py プロジェクト: hschilling/Atlas
    def test_frictionCoefficient(self):
        comp = frictionCoefficient()
        comp.Re = 500000
        comp.xtc = 0.5

        comp.run()
        assert comp.Cfflat == 0.0038

        comp.Re = 4.7632e5
        comp.xtc = 1.

        comp.run()
        assert comp.Cfflat == 0.0019