summaryrefslogtreecommitdiff
path: root/1898/CH3/EX3.1/Ex3_1.sce
blob: 256b113ca5cd764753578db6370d13dec3cc5720 (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 all; clc;

disp("Scilab Code Ex 3.1 : ")

//Given:
offset = 0.2; //%
a_x = 0.0016; //mm/mm
a_y = 345; //Mpa

//Refer to the given graph.

//Calculations:

//Modulus of Elasticity
E = a_y/(a_x*10^3); //E is the slope in GPa.

//Yield Strength:
sigma_ys = 469; //Graphically, for a strain of 0.002mm/mm

//Ultimate Stress:
sigma_u = 745.2; //Mpa B is the peak of stress strain graph.

//Fracture Stress:
ep_f = 0.23; //mm/mm
sigma_f = 621; //Mpa from the graph.

//Display:

printf("\n\nThe Modulus of Elasticity is          = %10.1f GPa",E);
printf("\nThe Yield Strength from the graph     =    %0.2f MPa",sigma_ys);
printf("\nThe Ultimate Stress from the graph is =%10.1f MPa",sigma_u);
printf("\nThe Fracture Stress from the graph is =%10.1f MPa",sigma_f);

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