blob: c37af4af7295007f8bac6732e9e6a096a7bf3b2a (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
clc
//initialisation of variables
p0= 10 //Mpa
R= 8.314 //J/mol K
T= 30 //C
va= 0.02 //m^3/kmol
xa= 0.98
//CALCULATIONS
p= p0+(R*(273.15+T)*log(xa)/(va*1000))
//RESULTS
printf (' Pressure of the phase of pure A= %.2f Mpa',p)
|