summaryrefslogtreecommitdiff
path: root/3864/CH2/EX2.37/Ex2_37.sce
blob: 155d3e6c474a76518e69a97cd9303958df6f271e (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
33
34
35
36
clear
//
//

//Initilization of Variables

d=20 //mm //Diameter of bar
P=37.7*10**3 //N //Load
L=200 //mm //Guage Length 
dell=0.12 //mm //Extension
dell_d=0.0036 //mm //contraction in diameter

//Calculations

//Area of bar
A=%pi*4**-1*d**2

//Let s and dell_s be the Linear strain and Lateral strain
s=dell*L**-1
dell_s=dell_d*d**-1
mu=dell_s*s**-1 //Poissons ratio 

//dell=P*L*(A*E)**-1
E=P*L*(dell*A)**-1 //N/mm**2 //Modulus of Elasticity of bar

//Modulus of Rigidity
G=E*(2*(1+mu))**-1 //N/mm**2

//Bulk Modulus 
K=E*(3*(1-2*mu))**-1 //N/mm**2

//result
printf("\n Poissons ratio is %0.2f  ",mu)
printf("\n The Elastic constant are:E %0.2f  ",E)
printf("\n                         :G %0.2f  ",G)
printf("\n                         :K %0.2f  ",K)