INTRODUCTION

Deep water fluids play an important role in the crustal petrogenesis and in the transport of deep matter into the upper crust. Knowledge of the physicochemical properties of deep fluids is an important tool for studying metamorphic, metasomatic and magmatic petrogenesis, the features of the manifestation and development of these global geological processes. Typical components of aqueous fluids are chlorides of alkali or alkaline earth metals and dissolved non-polar gases, in particular CO2. As the deep fluid approaches the surface, the temperature and pressure change significantly, which leads to a change in the physicochemical characteristics of the fluid. As a result of a decrease in pressure, a homogeneous fluid can decompose into immiscible fluid phases with contrasting physical and chemical properties and compositions that differ significantly from the composition of the initial fluid. Aqueous fluids of the composition H2O–CO2–salt play an important role in the processes of deep metamorphism and metasomatism, the removal of deep-seated ore matter into the upper layers of the Earth’s crust (Trommsdorf et al., 1985; Bischoff et al., 1996; Aranovich et al., 1987; Markl and Bucher, 1998; Heinrich et al., 2004; Manning and Aranovich, 2014, 2017). In addition to the problems of petro- and ore genesis, the knowledge of the quantitative characteristics of deep fluids is necessary for solving a number of geodynamic problems, in particular, the problem of earthquake prediction (Leonov et al., 2006; Kissin, 2009; Rodkin and Rundqvist, 2017; Manning, 2018). The earliest thermodynamic models of the H2O–CO2–NaCl fluid system for high temperatures and pressures were presented in (Joyce and Holloway, 1993; Duan et al., 1995). Modern numerical thermodynamic models of ternary systems H2O–CO2-salt (Aranovich et al., 2010; Ivanov and Bushmin, 2019, 2021) for PT parameters of the middle and lower crust provide good reproduction of experimental data (Zhang and Frantz, 1989; Kotelnikov and Kotelnikova, 1990; Johnson, 1991; Frantz et al., 1992; Aranovich and Newton, 1996; Shmulovich and Graham, 1999, 2004). The mentioned above thermodynamic models of aqueous fluids, containing salts and carbon dioxide, refer to systems containing one particular salt (NaCl or CaCl2). However, aqueous-salt fluids typically contain a mixture of several salts. Aqueous-salt fluids, containing a mixture of salts KCl–NaCl, were studied in (Aranovich and Newton, 1997). Fluid inclusions containing a mixture of several salts are a common object of laboratory microthermometry studies (Van den Kerkhof and Hein, 2001). In these studies, in particular, attention is paid to the H2O–NaCl–CaCl2 system (Steele-MacInnis et al, 2011). Both salts of this system are among the most widespread salts in crustal fluids (Liebscher, 2007). The same inclusions, containing H2O–NaCl–CaCl2, may contain gases, including CO2, or be formed during phase decomposition of the water-gas-salt fluid. Thermodynamic models that describe fluids with a mixed composition of salts under conditions of capture of these inclusions, that is, at sufficiently high temperatures and pressures, are currently absent.

In our previous works (Ivanov and Bushmin, 2019, 2021), numerical thermodynamic models of two ternary fluid systems with water, CO2, and salt components were developed. Both models are valid at temperatures from 500 to 1400°C and pressures from 1 to 20 kbar. The models were built for NaCl (Ivanov and Bushmin, 2021) and CaCl2 (Ivanov and Bushmin, 2019) salts. In this paper, we present a thermodynamic model of the four-component H2O–CO2–NaCl–CaCl2 system, which is a natural development of our models for the H2O–CO2–NaCl and H2O–CO2–CaCl2 systems.

THEORETICAL METHOD

Gibbs Free Energy

The expression we obtained for the excess Gibbs free energy of mixing in the four-component system Gmix is based on an approach similar to that used for three-component systems in (Aranovich et al., 2010; Ivanov and Bushmin, 2019, 2021). The expression for the entropy part of the Gibbs free energy GS was obtained by extending the expressions for the corresponding factors in the activities of the components for ternary systems (Aranovich et al., 2010) to the quaternary system. When used for the mole fractions of the components of the notation \({{x}_{1}} = {{x}_{{{{{\text{H}}}_{{\text{2}}}}{\text{O}}}}}\), \({{x}_{2}} = {{x}_{{{\text{C}}{{{\text{O}}}_{{\text{2}}}}}}}\), \({{x}_{3}} = {{x}_{{{\text{NaCl}}}}}\), \({{x}_{4}} = {{x}_{{{\text{CaC}}{{{\text{l}}}_{{\text{2}}}}}}}\), \({{x}_{1}} + {{x}_{2}} + {{x}_{3}} + {{x}_{4}} = 1\) this term has the form:

$$\begin{gathered} {{G}_{{\text{S}}}} = RT\{ (1 - {{x}_{2}})\ln (1 - {{x}_{2}}) \\ - \,\,[{{x}_{1}} + (1 + {{\alpha }_{3}}){{x}_{3}} + (1 + {{\alpha }_{4}}){{x}_{4}}] \\ \times \,\,\ln [{{x}_{1}} + (1 + {{\alpha }_{3}}){{x}_{3}} + (1 + {{\alpha }_{4}}){{x}_{4}}] + {{x}_{1}}\ln {{x}_{1}} \\ + \,\,{{x}_{2}}\ln {{x}_{2}} + (1 + {{\alpha }_{3}}){{x}_{3}}\ln [(1 + {{\alpha }_{3}}){{x}_{3}}] \\ + \,\,(1 + {{\alpha }_{4}}){{x}_{4}}\ln [(1 + {{\alpha }_{4}}){{x}_{4}}]\} . \\ \end{gathered} $$
(1)

The values α3, α4 are the numbers of additional particles formed during the dissociation of the corresponding molecules. \(0 \leqslant {{\alpha }_{{\text{3}}}} \leqslant 1\), \(0 \leqslant {{\alpha }_{{\text{4}}}} \leqslant 2\). The temperature T is in Kelvin, R is the universal gas constant.

The expression for the contribution to the Gibbs free energy Gwg from the interaction of water and CO2 molecules coincides with the one proposed by (Aranovich et al., 2010; Aranovich, 2013) and used in (Ivanov and Bushmin, 2019, 2021):

$${{G}_{{{\text{wg}}}}} = {{W}_{{12}}}\frac{{{{x}_{1}}{{x}_{2}}({{x}_{1}} + {{x}_{2}})}}{{({{V}_{1}}{{x}_{1}} + {{V}_{2}}{{x}_{2}})}},$$
(2)

where W12 = 0.202 J·m3/mol (Aranovich et al., 2010; Aranovich, 2013), and V1 and V2 are the molar volumes of pure water and carbon dioxide at a given temperature and pressure, respectively.

The Gibbs free energy of the ternary systems H2O–CO2–CaCl2 and H2O–CO2–NaCl (Ivanov and Bushmin, 2019, 2021) contains a term corresponding to the pair interaction of water and salt molecules W2x1x3. For a quaternary system with two salts, the corresponding expression should include terms corresponding to the interactions H2O–NaCl, H2O–CaCl2, as well as a new term describing the interaction of two salts NaCl–CaCl2:

$${{G}_{{{\text{wss}}}}} = {{W}_{{{\text{13}}}}}{{x}_{{\text{1}}}}{{x}_{{\text{3}}}} + {{W}_{{{\text{14}}}}}{{x}_{{\text{1}}}}{{x}_{{\text{4}}}} + {{W}_{{{\text{34}}}}}{{x}_{{\text{3}}}}{{x}_{{\text{4}}}},$$
(3)

with coefficients W13, W14, W34 for the interactions H2O–NaCl, H2O–CaCl2 and NaCl–CaCl2, respectively. For the H2O–CO2–salt ternary system, the term in the Gibbs free energy, responsible the CO2-salt interaction, had a form, corresponding to the subregular solution model (Aranovich et al., 2010),

$${{G}_{{{\text{C}}{{{\text{O}}}_{{\text{2}}}}{\text{,salt}}}}} = {{{{x}_{{{\text{C}}{{{\text{O}}}_{{\text{2}}}}}}}{{x}_{{{\text{salt}}}}}[{{x}_{{{\text{C}}{{{\text{O}}}_{{\text{2}}}}}}}{{W}_{{{\text{C}}{{{\text{O}}}_{{\text{2}}}}{\text{,salt}}}}} + {{x}_{{{\text{salt}}}}}{{W}_{{{\text{salt}}{\text{,C}}{{{\text{O}}}_{{\text{2}}}}}}}]} \mathord{\left/ {\vphantom {{{{x}_{{{\text{C}}{{{\text{O}}}_{{\text{2}}}}}}}{{x}_{{{\text{salt}}}}}[{{x}_{{{\text{C}}{{{\text{O}}}_{{\text{2}}}}}}}{{W}_{{{\text{C}}{{{\text{O}}}_{{\text{2}}}}{\text{,salt}}}}} + {{x}_{{{\text{salt}}}}}{{W}_{{{\text{salt}}{\text{,C}}{{{\text{O}}}_{{\text{2}}}}}}}]} {({{x}_{{{\text{C}}{{{\text{O}}}_{{\text{2}}}}}}} + {{x}_{{{\text{salt}}}}})}}} \right. \kern-0em} {({{x}_{{{\text{C}}{{{\text{O}}}_{{\text{2}}}}}}} + {{x}_{{{\text{salt}}}}})}}.$$

Similarly, the corresponding terms for the quaternary system have the form

$${{G}_{{{\text{gs}}}}} = {{{{{{x}_{2}}{{x}_{3}}[{{x}_{2}}{{W}_{{23}}} + {{x}_{3}}{{W}_{{32}}}]} \mathord{\left/ {\vphantom {{{{x}_{2}}{{x}_{3}}[{{x}_{2}}{{W}_{{23}}} + {{x}_{3}}{{W}_{{32}}}]} {({{x}_{2}} + {{x}_{3}}) + {{x}_{2}}{{x}_{4}}[{{x}_{2}}{{W}_{{24}}} + {{x}_{4}}{{W}_{{42}}}]}}} \right. \kern-0em} {({{x}_{2}} + {{x}_{3}}) + {{x}_{2}}{{x}_{4}}[{{x}_{2}}{{W}_{{24}}} + {{x}_{4}}{{W}_{{42}}}]}}} \mathord{\left/ {\vphantom {{{{{{x}_{2}}{{x}_{3}}[{{x}_{2}}{{W}_{{23}}} + {{x}_{3}}{{W}_{{32}}}]} \mathord{\left/ {\vphantom {{{{x}_{2}}{{x}_{3}}[{{x}_{2}}{{W}_{{23}}} + {{x}_{3}}{{W}_{{32}}}]} {({{x}_{2}} + {{x}_{3}}) + {{x}_{2}}{{x}_{4}}[{{x}_{2}}{{W}_{{24}}} + {{x}_{4}}{{W}_{{42}}}]}}} \right. \kern-0em} {({{x}_{2}} + {{x}_{3}}) + {{x}_{2}}{{x}_{4}}[{{x}_{2}}{{W}_{{24}}} + {{x}_{4}}{{W}_{{42}}}]}}} {({{x}_{2}} + {{x}_{4}})}}} \right. \kern-0em} {({{x}_{2}} + {{x}_{4}})}}.$$
(4)

The Gibbs free energy of mixing for ternary systems H2O–CO2–salt also contained a term describing the interaction of three types of molecules in the system \({{W}_{{123}}}{{x}_{1}}{{x}_{2}}{{x}_{3}},\) i.e. water–CO2–salt. For the quaternary system, the corresponding expression consists of two terms—for interactions of H2O–CO2–NaCl and H2O–CO2–CaCl2:

$${{G}_{{{\text{wgs}}}}} = {{W}_{{{\text{123}}}}}{{x}_{{\text{1}}}}{{x}_{{\text{2}}}}{{x}_{{\text{3}}}} + {{W}_{{{\text{124}}}}}{{x}_{{\text{1}}}}{{x}_{{\text{2}}}}{{x}_{{\text{4}}}}.$$
(5)

Eqs. (2)(5) contain all the terms, responsible for pair and ternary interactions of the particles, present in the system H2O–CO2–NaCl–CaCl2. In principle, the equation for the Gibbs free energy could contain a term, corresponding to the interaction of all the kinds of the particles, \({{W}_{{1234}}}{{x}_{1}}{{x}_{2}}{{x}_{3}}{{x}_{4}}\) for example. However, there are no experimental data for calculation of the value of the corresponding parameter \({{W}_{{1234}}}\). Also, it looks natural to suppose, that the interaction of all four kinds of the particles would be, probably, less important, than the pair and ternary interactions. Thus, the complete expression for the Gibbs free energy of mixing Gmix of the four-component fluid under consideration has the form

$${{G}^{{{\text{mix}}}}}({{x}_{1}},{{x}_{2}},{{x}_{3}},{{x}_{4}}) = {{G}_{{\text{S}}}} + {{G}_{{{\text{wg}}}}} + {{G}_{{{\text{wss}}}}} + {{G}_{{{\text{gs}}}}} + {{G}_{{{\text{wgs}}}}}.$$
(6)

At x3 = 0 or x4 = 0 equation (6) transforms into equations for the ternary systems H2O–CO2–CaCl2 (Ivanov and Bushmin, 2019) or H2O–CO2–NaCl (Ivanov and Bushmin, 2021). Knowing the Gibbs free energy (6) allows us to determine other thermodynamic functions of the quaternary system H2O–CO2–NaCl–CaCl2. The most important of them are chemical potentials, component activities, and fluid density. Formulas for these quantities are given in the Appendix.

Expression (6) describes the excess free energy of mixing for a homogeneous four-component fluid. In a more general case, the system we are considering can contain up to two fluid phases, each of which is described by equation (6), as well as solid phases of salts. The excess Gibbs free energy of such a generally multiphase system has the form

$$\begin{gathered} {{G}^{{\text{M}}}}({{x}_{1}},{{x}_{2}},{{x}_{3}},{{x}_{4}}) = {{f}_{1}}{{G}^{{{\text{mix}}}}}({{y}_{{11}}},{{y}_{{21}}},{{y}_{{31}}},{{y}_{{41}}}) \\ + \,\,{{f}_{2}}{{G}^{{{\text{mix}}}}}({{y}_{{12}}},{{y}_{{22}}},{{y}_{{32}}},{{y}_{{42}}}) + \Delta {{\mu }_{{{\text{s3}}}}}{{x}_{{{\text{s3}}}}} + \Delta {{\mu }_{{{\text{s4}}}}}{{x}_{{{\text{s4}}}}}, \\ \end{gathered} $$
(7)

where \(\Delta {{\mu }_{{{\text{s3}}}}},\;\Delta {{\mu }_{{{\text{s4}}}}}\) are the values of the change in the chemical potentials of NaCl and CaCl2 during the solid-liquid transition, \({{x}_{{{\text{s3}}}}},\;{{x}_{{{\text{s4}}}}}\) are the mole fractions of solid salts in the multiphase system, f1, f2 are the mole fractions of the two fluid phases, having, in the general case, different compositions

$$\begin{gathered} {{y}_{{ij}}} = {{{{x}_{{ij}}}} \mathord{\left/ {\vphantom {{{{x}_{{ij}}}} {{{f}_{j}}}}} \right. \kern-0em} {{{f}_{j}}}},\,\,\,\,{{f}_{j}} = {{x}_{{1j}}} + {{x}_{{2j}}} + {{x}_{{3j}}} + {{x}_{{4j}}}, \\ {{x}_{{12}}} = {{x}_{1}} - {{x}_{{11}}},\,\,\,\,{{x}_{{22}}} = {{x}_{2}} - {{x}_{{21}}},\,\,\,\,{{x}_{{32}}} = {{x}_{3}} - {{x}_{{31}}} - {{x}_{{{\text{s3}}}}}, \\ {{x}_{{42}}} = {{x}_{4}} - {{x}_{{41}}} - {{x}_{{{\text{s4}}}}}. \\ \end{gathered} $$

The phase state of the system for given mole fractions of the components \(({{x}_{1}},{{x}_{2}},{{x}_{3}},{{x}_{4}})\) is determined by numerical minimization of the quantity \({{G}^{{\text{M}}}}\) with respect to the variables \(({{x}_{{11}}},{{x}_{{21}}},{{x}_{{31}}},{{x}_{{41}}},{{x}_{{{\text{s3}}}}},{{x}_{{{\text{s4}}}}})\), provided that all the quantities \({{x}_{{ij}}}\) are non-negative.

NUMERICAL PARAMETERS OF THE MODEL

The parameters Wij in equation (6) are assumed to depend on the temperature T and pressure P, but not on the mole fractions of the components. The P-T form of the dependences of the parameters Wij, Wijk and the corresponding numerical values are given in (Ivanov and Bushmin, 2019, 2021). These parameters, obtained by fitting the experimental data, are retained in the thermodynamic model of the four-component system presented in this paper. The excess free energy of the multiphase system (7) also contains the functions \(\Delta {{\mu }_{{{\text{s3}}}}}(P,T),\;\Delta {{\mu }_{{{\text{s4}}}}}(P,T)\). The form of these functions and the corresponding numerical parameters are also given in (Ivanov and Bushmin, 2019, 2021). Parameters \({{\alpha }_{3}}\) and \({{\alpha }_{4}}\) are also supposed to be dependent on the temperature and pressure, but being independent on the mole fractions of the particles, forming the system. Thus, these values are the numbers of additional particles formed due the dissociation of the molecules NaCl and CaCl2, averaged over concentrations of the components. This assumption is the most essential simplification, present in the thermodynamic models (Aranovich et al., 2010; Ivanov and Bushmin, 2019, 2021). A decline of the precision of the models using this assumption is possible in the case of very low concentrations of salts (\({{x}_{3}},{{x}_{4}} \ll {{x}_{1}}\)), when the values of \({{\alpha }_{3}}\) and \({{\alpha }_{4}}\) must be near to their upper limits \({{\alpha }_{3}} = 1\) and \({{\alpha }_{4}} = 2\), and also in the opposite case of a low mole fraction of water, when both quantities \({{\alpha }_{3}}\) and \({{\alpha }_{4}}\) vanish.

The only new parameter of the model of a four-component system, which was not obtained in previous works, is the parameter W34, which describes the effect of the interaction of NaCl and CaCl2 particles in the fluid. In the case x1 = x2 = 0, equation (6) retains only the entropy terms (1) and the term W34x3x4. In this case, equation (7) turns out to be an equation of state for a mixture of NaCl and CaCl2 salts, which are either in a molten or in a solid state. For P = 1 bar and temperatures above 500°C, our equations give α3 = α4 = 0, which provides the usual form of the free energy entropy term for a mixture of two substances NaCl and CaCl2. Thus, equation (7) should describe the solid-liquid transition in a mixture of NaCl and CaCl2 salts. Experimental data on liquidus in the NaCl–CaCl2 system at P = 1 bar are well known (Seltveit and Flood, 1958; Chartrand and Pelton, 2001). The liquidus has a simple form, typical for mixtures that do not form intermediate compounds. The tit of values of the parameter W34 makes it possible to reproduce the experimental liquidus of NaCl and CaCl2. In Fig. 1 we provide a comparison of the liquidus obtained with our equation of state at W34 = –10.3 kJ/mol with experimental datas (Seltveit and Flood, 1958). At W34 = ‒10.3 kJ/mol, the eutectic point corresponds to a temperature of 502°C and xNaCl = 0.482, which is in very good agreement with numerous experimental data (Chartrand and Pelton, 2001). The obtained value W34 = –10.3 kJ/mol, in combination with the parameters from (Ivanov and Bushmin, 2019, 2021), forms a complete set of parameters for our thermodynamic model of the four-component system H2O–CO2–NaCl–CaCl2.

Fig. 1.
figure 1

Liquidus in the NaCl–CaCl2 system. Circles are experimental results (Seltveit and Flood, 1958), P = 1 bar. The curve is obtained in our model, P = 1 bar.

RESULTS

Phase Diagrams. Their Evolution with a Change in the Composition of the Salt Component

The phase diagrams of ternary systems at fixed P-T parameters are comprehensively represented as composition triangles with pure components at the vertices of the triangles. Phase fields are two-dimensional regions inside the triangle, and the boundaries of these regions are lines, in particular the solvus line. A similar phase diagram for a quaternary system should be a tetrahedron with volume phase fields and two-dimensional surfaces – the boundaries of these fields. A meaningful and more or less accurate presentation of the results in this form is difficult. It is more convenient to represent phase diagrams on plane sections of the tetrahedron of compositions, in particular, on sections with a fixed composition of the salt part of the system \({{r}_{{{\text{NaCl}}}}} = {{{{x}_{{{\text{NaCl}}}}}} \mathord{\left/ {\vphantom {{{{x}_{{{\text{NaCl}}}}}} {{{x}_{{{\text{salt}}}}}}}} \right. \kern-0em} {{{x}_{{{\text{salt}}}}}}},\) where \({{x}_{{{\text{salt}}}}} = {{x}_{{{\text{NaCl}}}}} + {{x}_{{{\text{CaC}}{{{\text{l}}}_{{\text{2}}}}}}}\). The phase diagrams on these sections turn out to be triangles in coordinates \({{x}_{{{{{\text{H}}}_{{\text{2}}}}{\text{O}}}}}{\kern 1pt} - {\kern 1pt} {{x}_{{{\text{C}}{{{\text{O}}}_{{\text{2}}}}}}}{\kern 1pt} - {\kern 1pt} {{x}_{{{\text{salt}}}}}\) and have a form similar to the phase diagrams of ternary systems. At \({{r}_{{{\text{NaCl}}}}} = 0\) or \({{r}_{{{\text{NaCl}}}}} = 1\) these phase diagrams are phase diagrams of the H2O–CO2–CaCl2 or H2O–CO2–NaCl ternary systems, respectively.

In Fig. 2, we show a series of phase diagrams \({{x}_{{{{{\text{H}}}_{{\text{2}}}}{\text{O}}}}}{\kern 1pt} - {\kern 1pt} {{x}_{{{\text{C}}{{{\text{O}}}_{{\text{2}}}}}}}{\kern 1pt} - {\kern 1pt} {{x}_{{{\text{salt}}}}}\) corresponding to a smooth change in the composition of the salt component of the system from pure NaCl (Fig. 2a) to pure CaCl2 (Fig. 2l). All the diagrams in Fig. 2 are plotted for typical P-T conditions of the amphibolite facies metamorphism T = 600°C and P = 5 kbar. The edge ternary systems in Figs. 2a, 2l show a complex phase pattern consisting of five different fields: 1. Homogeneous fluid; 2. Two coexisting fluid phases; 3. Two fluid phases coexisting with solid salt; 4. Brine coexisting with solid salt; 5. CO2-rich fluid coexisting with solid salt. In the extensive field-3, there are three coexisting phases, which ensures the constancy of the activities of the components throughout the field (\({{a}_{{{{{\text{H}}}_{{\text{2}}}}{\text{O}}}}} = 0.367\), \({{a}_{{{\text{C}}{{{\text{O}}}_{{\text{2}}}}}}} = 0.783\), \({{a}_{{{\text{NaCl}}}}} = 0.345\) at \({{r}_{{{\text{NaCl}}}}} = 1\) and \({{a}_{{{{{\text{H}}}_{{\text{2}}}}{\text{O}}}}} = 0.290\), \({{a}_{{{\text{C}}{{{\text{O}}}_{{\text{2}}}}}}} = 0.837\), \({{a}_{{{\text{CaC}}{{{\text{l}}}_{{\text{2}}}}}}} = 0.531\) at \({{r}_{{{\text{NaCl}}}}} = 0\)).

Fig. 2.
figure 2

Evolution of the phase diagrams of the H2O–CO2-salt system with a change in the ratio xNaCl/xsalt, xsalt. T = 600°C, P = 5 kbar. The bold blue line is the boundary of the field of two coexisting fluid phases (solvus). Open circles indicate critical points of the two-phase fluid field. Bold green and orange lines indicate the boundaries of the fields of existence of NaCl (а)–(f) and CaCl2 (h)–(l) solid phases, respectively. Numbers in frames denote areas (fields) of different phase composition: (1) homogeneous fluid; (2) two coexisting fluid phases; (3) two fluid phases coexisting with solid salt ((а)–(f)—NaCl and (h)–(l)—CaCl2); (4) brine coexisting with solid salt; (5) CO2 rich fluid coexisting with solid salt. Thin black lines are isolines of chemical activity of water. The activity values are \({{a}_{{{{{\text{H}}}_{{\text{2}}}}{\text{O}}}}} = 0.1,0.2,0.3,0.4,0.5,0.6,0.8\) in the sequence of lines from top to bottom and from right to left (partially indicated by numbers in Figs. 2a, 2f, 2g, 2l).

The phase diagram Fig. 3g for a fluid with equal mole fractions of NaCl and CaCl2 contains only two-phase fields, namely, the field of a homogeneous fluid and the field of two coexisting fluid phases. The phase diagrams for \(0.24 \leqslant {{r}_{{{\text{NaCl}}}}} \leqslant 0.67\) look similar.

Fig. 3.
figure 3

(a) The \({{{{x}_{{{\text{NaCl}}}}}} \mathord{\left/ {\vphantom {{{{x}_{{{\text{NaCl}}}}}} {({{x}_{{{\text{NaCl}}}}} + {{x}_{{{\text{CaC}}{{{\text{l}}}_{{\text{2}}}}}}})}}} \right. \kern-0em} {({{x}_{{{\text{NaCl}}}}} + {{x}_{{{\text{CaC}}{{{\text{l}}}_{{\text{2}}}}}}})}}\) ratio in coexisting fluid phases along the isoline \({{a}_{{{{{\text{H}}}_{{\text{2}}}}{\text{O}}}}} = 0.6\) at T = 600°C, P = 5 kbar and total ratio \({{{{x}_{{{\text{NaCl}}}}}} \mathord{\left/ {\vphantom {{{{x}_{{{\text{NaCl}}}}}} {\left( {{{x}_{{{\text{NaCl}}}}} + {{x}_{{{\text{CaC}}{{{\text{l}}}_{{\text{2}}}}}}}} \right)}}} \right. \kern-0em} {\left( {{{x}_{{{\text{NaCl}}}}} + {{x}_{{{\text{CaC}}{{{\text{l}}}_{{\text{2}}}}}}}} \right)}} = 0.8\) (Fig. 2f). The boundaries of the region of coexistence of two fluid phases are indicated by vertical dashed lines. (b) Total salinities of the fluid phases on the isoline \({{a}_{{{{{\text{H}}}_{{\text{2}}}}{\text{O}}}}} = 0.6\). (c) Mole fraction of CO2 in coexisting fluid phases. (d) Fluid phase densities.

Comparison of Figs. 2a and 2b, as well as Figs. 2l and 2k shows that the addition of even 0.1% CaCl2 to pure NaCl in the first case and 0.2% NaCl to pure CaCl2 in the second case fundamentally changes the phase diagram. Field-3 with three coexisting phases increases drastically, while field-5 of the CO2-rich fluid coexisting with solid salt is reduced to negligible size. Field-3 in Figs. 2b, 2k is no longer a region of constant water activity as in the case of pure salt. In contrast to the case of pure salts, this field is intersected by \({{a}_{{{{{\text{H}}}_{{\text{2}}}}{\text{O}}}}}\) isolines. For a system with pure NaCl, the water activity in the region of coexistence of two fluid phases (fields-2 and 3) could not be less than \({{a}_{{{{{\text{H}}}_{{\text{2}}}}{\text{O}}}}} = 0.367\). The addition of even fractions of a percent of the second salt makes it possible for the two fluid phases to coexist at an arbitrarily low water activity. The same thing happens when small amounts of NaCl are added to pure CaCl2. The transition to an even more mixed composition of the salt (Figs. 2c–2f, 2k–2h) leads to a rearrangement of the positions of water activity isolines, a gradual reduction in field-3 and a change in the position of the solvus.

Compositions and Densities of Coexisting Fluid Phases

A significant difference between a quaternary fluid system and ternary systems is associated with the composition of coexisting fluid phases. In the ternary water-gas-salt system, the activity isolines of the components are curves in the field of a homogeneous fluid. If they cross the solvus and pass into the field of two coexisting fluids, they become straight lines—tie lines connecting two points of intersection with the solvus. The compositions of the two coexisting fluid phases along the tie lines are constant. One of these phases has a composition of the homogeneous fluid at the upper point of intersection. The composition of the other phase coincides with the composition of the homogeneous fluid at the lower intersection point. In a four-component system, the difference between the interaction energies of NaCl and CaCl2 with water and CO2 leads to a redistribution of salts between coexisting fluid phases with a change in the total composition of the system. As a result, the compositions of the coexisting fluid phases are not constant along the isolines of constant activities. These isolines are not tie lines and, in general, they are not straight lines. An example of redistribution of salt components along the line of constant water activity is given in Fig. 3. This figure presents data characterizing the compositions and density of two fluid phases, denoted as f1 and f2, along the isoline \({{a}_{{{{{\text{H}}}_{{\text{2}}}}{\text{O}}}}} = 0.6\) of Fig. 2f (the total composition of the system corresponds to \({{r}_{{{\text{NaCl}}}}} = 0.8\)) depending on the total mole fraction of CO2 in the system (\({{x}_{{{\text{C}}{{{\text{O}}}_{2}},\,\,{\text{total}}}}}\) in the figure). In the Fig. 3a, ratios rNaCl for phases f1 and f2 are shown. For the homogeneous fluid, \({{r}_{{{\text{NaCl}}}}} = 0.8\). After the isoline crosses the solvus at \({{x}_{{{\text{C}}{{{\text{O}}}_{{\text{2}}}}}}} = 0.122\), the second fluid phase f2 appears (green curve). This phase is in equilibrium with the initial phase at \({{a}_{{{{{\text{H}}}_{{\text{2}}}}{\text{O}}}}} = 0.6\), but the ratio of the mole fractions of salts in it is very different from the general one \({{r}_{{{\text{NaCl}}}}} = 0.8\). This second phase is enriched in NaCl due to the negligible loss of NaCl in the original fluid (blue line). In the course of following the isoline, the two fluid phases exchange salts and other components. Further, at \({{x}_{{{\text{C}}{{{\text{O}}}_{{\text{2}}}}}}} = 0.474\) the initial fluid phase f1 disappears, while the phase f2 comes to the ratio of mole fractions of salts of a homogeneous fluid \({{r}_{{{\text{NaCl}}}}} = 0.8\). Figure 3b shows the total salinities of the same fluid phases. The mole fractions of CO2 in the coexisting phases are given in Fig. 3c. The densities of the phases are given in Fig. 3d. The f1 phase is predominantly water-salt with a small amount of carbon dioxide, while f2 is a water-carbon dioxide phase with a very low salt content. In the case of a ternary system with one salt, the coexisting phases would also be water-salt and water-carbon dioxide, but their compositions and densities would be constant on the line of constant water activity (tie line).

Phase Diagrams in H2O–NaCl–CaCl2 Coordinates

In addition to the phase diagrams of Fig. 2 on sections with a constant ratio of mole fractions of two salts, in Fig. 4 we present the phase diagrams of the water-salt system at fixed mole fractions of carbon dioxide. This is the phase diagram of the three-component system water-two salts in Fig. 4a and phase diagrams in Figs. 4b, 4c, 4d for nonzero \({{x}_{{{\text{C}}{{{\text{O}}}_{{\text{2}}}}}}}\). In the absence of carbon dioxide in the system (Fig. 4a), decomposition of the fluid into immiscible fluid phases does not occur. Therefore, a homogeneous fluid containing H2O, NaCl, and CaCl2 is present for all mole fractions of these components that do not vanish. At a high concentration of one of the salts and a relatively low mole fraction of water, a homogeneous fluid coexists with the solid phase of the corresponding salt.

Fig. 4.
figure 4

Phase diagrams on sections with a constant CO2 mole fraction, T = 600°C, P = 5 kbar. For designations of phase fields, see Fig. 2. In field-3 designations (two fluid phases coexisting with a solid salt) and field-4 (brine coexisting with solid salt), the composition of the solid salt (NaCl or CaCl2) is additionally indicated. (a) \({{x}_{{{\text{C}}{{{\text{O}}}_{{\text{2}}}}}}} = 0\); (b) \({{x}_{{{\text{C}}{{{\text{O}}}_{{\text{2}}}}}}} = 0.005\); (c) \({{x}_{{{\text{C}}{{{\text{O}}}_{{\text{2}}}}}}} = 0.1\); (d) \({{x}_{{{\text{C}}{{{\text{O}}}_{{\text{2}}}}}}} = 0.4\); (e) layout of sections in the tetrahedron of compositions.

The addition of even a small amount of carbon dioxide to the system (Fig. 4b) leads to the appearance of a wide field of the fluid, which decomposes into water-carbon dioxide and water-salt phases. A further increase in the proportion of CO2 in the system (Fig. 4c) leads to a serious reduction in the field of a homogeneous fluid and to its almost complete disappearance at \({{x}_{{{\text{C}}{{{\text{O}}}_{{\text{2}}}}}}} = 0.4\) (Fig. 4d).

Restrictions on the Value of Water Activity in the Area of Fluid Splitting into Two Phases

As can be seen from the phase diagrams presented in Fig. 2, in the four-component system we are considering, the chemical activity of water in the region of a two-phase fluid has no lower limit and can drop to values close to zero. In this point, the thermodynamic behavior of a quaternary system with a mixed composition of the salt component differs from the behavior of similar ternary systems with a single salt component. However, in the system H2O–CO2–NaCl–CaCl2, as well as in ternary systems, the chemical activity of water in the region of fluid splitting into two coexisting fluid phases is limited from above. The value of this limiting activity depends on the temperature, pressure, and the ratio of the mole fractions of CO2 and CaCl2 in the composition of the salt. In Fig. 5a, we show solvuses for the H2O–CO2–NaCl–CaCl2 fluid with equal mole fractions of NaCl and CaCl2 for several pressures from 1 kbar to 20 kbar at temperature 700°C. As the pressure increases, the field of a homogeneous fluid expands, and the solvuses, together with the critical points at which the water activity takes on values, that are maximum possible for a fluid in a heterogeneous field, shift to the region of higher salt and carbon dioxide concentrations. An increase in the molar fractions of the salts and CO2 leads to a decrease in water activity at critical points. Figure 5b shows the pressure dependences of this limiting value of \({{a}_{{{{{\text{H}}}_{{\text{2}}}}{\text{O}}}}}\) at T = 700°C for the two extreme systems with pure salts and for the intermediate system with \({{r}_{{{\text{NaCl}}}}} = 0.5\). In all three systems, an increase in pressure leads to an expansion of the homogeneous fluid field and, accordingly, a decrease in water activity at the critical point of the two-phase fluid field. With an increase in pressure from 4 kbar and above, the drop in the activity of water with salt in the form of pure NaCl is the sharpest. With an increase in the proportion of the salt component in the composition, the dependence \({{a}_{{{{{\text{H}}}_{{\text{2}}}}{\text{O}}}}}(P)\) becomes more slow.

Fig. 5.
figure 5

(a) Solvuses (blue curves) and critical points (open circles) for the H2O–CO2–NaCl–CaCl2, \({{{{x}_{{{\text{NaCl}}}}}} \mathord{\left/ {\vphantom {{{{x}_{{{\text{NaCl}}}}}} {{{x}_{{{\text{salt}}}}}}}} \right. \kern-0em} {{{x}_{{{\text{salt}}}}}}} = 0.5\) fluid at T = 700°C and pressures from 1 kbar to 20 kbar. (b) Maximum water activity in the region of coexistence of two fluid phases at three different salt compositions of the fluid system as a function of pressure at T = 700°C. (c) The minimum salinity of the water-salt component of the fluid, at which its decomposition into two phases is possible.

As can be seen from Fig. 5a, an increase in pressure leads to an increase in the mole fraction of salt in the composition of the fluid at the critical point. At the same time, there is a significant increase in the molar fraction of carbon dioxide. As a result, the minimum possible ratio \({{{{x}_{{{\text{salt}}}}}} \mathord{\left/ {\vphantom {{{{x}_{{{\text{salt}}}}}} {({{x}_{{{\text{salt}}}}} + {{x}_{{{{{\text{H}}}_{{\text{2}}}}{\text{O}}}}})}}} \right. \kern-0em} {({{x}_{{{\text{salt}}}}} + {{x}_{{{{{\text{H}}}_{{\text{2}}}}{\text{O}}}}})}}\) in the water-salt part of the two-phase fluid increases to a greater extent than the mole fraction of salt in the total composition of the fluid. The widely used method of microthermometry (Van den Kerkhof and Hein, 2001) used to study natural inclusions makes it possible to determine exactly the value of \({{{{x}_{{{\text{salt}}}}}} \mathord{\left/ {\vphantom {{{{x}_{{{\text{salt}}}}}} {({{x}_{{{\text{salt}}}}} + {{x}_{{{{{\text{H}}}_{{\text{2}}}}{\text{O}}}}})}}} \right. \kern-0em} {({{x}_{{{\text{salt}}}}} + {{x}_{{{{{\text{H}}}_{{\text{2}}}}{\text{O}}}}})}}\). The value of this ratio at the critical point as a function of pressure is shown in Fig. 5c for three ratios \({{{{x}_{{{\text{NaCl}}}}}} \mathord{\left/ {\vphantom {{{{x}_{{{\text{NaCl}}}}}} {{{x}_{{{\text{salt}}}}}}}} \right. \kern-0em} {{{x}_{{{\text{salt}}}}}}}\).

CONCLUSIONS

In this work, the following results are obtained: 1. An equation of state of the H2O–CO2–NaCl–CaCl2 fluid system, expressed in terms of the excess Gibbs free energy, is derived. The equation is valid at temperatures from 500 to 1400°C and pressures from 1 kbar to 20 kbar. This equation of state is a generalization of the equations of state of the ternary systems H2O–CO2–CaCl2 and H2O–CO2–NaCl obtained in (Ivanov and Bushmin, 2019, 2021). In the absence of one of the salts in the system, the equation of this work turns into the equations of state of the works (Ivanov and Bushmin, 2019, 2021); 2. Formulas for the chemical activities of the components have been obtained, corresponding to the derived equation for the excess Gibbs free energy; 3. Most of the numerical parameters of the equation were obtained in previous studies of the H2O–CO2–NaCl and H2O–CO2–CaCl2 edge systems. The parameter for NaCl–CaCl2 interaction was obtained from experimental data on the liquidus of a mixture of these salts; 4. Our equation of state makes it possible to calculate most of the thermodynamic characteristics for arbitrary mole fractions of the components; 5. This paper presents a series of phase diagrams of the system at a fixed ratio of the mole fractions of NaCl and CaCl2. Phase diagrams of this kind, which look similar to phase diagrams for ternary systems, make it possible to trace changes in the thermodynamics of the H2O–CO2–salt system with a change in the composition of the salt. Along with features that depend on the properties of the NaCl–CaCl2 pair and are specific to our model, such a study makes it possible to reveal fundamental differences between ternary and four-component systems; 6. For given P and T, both in ternary and quaternary systems there are upper limits of water activity in the field of coexistence of two fluid phases. In case P-T conditions allow the existence of a solid salt phase in a ternary system, there is also a lower limit for water activity in the field of coexistence of two fluid phases. This effect is absent in four-component fluid systems with two salts. The activity of water in the field of a two-phase fluid in a four-component system with a mixed salt composition can drop to values near to zero. 7. In the field of a four-component fluid, split into two coexisting fluid phases, the lines of constant activities of the components are not tie lines, that is, lines on which the compositions of coexisting phases are constant. When moving along these lines, the components are redistributed between coexisting phases. An example of a change in the composition and density of coexisting fluid phases with a change in the total composition of the system and a fixed constant water activity was studied in detail; 8. A series of phase diagrams of the system was obtained in the coordinates H2O–NaCl–CaCl2 at fixed mole fractions of CO2. The diagrams contain the phase fields of two solid salts coexisting with both homogeneous and two-phase fluids. The changes in the fields of a homogeneous and two-phase fluid with a change in the mole fraction of CO2 were traced; 9. Dependences on pressure for the maximum activity of water in the region of coexistence of immiscible fluid phases were obtained for different salt composition of the system.

Comparison of the obtained results with similar results for fluids with one salt (Aranovich et al., 2010; Ivanov and Bushmin, 2019, 2021) shows that the thermodynamic behavior of a quaternary system with a mixed composition of the salt component differs significantly from the behavior of edge ternary systems with one salt component due to the removal of restrictions arising from a smaller number of components in ternary systems. This qualitative conclusion is not specific to the thermodynamic model constructed by us and should presumably remain valid for other possible models of the considered and similar systems. The use of numerical thermodynamic models of multicomponent fluid systems expands the possibilities of theoretical analysis of geological processes involving fluids, and provides a new tool for interpreting the results of studies of fluid inclusions.

The computer program that performs calculations according to the above thermodynamic model is in the public domain at https://www.dropbox.com/sh/70xa-ght7deludws/AAA5QygWCrr4sGFqxQpx1b24a?dl=0.