def b1(): b1 = b.Beam(length=295, width=40, height=40, columns_width=dict(bot=dict(left=45, right=45,), top=dict(left=40, right=45,),), stirrup_len=None, ) return b1
def b2(): b2 = b.Beam(length=540, width=40, height=40, columns_width=dict(bot=dict(left=45, right=40,), top=dict(left=45, right=40,),), stirrup_len=[85, 85], dx=295, ) return b2
def beams(self): ''' return beams of beamtype in a list, beams are Beam class. ''' bs = [] axes_dist = self.axes_dist for i in range(len(self)): length = self.spans_len[i] dimension = self.beams_dimension[i] width = dimension[0] height = dimension[1] top = self.columns_width['top'][i:i + 2] bot = self.columns_width['bot'][i:i + 2] cw = dict( bot=dict( left=bot[0], right=bot[1], ), top=dict( left=top[0], right=top[1], ), ) stirrup_len = self.stirrups_len[i] dx = axes_dist[i] is_first = False is_last = False if i == 0: is_first = True if i == len(self) - 1: is_last = True b = beam.Beam(length=length, width=width, height=height, columns_width=cw, stirrup_len=stirrup_len, stirrup_at=self.stirrup_at[i], stirrup_size=self.stirrup_size[i], dx=dx, is_first=is_first, is_last=is_last, first_stirrup_dist=self.first_stirrup_dist, col_extend_dist=self.col_extend_dist, console_extend_dist=self.console_extend_dist, stirrup_dy=self.stirrup_dy) bs.append(b) return bs
def _beam_with_uniform_stirrup(): b2 = b.Beam( length=485, width=40, height=45, columns_width=dict( bot=dict( left=50, right=40, ), top=dict( left=40, right=35, ), ), stirrup_len=None, ) return b2
def test_move_beam_eq_(move_beam): beam = b.Beam( length=485, width=40, height=45, columns_width=dict( bot=dict( left=50, right=40, ), top=dict( left=40, right=35, ), ), stirrup_len=[85, 85], ) assert beam == move_beam
def move_beam(): b1 = b.Beam( length=485, width=40, height=45, columns_width=dict( bot=dict( left=50, right=40, ), top=dict( left=40, right=35, ), ), stirrup_len=[85, 85], dx=295, ) return b1
def beam_without_column(): beam = b.Beam( length=485, width=40, height=45, columns_width=dict( bot=dict( left=50, right=40, ), top=dict( left=0, right=0, ), ), stirrup_len=None, is_first=True, is_last=True, ) return beam
def _b3(): b3 = b.Beam( length=485, width=40, height=45, columns_width=dict( bot=dict( left=0, right=0, ), top=dict( left=0, right=0, ), ), stirrup_len=None, stirrup_at=[8.5], stirrup_size=8, ) return b3
def b1(): b1 = b.Beam(length=2.95, width=.40, height=2, columns_width=dict( bot=dict( left=.45, right=.45, ), top=dict( left=.40, right=.45, ), ), stirrup_len=None, first_stirrup_dist=5 / horizontal, col_extend_dist=13.75 / vertical, console_extend_dist=20 / horizontal, stirrup_dy=1.25 / vertical) return b1
def b2(): b2 = b.Beam(length=5.40, width=.40, height=2, columns_width=dict( bot=dict( left=.45, right=.40, ), top=dict( left=.45, right=.40, ), ), stirrup_len=[.85, .85], dx=2.95, first_stirrup_dist=5 / horizontal, col_extend_dist=13.75 / vertical, console_extend_dist=20 / horizontal, stirrup_dy=1.25 / vertical) return b2
def _beam(): ''' Beam with two column at bottom and top in left and right and 3 state stirrup, first, middle and last ''' b1 = b.Beam( length=485, width=40, height=45, columns_width=dict( bot=dict( left=50, right=40, ), top=dict( left=40, right=35, ), ), stirrup_len=[85, 85], stirrup_at=[8.5, 17, 8.5], stirrup_size=8, ) return b1