This is just quick reference for the theoretical background of testing procedures. See Overview document for practical aspects of the tests. For more detailed theoretical explanation, please refer to literature, such as a comprehensive 2017 review by J. Wisniak et al. Alternatively, see all literary sources for VLizard.
The Gibbs-Duhem equation (G-D) is used for most of the tests. This is the most general form:
We can use definition of excess Gibbs energy in dimensionless form (divided by
The idea here is that VLE data (
Where
You may choose
-
$n=4$ most usually -
$n=3$ if you have very few data points -
$n=5$ if you expect highly non-ideal system and have many data points.
This model has no thermodynamic meaning, but suitable mathematical properties for the analysis (orthogonality).
Using the
Then, the residuals between calculated and experimental values of
Finally, following metrics are calculated (average relative, resp. absolute error):
The same is done for
All must be within acceptable limits, which is 1 %.
By deriving
The idea of van Ness test is to subtract that equation for calculated - experimental
, like this:
The left-side is zero – but only if the model was fitted for
⚠ You may use model params obtained elsewhere, but do not use such model for van Ness test, if it was optimized for
It will make the test mathematically invalid.
The left-side should be zero, so a residual from zero can be calculated:
Finally, the root mean square of the residuals is calculated:
Instead of a single threshold to formally accept or reject the data, the van Ness test assigns a conventional index from 1 to 10, where 1 is perfect, 5 is doubtful and 10 is unacceptable, for a more nuanced evaluation.
The gamma offset test does examine thermodynamic consistency, though not using G-D, but only the definition of activity.
The activity coefficients must always be 1 for pure components, so it is just a simple check to see if
If that's not the case, then the VLE data does not align with the vapor pressure models for pure components.
A modified van Laar equation is used, which includes the error, or "offset" parameter
Both residuals are respectively weighted by
Conventional criterion is then used to formally accept or reject the data:
This test uses G-D in integral form, while disregarding
The curve
This is why Redlich-Kister & Herington tests are also generally called "area tests".
Conventional criterion is used to formally accept or reject the data:
Usually,
But
That's why it should be used only to reject the data when result is negative, but it has no meaning when positive, as per J. Wisniak.
A variation of Redlich-Kister test for isobaric data, which aims to replace the temperature dependence with an empirical parameter:
The conventional criterion is then
Empirical parameter
At first glance, this is the most mathematically straightforward test. Just like the Redlich-Kister test, the pressure and temperature dependence is disregarded. G-D is used in derived form:
For each point the residual from zero is calculated. Outlying points with particularly high residuals are then considered suspicious, but no formal criterion has been established.
However, the apparent simplicity is deceptive – problem lies in numerical calculation of the derivatives, which is generally unreliable, and makes the test seldom usable. VLizard uses a derivation formula using all points from the non-equidistant grid, which helps smooth out the sensitivity to random error, but it is often still too noisy to give meaningful information on thermodynamic consistency.