blob: d54bc5a485eab8e449383dd2440213a1ab02359b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
///Example 1.2 Page No:20
///Find Cross-Section Area
///Input data
clc;
clear;
L1=5; //Length of steel bar in m
d1=25*10^-3; //Diametr of steel bar in mm
deltaLt1=25*10^-3; ///Steel
pt1=800;
pi1=3.142; //Power load of steel bar in N
////Calculation
A1=(pi1/4)*((deltaLt1)^2); ///Cross-section area
sigmat1=pt1/A1; //Stress in steel bar
et1=deltaLt1/L1; ///Strain in steel bar
E1=sigmat1/et1; //Young's modulus
///Output
mprintf('value of Cross-section area= %f \n',A1);
printf('value of stress in steel bar= %f MN/m^2 \n',sigmat1);
printf('value of strain in steel bar= %f \n',et1);
printf('value of Youngs modulus= %f N/m^2 \n',E1);
|