Пример #1
0
    def test_50_1000(self):
        """
            Test asymmetric reinforcement for N=-50 kN, M=1000 kNm
        """

        n_ed = 50.0
        m_ed = 1000.0

        as1, as2 = extension_asymmetric.main(h, b, a1, a2, m_ed, n_ed, eta_bet,
                                             lambda_bet, f_cd, f_ck)
        self.assertAlmostEqual(as1, 53.45499, 2)
        self.assertAlmostEqual(as2, 12.17093, 2)
Пример #2
0
    def test_50_650(self):
        """
            Test asymmetric reinforcement for N=-50 kN, M=650 kNm
        """

        n_ed = 50.0
        m_ed = 650.0

        as1, as2 = extension_asymmetric.main(h, b, a1, a2, m_ed, n_ed, eta_bet,
                                             lambda_bet, f_cd, f_ck)
        self.assertAlmostEqual(as1, 33.83880, 2)
        self.assertAlmostEqual(as2, 1.800000, 2)
Пример #3
0
    def test_500_75(self):
        """
            Test asymmetric reinforcement for N=-500 kN, M=75 kNm
        """

        n_ed = 500.0
        m_ed = 75.0

        as1, as2 = extension_asymmetric.main(h, b, a1, a2, m_ed, n_ed, eta_bet,
                                             lambda_bet, f_cd, f_ck)
        self.assertAlmostEqual(as1, 9.200055, 2)
        self.assertAlmostEqual(as2, 2.300014, 2)
Пример #4
0
    def test_500_10(self):
        """
            Test asymmetric reinforcement for N=-500 kN, M=10 kNm
        """

        n_ed = 500.0
        m_ed = 10.0

        as1, as2 = extension_asymmetric.main(h, b, a1, a2, m_ed, n_ed, eta_bet,
                                             lambda_bet, f_cd, f_ck)
        self.assertAlmostEqual(as1, 6.210037, 2)
        self.assertAlmostEqual(as2, 5.290032, 2)
Пример #5
0
    def test_5_1500(self):
        """
            Test asymmetric reinforcement for N=-5 kN, M=1500 kNm
        """

        n_ed = 5.0
        m_ed = 1500.0

        as1, as2 = extension_asymmetric.main(h, b, a1, a2, m_ed, n_ed, eta_bet,
                                             lambda_bet, f_cd, f_ck)
        self.assertAlmostEqual(as1, 75.937610, 2)
        self.assertAlmostEqual(as2, 35.68857, 2)
Пример #6
0
    def onclick(self):
        h = float(self.data_1.get().replace(',', '.')) * 10**-2
        b = float(self.data_2.get().replace(',', '.')) * 10**-2
        a1 = float(self.data_3.get().replace(',', '.')) * 10**-3
        a2 = float(self.data_4.get().replace(',', '.')) * 10**-3
        m_ed = float(self.data_5.get().replace(',', '.'))
        n_ed = float(self.data_6.get().replace(',', '.'))

        if n_ed >= 0:
            as1, as2 = compression_asymmetric.main(h, b, a1, a2, m_ed, n_ed,
                                                   self.eta_bet,
                                                   self.lambda_bet, self.f_cd,
                                                   self.f_ck)
        else:
            as1, as2 = extension_asymmetric.main(h, b, a1, a2, m_ed, n_ed,
                                                 self.eta_bet, self.lambda_bet,
                                                 self.f_cd, self.f_ck)

        as1 = round(as1, 2)
        as2 = round(as2, 2)
        self.result_1.config(text=f"A_s1 = {as1} [cm^2]")
        self.result_2.config(text=f"A_s2 = {as2} [cm^2]")