Example #1
0
 def f_actual(self):
     if self.attachment_sketch in loose_flanges or self.hub is None:
         return 1
     else:
         table = Table_2_7_1(self)
         return table.C_36 / (1 + table.A)
Example #2
0
 def f(self):
     if self.attachment_sketch in loose_flanges or self.hub is None:
         return Table_2_7_1(self).f(True)
     else:
         return Table_2_7_1(self).f(False)
Example #3
0

class HubGeometry:
    def __init__(self, parent, smallendthickness, largeendthickness, length):
        self.parent = parent
        self.g_o = smallendthickness
        self.g_1 = largeendthickness
        self.h = length


if __name__ == "__main__":
    go = 5.0
    g1 = 20.0
    length = 32.0
    factor = 63.25  # 800 mm bore
    table = Table_2_7_1(None, go, g1, length, factor)

    print("A is: %s" % table.A)
    print("C is: %s" % table.C)
    print("C_1 is: %s" % table.C_1)
    print("C_2 is: %s" % table.C_2)
    print("C_3 is: %s" % table.C_3)
    print("C_4 is: %s" % table.C_4)
    print("C_5 is: %s" % table.C_5)
    print("C_6 is: %s" % table.C_6)
    print("C_7 is: %s" % table.C_7)
    print("C_8 is: %s" % table.C_8)
    print("C_9 is: %s" % table.C_9)
    print("E_6 is: %s" % table.E_6)
    print("C_10 is: %s" % table.C_10)
    print("C_11 is: %s" % table.C_11)
Example #4
0
 def F_L(self):
     assert (self.hub is not None)
     return Table_2_7_1(self).F_L
Example #5
0
 def f(self):
     table = Table_2_7_1(g_o=self.g_0, g_1=self.g_1, h=self.h, h_o=(self.B * self.g_0) ** 0.5)
     return max(table.C_36 / (1 + table.A), 1.0)