An official website of the United States government
Here's how you know
Official websites use .gov
A
.gov website belongs to an official
government organization in the United States.
Secure .gov websites use HTTPS
A lock (
) or https:// means you've safely
connected to the .gov website. Share sensitive
information only on official, secure websites.
As a library, NLM provides access to scientific literature. Inclusion in an NLM database does not imply endorsement of, or agreement with,
the contents by NLM or the National Institutes of Health.
Learn more:
PMC Disclaimer
|
PMC Copyright Notice
Comprehensive sets of derivatives of Helmholtz energy transformations of several
common cubic equations of state are presented. These derivatives can be used for
implementing cubic equations of state into complex multi-fluid mixture models when no
multiparameter equation of state is available for a mixture component. Thus, pure fluids
(or mixtures) for which no accurate model exists in literature can be modeled with a
relatively small set of fluid property data. Composition derivatives have been calculated
for the cases where the last mole fraction is either an independent or dependent variable.
Analytic derivatives are presented up to fourth order in the independent variables
combined with composition derivatives up to third order; this set covers the common
requirements for derivatives needed in the state-of-the-art thermophysical property
libraries. A C++ implementation of the presented analyses, data for computer code
validation, and information about the computer algebra tools used to calculate the
intermediate derivatives are provided as supplementary information.
Thermodynamic properties of fluids can be calculated by means of different types of
equations of state. This section describes those that are formulated in terms of the
Helmholtz energy. They evolved from the virial equation of state and became common when pure
fluids had been characterized over wide ranges of states and in multiple properties because
all this information could be represented with high accuracy in a single formulation of the
Helmholtz energy.
1.1. Helmholtz Energy Potential
Multiproperty formulations take advantage of the laws and axioms of
thermodynamics which rank certain combinations of independent and dependent variables as
fundamental relations because they contain all thermodynamic information about a
particular system. Such all-inclusiveness is a mark of potential functions, in this case
of thermodynamic potentials. The best known of these are [1]
where u is the internal energy, h is the
enthalpy, s is the entropy, a is the Helmholtz energy,
g is the Gibbs energy, v is the volume,
T is the temperature, and p is the pressure.
Thermodynamic potentials are equivalent because they are Legendre-transforms of each
other. The two potentials with measurable quantities as independent variables are the
Gibbs energy g and the Helmholtz energy a. The Gibbs
energy in the form of the chemical potential is the basis of phase equilibrium
calculations in chemical engineering while formulations of the Helmholtz energy have been
preferably applied to correlate wide-ranging data and properties of pure fluids with high
accuracy. Such formulations are implemented in the current state-ofthe-art thermophysical
property libraries: NIST REFPROP [2], CoolProp
[3], and TREND [4].
The Helmholtz energy a is commonly expressed as a sum of the
ideal-gas contribution a0 and the residual contribution
ar. In practice, the Helmholtz energy a is
non-dimensionalized by the product of the gas constant R and the
temperature T, and the independent variables are transformed as well,
yielding
(1)
where the non-dimensionalized density is given by
δ =
ρ/ρr and the reciprocal
reduced temperature is given by τ=
Tr/T. The reducing parameters
ρr and Tr are usually
equal to the critical values for pure fluids. The reducing models used for
ρr and Tr when modeling
mixtures are described further in Sec. 2.2. The link
between Helmholtz energy formulations and pressure-explicit equations of state is the
derivative
(2)
or in reduced form
(3)
As an example, the enthalpy and entropy can be obtained from
(4)
(5)
Additional derivatives can be found in the book of Span [5] or the paper of Lemmon et al. [6].
In this work we consider only the residual Helmholtz energy
αr and not the ideal-gas Helmholtz energy
α0; the residual Helmholtz energy can be obtained
from an explicit transformation of pressure-explicit cubic equations of state, while the
integration of the ideal-gas specific heat is required to obtain
α0.
1.2. Pure Fluids
Helmholtz energy formulations are able to represent the experimental data
available within their uncertainties but are relatively complex and thus difficult to
evaluate. Furthermore, the multiparameter models are empirical in nature, and must be
correlated to large datasets of high-accuracy experimental data to yield high-accuracy
calculations of thermodynamic properties.
These multiparameter equations represent the state-of-the-art in high-accuracy
representations of pure fluid properties. For instance, the residual part of the equation
of state for propane of Lemmon et al. [7] has the form
(6)
which is a combination of polynomial-like (the first summation),
polynomial plus exponential (the second summation), and Gaussian terms (the third
summation). All subscripted symbols represent adjustable parameters.
1.3. Mixtures (the Multi-Fluid Mixture Model)
For Helmholtz equations of state, the multi-fluid mixture model,
see Refs. [8–14], is regarded as state-of-the-art. This model has the advantage that highly
accurate formulations for pure fluids can be directly used in the mixture model; all pure
fluid contributions to the reduced residual Helmholtz energy are evaluated at the same
reduced temperature τ and reduced density
δ, not at the same temperature T and density
ρ. Mixture properties are then obtained by combining the reduced
Helmholtz energies of the pure fluids. Hence, in order to apply this model,
Helmholtz-energy-explicit equations of state must be available for all components in the
mixtures.
In the multi-fluid models implemented in NIST REFPROP [2], CoolProp [3], and TREND
[4], the contributions from the pure fluids are
combined in the following manner to add the composition dependence
(7)
where
is the contribution from the i -th pure fluid, which is
in general given by a multiparameter equation of state like that shown above in Sec. 1.2. The term
is a departure function used to shape the thermodynamic surface for a given binary pair,
and Fij is an adjustable parameter that can
be used to scale departure functions developed for common families of binary pairs.
Equation (7) corresponds to the GERG mixture model [11,12].
According to the multi-fluid model, the reducing temperature
Tr and the reducing density
ρr are functions of composition
and
[11,12].
In the limiting case of pure fluids, the reducing temperature becomes the critical
temperature of the pure fluid Tc and the reducing density
becomes the critical density of the pure fluid ρc.
Some mixture properties (like pressure or enthalpy) can be straightforwardly
obtained from τ and δ partial derivatives
of α. Other properties, like fugacities or fugacity coefficients,
require composition derivatives. For instance, the fugacity can be given by [11,12]
(8)
Details of the derivations required to obtain the fugacity in terms of
derivatives of αr are given in Refs. [11,12].
2. Cubic Pressure-Explicit Equations of State
While the development of multiparameter Helmholtz energy formulations requires
experimental data of multiple properties of good quality over a broad temperature and
pressure range, the only information needed to use cubic equations of state are the critical
temperature, critical pressure, and acentric factor (or vapor pressure curves in the case of
the Mathias-Copeman equation for aii). The most
frequently used types of cubic equations of state are the equations by Soave, Redlich, and
Kwong (SRK) (as in Soave [15] and Redlich and Kwong
[16]) and Peng and Robinson (PR) [17].
As noted by Michelsen and Mollerup [18],
cubic equations of state can be expressed in a common form given by
(9)
where v is the molar volume in
m3·mol−1, R is the universal gas
constant in J·mol−1·K−1,
T is the temperature in K, am is the mixture
attractive term in J·m 3·mol−2, and
bm is the mixture covolume in
m3·mol−1. Other even more general functional forms
have been proposed that cover an even wider range of potential structures for cubic and
cubic-like equations of state. For instance, the reviews of Poling et al.
[19], Wei and Sadus [20], and Valderramma [21]
provide a thorough discussion of the multitude of cubiclike functional forms that have been
developed since the equation of state of van der Waals in 1873 [22].
In this work, Helmholtz energy translations for cubic equations of state are
presented. All cubic equations have been handled in a universal formulation. The presented
formulations also allow for the use of cubic equations of state in multi-fluid models, i.e.,
the Helmholtz energy contributions for the pure fluid in multi-fluid models can be
calculated either from multiparameter equations of state or cubic equations of state.
2.1. Cubic Parameters
For cubic equations of state, usually one-fluid mixture models
are used, see e.g., Soave [15] or Peng and Robinson
[17]. In the case of one-fluid mixture models,
the mixture properties are not modeled by combining the pure fluid contributions (as in
the multi-fluid mixture model) but by applying mixing rules to fluid specific parameters
for a hypothetical pure fluid. For instance, quadratic mixing rules in terms of
composition are usually applied to the attraction parameter
am, and linear mixing rules are applied to the covolume
bm.
For all the investigated equations of state, the mixture parameters
am and bm are given by quadratic
and linear mixing rules in molar composition, respectively. Thus the forms for
am and bm are given by
(10)
(11)
The cross attractive term
aij(T) is given by the
form
(12)
where kij = 0 if
i = j.
In the classical cubic formulations of Peng-Robinson [17] and Soave-Redlich-Kwong [15], the form of aii was given by
(13)
where a0,ii and
mii are fluid-specific constant terms
particular to the equation of state. Table 1 gives
the forms of the constants for three common cubic equations of state.
Table 1.
Common implementations of the cubic equations of state (R :
universal gas constant in J·mol−1·K−1,
Tc,i : critical temperature in K,
Pc,i : critical pressure in Pa,
ωi : acentric factor of the pure
component).
In engineering practice, it has been found that more flexibility in the form of
aii is required, particularly to fit the
vapor pressure curves of polar fluids. Numerous attempts have been made to arrive at an
aii term that gives additional flexibility,
and one of the most commonly used forms is that of Mathias and Copeman [24]
(14)
where, in the absence of sufficient experimental data,
C1,i can be set to
mii and
C2,i and
C3,i can be set to zero to yield a
predictive scheme for aii. Therefore, Eq. (13) can be considered a special case of
Eq. (14), and we can carry out the
derivations through the use of Eq. (14)
with no loss in generality. The Mathias-Copeman equation is commonly used because it is
straightforward to obtain the coefficients
Cn,i, either by
optimization, or from tabulated values (like those of Horstmann et al.
[25] for more than 1000 fluids).
If the mixture has only one component (i.e., a pure fluid), the
am and bm terms simplify to
(15)
(16)
Other mixing rules have been proposed for the mixture covolume
bm, including quadratic mixing rules (see for instance
McFarlane et al. [26]). The
extension of the derivatives of bm to quadratic mixing rules
is not demonstrated in this work but can easily be done if needed; linear mixing rules for
bm are more prevalent in the literature.
2.2. Reducing Values ρr and
Tr
When translating cubic equations into the reduced residual Helmholtz energy, the
reducing parameters ρr and
Tr have to be handled depending on the way that the model is
to be used.
2.2.1. Pure Fluid and Multi-Fluid Mixture
The first case is that cubic equations are used to model a pure fluid (either
for pure fluid properties or as a contribution
αroi in a multi-fluid
mixture). In this case, all temperatures T in the cubic equation are
replaced by Tr/τ and all densities
ρ are replaced by
ρr·δ, with
Tr = Tc and
ρr = ρc; the
reducing parameters need to be equal to the critical parameters of the fluid. The
inverse reduced temperature τ and the reduced density
δ for models explicit in the non-dimensionalized Helmholtz
energy is as described in Sec. 1.
2.2.2. Mixture as One-Fluid
The second case is that Helmholtz-energy-translated cubic equations of state
are used in a one-fluid mixture model, which corresponds to the “usual
way” of handling mixtures with cubic equations of state. In this case, all
temperatures T in the cubic equation are replaced by
Tr /τ and all densities are
replaced by ρr·δ, with
Tr and ρr being
parameters that can be arbitrarily chosen. In this work, Tr
= 1 K and ρr =1 mol·m−3.
2.3. Molar Composition
In general, a mixture of N components is specified by its molar
composition - though in some fields mass fractions are more prevalent. Additionally, in
other literature, mole numbers are taken to be the independent variables rather than mole
fractions. The mole fractions can be considered in two ways:
all of the mole fractions x1 to
xN are treated as independent
variables
only the first N −1 mole fractions are
considered as independent variables.
If xN is a dependent variable, it
is therefore determined from the other mole fractions from
(17)
The distinction concerning xN
only appears in the composition derivatives of the mixture terms
am and bm. This dependency is
implicitly invoked in all other equations and composition derivatives.
2.4. Conversion to Residual Non-Dimensionalized Helmholtz Energy
As described above pressure-explicit cubic equations of state can be transformed
into a Helmholtz-energy-explicit equation of state with reciprocal reduced temperature and
reduced density as independent variables. Thus in the first step, the necessary variable
substitutions are made in Eq. (9) to yield
(18)
or
(19)
The compressibility factor Z is given by
(20)
and since
(21)
the derivative of the residual non-dimensional Helmholtz energy with
respect to δ is given by
(22)
Therefore, in substituting p from Eq. (19) into the right-hand side of Eq. (22), we obtain
(23)
The residual non-dimensional Helmholtz energy is then obtained from
(24)
The integral for αr can be separated
into two pieces and expressed in the form
(25)
The ψ(−) and
ψ(+) terms are functions of δ
but not of τ and arise from integrating portions of
(Z −1)/δ, while the remaining term
is a function of τ but not of δ.
The first term ψ(−) has a closed form
solution that is not dependent on the constants Δ1 and
Δ2, given by
(26)
(27)
The integral for ψ(+) is more
complicated; its form is given by
(28)
(29)
with the assumption that Δ1 −Δ2
≠ 0. This is true for SRK and PR, but not for the van der Waals equation of state,
which has the constants Δ1 = Δ2 = 0. For the van der
Waals equation of state, setting Δ2 = 0, taking the limit as
Δ1 approaches zero, and with the use of a single application of
l’Hôpital’s rule, it can be shown that
(30)
Thus all three equations of state (SRK, PR, vdW) can be treated with a
similar formulation.
In order to make use of the one-fluid model, derivatives with respect to
τ and δ are required, for instance, in
order to calculate the pressure as shown above. In this work, we provide a large number of
analytic derivatives, including τ, δ, and
composition partial derivatives. They were selected as the minimal set of derivatives
needed to calculate critical points of binary mixtures with the use of entirely analytic
derivatives.
3. Derivatives at Constant Composition
After having obtained the closed-form solution for the residual Helmholtz energy
αr from Eq.
(25), it is necessary to obtain several derivatives with respect to
τ and δ at constant composition. The
partial derivatives of αr at constant composition can be
expressed in a compact form
(31)
where is
the composition vector, and where the derivatives of the product of
τam (τ) can be expressed in the
formulation
(32)
which is simply the n -th order partial
derivative of a product. All 0-th order partial derivatives are given by
(33)
For example, the first partial derivative of
τam (τ) with respect to
τ at constant composition would be equal to
(34)
Partial derivatives of ψ(−) and
ψ(+) will be discussed in the following sections.
Similarly to the 0-th order derivatives with respect to
τ, all 0-th order derivatives with respect to
δ are given by
(35)
3.1. Derivatives of ψ(−)
The term ψ(−) as given above in Eq. (27) is a function of
δ and not a function of τ (though
bm is still a function of composition), therefore the first
four derivatives of ψ(−) with respect to
δ at constant composition are
(36)
(37)
(38)
(39)
(40)
The reader might be interested to confirm that
is the same as the integrand in Eq.
(26).
Any partial derivative of ψ(−)
involving at least one derivative with respect to τ at constant
composition is zero, which can be alternatively expressed as
(41)
3.2. Derivatives of ψ(+)
As given before, the equation for ψ(+) is
(42)
In order to simplify the derivatives of
ψ(+) from Eq. (29) with respect to δ, we introduce the term
(43)
The term Π12 is the denominator of the integrand of
Eq. (28). The partial derivatives of
Π12 with respect to δ are then needed. The
first three partial derivatives are
(44)
(45)
(46)
All further δ derivatives of Π12
are equal to zero.
The first four derivatives of ψ(+) with
respect to δ can be expressed in terms of Π12
and derivatives of Π12 as
(47)
(48)
(49)
(50)
Note that ,
which removes a term in the numerator of .
3.3. Derivatives of am and
bm
The n-th partial derivative of
am (from Eq.
(10)) with respect to τ at constant composition can be
given by
(51)
The term bm has neither τ
nor δ dependence, and therefore all derivatives of
bm other than composition derivatives are equal to zero.
3.4. Derivatives of aij
The term aij
(τ) is described above and given by the form in Eq. (12), where the only modification here is that we
express the equation with τ as the independent variable instead of
T. In order to avoid a rapidly increasing number of terms in higher
derivatives of aij(τ)
with respect to τ, a
uij(τ) function is
substituted, where the generic uij function
is given by
(52)
and therefore
(53)
The advantage of this substitution is that all derivatives of
aij with respect to
τ can be expressed in terms of
uij and its derivatives, resulting in
derivatives with more compact analytic forms. The first four derivatives of
aij with respect to
τ can be given by
(54)
(55)
(56)
(57)
where we have assumed that
kij is a constant and not a function of
temperature or composition. The first four derivatives of
uij with respect to
τ can be given by
(58)
(59)
(60)
(61)
(62)
3.5. Derivatives of
aii(τ)
The term aii introduced in Eq. (14) can be expressed as
,
where a0,ii is a constant term dependent on
the fluid and the equation of state (given in Table
1), and the term Bi is given by
(63)
where the intermediate term
Di (introduced to simplify derivatives of
aii after the substitution
T = Tr/τ) is
defined by
(64)
We then obtain the derivatives of
Di from
(65)
(66)
(67)
(68)
with the derivatives of Bi
from
(69)
(70)
(71)
(72)
and finally the derivatives of
aii from
(73)
(74)
(75)
(76)
In the case that C1,i =
mii,
C2,i =0, and
C3,i =0, the derivatives of
aii are significantly simplified, and these
simplified derivatives are presented in the supplementary information for completeness.
4. Composition Derivatives
The non-dimensionalized residual Helmholtz energy
αr is given by Eq. (25). In order to make use of the one-fluid model for carrying out mixture
calculations like vapor-liquid equilibria, or to calculate critical points with the use of
analytic derivatives, a large number of composition derivatives is required.
The first three composition derivatives of this term are given by
(77)
(78)
(79)
The individual derivative terms involved in each derivative are covered in the
following sections.
4.1. Composition Derivatives of ψ(−)
The derivatives of ψ(−) from Eq. (27) with respect to
δ and one composition derivative with respect to
xi with all other mole fractions held
constant are given by
(80)
(81)
(82)
(83)
(84)
The derivatives of ψ(−) with
respect to δ and two composition derivatives are given by
(85)
(86)
(87)
(88)
(89)
The derivatives of ψ(−) with
respect to δ and three composition derivatives are given by
(90)
(91)
4.2. Composition Derivatives of Π12
As given in Eq. (43), the
intermediate term Π12 is given by
(92)
This intermediate term was introduced in order to yield more compact
derivative forms for the derivatives of ψ(+). The first
composition derivatives with up to four δ derivatives and all
other mole fractions held constant are given by
(93)
(94)
(95)
(96)
The second cross composition derivatives with up to four
δ derivatives and all other mole fractions held constant are
given by
(97)
(98)
(99)
(100)
The third composition derivative is given by
(101)
The fourth mixed derivative (three with respect to composition, and one
with respect to δ) is given by
(102)
4.3. Composition Derivatives of ψ(+)
In order to simplify the composition derivatives of
ψ(+), we introduce a variable A
(which is a function of composition and δ) given by
(103)
The first three composition derivatives of A are
(104)
(105)
(106)
where the parameter Π12 is obtained from Eq. (43).
Furthermore, we introduce a term c
=1/bm, which has the composition derivatives given by
(107)
(108)
and
(109)
With the use of the A and c parameters
and their derivatives, the first two composition derivatives of
ψ(+) (taken at constant δ)
can then be obtained from
(110)
(which is equivalent to Eq.
(29)), and further composition derivatives are obtained from
(111)
(112)
(113)
For mixed derivatives with one composition derivative, the first four
δ derivatives of
∂ψ(+)/∂xi
are given by the following equations
(114)
(115)
(116)
(117)
Note that
and ,
which removes contributions from .
The δ derivatives of the second and higher mixed
composition derivatives are given by the equations
(118)
(119)
(120)
(121)
(122)
4.4. Composition Derivatives of
τam(τ)
Composition derivatives of the product τam
yield forms similar to Eq. (32). The first
two composition derivatives are given by
(123)
(124)
4.5. Composition Derivatives of am and
bm
As described above in Sec. 2.3, the mole
fractions can be considered to either all be independent variables, or the
N -th mole fraction can be determined based on the
other N −1 mole fractions. The derivatives of
am and bm with respect to
composition for both composition models are described in the sections that follow, where
the composition derivatives of am are taken at a constant
value of τ, which involves the contributions from
aii. The mixed τ
and composition derivatives required in Eqs.
(123) and (124) can be obtained
by substituting
in the place of aii as required. For more
information on these derivatives, see the C++ code in the supplemental information.
4.5.1. xN Independent
The summation for am given by Eq. (10) can also be reconstituted as two summations,
one for the main diagonal (where i = j), and another
for all the off-diagonal entries, which due to symmetry
(aij =
aji) contribute two identical
contributions. This results in the formulation for am given
by
(125)
The first composition derivative of am with
respect to composition when all N components of the mixture are assumed
to be independent is given by
(126)
The summation form of this derivative can be demonstrated for a ternary
(three-component) mixture, where the pattern becomes evident, as can be seen from
(127)
(128)
(129)
(130)
The second composition derivative of am (for
xN independent) is given by
(131)
for all i and j. This result can be
seen by inspection of composition derivatives of Eqs. (128), (129), and (130) for the
ternary system. All further composition derivatives of am
are equal to zero.
The first composition derivative of bm with
respect to composition for xN independent
and bm with the use of linear mixing is given by
(132)
All further composition derivatives of bm,
as well as all derivatives with respect to τ, are equal to
zero.
4.5.2. xN Dependent
The first N −1 components are independent variables,
and the last component xN is the remainder
of the mole fraction. The formula for am from Eq. (10) can be expressed in four pieces,
one as the primary matrix for the first (N
−1)×(N −1) components, one for the
N, N element, and two pieces for the remainder of
the N -th row and the N
-th column. Figure 1 shows the
bands in the matrix in a graphical sense. The cells with no color correspond to the
entries where both i and j are independent mole
fractions, in red, both of the i and j mole fractions
are dependent variables, and in green, one of the i and
j mole fractions are dependent variables.
Grid of entries in am for the case
where xN is a dependent variable.
Then considering the bands in Figure 1,
we can express Eq. (10) in the form
(133)
The first composition derivative of
is given by
(134)
because
dxN/dxi
= −1. The remainder of the N -th row and
N -th column can be treated in a similar fashion
(135)
or
(136)
because
(137)
which is also sometimes expressed as the Kronecker delta. The other part
of the boundary to the matrix yields a similar form, given by
(138)
The derivative of the remaining part of am
can be given by
(139)
or
(140)
which can ultimately all be joined together to yield
(141)
which by symmetry can be simplified to
(142)
The second composition derivative (by the argument of Eq. (137)) yields
(143)
and all further composition derivatives are equal to zero.
The formula for bm can be
expressed as
(144)
which results in
(145)
and therefore the first composition derivative with respect to
composition for xN dependent is given by
(146)
All further composition derivatives of bm
are equal to zero.
5. Validation and Results
The analytic derivatives presented here were obtained through extensive use of the
open-source python symbolic math package sympy as shown in the Jupyter notebook (formerly
known as IPython notebook [27]) provided as supplemental information. A few minor
manual simplifications of the resulting equations were made in order to yield slightly more
compact forms.
In order to assist the user in the implementation of the derivatives presented
here, numerical values are tabulated in the supplemental information for the required
derivatives. These derivatives cover all the partial derivatives of
αr with respect to composition,
τ, δ, and mixed partial derivatives
thereof.
5.1. Numerical Derivatives Not Involving Composition Derivatives
As the analytic derivatives themselves are quite complex, it is necessary to
ensure that they have been implemented properly. The most reliable way of doing this is to
compare the calculated values from the numerical derivatives with the values calculated
from the analytic derivatives. Here we present a small explanation of how to carry out the
numerical derivatives, which mirrors the analysis presented in the supplemental information.
The numerical τ and/or δ
derivatives (not including composition derivatives) are relatively straightforward. For
instance, for an arbitrary term ,
the first τ derivative of Λ with a second-order truncation
error centered difference can be obtained from
(147)
where the term represents the order of
the truncation error. Similarly, the first numerical partial derivative with respect to
δ (and all other variables constant) with a second-order
truncation error centered finite difference would be given by
(148)
The term Λ could be a derivative term (potentially also including
composition derivatives).
In some cases, first partial derivatives with higher order truncation error are
needed to reduce the error in the numerical approximation to the analytic derivative. The
first derivative with respect to δ with a fourth-order truncation
error centered finite difference would be given by
(149)
5.2. Numerical Derivatives with Respect to Composition
As in the above section, we consider an arbitrary function
.
The derivatives with respect to composition are slightly more complex because they now
involve the two possibilities of xN being an
independent variable or being dependent on the preceding N −1
components of the mixture. In order to carry out derivatives of Λ with respect to
one of the first N −1 mole fractions, we create new composition
vectors with the relevant mole fraction shifted. If
xN is an independent variable, these new
composition vectors can be expressed as
(150)
(151)
(152)
(153)
because the only composition that must be shifted is the composition of
interest. With xN an independent variable,
the sum of
will not equal one for the shifted mole fraction vectors, ,
,
,
and .
If on the other hand xN is dependent on the
first N −1 components, the shifted composition vectors are
constructed by shifting the composition of interest, as well as applying the opposite
shift to the xN composition, as given by
(154)
(155)
(156)
(157)
The first composition partial derivative through the use of a fourth-order
truncation error centered finite difference can then be expressed as
(158)
This and other finite difference forms are covered in the work of Chapra
and Canale [28]. Similarly, if a second-order
truncation partial derivative were desired, the form of Eq. (147) could be used.
6. Conclusions
In this work, a generalized derivation to transform cubic equations of state to
Helmholtz-explicit formulations for use in one-fluid and multi-fluid models is presented.
These transformations can be used in state-of-the-art thermophysical property libraries,
either to replace a fluid in the multi-fluid model, or to use the cubic equation of state in
a standalone fashion to replace the mixture (or pure-fluid) model entirely. Additional
validation data and a C++ implementation of these derivatives are provided as supplemental information.
The derivatives presented here can be extended to higher orders in composition,
τ, or δ by continuing the symbolic
mathematics analysis that is included in the supplemental information. The higher-order
composition derivatives become significantly more complex, but additional derivatives with
respect to τ or δ require relatively little
additional work.
Aavatsmark et al. [29]
developed a new cubic equation of state for carbon dioxide for the purpose of modeling
carbon capture and sequestration. Their work was published while this work was underway.
Fortuitously, the equation of state proposed by Aavatsmark can be readily handled with the
framework proposed here, but cannot be used in tools that are based on the standard cubic
equations of state (PR, SRK, etc.), providing additional motivation for the work carried out
here. In their work, several sets of the parameters Δ1,
Δ2, mii,
a0,ii, and
bii were obtained to yield the best density
predictions over a few different domains.
The authors thank the following colleagues who played important roles in the past
and present development of this work: Eric Lemmon of the National Institute of Standards and
Technology, who generously shared his time to discuss numerous mathematical challenges;
Monika Thol and Stefan Herrig of the Ruhr-Universität Bochum, Germany, for the
motivation of this work; Vladimir Diky and Diego Ortiz-Vega, who laid some of the groundwork
for this analysis; Lars Hüttermann and Pit Podleschny, who carried out preliminary
work on specialized derivations for PR and SRK at the Ruhr-Universität Bochum; the
National Research Council for their generous support of Ian Bell’s postdoctoral
fellowship.
About the authors:
Ian Bell is a National Research Council postdoctoral researcher in the Applied
Chemicals and Materials Division of the Materials and Measurements Laboratory of NIST. He
conducts research in the modeling of the thermophysical properties of pure fluids and
mixtures. Andreas Jäger is a research assistant at the Technische Universität
Dresden (Dresden University of Technology) in Germany. His primary research focuses on
equations of state for fluid and solid phases and phase equilibrium calculations. The
National Institute of Standards and Technology is an agency of the U.S. Department of
Commerce.
Footnotes
*
Commercial equipment, instruments, or materials are identified only in order to
adequately specify certain procedures. In no case does such identification imply
recommendation or endorsement by the National Institute of Standards and Technology, nor
does it imply that the products identified are necessarily the best available for the
purpose.
Supplemental Materials
C++ code implementing all the analyses presented here. In the case of an
inconsistency between the analytic derivatives as typeset here and the C++ code, the
C++ code should be used because it has been numerically validated.
Jupyter notebook demonstrating use of sympy symbolic math package (and a
PDF translation of the notebook).
Sample derivative data for a three-component mixture.
7. References
[1].Callen HB (1960) Thermodynamics : an
introduction to the physical theories of equilibrium thermostatics and irreversible
thermodynamics (Wiley, New
York: ). [Google Scholar]
[2].Lemmon EW, Huber ML, McLinden MO (2013), NIST Standard
Reference Database 23: Reference Fluid Thermodynamic and Transport Properties-REFPROP,
Version 9.1, National Institute of Standards and
Technology;
http://www.nist.gov/srd/nist23.cfm [Google Scholar]
[3].Bell IH, Wronski J, Quoilin S, Lemort V (2014) Pure and
Pseudo-pure Fluid Thermophysical Property Eval-uation and the Open-Source Thermophysical
Property Library CoolProp. Ind Eng Chem Res
53(6):2498–2508.
10.1021/ie4033999 [DOI] [PMC free article] [PubMed] [Google Scholar]
[4].Span R, Eckermann T, Herrig S, Hielscher S, Jäger A, Thol M (2015), TREND. Thermodynamic
Reference and Engineering Data 2.0.
http://www.thermo.ruhr-uni-bochum.de/
[5].Span R (2000) Multiparameter Equations
of State - An Accurate Source of Thermodynamic Property Data
(Springer; ). [Google Scholar]
[6].Lemmon E, Jacobsen RT, Penoncello SG, Friend D (2000) Thermodynamic
Properties of Air and Mixtures of Nitrogen, Argon, and Oxygen from 60 to 2000 K at
Pressures to 2000 MPa. J Phys Chem Ref Data
29(3):331–385.
10.1063/1.1285884 [DOI] [Google Scholar]
[7].Lemmon EW, McLinden MO, Wagner W (2009) Thermodynamic
Properties of Propane. III. A Reference Equation of State for Temperatures from the
Melting Line to 650 K and Pressures up to 1000 MPa. J Chem Eng
Data
54(12):3141–3180.
10.1021/je900217v [DOI] [Google Scholar]
[8].Lemmon EW, Tillner-Roth R (1999) A Helmholtz
energy equation of state for calculating the thermodynamic properties of fluid
mixtures. Fluid Phase Equilib
165(1):1–21.
10.1016/S0378-3812(99)00262-9 [DOI] [Google Scholar]
[9].Lemmon EW, Jacobsen RT (1999) A Generalized
Model for the Thermodynamic Properties of Mixtures. Int J
Thermophys
20(3):825–835.
10.1023/A:1022627001338 [DOI] [Google Scholar]
[10].Lemmon EW (1996) A Generalized Model for
the Prediction of the Thermodynamic Properties of Mixtures Including Vapor-Liquid
Equilibrium, Ph.D. thesis, University of
Idaho, Moscow. [Google Scholar]
[11].Kunz O, Klimeck R, Wagner W, Jaeschke M (2007) The GERG-2004 Wide-Range
Equation of State for Natural Gases and Other Mixtures (VDI
Verlag GmbH; ). [Google Scholar]
[12].Kunz O, Wagner W (2012) The GERG-2008
Wide-Range Equation of State for Natural Gases and Other Mixtures: An Expansion of
GERG-2004. J Chem Eng Data
57(11):3032–3091.
10.1021/je300655b [DOI] [Google Scholar]
[13].Gernert J, Jäger A, Span R (2014) Calculation of
phase equilibria for multi-component mixtures using highly accurate Helmholtz energy
equations of state. Fluid Phase Equilibr
375:209–218. 10.1016/j.fluid.2014.05.012 [DOI] [Google Scholar]
[14].Gernert J, Span R (2016) EOS-CG: A
Helmholtz energy mixture model for humid gases and CCS mixtures.
J Chem Thermodyn
93:274–293. 10.1016/j.jct.2015.05.015 [DOI] [Google Scholar]
[15].Soave G (1972) Equilibrium
Constants from a Modified Redlich-Kwong Equation of State. Chem
Eng Sci
27(6):1197–1203.
10.1016/0009-2509(72)80096-4 [DOI] [Google Scholar]
[16].Redlich O, Kwong JN (1949) On the
thermodynamics of solutions. V. An equation of state. Fugacities of gaseous
solutions. Chem Rev
44(1):233–244.
10.1021/Cr60137a013 [DOI] [PubMed] [Google Scholar]
[17].Peng DY, Robinson DB (1976) A new
two-constant equation of state. Ind Eng Chem Fundamen
15(1):59–64.
10.1021/i160057a011 [DOI] [Google Scholar]
[19].Poling BE, Prausnitz JM, O’Connell JP (2001) The Properties of Gases
and Liquids
5th edition (McGraw
Hill; ). [Google Scholar]
[20].Wei YS, Sadus RJ (2000) Equations of
State for the Calculation of Fluid-Phase Equilibria. AICHE
J
46(1):169–196.
10.1002/aic.690460119 [DOI] [Google Scholar]
[21].Valderrama J (2003) The State of the
Cubic Equations of State. Ind Eng Chem Res
42(8):1603–1618.
10.1021/ie020447b [DOI] [Google Scholar]
[22].van der Waals JD (1873) Over de Continuiteit
van den Gas- en Vloeistoftoestand, Ph.D. thesis,
University of Leiden. [Google Scholar]
[23].Robinson DB, Peng DY (1978) The characterization of
the heptanes and heavier fractions for the GPA Peng-Robinson programs (Research Report
RR-28) (Gas Processors
Association; ). [Google Scholar]
[24].Mathias PM, Copeman TW (1983) Extension of the
Peng-Robinson equation of state to complex mixtures: evaluation of the various forms of
the local composition concept. Fluid Phase Equilibr
13:91–108. 10.1016/03783812(83)80084-3 [DOI] [Google Scholar]
[25].Horstmann S, Jabloniec A, Krafczyk J, Fischer K, Gmehling J (2005) PSRK group
contribution equation of state: comprehensive revision and extension IV, including
critical constants and α-function parameters for 1000 components.
Fluid Phase Equilibr
227(2):157–164.
10.1016/j.fluid.2004.11.002 [DOI] [Google Scholar]
[26].McFarlane RA, Gray MR, Shaw JM (2010) Evaluation of
co-volume mixing rules for bitumen liquid density and bubble pressure
estimation. Fluid Phase Equilibr
293(1):87–100.
10.1016/j.fluid.2010.02.032 [DOI] [Google Scholar]
[27].Perez F, Granger BE (2007) IPython: a
system for interactive scientific computing. Comput Sci
Eng
9(3):21–29.
10.1109/Mcse.2007.53 [DOI] [Google Scholar]
[28].Chapra SC, Canale RP (2015) Numerical Methods for
Engineers
7th edition (McGraw
Hill; ). [Google Scholar]
[29].Aavatsmark I, Kometa BK, Gasda SE, Sandve TH, Nilsen HM (2015) A Generalized
Cubic Equation of State with Application to Pure CO2 Injection in
Aquifers. Computational Geosciences
20(3):623–635.
10.1007/s10596-015-9537-0 [DOI] [Google Scholar]
Associated Data
This section collects any data citations, data availability statements, or supplementary materials included in this article.