summaryrefslogtreecommitdiff
path: root/3863/CH2/EX2.3/Ex2_3.sce
blob: 0a842e90165bfab0a9a397293d2bed3234e677a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
clear
//Given
//Variable declaration
L=4000        //Length of the bar in mm
b=30          //Breadth of the bar in mm
t=20          //Thickness of the bar in mm
mu=0.3        //Poisson's ratio
delL=1.0      //delL from problem 2.1

//Calculation
ev=(delL/L)*(1-2*mu)         //Volumetric strain
V=L*b*t                      //Original volume in mm^3
delV=ev*V                    //Change in volume in mm^3
F=int(V+delV)                //Final volume in mm^3

//Result
printf("\n Final volume = %0.3f  mm^3",F)