-
Notifications
You must be signed in to change notification settings - Fork 5
/
HGSh.m
30 lines (27 loc) · 889 Bytes
/
HGSh.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
function [H] = HGSh(a,T)
%**************************************************************************
%
% [H] = HGSh(a,T)
%
%**************************************************************************
%
% HGSh calculates the enthalpy of a species using his Burcat coeficients and
% temperature
%
%**************************************************************************
% Inputs:
%--------------------------------------------------------------------------
% a --> Burcat coefficients
% T --> [K] Temperature
%
% Outputs:
%--------------------------------------------------------------------------
% H --> [kJ/mol] Enthalpy
%
%**************************************************************************
% *HGS 2.1
% *By Caleb Fuster, Manel Soria and Arnau Miró
% *ESEIAAT UPC
global R; HGSr
H = R * (a(6) + sum(a(1:5).*(T.^(1:5))./(1:5))); % [kJ/mol]
end