blob: 8c87e5be77400e12ddaf207d6efdd699805e80ad (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
clc
M=30 //molar mass for ethane in kg/kmol
Tc=305.43 //temperature in kelvin
Pc=4.884 //pressure in MPa
P=70 //pressure in bar
Pr=(P*10^5)/(Pc*10^6)
mprintf("Pr=%f\n",Pr)//ans vary due to roundoff error
M1=7 //mass of ethane present in kg
Moles=(M1/M)*1000 //moles of ethane
mprintf("Moles of ethane=%fmol\n",Moles)
V=0.1 //volume of ethane in metre-cube
v=V/Moles
R=8.314
vr=Pc*10^6*v/(R*Tc)
mprintf("vr=%f\n",vr)//ans may vary due to roundoff error
Tr=1.4
T=Tr*Tc
mprintf("T=%f K",T)//ans may vary due to roundoff error
|