"Enthaply  with EES"

"Equation of Combustion of Propane

C3H8 + 5 O2 = 3 CO2 + 4 H2O"

T1=298.15

"Calculations will be based on mass of 1 kg C3H8"

m_C3H8 = 1
m_O2 = 5*MOLARMASS(O2)/MOLARMASS(C3H8)
m_CO2 = 3*MOLARMASS(CO2)/MOLARMASS(C3H8)
m_H2O=4*MOLARMASS(H2O)/MOLARMASS(C3H8)

"Enthalpy of Products and Reactants"

H_R = m_C3H8*ENTHALPY(C3H8,T=T1)+m_O2*ENTHALPY(O2,T=T1)
H_P = m_CO2*ENTHALPY(CO2,T=T1)+m_H2O*ENTHALPY(H2O,T=T1)
DELTA_H = H_P-H_R

"Constant Pressure Heating values"

Q_LHVP = -DELTA_H
Q_HHVP = Q_LHVP + m_H2O/m_C3H8 * h_fg_water#

"Internal Energy of Products and Reactants"

U_R = m_C3H8*INTENERGY(C3H8,T=T1)+m_O2*INTENERGY(O2,T=T1)
U_P = m_CO2*INTENERGY(CO2,T=T1)+m_H2O*INTENERGY(H2O,T=T1)
DELTA_U = U_P - U_R

"Constant Volume Heating Value"

Q_LHVV= -DELTA_U

"Stoichiometric Mixture including air"

m_mix = m_C3H8 + m_O2 + 3.773*(m_O2/MOLARMASS(O2))*MOLARMASS(N2)

Q_MIX = Q_LHVP / m_mix

"Please compare with Table D.4 on Page 915"