forked from ManelSoria/HGS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHGSg.m
29 lines (27 loc) · 876 Bytes
/
HGSg.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
function [G] = HGSg(S,H,T)
%**************************************************************************
%
% [G] = HGSg(S,H,T)
%
%**************************************************************************
%
% HGSg calculates the species free Gibbs energy using enthalpy, enthropy
% and temperature
%
%**************************************************************************
% Inputs:
%--------------------------------------------------------------------------
% S --> [kJ/(mol*K)] Entropy
% H --> [kJ/mol] Enthalpy
% T --> [K] Temperature
%
% Outputs:
%--------------------------------------------------------------------------
% G --> [kJ/mol] Free Gibbs energy
%
%**************************************************************************
% *HGS 2.1
% *By Caleb Fuster, Manel Soria and Arnau Miró
% *ESEIAAT UPC
G = H - T*S; % [kJ/mol]
end