summaryrefslogtreecommitdiff
path: root/2132/CH2/EX2.6/Example2_6.sce
blob: 9cdcc4e4bd70222bb43a9d1b25209d18ce0833b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
//Example 2.6
clc;
clear;
close;
//Given data :
format('v',6);
d=2;//in mm
d=d/1000;//in m
sigma_water=0.073;//N/m
sigma_mercury=0.510;//N/m
//Water-glass contact
w1=9.81;//kN/m^3(specific weight of water)
w1=w1*10^3;//N/m^3
theta=0;//in degree
h=4*sigma_water*cosd(theta)/w1/d;//in mm
disp(h*1000,"capillary rise for water glass contact in mm : ");
//Mercury-glass contact
w2=13.6*9.81;//kN/m^3(specific weight of mercury)
w2=w2*10^3;//N/m^3
theta=130;//in degree
h=4*sigma_mercury*cosd(theta)/w2/d;//in mm
disp(h*1000,"capillary rise for mercury glass contact in mm: ");