summaryrefslogtreecommitdiff
path: root/1898/CH3/EX3.6/Ex3_6.sce
blob: 92867d3df3371e7467ceb1414a88d624ee40c35b (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
clear all; clc;

disp("Scilab Code Ex 3.6 : ")

//Given:
d_o = 0.025; //m
l_o =0.25; //m
F =165; //kN
delta = 1.2; //mm
G_al = 26; //GPa
sigma_y = 440; //MPa

//Calculations:

//Modulus of Elasticity:
A = (%pi/4)*(d_o^2);
avg_normal_stress = (F*10^3)/A;
avg_normal_strain = delta/l_o;
E_al = avg_normal_stress/ avg_normal_strain;

E_al = E_al/10^6;

//Contraction of Diameter:
nu = (E_al/(2*G_al))-1;
strain_lat = nu*(avg_normal_strain) ;
d_contraction = strain_lat* d_o ;


//Display:

printf("\n\nThe Modulus of Elasticity                    = %10.1f GPa",E_al);
printf("\nThe contraction in diameter due to the force = %10.4f mm",d_contraction);

//------------------------------------------------------------------------------END----------------------------------------------------------------------------------------