Matlab Code
Matlab Code
Kiranmai
17021A2636
4.THERMODYNAMIC PROPERTIES OF STEAM FROM REDLICH KWONG
EQUATION
Problem Statement:
Calculate the molar volume (m3/kgmole), specific volume (m3/kg), compressibility
factor, enthalpy (KJ/kg) of water at a specified temperature of 1000C and pressure 1 atm using
Redlich Kwong equation .With solution of polynomial equation by fzero function using
MATLAB.
For steam., Tc=647.4K; Pc=218.3atm
Equations and numerical data:
RT a
P= -
V−b V(V+b)√T
5
R2 T2C
a=0.42748( )
PC
RTC
b=0.08664( )
PC
𝑃𝑉
z=
𝑅𝑇
P=Pressure in pascals
T=Temperature in kelvin
V=Volume in m3/kg.mole
R=8.314 J/mole.kelvin
TC=Critical temperature in kelvin
PC=Critical pressure in pascals
a=Redlich kwong constant 1 in m6.pascal/mole.kelvin
b=Redlich kwong constant 2 in m3/mole
Z=Compressibility factor
Exact thermodynamic reaction.,
V ∂P ∂P
HV-HV0=∫∞ [T ( )+ V( )] dV
∂TV ∂TV
1.5a b
HV-HV0=RT(z-1- ln (1 + ))
bR1.5
T V
T
HV0=Hl0+∆Hvap0+∫T Cp dT
0
T a a2 a3
∫T Cp dT =a(T-T0 )+ 2 (T2 − T02 ) + (T3 − T03 ) + (T4 − T04 )
1
0 3 4