summaryrefslogtreecommitdiff
path: root/3776/CH1/EX1.8/Ex1_8.sce
blob: 3673b9dd12ab5c7f9ad8760441c54d8a68ba3dcc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
clear
//Given
A_angle = 2              //sq.in 
stress_allow = 20        //ksi, The maximum alowable stress
F = stress_allow*A_angle //K, The maximum force
AD = 3                   //in, from the figure
DC = 1.06                //in, from the figure
strength_AWS = 5.56 // kips/in,Allowable strength according to AWS

//calculations 
//momentum at point "d" is equal to 0
R_1 = (F*DC)/AD      //k,Resultant force developed by the weld
R_2 = (F*(AD-DC))/AD //k,Resultant force developed by the weld

l_1 = R_1/strength_AWS //in,Length of the Weld 1
l_2 = R_2/strength_AWS //in,Length of the Weld 2
       
printf("\n Length of the Weld 1: %0.2f in",l_1)
printf("\n Length of the Weld 2: %0.2f in",l_2)