programming by python on juypter beam, Exercises of Civil Engineering

programming by python on juypter for solving problem on beam of civil

Typology: Exercises

2019/2020

Uploaded on 03/05/2020

alfiya-arshi
alfiya-arshi 🇮🇳

3 documents

1 / 4

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
2/28/2020 Untitled1 - Jupyter Notebook
localhost:8888/notebooks/Untitled1.ipynb?kernel_name=python3 1/4
In [7]:
In [44]:
In [45]:
In [52]:
In [53]:
Enter length A to B4
Enter the length between B and D3
Enter the length between D and C2
Enter Load w1 in kilo newton10
Enter the load w2 in kilo netwon8
Out[44]:
10.0
Out[45]:
9.6
Out[52]:
-5.0
Out[53]:
5.0
# STEP 1 To calculate free BMD
l1=int(input("Enter length A to B "))
a=int(input("Enter the length between B and D "))
b=int(input("Enter the length between D and C "))
l2=a+b
w1=int(input("Enter Load w1 in kilo newton "))
w2=int(input(("Enter the load w2 in kilo netwon ")))
#### span 1
M_AB=w1*l1/4
M_AB
### span 2
M_BC=w2*a*b/l2
M_BC
# STEP 2 To calculate fixed
### span 1
M_FAB=-w1*l1/8
M_FAB
M_FBA=w1*l1/8
M_FBA
### span 2
pf3
pf4

Partial preview of the text

Download programming by python on juypter beam and more Exercises Civil Engineering in PDF only on Docsity!

In [7]:

In [44]:

In [45]:

In [52]:

In [53]:

Enter length A to B Enter the length between B and D Enter the length between D and C Enter Load w1 in kilo newton Enter the load w2 in kilo netwon

Out[44]: (^) 10.

Out[45]: (^) 9.

Out[52]: (^) -5.

Out[53]: 5.

# STEP 1 To calculate free BMD

l1 = int(input("Enter length A to B ")) a = int(input("Enter the length between B and D ")) b = int(input("Enter the length between D and C ")) l2 = a + b w1 = int(input("Enter Load w1 in kilo newton ")) w2 = int(input(("Enter the load w2 in kilo netwon ")))

#### span 1

M_AB = w1 ***** l1 / 4 M_AB

### span 2

M_BC = w2 ***** a ***** b / l M_BC

# STEP 2 To calculate fixed

### span 1

M_FAB =- w1 ***** l1 / 8 M_FAB

M_FBA = w1 ***** l1 / 8 M_FBA

### span 2

In [54]:

In [57]:

In [14]:

In [58]:

In [59]:

In [19]:

In [60]:

Out[54]: (^) -3.

Out[57]: 5.

Out[58]: (^) 0.

Out[59]: (^) 0.

Out[60]: (^) -0.

M_FBC =- w2 ***** a ***** b ***** b / (l2 ***** l2) M_FBC

M_FCB = w2 ***** a ***** a ***** b / (l2 ***** l2) M_FCB

# STEP 3 To calculate Distribution factor

# for Joint B members are BA and BC K_BA = 1 / l1 # coefficient of I K_BC = 1 / l2 # coefficient of I sum_of_k = K_BA + K_BC DF_BA = K_BA / sum_of_k DF_BC = K_BC / sum_of_k

DF_BA

DF_BC

# STEP 4 to calculate moment distribution

# for Joint A B C members are AB BA BA and BC DF_AB = 0 DF_CB = 0 balance =- (M_FBA + M_FBC) var_AB = balance ***** DF_AB var_BA = balance ***** DF_BA var_BC = balance ***** DF_BC var_CB = balance ***** DF_CB CARRY_OVER_AB = var_BA / 2 CARRY_OVER_BA = var_AB / 2 CARRY_OVER_BC = var_CB / 2 CARRY_OVER_CB = var_BC / 2 Final_moment_AB = M_FAB + var_AB + CARRY_OVER_AB Final_moment_BA = M_FBA + var_BA + CARRY_OVER_BA Final_moment_BC = M_FBC + var_BC + CARRY_OVER_BC Final_moment_CB = M_FCB + var_CB + CARRY_OVER_CB

CARRY_OVER_AB

In [65]:

In [66]:

In [67]:

In [68]:

In [ ]:

Out[66]: (^) 6.

Out[67]: (^) 6.

Out[68]: (^) 18.

sum_of_moment_B = 0 RC = ( - Final_moment_BC + Final_moment_CB + w2 ***** a) / 5 RB2 = w2 - RC RB = RB1 + RB ans = RA + RB + RC

RB

RC

ans