Departure function

In thermodynamics, a departure function is defined for any thermodynamic property as the difference between the property as computed for an ideal gas and the property of the species as it exists in the real world, for a specified temperature "T" and pressure "P". Common departure functions include those for enthalpy, entropy, and internal energy.
Departure functions are used to calculate real fluid extensive properties (i.e. properties which are computed as a difference between two states). A departure function gives the difference between the real state, at a finite volume or non-zero pressure and temperature, and the ideal state, usually at zero pressure or infinite volume and temperature.
For example, to evaluate enthalpy change between two points "h"("v"1,"T"1) and "h"("v"2,"T"2) we first compute the enthalpy departure function between volume "v"1 and infinite volume at "T" = "T"1, then add to that the ideal gas enthalpy change due to the temperature change from "T"1 to "T"2, then subtract the departure function value between "v"2 and infinite volume.
Departure functions are computed by integrating a function which depends on an equation of state and its derivative.
General expressions.
General expressions for the enthalpy "H", entropy "S" and Gibbs free energy "G" are given by
Departure functions for Peng–Robinson equation of state.
The Peng–Robinson equation of state relates the three interdependent state properties pressure "P", temperature "T", and molar volume "V""m". From the state properties ("P", "Vm", "T"), one may compute the departure function for enthalpy per mole (denoted "h") and entropy per mole ("s"):
where formula_6 is defined in the Peng-Robinson equation of state, "Tr" is the reduced temperature, "Pr" is the reduced pressure, "Z" is the compressibility factor, and
Typically, one knows two of the three state properties ("P", "Vm", "T"), and must compute the third directly from the equation of state under consideration. To calculate the third state property, it is necessary to know three constants for the species at hand: the critical temperature "Tc", critical pressure "Pc", and the acentric factor "ω". But once these constants are known, it is possible to evaluate all of the above expressions and hence determine the enthalpy and entropy departures.