Peng-Robinson-Stryjek-Vera 2 (PRSV2 and PRSV2-VL)¶
PRSV2 keeps the Peng-Robinson assembly but makes the alpha parameter temperature-dependent:
with \(T_{r,i}=T/T_{c,i}\) and \(\kappa_{0,i}=0.378893+1.4897153\,\omega_{i}-0.17131848\,\omega_{i}^{2}+0.0196554\,\omega_{i}^{3}\) . Because \(\kappa_{i}\) depends on temperature, the alpha derivative gains an extra term
where \(d\kappa_{i}/dT=(1/T_{c,i})\,d\kappa_{i}/dT_{r,i}\) is obtained by differentiating the expression for \(\kappa_{i}\) above with respect to \(T_{r,i}\) . Everything else follows the Peng-Robinson assembly of the previous section. The composition derivative additionally differentiates the composition-dependent Stryjek-Vera mixing rule.
The PRSV2-VL variant replaces that mixing rule with the van Laar form
which carries two interaction matrices and depends on composition, but not on temperature. That single observation is what makes the temperature derivative tractable: the parenthesis is a constant with respect to \(T\) , so every \(a_{ij}\) and every sum built from it keeps its composition factor unchanged and differentiates through the pure-component \(a_{i}\) alone,
with \(da_{i}/dT\) from equation [eq:d-prsv2-dadt]. Only the temperature derivative is available in closed form for this variant; the composition derivative falls back to finite differences. Two guards keep the analytical result faithful to the function it differentiates: the routine declines to answer, and the caller reverts to finite differences, whenever the root-checking step has displaced the pressure, because that branch adds a term the derivative was not taken of; and it reproduces the same numerical guard the fugacity routine applies to its correction sum, so that the two can never end up differentiating different expressions.