summaryrefslogtreecommitdiff
path: root/3776/CH3/EX3.2/Ex3_2.sce
blob: 759864b7f2efed214c79dd01fb83e3d63aa25a41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
clear
//Given
a = 50          //mm - length of a cube
E =  200        // GPa - the youngs modulus 
v =  0.25       // no units- Poissons ratio 
pressure =  200 // MPa - pressure acting on all sides 
//pressure is a compressive stress 
S_x = -200 // GPa - The stress in X direction 
S_y = -200 // GPa - The stress in Y direction
S_z = -200 // GPa - The stress in Z direction
//calculations

e = S_x*(10**-3)/E - v*S_y*(10**-3)/E-v*S_z*(10**-3)/E//mm - considering all three directions 
x = e*a //mmThe change in the dimension between parallel faces
printf("\n The change in the dimension between parallel faces is  %0.3f mm",x)