blob: 1547af95654a2dd2c56df2ba7be93c34ed221804 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
clc
clear
//INPUT DATA
t=25;//dry bulb temperature in Degree c
ws=8.6/100;//Specific humidity in kg w.v./kg d.a
p=760;//pressure in mm of Hg
ps=23.74;//Saturation pressure in mm of Hg
//CALCULATIONS
pv=10.508/1.01383;//Partial pressure of water vapour in mm Hg
x=(pv/ps)*100;//realtive humidity in percentage
//OUTPUT
printf('(a)Partial pressure of dry air vapour is %3.3f mm Hg \n (b)Relative humidity is %3.2f percentage ',pv,x)
|