def axial_results(): a = members_list() B = Beam() B.beam_width = a[0] B.beam_height = a[1] B.beam_length = a[2] B.numbers_of_level = a[6] C = Column() C.column_width = a[3] C.column_thickness = a[4] C.column_height = a[5] C.numbers_of_level = a[6] B.weight_from_beam = B.beam_weight() B.weight_from_column = C.column_weight() C.weight_from_beam = B.beam_weight() C.weight_from_column = C.column_weight() n = B.numbers_of_level if n == 1: a = ['%.2f' % C.column_axial_5(), 0, 0, 0, 0] return a if n == 2: a = ['%.2f' % C.column_axial_4(), '%.2f' % C.column_axial_5(), 0, 0, 0] return a if n == 3: a = [ '%.2f' % C.column_axial_3(), '%.2f' % C.column_axial_4(), '%.2f' % C.column_axial_5(), 0, 0 ] return a if n == 4: a = [ '%.2f' % C.column_axial_2(), '%.2f' % C.column_axial_3(), '%.2f' % C.column_axial_4(), '%.2f' % C.column_axial_5(), 0 ] return a if n == 5: a = [ '%.2f' % C.column_axial_1(), '%.2f' % C.column_axial_2(), '%.2f' % C.column_axial_3(), '%.2f' % C.column_axial_4(), '%.2f' % C.column_axial_5() ] return a
def check_axial(): a = members_list() B = Beam() B.beam_width = a[0] B.beam_height = a[1] B.beam_length = a[2] B.numbers_of_level = a[6] C = Column() C.column_width = a[3] C.column_thickness = a[4] C.column_height = a[5] C.numbers_of_level = a[6] B.weight_from_beam = B.beam_weight() B.weight_from_column = C.column_weight() C.weight_from_beam = B.beam_weight() C.weight_from_column = C.column_weight() b_list = get_beamvalues() c_list = get_columnvalues() n = B.numbers_of_level l = [1, 1, 1, 1, 1] for k in range(0, len(c_list)): cw = c_list[k][0] ct = c_list[k][1] a = c_list[k][2] if n == 1: if cw == C.column_width and ct == C.column_thickness: if a <= C.column_axial_5(): l[0] = 0 elif n == 2: if cw == C.column_width and ct == C.column_thickness: if a <= C.column_axial_5(): l[1] = 0 if a <= C.column_axial_4(): l[0] = 0 elif n == 3: if cw == C.column_width and ct == C.column_thickness: if a <= C.column_axial_5(): l[2] = 0 if a <= C.column_axial_4(): l[1] = 0 if a <= C.column_axial_3(): l[0] = 0 elif n == 4: if cw == C.column_width and ct == C.column_thickness: if a <= C.column_axial_5(): l[3] = 0 if a <= C.column_axial_4(): l[2] = 0 if a <= C.column_axial_3(): l[1] = 0 if a <= C.column_axial_2(): l[0] = 0 elif n == 5: if cw == C.column_width and ct == C.column_thickness: if a <= C.column_axial_5(): l[4] = 0 if a <= C.column_axial_4(): l[3] = 0 if a <= C.column_axial_3(): l[2] = 0 if a <= C.column_axial_2(): l[1] = 0 if a <= C.column_axial_1(): l[0] = 0 return l