summaryrefslogtreecommitdiff
path: root/3864/CH7/EX7.7/Ex7_7.sce
blob: c07f45f71bed5d6d18122ca14aee7af25a57421d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
clear
//
//
//

//Initilization of Variables

//stresses
p_x=60 //N/mm**2
p_y=-40 //N/mm**2

q=10 //N/mm**2 //shear stress

//Calculations

//Principal Stresses
p1=(p_x+p_y)*2**-1+(((p_x-p_y)*2**-1)**2+q**2)**0.5 //N/mm**2
p2=(p_x+p_y)*2**-1-(((p_x-p_y)*2**-1)**2+q**2)**0.5 //N/mm**2

//Max shear stress
q_max=(((p_x-p_y)*2**-1)**2+q**2)**0.5 //N/mm**2

//Inclination of principal stress to plane
theta=atan(2*q*(p_x-p_y)**-1)*(180*%pi**-1)//Degrees
theta2=(theta)*2**-1 //degrees

theta3=(theta+180)*2**-1  //degrees

//Result
printf("\n Principal Stresses are: %0.2f  N/mm**2",p1)
printf("\n                       : %0.2f  N/mm**2",p2)
printf("\n Max shear stresses %0.2f  N/mm**2",q_max)