The natural logarithmic fugacity coefficient arises frequently in thermodynamic expressions. According to [1], "unlike the fugacity itself this quantity is also well- defined at zero concentration of a a compound and the logarithmic form allows a wider range of numerical values to be represented".
[1] Cape-Open specification, Thermodynamic and Physical Properties v1.1.
function logFugacityCoefficient_pTN input Modelica.SIunits.Pressure p "Pressure"; input Modelica.SIunits.Temperature T "Modelica.SIunits.Temperature"; input Modelica.SIunits.AmountOfSubstance[nC] N_1ph "Molar substance for the specified phase"; input Integer phaseLabel = PhaseLabelLiquid "Phase label"; output Real log_phi[nC] "Natural logarithm of fugacity coefficients"; end logFugacityCoefficient_pTN;