1 Introduction

In the classical Stefan problem, the half plane (\(y\le 0\)) filled with ice is heated from above (i.e., at \(y=0\)) and a melt zone propagates downward (Carslaw and Jaeger 1959). The interface between the ice and melt zone separates regions with distinctly different physical properties, which leads to the idea of dividing the system into domains above and below the interface, solving the governing partial differential equation in the two domains separately, and joining the solutions together at the moving interface. An important piece of the problem is to find the equation governing the rate of interface propagation. We refer to any problem involving at least one moving interface separating regions of distinct physical properties as a “Stefan-type” problem; in this study, we present an extension of the method applicable to 1D problems involving one or more interfaces and whose governing equations may have strongly variable coefficients. We first derive the general framework and then illustrate it by applying it to the 1D hydrothermal saltwater heat pipe. Although this paper focuses on application to the heat pipe, the framework presented generalizes techniques used in early work on the degradation of a column of permafrost (Lewis et al. 2012) and on the expansion of subsurface damage zones in geothermal applications (Lewis et al. 2013). We also note that if a 3D problem can be reduced to a formally 1D problem via, e.g., rotational symmetry, the method presented here may still be applicable.

One motivation for studying the saltwater heat pipe is to gain understanding of processes in seafloor hydrothermal systems. Studies of seafloor hydrothermal activity date back to 1979 when the first hydrothermal vent system was discovered at the Galapagos Spreading Center (Corliss et al. 1979). Since then, it has become clear that these systems significantly affect the ocean’s overall chemical composition (Elderfield and Schultz 1996), provide the primary energy source for nearby deep-sea ecosystems (Hessler and Kaharl 1995), and factor into the Earth’s heat budget by transferring heat from the mantle to the seafloor (Stein and Stein 1995). Hydrothermal systems thus play a key role in deep-sea biology, geophysics, and geochemistry.

The processes occurring in these systems can be complex, and simplified analog models are useful to establish partial understanding, which can later be used to leverage understanding of more realistic behavior (Lewis 2013); these models are also important for testing numerical simulators. One such model is the two-phase saltwater heat pipe mentioned above. The corresponding pure water problem has been thoroughly studied (Straus and Schubert 1981; Preuss 1985; McGuinness 1990, 1996; Young 1996; Xu and Lowell 1998); however, accounting for the presence of salt leads to significant complications. Moreover, accounting for salt is often crucial when modeling high-temperature seafloor hydrothermal flows. For example, one of the key observations from sampling hydrothermal vent fluids is their widely varying salinities, and this fact is most easily accounted for by invoking phase separation (Berndt and Seyfried 1990; Von Damm et al. 1997, 2002; Von Damm 2004). While there have been numerical studies of saltwater heat pipes (Bai et al. 2003; Lewis and Lowell 2009b), there are no analytical studies known to the authors.

Due to the presence of salt, phase separation leads to the formation of three layers in a submarine heat pipe. From the seafloor downward, they are a single-phase liquid region at seawater salinity, a two-phase region containing liquid and vapor, and a layer of brine (Bai et al. 2003; Lewis and Lowell 2009b). After introducing the general framework, we employ it to construct mathematical models giving the positions of the interfaces between these layers as functions of time. The general method involves converting a partial differential equation describing the balance of solute or energy into an ordinary differential equation for the corresponding interface position. After determining the interface positions, we incorporate this information in the form of moving boundary conditions to solve the equation governing energy balance. We then use our results to test the internal consistency of a numerical heat pipe simulation.

2 General Problem and Solution Framework

Consider a 1D column of material whose height is given by \(y_{\mathrm{H}}\) and whose energy balance at each point is expressible as

$$\begin{aligned} \frac{\partial T}{\partial t}-\kappa (y,t) \frac{\partial ^2 T}{\partial y^2} = f(y,t), \end{aligned}$$
(1)

where \(\kappa \) is the thermal diffusivity, f is a function that includes the effects of heat sources or advection, and y is the distance from the bottom of the column to a point within the column (for a derivation, see Carslaw and Jaeger 1959). The boundary and initial conditions are given by

$$\begin{aligned} T(y_{\mathrm{H}},t)= & {} T_{\mathrm{H}}, \end{aligned}$$
(2)
$$\begin{aligned} \frac{\partial T}{\partial y}(0,t)= & {} F, \end{aligned}$$
(3)

and

$$\begin{aligned} T(y,0) = T_{\mathrm{H}}. \end{aligned}$$
(4)

We take the bottom boundary condition as one of the constant heat flux, thus imposing a fixed temperature gradient F at \(y=0\). Although we have assumed a flux-type boundary condition at the bottom of the column, the solution method presented below is easily adapted to the case of a constant temperature bottom boundary.

Suppose the solution domain is divided into two distinct regions by an upward moving interface initially located at \(y=0\) and whose propagation speed depends on the transport of heat or solute across that interface. We designate the part of the column below the interface as “region i,” the part above as ”region j,” and the position of the interface itself as \(y_{ij}\). We assume that \(\kappa \) can be regarded as a constant in each region separately, i.e., that it is of the form

$$\begin{aligned} \kappa (y,t) = (\kappa _i-\kappa _j)H[y_{ij}(t)-y] + \kappa _j, \end{aligned}$$
(5)

where H is the Heaviside step function. We assume further that, in a given region, the profiles of f(yt) at different times are similarity transformations of each other; in particular, that

$$\begin{aligned} f(y,t) = \tilde{f}\left( \frac{y}{y_{ij}(t)} \right) \end{aligned}$$
(6)

for some function \(\tilde{f}\). With these assumptions, Eq. (1) may be solved in each region separately, subject to boundary and initial conditions appropriate for that region, with the temperature required to vary continuously across the interface.

2.1 Interface Position

The position of the interface is governed by the conservation of energy or solute, depending on the nature of the interface under consideration. We apply the balance of either of these quantities to the column shown in Fig. 1. If \(\mathcal {C}\) represents the volume density of solute or energy in the expanding layer, then the total content of the layer can be written as

$$\begin{aligned} I(t) \equiv A\int _0^{y_{ij}(t)}\mathcal {C}(y,t) \hbox {d}y, \end{aligned}$$
(7)

where A is the cross-sectional area of the column. If \(y_{ij}\) increases by an amount \(\Delta y_{ij}\), then the expansion zone will contain \(\mathcal {C}(y_{ij},t)\Delta y_{ij}A\) more solute or energy. Also, if the flux \(\mathcal {F}_0\) at the bottom of the expansion zone is larger than the flux \(\mathcal {F}_{ij}\) at the top, the zone content will increase by an amount \((\mathcal {F}_{0}-\mathcal {F}_{ij})A\Delta t\). Therefore, the increase in the heat or salt content after a time \(\Delta t\) is

$$\begin{aligned} \Delta I = (\mathcal {F}_{0}-\mathcal {F}_{ij})A\Delta t + \mathcal {C}(y_{ij},t)\Delta y_{ij}A. \end{aligned}$$
(8)

Dividing this equation by \(A\Delta t\) and taking the limit as \(\Delta t \rightarrow 0\) yields

$$\begin{aligned} \frac{1}{A}\frac{\hbox {d}I}{\hbox {d}t}=\frac{\hbox {d}}{\hbox {d}t}\int _0^{y_{ij}(t)}\mathcal {C}(y,t)\hbox {d}y = \mathcal {F}+\mathcal {C}(y_{ij},t)\frac{\hbox {d}y_{ij}}{\hbox {d}t}, \end{aligned}$$
(9)

where we have defined \(\mathcal {F}\equiv \mathcal {F}_{0}-\mathcal {F}_{ij}\). Introducing the average content density

$$\begin{aligned} \langle \mathcal {C} \rangle \equiv \frac{1}{y_{ij}(t)}\int _0^{y_{ij}(t)}\mathcal {C}(y,t)\hbox {d}y, \end{aligned}$$
(10)

Equation (9) can be expressed as

$$\begin{aligned} \frac{\hbox {d}}{\hbox {d}t}(y_{ij}\langle \mathcal {C} \rangle ) = \mathcal {F}+\mathcal {C}(y_{ij},t)\frac{\hbox {d}y_{ij}}{\hbox {d}t}. \end{aligned}$$
(11)

Using the product rule for differentiation and rearranging gives

$$\begin{aligned} \frac{\hbox {d}y_{ij}}{\hbox {d}t}(\langle \mathcal {C} \rangle - \mathcal {C}_{ij})+y_{ij}\frac{\hbox {d}}{\hbox {d}t}\langle \mathcal {C} \rangle = \mathcal {F}, \end{aligned}$$
(12)

where \(\mathcal {C}_{ij}\equiv \mathcal {C}(y_{ij},t)\). By solving this equation in a specific scenario, the interface position as a function of time may be obtained. “Appendix 1” contains an alternative derivation of (12), which has the advantage of being shorter, though perhaps not as physically intuitive as the above derivation. Also, Eq. (12) appears different from the classical “Stefan condition.” “Appendix 2” shows how this condition may be derived from (12).

Fig. 1
figure 1

Interface between regions i and j moves upward, driven by the difference in the fluxes of solute or heat between the top and bottom of the expansion zone. These fluxes are represented by \(\mathcal {F}_{ij}\) and \(\mathcal {F}_{0}\). At a given time t, region i is below \(y_{ij}(t)\), and region j is above \(y_{ij}(t)\)

2.2 Column Temperatures

In the region below the interface, Eq. (1) takes the form

$$\begin{aligned} \frac{\partial T}{\partial t}-\kappa _i \frac{\partial ^2 T}{\partial y^2} = \tilde{f}\left( \frac{y}{y_{ij}}\right) . \end{aligned}$$
(13)

The boundary and initial conditions are

$$\begin{aligned} \frac{\partial T}{\partial y}(0,t)= & {} F, \end{aligned}$$
(14)
$$\begin{aligned} T(y_{ij},t)= & {} T_{ij}, \end{aligned}$$
(15)

and

$$\begin{aligned} T(y,0) = T_{ij}. \end{aligned}$$
(16)

In Eqs. (15) and (16), \(T_{ij}\) is the temperature at \(y=y_{ij}\). Although the initial thickness of the region below the interface is zero, condition (16) is still required in order for the governing Eq. (13) to have a unique solution. The problem may be expressed in dimensionless form by introducing the variables

$$\begin{aligned}&\zeta \equiv \frac{y}{y_{ij}}, \end{aligned}$$
(17)
$$\begin{aligned}&\quad \tau \equiv \frac{\kappa _i t}{y_{ij}^2}, \end{aligned}$$
(18)

and

$$\begin{aligned} \theta \equiv \frac{T-T_{ij}-F(y_{ij}-y)}{Fy_{ij}}. \end{aligned}$$
(19)

In the following, we neglect the time dependence of \(y_{ij}\) in evaluating \(\frac{\partial T}{\partial t}\); this approximation is valid under the condition that

$$\begin{aligned} \frac{\hbox {d}y_{ij}}{\hbox {d}t} \ll \frac{\kappa _i}{y_{ij}}. \end{aligned}$$
(20)

This condition is sufficient, though not necessary—see “Appendix 3” for a derivation. The form of the dimensionless temperature \(\theta (\zeta ,\tau )\) is chosen to make the boundary conditions homogeneous. In terms of these variables, Eq. (1) becomes

$$\begin{aligned} \frac{\partial \theta }{\partial \tau }-\frac{\partial ^2 \theta }{\partial \zeta ^2}=\frac{y_{ij}}{F \kappa _i}\tilde{f}(\zeta )\equiv \tilde{g}(\zeta ). \end{aligned}$$
(21)

For now, we assume nothing further about the form of \(\tilde{g}(\zeta )\); in Sect. 4.3, however, we consider a specific form for this function. The boundary and initial conditions for the dimensionless problem are

$$\begin{aligned}&\frac{\partial \theta }{\partial \zeta }\biggr |_{\zeta =0}=0, \end{aligned}$$
(22)
$$\begin{aligned}&\quad \theta (1,\tau )=0, \end{aligned}$$
(23)

and

$$\begin{aligned} \theta (\zeta ,0) = 1-\zeta . \end{aligned}$$
(24)

We solve Eqs. (21) through (24) in two steps. First, we solve the homogeneous problem (with \(\tilde{g}(\zeta ) = 0\)) by constructing an integral operator that propagates the initial temperature distribution \(\theta _{\mathrm{H}}(\zeta ,0)\) forward in time to give \(\theta _{\mathrm{H}}(\zeta ,\tau )\), where the subscript H denotes the solution to the homogeneous problem. Second, we use the propagator to construct a Green’s function, which may then be used to solve the inhomogeneous problem, whose solution we represent as \(\theta _{I}(\zeta ,\tau )\). The solution \(\theta _{\mathrm{H}}(\zeta ,\tau )\) satisfies (24), while \(\theta _{\mathrm{I}}(\zeta ,0) = 0\); both solutions satisfy (22) and (23). Hence, by linearity the full solution is be given by

$$\begin{aligned} \theta (\zeta ,\tau )=\theta _{\mathrm{H}}(\zeta ,\tau )+\theta _{\mathrm{I}}(\zeta ,\tau ). \end{aligned}$$
(25)

“Appendix 4” gives the derivations of \(\theta _{\mathrm{H}}\) and \(\theta _{\mathrm{I}}\) using the propagator and Green’s function formalism; the resulting solutions are

$$\begin{aligned} \theta _{\mathrm{H}}(\zeta ,\tau ) = 2\sum _{n=0}^{\infty } \frac{1}{\lambda _n}e^{-\lambda _n \tau }\cos (\sqrt{\lambda _n}\zeta ), \end{aligned}$$
(26)

and

$$\begin{aligned} \theta _{\mathrm{I}}(\zeta ,\tau )=2\sum _{n=0}^{\infty } \frac{1-e^{-\lambda _n \tau }}{\lambda _n}\cos (\sqrt{\lambda _n}\zeta )\int _0^1 \cos (\sqrt{\lambda _n}\zeta ') \tilde{g}(\zeta ')\hbox {d}\zeta ', \end{aligned}$$
(27)

where

$$\begin{aligned} \lambda _n \equiv \left[ \frac{(2n+1)\pi }{2} \right] ^2. \end{aligned}$$
(28)

Solving Eq. (19) for T and reverting back to dimensional variables yields

$$\begin{aligned} T(y,t) = Fy_{ij}\theta \left( \frac{y}{y_{ij}},\frac{\kappa _i t}{y_{ij}^2}\right) +T_{ij}+F(y_{ij}-y). \end{aligned}$$
(29)

The solution to the full initial-boundary value problem is given by Eq. (25) through (29).

The temperatures above \(y_{ij}\) are the solutions to

$$\begin{aligned} \frac{\partial T}{\partial t}-\kappa _j \frac{\partial ^2 T}{\partial y^2} = \tilde{f}\left( \frac{y}{y_{ij}}\right) . \end{aligned}$$
(30)

with the boundary and initial conditions

$$\begin{aligned} T(y_{ij},t)= & {} T_{ij}, \end{aligned}$$
(31)
$$\begin{aligned} T(y_{\mathrm{H}},t)= & {} T_{\mathrm{H}}, \end{aligned}$$
(32)

and

$$\begin{aligned} T(y,0) = T_{\mathrm{H}}. \end{aligned}$$
(33)

This problem can be solved using the same method as for the region below \(y_{ij}\); the only difference being that, to make the boundary conditions homogeneous, the dimensionless temperature should now be defined as

$$\begin{aligned} \theta = \frac{T_{\mathrm{H}}-T_S}{T_{ij}}, \end{aligned}$$
(34)

where

$$\begin{aligned} T_S = \frac{T_{ij}(y-y_{\mathrm{H}})+T_{\mathrm{H}}(y_{ij}-y)}{y_{ij}-y_{\mathrm{H}}}. \end{aligned}$$
(35)

Because the source of solute or heat is at the base of the column, one may find in practice that a simplification is possible for the region \(y \ge y_{ij}\), so that the full machinery developed above is not required for this region. Such is the case for the example of the heat pipe.

3 Application to the Heat Pipe

Figure 2 shows the geometry and boundary conditions for the heat pipe, modeled as a vertical column of NaCl–\(\hbox {H}_2\hbox {O}\)-saturated porous material heated from below. No salt, mass, or heat enters through the sides; no salt or mass enters the bottom, to which a constant heat flux is applied. The top boundary of the system is held at constant temperature. Initially, the column contains only single-phase liquid (shown as L). When the temperature at the bottom reaches a critical threshold, a region of two-phase liquid plus vapor (shown as \(\hbox {L}+\hbox {V}\)) forms at the bottom of the system and expands upward. Phase separation within this layer gives rise to a layer of brine (shown as B) at the base of the system, which also expands upward with time. A small volume of vapor can be present in this region as well. We seek expressions for the position of the interface between the B and \(\hbox {L}+\hbox {V}\) zones (denoted by \(y_{12}\)), that of the interface between the \(\hbox {L}+\hbox {V}\) and L zones (denoted by \(y_{23}\)), and for the temperature throughout the pipe.

Fig. 2
figure 2

In solving for the temperatures inside the heat pipe, we employ the geometry and boundary conditions shown in the above schematic. Q represents the bottom heat flux, T the temperature, B the brine region, \(\hbox {L}+\hbox {V}\) the two-phase region, and L the single-phase liquid region. In subscripted variables, these regions will be referred to by numerals 1 through 3. Finally, \(y_{12}\) represents the boundary between the B and \(\hbox {L}+\hbox {V}\) regions, \(y_{23}\) that between the \(\hbox {L}+\hbox {V}\) and L regions; \(y_{H}\) is the height of the total system

3.1 Brine Layer

We now use (12) to derive an equation governing the thickness of the brine layer as a function of time. The volume density of salt in the brine layer is given by

$$\begin{aligned} \mathcal {C} = \phi \rho X, \end{aligned}$$
(36)

where \(\phi \) is the porosity, \(\rho \) is the bulk density, and X is the bulk salinity. No salt enters or leaves the bottom boundary of the system, so \(\mathcal {F}_{\mathrm{bot}} = 0\). The flux of salt into the top of the brine layer is approximately

$$\begin{aligned} \mathcal {F}_{12} \approx (\rho _\mathrm{l} v_\mathrm{l} X_\mathrm{l})_{12}, \end{aligned}$$
(37)

where v is the Darcy volumetric flux and the subscript l denotes the liquid phase; we assume that salt carried in the vapor phase and diffusion of salt are both small compared to the amount of salt advected by the liquid (this assumption is verified in Sect. 4.1). Denoting the interface position by \(y_{12}\) and substituting these expressions into (12) results in

$$\begin{aligned} \frac{\hbox {d}y_{12}}{\hbox {d}t}\left[ \langle \phi \rho X \rangle - (\phi \rho X)_{12} \right] + y_{12}\frac{\hbox {d} \langle \phi \rho X \rangle }{\hbox {d}t} = (\rho _\mathrm{l} v_\mathrm{l} X_\mathrm{l})_{12}. \end{aligned}$$
(38)

Taking \(\phi \) as a constant and defining \(\xi \equiv \rho X\), the above equation may be written as

$$\begin{aligned} \frac{\hbox {d}y_{12}}{\hbox {d}t}\left( \langle \xi \rangle - \xi _{12}\right) + y_{12}\frac{\hbox {d}}{\hbox {d}t}\langle \xi \rangle = \left( \xi _\mathrm{l} \frac{v_\mathrm{l}}{\phi }\right) _{12}. \end{aligned}$$
(39)

Dividing both sides by the coefficient of \(d{y_{12}}/\hbox {d}t\) gives

$$\begin{aligned} \frac{\hbox {d}y_{12}}{\hbox {d}t}+y_{12}\eta = \gamma , \end{aligned}$$
(40)

where

$$\begin{aligned} \eta \equiv \frac{1}{(\langle \xi \rangle - \xi _{12})}\frac{\hbox {d}}{\hbox {d}t}\langle \xi \rangle . \end{aligned}$$
(41)

and

$$\begin{aligned} \gamma \equiv \frac{1}{(\langle \xi \rangle - \xi _{12})}\left( \xi _\mathrm{l} \frac{v_\mathrm{l}}{\phi } \right) _{12}. \end{aligned}$$
(42)

In Sect. 4.1, we solve Eq. (40) for specific forms of \(\gamma (t)\) and \(\eta (t)\).

3.2 Two-phase Layer

To derive the position of the interface between the two-phase fluid and overlying single-phase liquid zones, we again employ Eq. (12), this time setting

$$\begin{aligned} \mathcal {C}=\phi \rho h + (1-\phi )\rho _r c_{\mathrm{pr}} T, \end{aligned}$$
(43)

where h is the fluid bulk enthalpy, \(c_\mathrm{p}\) is the specific heat at constant pressure, T is the temperature, and the subscript r refers to the rock phase. We also set

$$\begin{aligned} \mathcal {F}=\rho _\mathrm{l} h_\mathrm{l} v_\mathrm{l} + \rho _\mathrm{v} h_\mathrm{v} v_\mathrm{v}-\tilde{\lambda }\frac{\partial T}{\partial y}, \end{aligned}$$
(44)

where \(\tilde{\lambda }\) is the effective medium thermal conductivity. Denoting the location of the interface by \(y_{23}\), we write Eq. (12) as

$$\begin{aligned} \frac{\hbox {d}y_{23}}{\hbox {d}t}+\alpha y_{23}=\beta . \end{aligned}$$
(45)

where

$$\begin{aligned} \alpha \equiv \frac{\frac{\hbox {d}}{\hbox {d}t}\langle \mathcal {C} \rangle }{(\langle \mathcal {C} \rangle - \mathcal {C}_{23})} \end{aligned}$$
(46)

and

$$\begin{aligned} \beta \equiv \frac{\mathcal {F}}{(\langle \mathcal {C} \rangle - \mathcal {C}_{23})}. \end{aligned}$$
(47)

We solve this equation and compare the solution with that from a numerical simulation in Sect. 4.2.

3.3 Pipe Temperature

The equation governing energy balance is approximately

$$\begin{aligned} \frac{\partial }{\partial t}\left[ (1-\phi )\rho _\mathrm{r} c_{\mathrm{pr}}T + \phi \rho h \right] + \frac{\partial }{\partial y}(\rho _\mathrm{l} v_\mathrm{l} h_\mathrm{l} + \rho _\mathrm{v} v_\mathrm{v} h_\mathrm{v}) = \tilde{\lambda }\frac{\partial ^2 T}{\partial y^2}. \end{aligned}$$
(48)

For a derivation of the full equation and a discussion of when terms we have neglected become important, see Stauffer et al. (2014). For present purposes, it is useful to rewrite this equation as

$$\begin{aligned} (1-\phi )\rho _r c_{\mathrm{pr}} \frac{\partial T}{\partial t}+\phi \rho \frac{\partial h}{\partial t} -\tilde{\lambda }\frac{\partial ^2 T}{\partial y^2} = -\phi h \frac{\partial \rho }{\partial t}-\frac{\partial }{\partial y}(\rho _\mathrm{l} v_\mathrm{l} h_\mathrm{l} + \rho _\mathrm{v} v_\mathrm{v} h_\mathrm{v}). \end{aligned}$$
(49)

The time dependence of \(y_{23}\) derived above encapsulates the effects of latent heat as single-phase liquid is converted into two-phase liquid and vapor. Moreover, this interface splits the system into two parts, in each of which latent heat effects are negligible. Therefore, we employ the machinery developed in Sect. 2 to solve the energy equation and construct temperature profiles in the regions below and above \(y_{23}\) separately. For a discussion of how it can be conceptually useful to split the term involving \(\phi \rho h\) and move the density derivative to the right-hand side of (48), see Sect. 5.2.

In the zones below and above \(y_{23}\), we may replace h with \(c_\mathrm{p} T\), where \(c_\mathrm{p}\) is the fluid bulk specific heat at constant pressure. Making this replacement on the left-hand side of (49) yields

$$\begin{aligned} \widetilde{\rho c}_\mathrm{p} \frac{\partial T}{\partial t} -\tilde{\lambda }\frac{\partial ^2 T}{\partial y^2} = -\phi h \frac{\partial \rho }{\partial t}-\frac{\partial }{\partial y}(\rho _\mathrm{l} v_\mathrm{l} h_\mathrm{l} + \rho _\mathrm{v} v_\mathrm{v} h_\mathrm{v}), \end{aligned}$$
(50)

where we have defined the medium bulk quantity \(\widetilde{\rho c}_\mathrm{p} \equiv (1-\phi )\rho _r c_{\mathrm{pr}} + \phi \rho c_\mathrm{p}\). Dividing through by \(\widetilde{\rho c}_\mathrm{p}\) and introducing the thermal diffusivity \(\kappa \equiv \tilde{\lambda }/\widetilde{\rho c}_\mathrm{p}\) gives

$$\begin{aligned} \frac{\partial T}{\partial t} - \kappa \frac{\partial ^2 T}{\partial y^2} = -\frac{1}{\widetilde{\rho c}_\mathrm{p}}\left[ \phi h \frac{\partial \rho }{\partial t}+\frac{\partial }{\partial y}(\rho _\mathrm{l} v_\mathrm{l} h_\mathrm{l} + \rho _\mathrm{v} v_\mathrm{v} h_\mathrm{v}) \right] \equiv f(y,t), \end{aligned}$$
(51)

The governing equation is now written in the form of (1), and the solution for the temperatures below \(y_{23}\) is given in Sect. 2.2; we now discuss the temperatures above \(y_{23}\) separately. The resulting pipe temperature profile is compared with that from a numerical simulation in Sect. 4.3.

3.4 Temperatures Above \(y_{23}\)

The fluid above \(y_{23}\) moves upward due to the fact that fluid in the column below is thermally expanding. However, the \(y_{23}\) boundary itself moves upward at a rate \(\hbox {d}y_{23}/\hbox {d}t\), which we assume is much greater than the thermal expansion speed of the liquid. It is then convenient to solve the problem in the frame of reference that moves upward in time with the \(y_{23}\) interface, and thereafter to revert back to the frame of reference that is at rest with respect to the rock matrix. Defining

$$\begin{aligned} Y \equiv y - y_{23}, \end{aligned}$$
(52)

using the approximation \(h \approx c_\mathrm{p} T\), and keeping in mind that the liquid phase is the only one present, Eq. (51) takes the form

$$\begin{aligned} \frac{\partial T}{\partial t} - \kappa \frac{\partial ^2 T}{\partial Y^2} = -\left( \frac{\phi c_\mathrm{p} T}{\widetilde{\rho c}_\mathrm{p}}\right) \frac{\partial \rho }{\partial t}+u\frac{\partial T}{\partial Y}, \end{aligned}$$
(53)

where \(u = v - \hbox {d}y_{23}/\hbox {d}t\) is the volumetric flux relative to the moving interface. We assume that the dominant balance in this equation is between the diffusive and advective terms, giving

$$\begin{aligned} \frac{\partial ^2 T}{\partial Y^2}+\frac{u}{\kappa }\frac{\partial T}{\partial Y}=0, \end{aligned}$$
(54)

where partial derivatives have been maintained because T depends on time through \(y_{23}\). Solving this equation and reverting back to Earth-frame coordinates leads to

$$\begin{aligned} T(y,t) = (T_{\mathrm{H}}-T_{23})\left[ \frac{e^{(v-\dot{y}_{23})(y-y_{23})/\kappa }-1}{e^{(v-\dot{y}_{23})(y_{\mathrm{H}}-y_{23})/\kappa }-1} \right] +T_{23}. \end{aligned}$$
(55)

4 Comparison with a Numerical Solution

We now indicate how the solutions generated in the previous sections may be used to investigate the internal consistency of a numerical heat pipe simulation. For this purpose, we use the code FISHES, which was designed by K.C. Lewis (for details, see Lewis and Lowell 2009a, b) and used in many previous studies involving multi-phase, multi-component fluid flow in hydrothermal systems (Choi and Lowell 2015; Lowell et al. 2015; Singh et al. 2013; Han et al. 2013; Steele-MacInnis et al. 2012a, b). The code and a user’s manual are available publicly at http://wlb-physics-01.monmouth.edu/fishes.htm.

Fig. 3
figure 3

For comparison with the analytic solution, a numerical solution is generated using FISHES, employing the geometry and boundary conditions shown above. The column consists of 100 computational nodes, each with 1 m length except toward the bottom of the system, where the resolution starts at 0.2 m and increases linearly to 1 m over 20 nodes. The meaning of the “flow-through” boundary conditions at the top is addressed in the text

Fig. 4
figure 4

Dotted curves show temperatures within a heat pipe at times of 10–40 years simulated using the code FISHES. The orange dashed line represents the location of the interface between the brine and liquid-plus-vapor layers, which is stable at times >3 years. The solid black, red, green, and blue horizontal lines show the location of the interface between the liquid-plus-vapor and single-phase liquid layers

Fig. 5
figure 5

These system salinities correspond to the same simulation times as in Fig. 4, with horizontal lines showing the same interface positions. The interface between the brine region and the liquid-plus-vapor region is defined as the height below which the salinity is greater than 3.2 wt% NaCl (i.e., \({<}5\) m). Note that the liquid-plus-vapor region has salinities lower than this value

Fig. 6
figure 6

Three regions have characteristic liquid volume saturations: unity for the single-phase liquid region; much less than unity (on average) for the liquid-plus-vapor region; and just below unity for the brine region. We note, however, that these saturations likely depend strongly on the relative permeability model employed, a linear model in this case (see Sect. 4)

The geometry and boundary conditions for the simulation are shown in Fig. 3. A 100-m-long vertical, fluid-saturated, porous column is heated from below with a constant flux of 1 \(\hbox {W}/\hbox {m}^2\). The porosity is 0.1, the permeability is \(10^{-15}\,\hbox {m}^2\), and the relative permeability of each phase is set equal to the volume saturation of that phase. The bottom is maintained at zero salt and total mass flux. The interior of the pipe is initially at \(393\,{}^{\circ }\hbox {C}\) and at a salinity of 3.2 wt%NaCl. The temperature is chosen to be near the critical point of NaCl–\(\hbox {H}_2\hbox {O}\) for the system pressure, which increases hydrostatically starting from a fixed 260 bars at the top boundary. The top boundary has “flow-through” conditions imposed on heat and salinity. The meaning of this condition is as follows: If the fluid velocity at the top boundary is directed out of the system, the temperature and salinity at that boundary are set to those of the computational node directly below; if the fluid velocity is directed into the system, then the salinity is set to 3.2 wt% NaCl while the temperature is set to \(393\, {}^{\circ }\hbox {C}\). This type of boundary condition treats the upper boundary as being in contact with an infinite reservoir of fluid above it, having a salinity of 3.2 wt% NaCl and a temperature of \(393{}^{\circ }\hbox {C}\). The system is simulated for 40 years, long enough for the two-phase zone to propagate a significant distance into the system but not so long that it interacts significantly with the top boundary.

Table 1 Numerically derived constants used in the models of this study
Fig. 7
figure 7

Above values of \(\gamma (t)\) were obtained numerically by tracking the interface between the brine and two-phase regions from the FISHES heat pipe simulation. The red curve shows the continuous approximation to this curve

Fig. 8
figure 8

Solution, \(y_{12}(t)\), of Eq. (40) (solid red curve) is plotted over the simulated values for the height of the interface between the brine and the overlying two-phase region (black dots)

Fig. 9
figure 9

Numerical values of \(\eta (t)\) (black dots) are compared with those given by (58) (solid red curve) together with the constants a and b from Table 1

Figures 4, 5, and 6 show the results of the simulation. Starting after about 2 years of simulation time, a liquid-plus-vapor region grows from the bottom and has reached 60 meters from the bottom of the system by 40 years. Meanwhile, a layer of brine forms at the bottom of the system, reaching a height of about 2.3 m by 4 years.

Fig. 10
figure 10

Simulated values of the amount of salt contained in the brine layer as a function of time (black dots), together with those determined by integrating Eq. (37) with respect to time

4.1 Brine Layer Model

To compare these results with the brine layer model from Sect. 3.1, we approximate the numerically derived values of \(\gamma (t)\) at the top of the brine layer as

$$\begin{aligned} \gamma (t) = \frac{\gamma _1}{(t-t_{\gamma s})^{5/4}}+\gamma _2, \end{aligned}$$
(56)

where the values of \(\gamma _1\), \(\gamma _2\), \(t_{\gamma s}\), and all other constants employed in this study are given in Table 1. Figure 7 shows the numerical values of \(v_\mathrm{l}/\phi \) together with those given by (56), starting from the time at which the brine layer begins to form. The black dots in Fig. 8 show the simulated brine layer thickness as a function of time; based on this curve, we attempt to solve (40) by assuming a solution of the form

$$\begin{aligned} y_{12}(t) = a\tanh {(bt)}, \end{aligned}$$
(57)

where a and b are constants to be determined. Substituting (57) into (40), we find that \(\eta (t)\) must have the form

$$\begin{aligned} \eta (t) = \frac{\gamma (t) - ab\,{{\mathrm{sech}}}{^2}{(bt)}}{a\tanh {(bt)}} \end{aligned}$$
(58)

for this proposed solution to be successful; this form can be fit to the numerically generated \(\eta (t)\) with the values of a and b shown in Table 1 (see Fig. 9). Thus, the numerical forms for \(\gamma \) and \(\eta \) determine the constants a and b, and the resulting brine layer thicknesses given by (57) are shown in Fig. 8 together with simulated values. Finally, we test the assumption, from Sect. 3.1, that the salt contained in the brine layer is delivered primarily through the liquid-phase advection of salt. Figure 10 shows a comparison between the time-integrated flux of salt through the top of the brine layer, obtained from the numerically derived values of \((\rho _\mathrm{l} v_\mathrm{l} X_\mathrm{l})_{12}\), and the simulated salt content of the brine layer. This comparison also shows that, for the progression of the brine interface, the second term on the right-hand side of equation (9) is small compared to the first; such is not the case for the interface between the two-phase and single-phase zones; this difference is due to the fact that, contrary to salt transport, heat is transported through the rock phase as well as through the fluid.

4.2 Two-Phase Layer Model

In contrast to the brine layer thickness, the two-phase zone thickness increases throughout the simulation; this property leads to a different shift in the dominant terms of the balance expressed by (45) than was the case for (40). As the initial interface position is \(y_{23}=0\), we assume that, at early times, the dominant balance in equation (45) is between \(\hbox {d}y_{23}/\hbox {d}t\) and \(\beta \). This balance implies that \(\beta \) is the initial speed of propagation of the interface. On the other hand, \(\alpha y_{23}\) increases with time while \(\beta \) decreases, so that at late times \(\alpha y_{23}\) becomes important. Replacing \(\alpha \) and \(\beta \) with initial and mid-simulation values, \(\alpha _{1/2}\) and \( \beta _0 \), the solution to equation (45) is given by

$$\begin{aligned} y_{23}(t) = \frac{\beta _0}{\alpha _{1/2}} \left( 1 - e^{-\alpha _{1/2}t} \right) . \end{aligned}$$
(59)

Taking a Taylor series expansion of the exponential term for small times shows that (59) does incorporate an initial interface speed of \(\beta _0\). Figure 11 compares the solution above with that from the numerical simulation, where the numerically derived values used for \(\alpha _{1/2}\) and \(\beta _0\) appear in Table 1.

4.3 Pipe Temperature Model

Using equation (29) (with \(i=2\) and \(j=3\)) and (55), we compare the temperatures predicted by our model with those derived numerically; however, before (29) can be used, a form must be given for the function \(\tilde{g}(\zeta )\), appearing in equation (27). This function includes terms representing heat transport due to convection as well as the thermal expansion effect. First, we note that thermal expansion is most pronounced near the bottom of the system, where the temperature increases most rapidly; second, the vapor and liquid volumetric fluxes are in opposite directions in the two-phase zone, approximately balancing one another at the \(y_{23}\) interface. With these considerations in mind, we parameterize \(\tilde{g}(\zeta )\) as

$$\begin{aligned} \tilde{g}(\zeta ) = S(1-\zeta )^n, \end{aligned}$$
(60)

where S and n are dimensionless constants. Finally, we note that the temperature at \(y_{23}\) varies slightly as the interface moves upward because the pressure decreases and lowers the temperature of phase transition. To include this effect, we use the linear formula

$$\begin{aligned} T_{23}(t) = \left[ \frac{T_{23,f}-T_{23,i}}{t_f - t_i}\right] (t-t_i)+T_{23,i}, \end{aligned}$$
(61)

where the subscript i denotes initial values and the subscript f denotes final values. We take 10 years as the initial time and 40 years as the final time. With equation (61) and the above values of S and n (given in Table 1), analytical temperatures are plotted against the numerically simulated temperatures in Fig. 12.

Fig. 11
figure 11

Solution, \(y_{23}(t)\), of Eq.  (45) (solid red curve) is plotted over simulated values (black dots) for the height of the interface between the two-phase zone and the overlying single-phase fluid

Fig. 12
figure 12

Temperatures derived from an analytical model (solid curves) are plotted over those derived from a numerical simulation (yellow dots)

5 Discussion

5.1 Brine Sequestration

From the brine layer model of Sect. 3.1 and 4.1, we derive and discuss an expression for the quasi-steady-state brine layer thickness. Setting \(\hbox {d}y_{12}/\hbox {d}t = 0\) in equation (40) and solving for \(y_{12}(t \rightarrow \infty )\equiv y_{12,\infty }\) gives

$$\begin{aligned} y_{12,\infty } = \frac{\gamma }{\eta } = \frac{(\rho _\mathrm{l} v_\mathrm{l} X_\mathrm{l})_{12}}{\phi \frac{\hbox {d}}{\hbox {d}t}\langle \rho _\mathrm{l} X_\mathrm{l} \rangle }, \end{aligned}$$
(62)

where the numerator is evaluated at the top of the brine layer, while the angle brackets indicate averaging over the entire layer. We note that, although \(y_{12}\) no longer increases with time, the salt content of the brine layer does, hence the presence of time derivative term in the denominator. The presence of this term suggests why the steady state is only approximate or “quasi”: The salinity in the layer will increase until the dynamics of the system changes and the balance expressed by (40) is no longer applicable.

As the salinity increases, eventually either halite will precipitate or the effect of diffusion, which we have so far neglected, will become important. We may estimate the salinity at which diffusion becomes important by considering the case in which salt diffusion out of the top of the brine layer balances salt delivered into the top via advection. This balance is expressed as

$$\begin{aligned} \frac{\partial }{\partial y}(\rho _\mathrm{l} v_\mathrm{l} X_\mathrm{l})=D\phi \rho _\mathrm{l}\frac{\partial ^2 X_\mathrm{l}}{\partial y^2}, \end{aligned}$$
(63)

where D is the salt diffusivity. Because the brine forms a boundary layer, we may make the approximation

$$\begin{aligned} \frac{\partial }{\partial y}(\rho _\mathrm{l} v_\mathrm{l} X_\mathrm{l}) \approx \frac{\Delta (\rho _\mathrm{l} v_\mathrm{l} X_\mathrm{l})}{\Delta y}=\frac{(\rho _\mathrm{l} v_\mathrm{l} X_\mathrm{l})_{\mathrm{top}} - (\rho _\mathrm{l} v_\mathrm{l} X_\mathrm{l})_{0}}{y_{12,\infty }-0}=\frac{(\rho _\mathrm{l} v_\mathrm{l} X_\mathrm{l})_{12}}{y_{12,\infty }}, \end{aligned}$$
(64)

where the last equation follows because the volumetric flux at the bottom boundary of the system vanishes. Similarly,

$$\begin{aligned} D\phi \rho _\mathrm{l}\frac{\partial ^2 X_\mathrm{l}}{\partial y^2} \approx D\phi \rho _\mathrm{l} \frac{\Delta X_\mathrm{l}}{y_{12,\infty }^2}, \end{aligned}$$
(65)

where \(\Delta X_\mathrm{l}\) is the increase in salinity from the top to the bottom of the brine layer. Substituting (64) and (65) into (63) yields

$$\begin{aligned} \Delta X_\mathrm{l} \approx \frac{(v_\mathrm{l} X_\mathrm{l})_{12} y_{12,\infty }}{D \phi }. \end{aligned}$$
(66)

Substituting values of these quantities from the simulation of Sect. 4 yields \(\Delta X_\mathrm{l} \approx 60\) wt% NaCl; halite precipitation would start to occur well before achieving this threshold.

Equation (62) suggests that increasing the permeability, and hence the volumetric flux, may increase the thickness of the quasi-steady-state brine layer. Complicating matters is the fact that the \(d\langle \rho _\mathrm{l} X_\mathrm{l} \rangle /\hbox {d}t\) and \((\rho _\mathrm{l} v_\mathrm{l} X_\mathrm{l})_{\mathrm{top}}\) are not independent—more salt entering the top contributes to faster buildup of salt within the layer. Nevertheless, increasing the permeability does increase the thickness of the brine layer, as a simulation with increased permeability compared to that in Sect. 4 (\(10^{-14}\hbox { m}^2\), compared to \(10^{-15}\hbox { m}^2\)) showed an increase in thickness of the layer (4.8 m, compared to 2.3 m).

We consider the possibility of allowing brine to flow laterally out the sides of the heat pipe, which may more closely approximate brine sequestration in an actual hydrothermal system. Consider a segment of the pipe with vertical extent \(\Delta y\), centered around a height y within the brine layer. We assume that the amount of brine, \(\Delta Q\), leaving this segment is proportional to \(y_{12}-y\) (i.e., the distance from the top of the brine layer), the amount of time \(\Delta t\) that has passed, and the exposed surface area of the segment, \(\Delta \sigma \):

$$\begin{aligned} \Delta Q = q(y_{12}-y)\Delta \sigma \Delta t, \end{aligned}$$
(67)

where q is a constant. The surface area is given by

$$\begin{aligned} \Delta \sigma = 2\Delta y(\Delta x + \Delta z), \end{aligned}$$
(68)

where \(\Delta x\) is the width of the front of the pipe and \(\Delta z\) is the width of the side. Defining the circumference of the pipe as \(\tilde{\sigma } \equiv 2(\Delta x + \Delta z)\), the salt lost from the sides of the entire brine layer is

$$\begin{aligned} Q = \Delta t q \tilde{\sigma } \int _0^{y_{12}} (y_{12}-y)\hbox {d}y = \frac{q}{2}\Delta t \tilde{\sigma } y_{12}^2. \end{aligned}$$
(69)

Incorporating the sink term (69) and making the appropriate replacements for \(\mathcal {F}\) and \(\mathcal {C}\) (see Sect. 3.1), equation (9) becomes

$$\begin{aligned} \frac{1}{A}\frac{\hbox {d}I}{\hbox {d}t}=(\rho _\mathrm{l} v_\mathrm{l} X_\mathrm{l})_{12} + \phi (\rho X)_{12}\frac{\hbox {d}y_{12}}{\hbox {d}t} - \frac{q}{2} \left( \frac{\tilde{\sigma }}{A}\right) y_{12}^2. \end{aligned}$$
(70)

Following the same steps as in the derivation of equation (40), and using the abbreviation \(\xi \equiv \rho X\), the resulting equation is

$$\begin{aligned} \frac{\hbox {d}y_{12}}{\hbox {d}t}(\langle \xi \rangle - \xi _{12}) + y_{12}\frac{\hbox {d}\langle \xi \rangle }{\hbox {d}t} = \left( \xi _\mathrm{l} \frac{v_\mathrm{l}}{\phi }\right) _{12} - \frac{q}{2}\left( \frac{\tilde{\sigma }}{\phi A} \right) y_{12}^2. \end{aligned}$$
(71)

Setting the time derivative to zero and rearranging yields

$$\begin{aligned} \frac{q}{2}\left( \frac{\tilde{\sigma }}{\phi A} \right) y_{12,\infty }^2 + y_{12,\infty }\frac{\hbox {d}}{\hbox {d}t}\langle \xi \rangle - \left( \frac{\xi _\mathrm{l} v_\mathrm{l}}{\phi }\right) _{12} = 0. \end{aligned}$$
(72)

This equation can be solved via the quadratic formula; however, if the amount of lateral salt loss is small, the solution can be expressed perhaps more informatively as a series of corrections to (62) as follows.

It is first necessary to non-dimensionalize (72) so that the magnitudes of the coefficients can be meaningfully compared. A dimensionless height may be defined as

$$\begin{aligned} \zeta = \frac{y_{12,\infty }}{(\xi _\mathrm{l} v_\mathrm{l})_{12}}\phi \frac{\hbox {d}}{\hbox {d}t}\langle \xi \rangle , \end{aligned}$$
(73)

and then (72) may be expressed as

$$\begin{aligned} \frac{q}{2}\left( \frac{\tilde{\sigma }}{\phi A}\right) \left[ \frac{(\xi _\mathrm{l} v_\mathrm{l})_{12}}{\phi \left( \frac{\hbox {d}}{\hbox {d}t}\langle \xi \rangle \right) ^2}\right] \zeta ^2 + \zeta - 1 = 0. \end{aligned}$$
(74)

Define the coefficient of \(\zeta ^2\) as \(\epsilon \) and suppose it is small compared to unity. Then the solution to (74) can be expanded in a perturbative series as

$$\begin{aligned} \zeta = \zeta _0 + \epsilon \zeta _1 + \epsilon ^2 \zeta _2 \cdots , \end{aligned}$$
(75)

where the \(\zeta _i\) are successive approximations to \(\zeta \). Putting (75) into (74) and keeping terms to the first order in \(\epsilon \) gives

$$\begin{aligned} \epsilon (\zeta _0^2 + \zeta _1) + (\zeta _0 - 1) = 0. \end{aligned}$$
(76)

Setting coefficients of differing powers of \(\epsilon \) to zero yields the solution

$$\begin{aligned} \zeta = 1 - \epsilon , \end{aligned}$$
(77)

which is the same as

$$\begin{aligned} y_{12,\infty } = \frac{\gamma }{\eta }\left[ 1 - \frac{q}{2}\left( \frac{\tilde{\sigma }}{\phi A} \right) \left( \frac{\gamma }{\eta } \right) \left( \frac{1}{\frac{\hbox {d}}{\hbox {d}t}\langle \xi \rangle } \right) \right] \end{aligned}$$
(78)

We note the presence of the geometrical factor \(\tilde{\sigma }/\phi A\) in the correction term. If the cross section is increased, for example, the overall effect is to lower the magnitude of this factor and hence also of the correction term.

5.2 Energy Balance

In deriving equation (45), we integrated the equation expressing energy balance from the bottom of the system to the height of the two-phase layer; we now consider how each term in the equation contributes to the energy balance within the layer. The energy balance (48) can be expressed as

$$\begin{aligned} (1-\phi )\rho _r c_{\mathrm{pr}} \frac{\partial T}{\partial t}+\phi \rho \frac{\partial h}{\partial t}+\phi h\frac{\partial \rho }{\partial t} + \frac{\partial }{\partial y}(\rho _\mathrm{l} v_\mathrm{l} h_\mathrm{l} + \rho _\mathrm{v} v_\mathrm{v} h_\mathrm{v}) = \tilde{\lambda }\frac{\partial ^2 T}{\partial y^2}=-\frac{\partial }{\partial y}\mathcal {F}_{c},\qquad \end{aligned}$$
(79)

where we have defined the conductive flux as \(\mathcal {F}_c = -\tilde{\lambda }\frac{\partial T}{\partial y}\). The term \(\phi h\partial \rho /\partial t\) is negative due to thermal expansion, which also induces mass and heat fluxes across the \(y_{23}\) interface. To consider these fluxes explicitly, we note that, according to the mass continuity equation,

$$\begin{aligned} \phi \frac{\partial \rho }{\partial t}=-\frac{\partial }{\partial y}(\rho _\mathrm{l} v_\mathrm{l} + \rho _\mathrm{v} v_\mathrm{v}). \end{aligned}$$
(80)

Substituting this equation into (79) and rearranging gives

$$\begin{aligned} (1-\phi )\rho _r c_{\mathrm{pr}}\frac{\partial T}{\partial t} + \phi \rho \frac{\partial h}{\partial t} = h\frac{\partial }{\partial y}(\rho _\mathrm{l} v_\mathrm{l} + \rho _\mathrm{v} v_\mathrm{v}) - \frac{\partial }{\partial y}(\rho _\mathrm{l} v_\mathrm{l} h_\mathrm{l} + \rho _\mathrm{v} v_\mathrm{v} h_\mathrm{v})-\frac{\partial }{\partial y}\mathcal {F}_{c}.\qquad \end{aligned}$$
(81)

Integrating the above equation from \(y=0\) to \(y=y_{23}\) yields

$$\begin{aligned}&(1-\phi )\rho _r c_{\mathrm{pr}} \int _0^{y_{23}}\frac{\partial T}{\partial t}\hbox {d}y + \phi \int _0^{y_{23}} \rho \frac{\partial h}{\partial t}\hbox {d}y \nonumber \\&\quad = \int _0^{y_{23}} h \frac{\partial }{\partial y}(\rho _\mathrm{l} v_\mathrm{l} + \rho _\mathrm{v} v_\mathrm{v}) \hbox {d}y -(\rho _\mathrm{l} v_\mathrm{l} h_\mathrm{l} + \rho _\mathrm{v} v_\mathrm{v} h_\mathrm{v})_{23} - \mathcal {F}_{c,23} + \mathcal {F}_0, \end{aligned}$$
(82)

where \(\mathcal {F}_0\) is the applied flux at the bottom boundary of the system. By the second mean value theorem for integrals, there exists a point \(y_b\) between \(y=0\) and \(y=y_{23}\) such that

$$\begin{aligned} \int _0^{y_{23}} h \frac{\partial }{\partial y}(\rho _\mathrm{l} v_\mathrm{l} + \rho _\mathrm{v} v_\mathrm{v})\hbox {d}y = h(y_b)\int _0^{y_{23}}\frac{\partial }{\partial y}(\rho _\mathrm{l} v_\mathrm{l} + \rho _\mathrm{v} v_\mathrm{v})\hbox {d}y. \end{aligned}$$
(83)

If we define \(h(y_b)=h_b\), we can therefore write (82) as

$$\begin{aligned}&(1-\phi )\rho _r c_{\mathrm{pr}} \int _0^{y_{23}}\frac{\partial T}{\partial t}\hbox {d}y + \phi \int _0^{y_{23}} \rho \frac{\partial h}{\partial t}\hbox {d}y \nonumber \\&\quad = h_b (\rho _\mathrm{l} v_\mathrm{l} + \rho _\mathrm{v} v_\mathrm{v})_{23} -(\rho _\mathrm{l} v_\mathrm{l} h_\mathrm{l} + \rho _\mathrm{v} v_\mathrm{v} h_\mathrm{v})_{23} - \mathcal {F}_{c,23} + \mathcal {F}_0. \end{aligned}$$
(84)

As long as it is remembered that \(h_b\) is a constant, this equation may be expressed as

$$\begin{aligned}&(1-\phi )\rho _r c_{\mathrm{pr}} \int _0^{y_{23}}\frac{\partial T}{\partial t}\hbox {d}y + \phi \int _0^{y_{23}} \rho \frac{\partial h}{\partial t}\hbox {d}y = [\rho _\mathrm{l} v_\mathrm{l} (h_b - h_\mathrm{l}) + \rho _\mathrm{v} v_\mathrm{v} (h_b - h_\mathrm{v})]_{23} \nonumber \\&\quad - \mathcal {F}_{c,23} + \mathcal {F}_0. \end{aligned}$$
(85)

Both terms on the left-hand side of (85) are positive, because both the rock and fluid gain energy as the column is heated from below; therefore, the right-hand side must also be positive. If we had not considered the expansion effect explicitly and had instead employed the term \(\phi \frac{\partial (h\rho )}{\partial t}\) in equation (79), this term could be negative (and indeed is, in the simulation discussed in section (4)), even though both rock and fluid gain energy with time. We would have instead obtained

$$\begin{aligned}&(1-\phi )\rho _r c_{\mathrm{pr}} \int _0^{y_{23}}\frac{\partial T}{\partial t}\hbox {d}y + \phi \int _0^{y_{23}} \frac{\partial (\rho h)}{\partial t}\hbox {d}y \nonumber \\&\quad = -[\rho _\mathrm{l} v_\mathrm{l} h_\mathrm{l} + \rho _\mathrm{v} v_\mathrm{v} h_\mathrm{v}]_{23}- \mathcal {F}_{c,23} + \mathcal {F}_0, \end{aligned}$$
(86)

and then both sides of the above equation can turn out to be negative when there is strong thermal expansion, the negative right hand giving the impression that more energy is being transferred from the top of the two-phase layer than is being delivered at the bottom. Equation (85) makes manifest that such is not the case.

5.3 Using the Framework Without a Numerical Model

When we employed the extended Stefan method to study the heat pipe, we relied on a numerical simulation to supply the functional forms of certain key quantities; in this section, we indicate how the method might be used in the absence of simulation output. The most difficult part of the Stefan problem is finding the position of the advancing phase interfaces as functions of time. Consider the problem, from Sect. 3.1, of finding the brine interface position \(y_{12}(t)\). To form the governing equation for \(y_{12}\), we require specific forms for the functions \(\eta \) and \(\gamma \) from equations (41) and (42). In the absence of numerical results, the variables appearing in these functions must be supplied by a separate analytic model; which model that is depends on the context. The method presented here may be thought of as a general framework requiring specific models as inputs. For example, suppose liquid velocity is given from a buoyancy-driven flow model, that the thermodynamic quantities within the brine layer are constants, and that the average salt content of the brine layer is constant. The second of these assumptions leads to \(\eta = 0\), while the first leads to

$$\begin{aligned} v_\mathrm{l} = \frac{kg}{\mu _\mathrm{l}}(\rho -\rho _\mathrm{l}), \end{aligned}$$
(87)

which in turn gives \(\gamma = const\). In this situation, the solution for the interface position is \(y_{12}(t) = \gamma t\). Such a model could be appropriate for very early times (see Fig. 8 between \(t=2\) and \(t=4\) years).

6 Conclusion

We have presented a framework that extends the classical Stefan-type solution method to deal with multi-component, multi-phase 1D porous flows that involve distinct propagating interfaces. Once the partial differential equations governing solute and energy balance have been provided, these equations may be converted into ordinary differential equations whose solutions give the positions of the corresponding interfaces as functions of time. By splitting the solution domain into pieces and considering the interfaces as moving boundaries, the temperature profile for the whole domain may be obtained. We have illustrated this framework via application to the 1D saltwater heat pipe.

The dynamics of the heat pipe system are far from trivial. Neither the interface between the brine and two-phase zones nor that between the two-phase and single-phase zones evolve according to any simple prescription, such as linearly with time or as \((time)^{1/2}\). Fluid advection must be accounted for in all regions, even with a relatively low permeability, such as that in the numerical simulation used for comparison with the analytical models. Large variations in thermodynamic properties and fluid velocities must be taken into account in the two-phase zone; volumetric fluxes in the two-phase zone are not given by any simple approach such as a purely buoyancy-driven model.

Even though the salinity is constant at the top of brine zone, the layer stops growing after short time; this halt in growth occurs because the salt content of the layer continues to increase with time while the effect of salt diffusion is small compared to that of salt advection. The increase in salt content is due to downward liquid salt flux at top of brine zone, with negligible salt carried across the interface by vapor. Pipe geometry is important for the ability of a system to store brine. For example, in a simple model, increasing the pipe circumference decreases the amount of salt loss from the sides of the pipe.

In contrast to the brine layer, for the two-phase zone increased heat input initiates a phase change and conduction is strong even compared to the advection of heat by the vapor phase. The result is that the two-phase interface grows nearly linearly, but departs from linearity because transport of heat across the top of the layer is not constant in time. Thermal expansion is non-negligible, and in such a case it is conceptually advantageous to rewrite the energy balance over the two-phase region as in (85), because this form makes the fact of energy conservation evident.