
469 9.6 Speciation in multicomponent volatile phases
Equations (9.95), (9.99) and its equivalents, (9.100) and (9.101) constitute a system
of 10 non-linear equations in the 10 unknowns: n
CO
2
, n
CO
, n
CH
4
, n
H
2
, n
H
2
O
, n
graphite
,
ln(fO
2
), λ
1
, λ
2
and λ
3
. The input parameters are P, T and the three bulk gram-atom num-
bers: N
O
, N
H
and N
C
. As in the chemical equilibrium method, the solution is numerical
and iterative. Recalling that the fugacity coefficients are functions of fluid composition,
we must initially calculate the standard state fugacity coefficients, use these to obtain an
initial solution set, and then use the fluid composition from this solution set to calculate
fugacity coefficients in the mixture, iterating until consecutive solutions converge within a
desired interval. Implementation in Maple is straightforward and is discussed in Software
Box 9.4.
Software Box 9.4 Calculation of fluid speciation by Gibbs free energy minimization
The Maple worksheet minG_fluid_species.mw contains a procedure that
calculates fluid speciation in a C–O–H fluid saturated in graphite as a func-
tion of bulk O/H ratio, at constant temperature and pressure. The proce-
dure, COH_graphite_saturation, implements the solution described in
general terms in Section 9.6.2 , and in particular solves the problem
described in Worked Example 9.8. The procedure is invoked with the fol-
lowing parameters, in this order: (pressure in bar, temperature in
centigrade, name of output file). It calculates fluid speciation, oxy-
gen fugacity and fluid composition on the graphite saturation boundary, along the
O–H join. The content and organization of the output file are described in the Maple
listing. Thermodynamic properties of the gas species are entered in the spreadsheet
RefStateData, with a Shomate-type heat capacity equation and volumetric prop-
erties for solid phases from Holland and Powell (1998). The properties used in this
example can be imported in tab-delimited format from the file agaspeciesdata,or
they can be copied from a spreadsheet.
Given that we are explicitly studying speciation in graphite-saturated fluids, there is
an additional step that we must take, which is to determine the bulk composition of the
fluid at which graphite saturation takes place. The graphite saturation boundary defines the
boundary of the bulk composition region within which the calculations are valid. For bulk
compositions outside of this region the fluid is not saturated in graphite and equation (9.97),
and hence (9.98) and (9.101), are no longer valid.
Let us call the ratio N
O
/N
H
, that we will use as our compositional variable, N
O
/N
H
=z.
As long as the system is saturated in graphite, for each value of P , T and z there is one and
only one equilibrium fluid composition, because the thermodynamic state of the system
is fully determined. This means that species mol fractions, and hence the ratios among
them, are fixed and independent of the value of N
C
. Along the graphite saturation boundary
n
graphite
vanishes, so that we can write the following two compositional equations valid
along the boundary:
N
C
=n
CO
2
+n
CO
+n
CH
4
N
H
=4n
CH
4
+2n
H
2
O
+2n
H
2
.
(9.102)