returns specifc Gibbs energy g from EoS
function g input HelmholtzDerivs f; output SpecificEnergy g; end g;