summaryrefslogtreecommitdiff
path: root/629/CH3/EX3.12/example3_12.sce
blob: 6649b7e1a69d2db94b260d28fdfb34d312637a1e (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
clear
clc
//Example 3.12 BUOYANT FORCE ON A METAL PART
//dimensions of wooden block
l=50; //[mm]
b=50; //[mm]
h=10; //[mm]
y=7.5; //submerged height[mm]
V=l*b*y //volume of block submerged[mm^3]
g_w=9800; //specific weight of water[N/m^3]
Fb1=g_w*V*10^(-9) //buoyant force[N], (factor 10^(-9)m^3/mm^3)
S1=0.3;
V1=l*b*h //volume of block[mm^3]
W1=g_w*S1*V1*10^(-9) //weight of block[N]
T=Fb1-W1 //tension in cord[N]
printf("\n The tension in the cord = %.3f N.\n",T)

V2=6600; //volume of metal[mm^3]
Fb2=g_w*V2*10^(-9) //buoyant force[N]
//Equilibrium equation, W2-T-Fb2=0 
g=9.81; //[m/s^2]
W2=T+Fb2 //weight of metal[N]
m2=W2*10^3/g //mass of metal[gm](factor 10^3g/1kg)
printf("\n The mass of metal part = %.1f grams.\n",m2)