function [iCO,iO2,iH2O,iCO2,iN2,iC7H8,iC3H6O,iC2H7O,iCH4] = entalpie(temp)
% výpočet entalpie plynu pro danou teplotu integrací polynomických rozvojů cp
% ZDROJ1: JELINEK J.,Výzkum a vývoj modernizovaných bloků konverze metanu
% ZDROJ2: RIAZI, M. Characterization and properties of petroleum fractions
% ZDROJ3: PHYSICAL PROPERTIES OF LIQUIDS AND GASES - str.834

% rozvoje cp ze ZDROJE JELINEK ve tvaru: cp = A + B*T +CT^2 + DT^3 + E/T^2 
% rozvoje cp ze ZDROJE RIAZI ve tvaru: Cp/R = A + B*T +CT^2 + DT^3 + ET^4
% rozvoje cp ze ZDROJE PHY ve tvaru: Cp = A + B*T +CT^2 + DT^3 + ET^4

% JELINEK po integraci i = A*dT+(B/2)*dT^2+(C/3)*dT^3+(D/4)*dT^4-E*(dT^-1)
% RIAZI po integraci i = R*(A*dT+(B/2)*dT^2+(C/3)*dT^3+(D/4)*dT^4+(E/5)*dT^5)
% PHY po integraci i = A*dT+(B/2)*dT^2+(C/3)*dT^3+(D/4)*dT^4+(E/5)*dT^5

T=temp; T0=273.15; % [K]
R=8.3144621; % [J*mol^-1*K^-1]

% - teplotní členy po integraci
dTclen1 = T-T0; % [K]
dTclen2 = (T^2-T0^2)/2; % [K^2]
dTclen3 = (T^3-T0^3)/3; % [K^3]
dTclen4 = (T^4-T0^4)/4; % [K^4]
dTclen5 = (T^5-T0^5)/5; % [K^5]
dTclen_1 = (1/T0-1/T); % [K^-1]

% CO - oxid uhelnatý (JELINEK)
iCO = 23.20395*dTclen1+0.01447403*dTclen2-0.00000540155*dTclen3+0.00000000071621*dTclen4+172241*dTclen_1; % [kJ/kmol]
% O2 - kyslík (JELINEK)
iO2 = 24.33747*dTclen1+0.01661394*dTclen2-0.0000074474*dTclen3+0.00000000124611*dTclen4+67779*dTclen_1; % [kJ/kmol]
% H2O - voda (JELINEK)
iH2O = 25.36597*dTclen1+0.01932883*dTclen2-0.00000379818*dTclen3+0.00000000017507*dTclen4+253811*dTclen_1; % [kJ/kmol]
% CO2 - oxid uhličitý (JELINEK)
iCO2 = 31.95636*dTclen1+0.0357079*dTclen2-0.00001529236*dTclen3+0.00000000231229*dTclen4-375874*dTclen_1; % [kJ/kmol]
% N2 - dusík (JELINEK)
iN2 = 23.63908*dTclen1+0.01254614*dTclen2-0.00000413646*dTclen3+0.00000000048023*dTclen4+172470*dTclen_1; % [kJ/kmol]
% C7H8 - toluen (RIAZI)
iC7H8 = R*(-2.46286*dTclen1+57.69575e-3*dTclen2-19.66557e-6*dTclen3-106.61110e-10*dTclen4+654.52596e-14*dTclen5); % [kJ/kmol]
% C3H6O - aceton (PHY)
iC3H6O = 35.918*dTclen1+9.3896e-02*dTclen2+1.8730e-04*dTclen3-2.1643e-07*dTclen4+6.3174e-11*dTclen5; % [kJ/kmol]
% C2H7O - etanol (PHY)
iC2H7O = 27.091*dTclen1+1.1055e-01*dTclen2+1.0957e-04*dTclen3-1.5046e-07*dTclen4+4.6601e-11*dTclen5; % [kJ/kmol]
% CH4 - metan (RIAZI)
iCH4 = R*(4.3461*dTclen1-0.00614488*dTclen2+0.00002662607*dTclen3-0.00000002192998*dTclen4+0.0000000000058889965*dTclen5); % [kJ/kmol]

end



