<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD Journal Publishing with OASIS Tables v3.0 20080202//EN" "https://jats.nlm.nih.gov/nlm-dtd/publishing/3.0/journalpub-oasis3.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:oasis="http://docs.oasis-open.org/ns/oasis-exchange/table" xml:lang="en" dtd-version="3.0" article-type="research-article">
  <front>
    <journal-meta><journal-id journal-id-type="publisher">GMD</journal-id><journal-title-group>
    <journal-title>Geoscientific Model Development</journal-title>
    <abbrev-journal-title abbrev-type="publisher">GMD</abbrev-journal-title><abbrev-journal-title abbrev-type="nlm-ta">Geosci. Model Dev.</abbrev-journal-title>
  </journal-title-group><issn pub-type="epub">1991-9603</issn><publisher>
    <publisher-name>Copernicus Publications</publisher-name>
    <publisher-loc>Göttingen, Germany</publisher-loc>
  </publisher></journal-meta>
    <article-meta>
      <article-id pub-id-type="doi">10.5194/gmd-19-3923-2026</article-id><title-group><article-title>darcyInterTransportFoam v1.0: an open-source, fully-coupled 3D solver for simulating surface water – saturated groundwater processes and exchanges</article-title><alt-title>darcyInterTransportFoam v1.0</alt-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author" corresp="yes" rid="aff1">
          <name><surname>Pardo-Álvarez</surname><given-names>Álvaro</given-names></name>
          <email>alvaro.pardo@unine.ch</email>
        <ext-link>https://orcid.org/0000-0003-0302-9856</ext-link></contrib>
        <contrib contrib-type="author" corresp="no" rid="aff2">
          <name><surname>Fleckenstein</surname><given-names>Jan H.</given-names></name>
          
        <ext-link>https://orcid.org/0000-0001-7213-9448</ext-link></contrib>
        <contrib contrib-type="author" corresp="no" rid="aff1">
          <name><surname>Koutantou</surname><given-names>Kalliopi</given-names></name>
          
        </contrib>
        <contrib contrib-type="author" corresp="no" rid="aff1">
          <name><surname>Brunner</surname><given-names>Philip</given-names></name>
          
        <ext-link>https://orcid.org/0000-0001-6304-6274</ext-link></contrib>
        <aff id="aff1"><label>1</label><institution>Centre for Hydrogeology and Geothermics, University of Neuchâtel, Neuchâtel, 2000, Switzerland</institution>
        </aff>
        <aff id="aff2"><label>2</label><institution>Helmholtz Center for Environmental Research – UFZ, Leipzig, 04318, Germany</institution>
        </aff>
      </contrib-group>
      <author-notes><corresp id="corr1">Álvaro Pardo-Álvarez (alvaro.pardo@unine.ch)</corresp></author-notes><pub-date><day>13</day><month>May</month><year>2026</year></pub-date>
      
      <volume>19</volume>
      <issue>9</issue>
      <fpage>3923</fpage><lpage>3951</lpage>
      <history>
        <date date-type="received"><day>23</day><month>July</month><year>2025</year></date>
           <date date-type="rev-request"><day>13</day><month>August</month><year>2025</year></date>
           <date date-type="rev-recd"><day>26</day><month>February</month><year>2026</year></date>
           <date date-type="accepted"><day>26</day><month>March</month><year>2026</year></date>
      </history>
      <permissions>
        <copyright-statement>Copyright: © 2026 Álvaro Pardo-Álvarez et al.</copyright-statement>
        <copyright-year>2026</copyright-year>
      <license license-type="open-access"><license-p>This work is licensed under the Creative Commons Attribution 4.0 International License. To view a copy of this licence, visit <ext-link ext-link-type="uri" xlink:href="https://creativecommons.org/licenses/by/4.0/">https://creativecommons.org/licenses/by/4.0/</ext-link></license-p></license></permissions><self-uri xlink:href="https://gmd.copernicus.org/articles/19/3923/2026/gmd-19-3923-2026.html">This article is available from https://gmd.copernicus.org/articles/19/3923/2026/gmd-19-3923-2026.html</self-uri><self-uri xlink:href="https://gmd.copernicus.org/articles/19/3923/2026/gmd-19-3923-2026.pdf">The full text article is available as a PDF file from https://gmd.copernicus.org/articles/19/3923/2026/gmd-19-3923-2026.pdf</self-uri>
      <abstract><title>Abstract</title>

      <p id="d2e114">Fully-coupled solvers have proven to be suitable and computationally efficient tools for studying surface water–groundwater (SW-GW) interactions. Most existing fully-coupled codes use the two-dimensional, depth-averaged shallow water equations for surface flows. As a result, three-dimensional (3D) flow dynamics are ignored in the surface domain, including phenomena important for the SW-GW exchange such as turbulence. Computational Fluid Dynamics (CFD) solvers allow to capture 3D information on the surface turbulent flow by solving the full Navier-Stokes equations. Consequently, they are well-suited for the study of the actual exchange flows of water and solutes across the sediment-water interface. Among the available CFD software, the open-source toolbox OpenFOAM provides a flexible modelling framework to implement user-defined, fully-coupled models for the detailed investigation of SW-GW interaction processes. Based on this CFD platform, Lee et al. (2021) developed hyporheicScalarInterFoam, a fully-coupled 3D solver capable of solving the flow and transport processes in both surface and subsurface domains as well as the interactions across their interface. Despite the potential of this new code to tackle SW-GW interactions, its application to real-world hydrogeological scenarios is constrained by limitations in boundary conditions, parameter heterogeneity and key hydrodynamic and transport processes, among others, which hinder the accurate representation of the complex characteristics of natural systems. To overcome this, an updated and extended version of hyporheicScalarInterFoam, called darcyInterTransportFoam, is presented in this paper. The new fully-coupled solver enhances the applicability of the original by introducing novel simulation features. These include internal solver updates, such as the definition of heterogeneous and anisotropic subsurface fields and the simulation of heat transfer in both domains, as well as newly implemented add-ons, including pre- and post-processing utilities and additional boundary conditions. A complete description of all the new features is provided in this paper. Moreover, the utility of darcyInterTransportFoam is demonstrated in a test case, where the SW-GW flow, solute transport and heat transfer processes are simulated in a highly conductive river-aquifer system.</p>
  </abstract>
    
<funding-group>
<award-group id="gs1">
<funding-source>H2020 Marie Skłodowska-Curie Actions</funding-source>
<award-id>722028</award-id>
</award-group>
<award-group id="gs2">
<funding-source>Université de Neuchâtel</funding-source>
<award-id>NA</award-id>
</award-group>
</funding-group>
</article-meta>
  </front>
<body>
      

<sec id="Ch1.S1" sec-type="intro">
  <label>1</label><title>Introduction</title>
      <p id="d2e126">Acknowledging the role that surface water-groundwater (SW-GW) interactions play for the health of aquatic ecosystems has gained importance in recent years (Brunner et al., 2017; Krause et al., 2017; Lewandowski et al., 2020). Surface water bodies, such as streams, lakes or wetlands, and the aquifers they are connected to should be considered as a single, integral entity due to their continuous interaction (Winter et al., 1998). This interaction controls the fate and transport of contaminants and waterborne substances in the system (Dichgans et al., 2023; Nisbeth et al., 2019; Schaper et al., 2018). Likewise, aerobic and anaerobic reactions as well as the different biological activities produced in the ground are also influenced by this bidirectional exchange (Lewandowski et al., 2019; Nogueira et al., 2021; Trauth et al., 2018). Consequently, the water quality and the overall ecological health of the SW-GW system is affected by the continuous interaction across the sediment-water interface (Boano et al., 2014; Toran, 2019).</p>
      <p id="d2e129">Multiple investigations on both water and solute exchange have recently been conducted to study the interconnection between SW and GW (Coluccio and Morgan, 2019; Hermans et al., 2023; Krause et al., 2023). In this context, numerical models arise as a viable complement to field and laboratory experiments to investigate the dynamic interactions across the sediment-water interface (Barthel and Banzhaf, 2016; Brunner et al., 2017; Fleckenstein et al., 2010; Krause et al., 2014). Compared to physical studies, numerical models can provide high-resolution spatiotemporal information on relevant flow and transport processes at any location in the system (Broecker et al., 2021). SW-GW interaction cases are commonly solved using an asynchronous linking, or one-way, coupling approach (Maxwell et al., 2014), with pressure as the coupling parameter (e.g., Chen et al., 2015, 2018; Jin et al., 2011; Lee et al., 2020; Trauth et al., 2014; Trauth and Fleckenstein, 2017). Following this technique, a surface flow model is coupled to a groundwater flow model, where the pressure distribution at the bottom boundary of the surface model is imposed as the upper boundary condition (BC) for the groundwater model. No feedback is provided from the subsurface to the surface domain after solving the groundwater fields, meaning that the resulting exchange fluxes do not influence the surface flow dynamics. However, since flow and transport exchanges are bidirectional, considering the interfacial feedback as unidirectional may result in significant errors in the water and mass balances (Li et al., 2020). In this way, fully-coupled models (FCMs) account for the actual bidirectional interaction between SW and GW by transferring parameter information from one domain to another through an iterative algorithm. This coupling strategy is usually referred to as sequential iterative, or two-way, approach (Maxwell et al., 2014). FCMs commonly solve the subsurface flow using Richards' equation and Darcy's law, while applying the shallow water equations or the Navier-Stokes equations to simulate the surface flow. Unlike the shallow water equations, the Navier-Stokes equations account for turbulence in the surface domain. Turbulence has proven to influence the magnitude of SW-GW exchange and, as such, its detailed computation should not be ignored (Tonina and Buffington, 2009; Voermans et al., 2017). The Navier-Stokes equations are solved by Computational Fluid Dynamics (CFD) models. CFD solvers have the potential to account for the complex three-dimensional (3D) mechanisms of flow dynamics, including turbulence, and therefore, to provide high-resolution information on the flow field characteristics.</p>
      <p id="d2e132">Among the different CFD models available to simulate 3D processes, the OpenFOAM (Open-Source Field Operation And Manipulation) software has grown in popularity in recent years (e.g., Broecker et al., 2017, 2021; Lee et al., 2020, 2022; Sobhi Gollo et al., 2022; Trauth et al., 2014, 2015). OpenFOAM (Weller et al., 1998) is a powerful, free and open-source C<inline-formula><mml:math id="M1" display="inline"><mml:mrow><mml:mo>+</mml:mo><mml:mo>+</mml:mo></mml:mrow></mml:math></inline-formula> toolbox consisting of a comprehensive set of applications (solvers, utilities, boundary conditions, etc.) designed to simulate diverse two and three-dimensional continuum mechanics problems, most prominently including CFD (OpenCFD Ltd., 2024). The main advantage of OpenFOAM over other CFD models is the modular and extensible nature of its code structure. As such, OpenFOAM provides an adequate modelling framework to implement FCMs for the thorough study of the 3D SW-GW processes. Based on this, Li et al. (2020) developed hyporheicFoam. This user-defined model simulates flow and biogeochemical reactions in both surface and subsurface domains as well as the two-way exchange across their interface. The multicomponent reactive transport is modelled in both domains by generic advection-diffusion/dispersion-reaction equations, whereas the standard pimpleFoam solver is used to simulate the surface flow dynamics and a new-coded OpenFOAM solver is applied to solve the saturated groundwater flow. The full coupling between domains is achieved via the mapping of conservative flux BCs at the interface through an iterative scheme. The fact of using a transient, incompressible solver like pimpleFoam to simulate the surface flow implies that hyporheicFoam assumes the water surface is flat, i.e., a rigid-lid (e.g., Chen et al., 2018; Janssen et al., 2012; Jin et al., 2011; Lee et al., 2020). Nevertheless, the water surface in rivers is free to move and can adjust to the topography. In this way, prior studies have shown the impact that a deformable, free surface has on the magnitude of bedform-driven SW-GW exchange, indicating an underestimation of the flux exchanges under the rigid-lid assumption (e.g., Broecker et al., 2019, 2021; Trauth et al., 2014, 2015). To overcome this limitation, a new fully-coupled 3D model, called hyporheicScalarInterFoam, was implemented by Lee et al. (2021). This novel solver switches from pimpleFoam to interFoam to simulate the surface flow dynamics but keeps the same solver as hyporheicFoam for the porous media flow. interFoam (Deshpande et al., 2012) is a two-phase, incompressible, immiscible solver within the OpenFOAM library that uses the Volume of Fluid (VOF) phase-fraction based interface capturing approach (Hirt and Nichols, 1981) for solving the three-dimensional Navier-Stokes equations. This interface tracking method allows modelling the free surface located between the two simulated fluids (i.e., air and water in this case), so that the deformations of the river's water surface can be considered in the computation of the SW-GW exchange. Furthermore, in contrast to hyporheicFoam, hyporheicScalarInterFoam only simulates conservative transport at both domains. Model-specific flux BCs are also mapped at the interface through an iterative algorithm for the full coupling of the two domains.</p>
      <p id="d2e145">Despite the potential of hyporheicScalarInterFoam to simulate surface water-groundwater (SW-GW) flow dynamics and transport processes, its applicability to actual hydrogeological contexts is constrained by various modelling limitations, including: (1) the solver does not explicitly calculate any hydrology-related field, such as the specific discharge or the hydraulic head, but solves the surface and subsurface hydrodynamics based on the so-called modified pressure and the volume-averaged velocity. (2) A water height cannot be set at the outlet patch of the surface domain and, therefore, neither can a hydrostatic pressure BC that would allow the flow to leave the simulation domain freely. (3) The adjustable body force required to make the pressure field compatible with periodic BCs is only considered in the calculation of the specific discharge, while both the hydraulic head and the groundwater flux are determined without this additional pressure gradient. (4) The model only allows the specification of homogeneous and isotropic parameter fields (i.e. hydraulic conductivity, porosity and longitudinal and transversal dispersivities) for the entire subsurface domain, which prevents the definition of further complex underground characterizations (e.g., heterogeneous fields). Moreover, (5) the sediment-water interface has to be fully submerged so that the model can run, which implies that both domains must be hydraulically connected all over the interface boundary. (6) The transport of conservative solutes requires to always be solved in both phases in the surface domain, whereas (7) the heat transfer simulation is not available in any of the domains. (8) The mapping of data between the domains is performed via interpolation at their interface boundary, which may result in a loss of information depending on the resolution of both meshes. (9) The convergence of the surface and subsurface results is evaluated by a user-specific maximum iteration loop that does not check the solution mismatch between both domains after each iteration. (10) The model does not allow defining BCs at the interface other than those used for the two-way coupling mode, which complicates its execution in one-way coupling mode. Furthermore, (11) the reinitialization of the data fields at any time of the simulation is only possible through data-preprocessing. Consequently, further development of the code is required to fill all the above-mentioned simulation gaps as well as to extend the solver functionality, so that the model could be applied to different scale SW-GW interaction scenarios.</p>
      <p id="d2e149">Hence, this paper introduces an updated and extended version of the hyporheicScalarInterFoam solver, based on the computational fluid dynamics (CFD) platform OpenFOAM. Analogously to the earlier version, the new code, called darcyInterTransportFoam, is an open-source, fully-coupled 3D model aiming at the simulation of flow and transport processes in both surface and subsurface domains, as well as the interactions between them. The latter is achieved through the bidirectional mapping of flux BCs at the domain's interface via an iterative scheme. Moreover, as intended, darcyInterTransportFoam upgrades the applicability of the original solver by extending its modelling capabilities through a series of solver updates and new simulation add-ons. The latter consist of several pre- and post-processing utilities, along with three novel boundary conditions. As for the solver updates, these include, among others, the possibility to simulate passive solute transport in a single phase within the surface domain, the definition of non-uniform underground parameter fields, the automatic specification of impervious regions in the subsurface domain and the simulation of heat transfer in both domains. Furthermore, the structure and organization of the code is also updated to make it more user-friendly. Biogeochemical reactions, targeted by other user-defined, fully-coupled OpenFOAM solvers, such as hyporheicFoam (Lee et al., 2022; Li et al., 2020), cannot be simulated with the current version of the solver, just as they could not in hyporheicScalarInterFoam.</p>
      <p id="d2e152">The efficacy of the new solver is additionally demonstrated in a three-dimensional test case, in which the SW-GW flow, solute transport and heat transfer processes occur across a river segment of an actual alluvial system are simulated using darcyInterTransportFoam.</p>
</sec>
<sec id="Ch1.S2">
  <label>2</label><title>Model description</title>
      <p id="d2e163">darcyInterTransportFoam (Pardo-Álvarez, 2025, 2026a) is implemented in the free and open-source CFD software OpenFOAM v2412. Similarly to its predecessor, the new fully-coupled solver applies a pseudo-transient coupling approach, in which transient surface flow and steady-state saturated subsurface flow are simulated at every time step (Fig. 1). Accordingly, the subsurface solution is updated at each time step based on the transient BCs firstly computed at the SW-GW interface during the surface flow simulation. After solving the subsurface flow, relevant quantities are mapped back onto the surface domain within the same time step, reflecting the combined effects of the transient surface forcing and any additional subsurface boundary contributions. A convergence check is then performed to ensure consistency between surface and subsurface exchanges after mapping. A similar procedure is applied to solute transport and heat transfer, although in these processes transience is considered in both domains. Due to the different characteristic response timescales of surface and subsurface flows, a single iteration per time step is generally sufficient, unless strong, fast two-way feedback across the interface requires additional convergence loops. Consequently, the subsurface adjustment is assumed to occur quasi-instantaneously, consistent with the slower response of groundwater compared to surface water. This approach reflects the physical assumption that, over the short timescales of surface flow variations, the subsurface water table remains stable and does not undergo significant movement. As a result, the model achieves faster and more stable simulations.</p>

      <fig id="F1" specific-use="star"><label>Figure 1</label><caption><p id="d2e168">Simulation workflow of darcyInterTransportFoam. Mass conservation is ensured by the updated iterative scheme, that enforces both water and solute flux consistency across the interface of the surface and subsurface domains.</p></caption>
        <graphic xlink:href="https://gmd.copernicus.org/articles/19/3923/2026/gmd-19-3923-2026-f01.png"/>

      </fig>

      <p id="d2e177">The governing equations and coupling modes of darcyInterTransportFoam are described in this section, followed by an overview of its newly introduced simulation features.</p>
<sec id="Ch1.S2.SS1">
  <label>2.1</label><title>Governing equations</title>
      <p id="d2e189">The new FCM introduces small modifications to some original expressions while expanding the functionality of hyporheicScalarInterFoam by incorporating additional equations and simulation options. In this way, the user-defined code for simulating groundwater flow has been updated to improve accessibility and fully account for the influence of surface dynamics on the subsurface solution. Additionally, modified advection-diffusion-dispersion and novel temperature energy equations are implemented in each domain to respectively enhance the conservative solute transport simulation and enable heat transfer modelling.</p>
      <p id="d2e192">Both surface and subsurface partial differential equations are discretized using the Finite Volume Method (FVM) in space and the Finite Difference Method (FDM) in time (Schulze and Thorenz, 2014).</p>
<sec id="Ch1.S2.SS1.SSS1">
  <label>2.1.1</label><title>Surface domain</title>
      <p id="d2e203">darcyInterTransportFoam models the surface flow as a transient, immiscible, two-phase flow using the VOF interface capturing approach. This method separates the two phases (i.e., air and water) by a continuous, free interface, whose location and shape are determined as a property of the phase fraction field, <inline-formula><mml:math id="M2" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">α</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> (–) (Schulze and Thorenz, 2015). Such deformation of the interface allows us to account for the actual flow dynamics in the surface domain, which in turn leads to a correct estimate of the flow, solute and heat exchanges across the sediment-water interface.</p>
</sec>
<sec id="Ch1.S2.SS1.SSSx1" specific-use="unnumbered">
  <title>Turbulent Two-Phase Flow</title>
      <p id="d2e224">As commonly assumed for free-surface fluids, the surface flow is additionally considered to be incompressible (Young et al., 2010). Consequently, there is no need for equations of state to relate the thermodynamic variables (Versteeg and Malalasekera, 2007) and the two-phase flow is adequately governed by the continuity equation (Eq. 1), the Navier-Stokes equations (Eq. 2) and the <inline-formula><mml:math id="M3" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">α</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> transport equation (Eq. 6).</p>
      <p id="d2e238">The VOF method solves the surface flow dynamics considering the two immiscible phases as one fluid. The resulting single-phase is assumed to be Newtonian and incompressible, according to the physical properties of both surface phases. As a result, the continuity equation can be simplified to:

              <disp-formula id="Ch1.E1" content-type="numbered"><label>1</label><mml:math id="M4" display="block"><mml:mrow><mml:mi mathvariant="normal">∇</mml:mi><mml:mo>⋅</mml:mo><mml:msub><mml:mi>U</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mn mathvariant="normal">0</mml:mn><mml:mo>,</mml:mo></mml:mrow></mml:math></disp-formula>

            and the momentum equation to:

              <disp-formula id="Ch1.E2" content-type="numbered"><label>2</label><mml:math id="M5" display="block"><mml:mtable rowspacing="0.2ex" class="split" displaystyle="true" columnalign="right left"><mml:mtr><mml:mtd/><mml:mtd><mml:mrow><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo>∂</mml:mo><mml:msub><mml:mi mathvariant="italic">ρ</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:msub><mml:mi>U</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mrow><mml:mo>∂</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>+</mml:mo><mml:mi mathvariant="normal">∇</mml:mi><mml:mo>⋅</mml:mo><mml:mfenced open="(" close=")"><mml:mrow><mml:msub><mml:mi mathvariant="italic">ρ</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:msub><mml:mi>U</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:msub><mml:mi>U</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:mfenced></mml:mrow></mml:mtd></mml:mtr><mml:mtr><mml:mtd/><mml:mtd><mml:mrow><mml:mspace width="1em" linebreak="nobreak"/><mml:mo>-</mml:mo><mml:mi mathvariant="normal">∇</mml:mi><mml:mo>⋅</mml:mo><mml:munder><mml:munder class="underbrace"><mml:mrow><mml:mfenced close="]" open="["><mml:mrow><mml:msub><mml:mi mathvariant="italic">μ</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mfenced close=")" open="("><mml:mrow><mml:mi mathvariant="normal">∇</mml:mi><mml:msub><mml:mi>U</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo>+</mml:mo><mml:msup><mml:mfenced close=")" open="("><mml:mrow><mml:mi mathvariant="normal">∇</mml:mi><mml:msub><mml:mi>U</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>j</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:mfenced><mml:mi>T</mml:mi></mml:msup></mml:mrow></mml:mfenced></mml:mrow></mml:mfenced></mml:mrow><mml:mo mathvariant="normal">︸</mml:mo></mml:munder><mml:mrow><mml:msub><mml:mi mathvariant="italic">τ</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mi>j</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:munder></mml:mrow></mml:mtd></mml:mtr><mml:mtr><mml:mtd/><mml:mtd><mml:mrow><mml:mspace width="1em" linebreak="nobreak"/><mml:mo>=</mml:mo><mml:mo>-</mml:mo><mml:mi mathvariant="normal">∇</mml:mi><mml:msub><mml:mi>p</mml:mi><mml:mrow><mml:msub><mml:mi mathvariant="normal">rgh</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:msub><mml:mo>-</mml:mo><mml:mi>g</mml:mi><mml:mo>⋅</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:mi mathvariant="normal">∇</mml:mi><mml:msub><mml:mi mathvariant="italic">ρ</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo>+</mml:mo><mml:msub><mml:mi mathvariant="italic">ρ</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:msub><mml:mi>S</mml:mi><mml:mrow><mml:msub><mml:mi>U</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:msub><mml:mo>,</mml:mo></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>

            where <inline-formula><mml:math id="M6" display="inline"><mml:mrow><mml:msub><mml:mi>U</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M7" display="inline"><mml:mrow><mml:msub><mml:mi>U</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>j</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> respectively denote the single-phase velocity field in the <inline-formula><mml:math id="M8" display="inline"><mml:mi>x</mml:mi></mml:math></inline-formula> and <inline-formula><mml:math id="M9" display="inline"><mml:mi>y</mml:mi></mml:math></inline-formula> directions (m s<sup>−1</sup>), <inline-formula><mml:math id="M11" display="inline"><mml:mi>t</mml:mi></mml:math></inline-formula> is the time (s), <inline-formula><mml:math id="M12" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">ρ</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M13" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">μ</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> are respectively the single-phase density (kg m<inline-formula><mml:math id="M14" display="inline"><mml:mrow><mml:msup><mml:mi/><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">3</mml:mn></mml:mrow></mml:msup><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula> and dynamic viscosity fields (N m<sup>−2</sup>), <inline-formula><mml:math id="M16" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">τ</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mi>j</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> is the deviatoric viscous stress tensor field (N m<sup>−2</sup>), <inline-formula><mml:math id="M18" display="inline"><mml:mrow><mml:msub><mml:mi>p</mml:mi><mml:mrow><mml:msub><mml:mi mathvariant="normal">rgh</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> is the modified pressure field (Pa) obtained by subtracting the hydrostatic pressure to the static pressure, <inline-formula><mml:math id="M19" display="inline"><mml:mi>g</mml:mi></mml:math></inline-formula> is the gravitational acceleration vector (m s<inline-formula><mml:math id="M20" display="inline"><mml:mrow><mml:msup><mml:mi/><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">2</mml:mn></mml:mrow></mml:msup><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula>, <inline-formula><mml:math id="M21" display="inline"><mml:mrow><mml:msub><mml:mi>x</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> is the cell position vector field (m) and <inline-formula><mml:math id="M22" display="inline"><mml:mrow><mml:msub><mml:mi>S</mml:mi><mml:mrow><mml:msub><mml:mi>U</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> accounts for any source/sink term field (m s<sup>−1</sup>). <inline-formula><mml:math id="M24" display="inline"><mml:mrow><mml:msub><mml:mi>p</mml:mi><mml:mrow><mml:msub><mml:mi mathvariant="normal">rgh</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> enables to avoid potential steep pressure gradients caused by hydrostatic effects as well as simplifying the definition of pressure BCs (Rusche, 2003).</p>
      <p id="d2e750">The single-phase parameters <inline-formula><mml:math id="M25" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">ρ</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M26" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">μ</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> are calculated by weighted averaging of the physical properties of both surface fluids based on <inline-formula><mml:math id="M27" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">α</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>:

                  <disp-formula specific-use="gather" content-type="numbered"><mml:math id="M28" display="block"><mml:mtable displaystyle="true"><mml:mlabeledtr id="Ch1.E3"><mml:mtd><mml:mtext>3</mml:mtext></mml:mtd><mml:mtd><mml:mrow><mml:mstyle class="stylechange" displaystyle="true"/><mml:msub><mml:mi mathvariant="italic">ρ</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:msub><mml:mi mathvariant="italic">α</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:msub><mml:mi mathvariant="italic">ρ</mml:mi><mml:mrow><mml:msub><mml:mi mathvariant="normal">w</mml:mi><mml:mi mathvariant="normal">sur</mml:mi></mml:msub></mml:mrow></mml:msub><mml:mo>+</mml:mo><mml:mfenced close=")" open="("><mml:mrow><mml:mn mathvariant="normal">1</mml:mn><mml:mo>-</mml:mo><mml:msub><mml:mi mathvariant="italic">α</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:mrow></mml:mfenced><mml:msub><mml:mi mathvariant="italic">ρ</mml:mi><mml:mrow><mml:msub><mml:mi mathvariant="normal">a</mml:mi><mml:mi mathvariant="normal">sur</mml:mi></mml:msub></mml:mrow></mml:msub><mml:mo>,</mml:mo></mml:mrow></mml:mtd></mml:mlabeledtr><mml:mlabeledtr id="Ch1.E4"><mml:mtd><mml:mtext>4</mml:mtext></mml:mtd><mml:mtd><mml:mrow><mml:mstyle class="stylechange" displaystyle="true"/><mml:msub><mml:mi mathvariant="italic">μ</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:msub><mml:mi mathvariant="italic">α</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:msub><mml:mi mathvariant="italic">μ</mml:mi><mml:mrow><mml:msub><mml:mi mathvariant="normal">w</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:msub><mml:mo>+</mml:mo><mml:mfenced close=")" open="("><mml:mrow><mml:mn mathvariant="normal">1</mml:mn><mml:mo>-</mml:mo><mml:msub><mml:mi mathvariant="italic">α</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:mrow></mml:mfenced><mml:msub><mml:mi mathvariant="italic">μ</mml:mi><mml:mrow><mml:msub><mml:mi mathvariant="normal">a</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:msub><mml:mo>,</mml:mo></mml:mrow></mml:mtd></mml:mlabeledtr></mml:mtable></mml:math></disp-formula>

            where <inline-formula><mml:math id="M29" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">ρ</mml:mi><mml:mrow><mml:msub><mml:mi mathvariant="normal">w</mml:mi><mml:mi mathvariant="normal">sur</mml:mi></mml:msub></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M30" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">ρ</mml:mi><mml:mrow><mml:msub><mml:mi mathvariant="normal">a</mml:mi><mml:mi mathvariant="normal">sur</mml:mi></mml:msub></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> are respectively the densities of the surface water and the air (kg m<sup>−3</sup>) and <inline-formula><mml:math id="M32" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">μ</mml:mi><mml:mrow><mml:msub><mml:mi mathvariant="normal">w</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M33" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">μ</mml:mi><mml:mrow><mml:msub><mml:mi mathvariant="normal">a</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> represent the surface water and air dynamic viscosity fields (N m<sup>−2</sup>). The latter properties result from:

              <disp-formula id="Ch1.E5" content-type="numbered"><label>5</label><mml:math id="M35" display="block"><mml:mrow><mml:msub><mml:mi mathvariant="italic">μ</mml:mi><mml:mrow><mml:msub><mml:mi>p</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:msub><mml:mi mathvariant="italic">μ</mml:mi><mml:mrow><mml:msub><mml:mi mathvariant="normal">phys</mml:mi><mml:mrow><mml:msub><mml:mi>p</mml:mi><mml:mi mathvariant="normal">sur</mml:mi></mml:msub></mml:mrow></mml:msub></mml:mrow></mml:msub><mml:mo>+</mml:mo><mml:msub><mml:mi mathvariant="italic">μ</mml:mi><mml:mrow><mml:mi mathvariant="normal">turb</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo>,</mml:mo></mml:mrow></mml:math></disp-formula>

            where <inline-formula><mml:math id="M36" display="inline"><mml:mi>p</mml:mi></mml:math></inline-formula> is the subscript for the respective surface phase, w (water) or a (air), and <inline-formula><mml:math id="M37" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">μ</mml:mi><mml:mrow><mml:msub><mml:mi mathvariant="normal">phys</mml:mi><mml:mrow><mml:msub><mml:mi>p</mml:mi><mml:mi mathvariant="normal">sur</mml:mi></mml:msub></mml:mrow></mml:msub></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M38" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">μ</mml:mi><mml:mrow><mml:mi mathvariant="normal">turb</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> are respectively the physical and turbulent dynamic viscosities (N m<sup>−2</sup>). The <inline-formula><mml:math id="M40" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">μ</mml:mi><mml:mrow><mml:mi mathvariant="normal">turb</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> field is computed by the selected turbulence model. As most OpenFOAM solvers, darcyInterTransportFoam allows to choose among different Reynolds-Averaged Navier-Stokes (RANS), Large Eddy Simulation (LES) and hybrid RANS-LES Detached Eddy Simulation (DES) models to simulate the turbulent hydrodynamics. For the test case in this study, the widely applied <inline-formula><mml:math id="M41" display="inline"><mml:mi>k</mml:mi></mml:math></inline-formula>-<inline-formula><mml:math id="M42" display="inline"><mml:mi mathvariant="italic">ω</mml:mi></mml:math></inline-formula> SST (Shear Stress Transport) RANS model (Menter, 1994) was chosen to resolve the different scales of turbulence.</p>
      <p id="d2e1156">An advanced transport equation is used to accurately determine the distribution of <inline-formula><mml:math id="M43" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">α</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> through the surface domain and, therefore, the position of the free surface. This is achieved by introducing an additional convective term into the standard <inline-formula><mml:math id="M44" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">α</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> transport equation that “compresses” the free surface (Berberović et al., 2009), resulting in a sharper interface resolution which ultimately enables proper conservation of <inline-formula><mml:math id="M45" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">α</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> throughout the simulation domain (Weller, 2002):

              <disp-formula id="Ch1.E6" content-type="numbered"><label>6</label><mml:math id="M46" display="block"><mml:mrow><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo>∂</mml:mo><mml:msub><mml:mi mathvariant="italic">α</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:mrow><mml:mrow><mml:mo>∂</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>+</mml:mo><mml:mi mathvariant="normal">∇</mml:mi><mml:mo>⋅</mml:mo><mml:mfenced close=")" open="("><mml:mrow><mml:msub><mml:mi mathvariant="italic">α</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:msub><mml:mi>U</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:mfenced><mml:mo>+</mml:mo><mml:munder><mml:munder class="underbrace"><mml:mrow><mml:mi mathvariant="normal">∇</mml:mi><mml:mo>⋅</mml:mo><mml:mo>[</mml:mo><mml:mo>(</mml:mo><mml:mn mathvariant="normal">1</mml:mn><mml:mo>-</mml:mo><mml:msub><mml:mi mathvariant="italic">α</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:mo>)</mml:mo><mml:msub><mml:mi mathvariant="italic">α</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:msub><mml:mi>U</mml:mi><mml:mrow><mml:mi mathvariant="normal">r</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo>]</mml:mo></mml:mrow><mml:mo mathvariant="normal">︸</mml:mo></mml:munder><mml:mtext>Compression term</mml:mtext></mml:munder><mml:mo>=</mml:mo><mml:mn mathvariant="normal">0</mml:mn><mml:mo>,</mml:mo></mml:mrow></mml:math></disp-formula>

            where <inline-formula><mml:math id="M47" display="inline"><mml:mrow><mml:msub><mml:mi>U</mml:mi><mml:mrow><mml:mi mathvariant="normal">r</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:msub><mml:mi>U</mml:mi><mml:mrow><mml:msub><mml:mi mathvariant="normal">w</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:msub><mml:mo>-</mml:mo><mml:msub><mml:mi>U</mml:mi><mml:mrow><mml:msub><mml:mi mathvariant="normal">a</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> is the relative velocity field (m s<sup>−1</sup>) between the two surface phases, known as the compression velocity (Berberović et al., 2009).</p>
      <p id="d2e1349">The resultant <inline-formula><mml:math id="M49" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">α</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> is strictly bounded between 0 (air) and 1 (water) in each computational cell of the surface domain. Any value in between will imply a mixture of both phases. As for the interface, the VOF method estimates its location as a property of <inline-formula><mml:math id="M50" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">α</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> rather than explicitly computing it, being this normally considered to be around <inline-formula><mml:math id="M51" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">α</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:mo>=</mml:mo><mml:mn mathvariant="normal">0.5</mml:mn></mml:mrow></mml:math></inline-formula>.</p>
      <p id="d2e1389">Following the <inline-formula><mml:math id="M52" display="inline"><mml:mrow><mml:msub><mml:mi>U</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula>, <inline-formula><mml:math id="M53" display="inline"><mml:mrow><mml:msub><mml:mi>p</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M54" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">α</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> solutions, the newly implemented fields of surface water depth, <inline-formula><mml:math id="M55" display="inline"><mml:mrow><mml:msub><mml:mi>d</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> (m), piezometric level, <inline-formula><mml:math id="M56" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="normal">piezo</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> (m) and surface hydraulic head, <inline-formula><mml:math id="M57" display="inline"><mml:mrow><mml:msub><mml:mi>h</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> (m), are subsequently calculated according to Bernoulli's equation.</p>
</sec>
<sec id="Ch1.S2.SS1.SSSx2" specific-use="unnumbered">
  <title>Passive Solute Transport</title>
      <p id="d2e1490">The new FCM provides two simulation options for modelling the transport of a conservative solute in the surface domain. The first option solves the one-fluid advection-diffusion equation previously implemented in hyporheicScalarInterFoam, based on the formulation introduced by Teuber (2020). Further details on this approach can be found in Haroun et al. (2010), Nieves-Remacha et al. (2015) and Severin (2017).</p>
      <p id="d2e1493">However, in the new solver the computation of the surface diffusion coefficient field, <inline-formula><mml:math id="M58" display="inline"><mml:mrow><mml:msub><mml:mi>D</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> (m<sup>2</sup> s<sup>−1</sup>), differs from that in hyporheicScalarInterFoam in that it also accounts for the contribution of the physical (or molecular) diffusivity, <inline-formula><mml:math id="M61" display="inline"><mml:mrow><mml:msub><mml:mi>D</mml:mi><mml:mi mathvariant="normal">phys</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> (m<sup>2</sup> s<sup>−1</sup>), to the total diffusivity across the domain, a factor particularly relevant in low-turbulence zones or for fine-scale processes:

              <disp-formula id="Ch1.E7" content-type="numbered"><label>7</label><mml:math id="M64" display="block"><mml:mrow><mml:msub><mml:mi>D</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:msub><mml:mi>D</mml:mi><mml:mi mathvariant="normal">phys</mml:mi></mml:msub><mml:mo>+</mml:mo><mml:mfenced open="" close="}"><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:msub><mml:mi mathvariant="italic">ν</mml:mi><mml:mrow><mml:mi mathvariant="normal">turb</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mrow><mml:msub><mml:mi mathvariant="italic">Sc</mml:mi><mml:mi mathvariant="normal">turb</mml:mi></mml:msub></mml:mrow></mml:mfrac></mml:mstyle></mml:mfenced><mml:msub><mml:mi>D</mml:mi><mml:mrow><mml:mi mathvariant="normal">turb</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo>,</mml:mo></mml:mrow></mml:math></disp-formula>

            where <inline-formula><mml:math id="M65" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">Sc</mml:mi><mml:mi mathvariant="normal">turb</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> is the turbulent Schmidt number (–) and <inline-formula><mml:math id="M66" display="inline"><mml:mrow><mml:msub><mml:mi>D</mml:mi><mml:mrow><mml:mi mathvariant="normal">turb</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> is the turbulent diffusivity, (m<sup>2</sup> s<sup>−1</sup>). Both <inline-formula><mml:math id="M69" display="inline"><mml:mrow><mml:msub><mml:mi>D</mml:mi><mml:mi mathvariant="normal">phys</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M70" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">Sc</mml:mi><mml:mi mathvariant="normal">turb</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> have to be defined by the user. Alternatively, <inline-formula><mml:math id="M71" display="inline"><mml:mrow><mml:msub><mml:mi>D</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> can be specified via a constant value for the whole surface domain, offering a simplified yet practical setup not available in the original solver.</p>
      <p id="d2e1710">The second simulation option is newly implemented and designed to reduce computational costs when the focus is limited to a single simulated phase. Based on the two-phase advection-diffusion equation contained in the standard scalarTransport function object (OpenCFD Ltd., 2023), this approach uses the computed <inline-formula><mml:math id="M72" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">α</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> to delimit the extension of the solute transport simulation within the system. Accordingly, the passive transport of any species is only simulated in those cells whose <inline-formula><mml:math id="M73" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">α</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> is equal to 1, skipping the rest in the computation. The described governing equation has the subsequent form:

              <disp-formula id="Ch1.E8" content-type="numbered"><label>8</label><mml:math id="M74" display="block"><mml:mtable class="split" rowspacing="0.2ex" displaystyle="true" columnalign="right left"><mml:mtr><mml:mtd/><mml:mtd><mml:mrow><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo>∂</mml:mo><mml:msub><mml:mi>C</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mrow><mml:mo>∂</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>+</mml:mo><mml:mi mathvariant="normal">∇</mml:mi><mml:mo>⋅</mml:mo><mml:mfenced open="(" close=")"><mml:mrow><mml:msub><mml:mi mathvariant="italic">α</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:msub><mml:mi>U</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:msub><mml:mi>C</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:mfenced><mml:mo>-</mml:mo><mml:mi mathvariant="normal">∇</mml:mi><mml:mo>⋅</mml:mo><mml:mfenced close=")" open="("><mml:mrow><mml:msub><mml:mi mathvariant="italic">α</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:msub><mml:mi>D</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mi mathvariant="normal">∇</mml:mi><mml:msub><mml:mi>C</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:mfenced></mml:mrow></mml:mtd></mml:mtr><mml:mtr><mml:mtd/><mml:mtd><mml:mrow><mml:mspace width="1em" linebreak="nobreak"/><mml:mo>=</mml:mo><mml:msub><mml:mi mathvariant="italic">α</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:msub><mml:mi>S</mml:mi><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:msub><mml:mo>,</mml:mo></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>

            where <inline-formula><mml:math id="M75" display="inline"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> is the surface concentration field (kg m<sup>−3</sup>) and <inline-formula><mml:math id="M77" display="inline"><mml:mrow><mml:msub><mml:mi>S</mml:mi><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> accounts for any concentration source/sink field (kg m<sup>−3</sup>).</p>
      <p id="d2e1922">The latter approach was the one selected to model the conservative solute transport in the test case presented in this paper.</p>
</sec>
<sec id="Ch1.S2.SS1.SSSx3" specific-use="unnumbered">
  <title>Heat Transfer</title>
      <p id="d2e1931">Analogously to solute transport, darcyInterTransportFoam enables to solve the surface heat transfer through two new simulation approaches. One of these is based on Aryal (2019) and simulates the distribution of temperature in both surface phases using the following energy equation:

              <disp-formula id="Ch1.E9" content-type="numbered"><label>9</label><mml:math id="M79" display="block"><mml:mtable class="split" rowspacing="0.2ex" displaystyle="true" columnalign="right left"><mml:mtr><mml:mtd/><mml:mtd><mml:mrow><mml:mi mathvariant="italic">ρ</mml:mi><mml:msub><mml:mi mathvariant="normal">Cp</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo>∂</mml:mo><mml:msub><mml:mi>T</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mrow><mml:mo>∂</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>+</mml:mo><mml:mi mathvariant="normal">∇</mml:mi><mml:mo>⋅</mml:mo><mml:mfenced open="(" close=")"><mml:mrow><mml:mi mathvariant="italic">ρ</mml:mi><mml:msub><mml:mi mathvariant="normal">Cp</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:msub><mml:mi>U</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:msub><mml:mi>T</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:mfenced></mml:mrow></mml:mtd></mml:mtr><mml:mtr><mml:mtd/><mml:mtd><mml:mrow><mml:mspace width="1em" linebreak="nobreak"/><mml:mo>-</mml:mo><mml:mi mathvariant="normal">∇</mml:mi><mml:mo>⋅</mml:mo><mml:mfenced close=")" open="("><mml:mrow><mml:msub><mml:mi>K</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mi mathvariant="normal">∇</mml:mi><mml:msub><mml:mi>T</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:mfenced><mml:mo>=</mml:mo><mml:mi mathvariant="italic">ρ</mml:mi><mml:msub><mml:mi mathvariant="normal">Cp</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:msub><mml:mi>S</mml:mi><mml:mrow><mml:msub><mml:mi>T</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:msub><mml:mo>,</mml:mo></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>

            where <inline-formula><mml:math id="M80" display="inline"><mml:mi mathvariant="italic">ρ</mml:mi></mml:math></inline-formula> is the density (kg m<sup>−3</sup>), <inline-formula><mml:math id="M82" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="normal">Cp</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> is the surface specific heat capacity field (m<sup>2</sup> s<sup>−2</sup> °C<sup>−1</sup>), <inline-formula><mml:math id="M86" display="inline"><mml:mrow><mml:msub><mml:mi>T</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> is the surface temperature field (°C), <inline-formula><mml:math id="M87" display="inline"><mml:mrow><mml:msub><mml:mi>K</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> is the surface thermal conductivity field (kg m s<sup>−3</sup> °C<sup>−1</sup>) and <inline-formula><mml:math id="M90" display="inline"><mml:mrow><mml:msub><mml:mi>S</mml:mi><mml:mrow><mml:msub><mml:mi>T</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> represents any heat source/sink field (°C). As for <inline-formula><mml:math id="M91" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">ρ</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M92" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">μ</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula>, the <inline-formula><mml:math id="M93" display="inline"><mml:mrow><mml:mi mathvariant="italic">ρ</mml:mi><mml:msub><mml:mi mathvariant="normal">Cp</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> field is computed as a single-phase property by weighted averaging of <inline-formula><mml:math id="M94" display="inline"><mml:mi mathvariant="italic">ρ</mml:mi></mml:math></inline-formula> and Cp of both phases based on <inline-formula><mml:math id="M95" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">α</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>. <inline-formula><mml:math id="M96" display="inline"><mml:mrow><mml:msub><mml:mi>K</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> is likewise evaluated as a function of <inline-formula><mml:math id="M97" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">α</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>, with the thermal conductivity of each surface phase, <inline-formula><mml:math id="M98" display="inline"><mml:mrow><mml:msub><mml:mi>K</mml:mi><mml:mrow><mml:msub><mml:mi>p</mml:mi><mml:mi mathvariant="normal">sur</mml:mi></mml:msub></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> (kg m s<sup>−3</sup> °C<sup>−1</sup>), defined as:

              <disp-formula id="Ch1.E10" content-type="numbered"><label>10</label><mml:math id="M101" display="block"><mml:mrow><mml:msub><mml:mi>K</mml:mi><mml:mrow><mml:msub><mml:mi>p</mml:mi><mml:mi mathvariant="normal">sur</mml:mi></mml:msub></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mspace linebreak="nobreak" width="0.125em"/><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:msub><mml:mi mathvariant="italic">ρ</mml:mi><mml:mrow><mml:msub><mml:mi>p</mml:mi><mml:mi mathvariant="normal">sur</mml:mi></mml:msub></mml:mrow></mml:msub><mml:msub><mml:mi mathvariant="normal">Cp</mml:mi><mml:mrow><mml:msub><mml:mi>p</mml:mi><mml:mi mathvariant="normal">sur</mml:mi></mml:msub></mml:mrow></mml:msub><mml:msub><mml:mi>v</mml:mi><mml:mrow><mml:msub><mml:mi mathvariant="normal">phys</mml:mi><mml:mrow><mml:msub><mml:mi>p</mml:mi><mml:mi mathvariant="normal">sur</mml:mi></mml:msub></mml:mrow></mml:msub></mml:mrow></mml:msub></mml:mrow><mml:mrow><mml:msub><mml:mi mathvariant="italic">Pr</mml:mi><mml:mrow><mml:msub><mml:mi>p</mml:mi><mml:mi mathvariant="normal">sur</mml:mi></mml:msub></mml:mrow></mml:msub></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>,</mml:mo></mml:mrow></mml:math></disp-formula>

            where <inline-formula><mml:math id="M102" display="inline"><mml:mrow><mml:msub><mml:mi>v</mml:mi><mml:mrow><mml:msub><mml:mi mathvariant="normal">phys</mml:mi><mml:mrow><mml:msub><mml:mi>p</mml:mi><mml:mi mathvariant="normal">sur</mml:mi></mml:msub></mml:mrow></mml:msub></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula>, <inline-formula><mml:math id="M103" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="normal">Cp</mml:mi><mml:mrow><mml:msub><mml:mi>p</mml:mi><mml:mi mathvariant="normal">sur</mml:mi></mml:msub></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula>, <inline-formula><mml:math id="M104" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">Pr</mml:mi><mml:mrow><mml:msub><mml:mi>p</mml:mi><mml:mi mathvariant="normal">sur</mml:mi></mml:msub></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> denote, respectively, the physical kinematic viscosity (m<sup>2</sup> s<sup>−1</sup>), the specific heat capacity (m<sup>2</sup> s<sup>−2</sup> °C<sup>−1</sup>) and the Prandtl number (–) of either the air or water phase.</p>
      <p id="d2e2531">The second simulation approach restricts the computation of heat transfer to a single surface phase, thereby reducing computational demands. Similarly to solute transport, this is done based on the <inline-formula><mml:math id="M110" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">α</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> solution. As such, the transfer of heat is skipped in all those computational cells whose <inline-formula><mml:math id="M111" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">α</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> differs from 1. The resulting energy equation has the form of:

              <disp-formula id="Ch1.E11" content-type="numbered"><label>11</label><mml:math id="M112" display="block"><mml:mtable class="split" rowspacing="0.2ex" displaystyle="true" columnalign="right left"><mml:mtr><mml:mtd/><mml:mtd><mml:mrow><mml:msub><mml:mi mathvariant="italic">ρ</mml:mi><mml:mrow><mml:msub><mml:mi mathvariant="normal">w</mml:mi><mml:mi mathvariant="normal">sur</mml:mi></mml:msub></mml:mrow></mml:msub><mml:msub><mml:mi mathvariant="normal">Cp</mml:mi><mml:mrow><mml:msub><mml:mi mathvariant="normal">w</mml:mi><mml:mi mathvariant="normal">sur</mml:mi></mml:msub></mml:mrow></mml:msub><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo>∂</mml:mo><mml:msub><mml:mi>T</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mrow><mml:mo>∂</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>+</mml:mo><mml:mi mathvariant="normal">∇</mml:mi><mml:mo>⋅</mml:mo><mml:mfenced close=")" open="("><mml:mrow><mml:msub><mml:mi mathvariant="italic">ρ</mml:mi><mml:mrow><mml:msub><mml:mi mathvariant="normal">w</mml:mi><mml:mi mathvariant="normal">sur</mml:mi></mml:msub></mml:mrow></mml:msub><mml:msub><mml:mi mathvariant="normal">Cp</mml:mi><mml:mrow><mml:msub><mml:mi mathvariant="normal">w</mml:mi><mml:mi mathvariant="normal">sur</mml:mi></mml:msub></mml:mrow></mml:msub><mml:msub><mml:mi mathvariant="italic">α</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:msub><mml:mi>U</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:msub><mml:mi>T</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:mfenced></mml:mrow></mml:mtd></mml:mtr><mml:mtr><mml:mtd/><mml:mtd><mml:mrow><mml:mspace linebreak="nobreak" width="1em"/><mml:mo>-</mml:mo><mml:mi mathvariant="normal">∇</mml:mi><mml:mo>⋅</mml:mo><mml:mfenced close=")" open="("><mml:mrow><mml:msub><mml:mi>K</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mi mathvariant="normal">∇</mml:mi><mml:msub><mml:mi>T</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:mfenced><mml:mo>=</mml:mo><mml:msub><mml:mi mathvariant="italic">ρ</mml:mi><mml:mrow><mml:msub><mml:mi mathvariant="normal">w</mml:mi><mml:mi mathvariant="normal">sur</mml:mi></mml:msub></mml:mrow></mml:msub><mml:msub><mml:mi mathvariant="normal">Cp</mml:mi><mml:mrow><mml:msub><mml:mi mathvariant="normal">w</mml:mi><mml:mi mathvariant="normal">sur</mml:mi></mml:msub></mml:mrow></mml:msub><mml:msub><mml:mi mathvariant="italic">α</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:msub><mml:mi>S</mml:mi><mml:mrow><mml:msub><mml:mi>T</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:msub><mml:mo>,</mml:mo></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>

            As occurred with solute transport, this latter simulation option was chosen to solve the temperature dynamics and exchanges produced in the implemented test case.</p>
</sec>
<sec id="Ch1.S2.SS1.SSS2">
  <label>2.1.2</label><title>Subsurface domain</title>
      <p id="d2e2739">The introduced solver version assumes the subsurface domain to remain fully saturated, regardless of temporal variations in hydraulic head. Accordingly, groundwater flow is simulated under steady-state conditions, with the solution depending on the transient surface hydrodynamics transferred to the subsurface across the domain interface and on the selected BCs. Subsurface flowpaths, as well as solute and heat processes, are driven by the resulting saturated hydraulic head gradients within the porous medium.</p>
      <p id="d2e2742">On the other hand, in contrast to the prior solver version, darcyInterTransportFoam defines the subsurface geological parameters, namely, porosity, <inline-formula><mml:math id="M113" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">θ</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> (–), hydraulic conductivity, <inline-formula><mml:math id="M114" display="inline"><mml:mrow><mml:msub><mml:mi>K</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mi>j</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> (m s<sup>−1</sup>), and longitudinal and transverse dispersivities, <inline-formula><mml:math id="M116" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">α</mml:mi><mml:mrow><mml:mi mathvariant="normal">L</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M117" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">α</mml:mi><mml:mrow><mml:mi mathvariant="normal">T</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> (m), as 3D scalar and tensor fields. This novel feature allows to extend the applicability of the code to actual alluvial aquifers commonly characterized by heterogeneous <inline-formula><mml:math id="M118" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">θ</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>, <inline-formula><mml:math id="M119" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">α</mml:mi><mml:mrow><mml:mi mathvariant="normal">L</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M120" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">α</mml:mi><mml:mrow><mml:mi mathvariant="normal">T</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> scalar fields as well as heterogeneous and anisotropic <inline-formula><mml:math id="M121" display="inline"><mml:mrow><mml:msub><mml:mi>K</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mi>j</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> tensor fields.</p>
</sec>
<sec id="Ch1.S2.SS1.SSSx4" specific-use="unnumbered">
  <title>Saturated Groundwater Flow</title>
      <p id="d2e2878">Considering the fully saturated assumption, the 3D groundwater flow is described by the following continuity equation for a heterogeneous, anisotropic aquifer:

              <disp-formula id="Ch1.E12" content-type="numbered"><label>12</label><mml:math id="M122" display="block"><mml:mrow><mml:mi mathvariant="normal">∇</mml:mi><mml:mo>⋅</mml:mo><mml:mfenced open="(" close=")"><mml:mrow><mml:mo>-</mml:mo><mml:msub><mml:mi>K</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mi>j</mml:mi></mml:mrow></mml:msub><mml:mi mathvariant="normal">∇</mml:mi><mml:msub><mml:mi>h</mml:mi><mml:mrow><mml:mi mathvariant="normal">sub</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:mfenced><mml:mo>=</mml:mo><mml:mn mathvariant="normal">0</mml:mn><mml:mo>,</mml:mo></mml:mrow></mml:math></disp-formula>

            where <inline-formula><mml:math id="M123" display="inline"><mml:mrow><mml:msub><mml:mi>h</mml:mi><mml:mrow><mml:mi mathvariant="normal">sub</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> is the subsurface hydraulic head field (m). Mass conservation is thus solved based on <inline-formula><mml:math id="M124" display="inline"><mml:mrow><mml:msub><mml:mi>h</mml:mi><mml:mrow><mml:mi mathvariant="normal">sub</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula>, in contrast to the modified pressure field, <inline-formula><mml:math id="M125" display="inline"><mml:mrow><mml:msub><mml:mi>p</mml:mi><mml:mrow><mml:msub><mml:mi mathvariant="normal">rgh</mml:mi><mml:mrow><mml:mi mathvariant="normal">sub</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> (Pa), used in hyporheicScalarInterFoam. While both variables are closely related, they are not identical, as <inline-formula><mml:math id="M126" display="inline"><mml:mrow><mml:msub><mml:mi>p</mml:mi><mml:mrow><mml:msub><mml:mi mathvariant="normal">rgh</mml:mi><mml:mrow><mml:mi mathvariant="normal">sub</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> does not include the velocity head:

              <disp-formula id="Ch1.E13" content-type="numbered"><label>13</label><mml:math id="M127" display="block"><mml:mrow><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:msub><mml:mi>p</mml:mi><mml:mrow><mml:msub><mml:mi mathvariant="normal">rgh</mml:mi><mml:mrow><mml:mi mathvariant="normal">sub</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:msub></mml:mrow><mml:mrow><mml:msub><mml:mi mathvariant="italic">ρ</mml:mi><mml:mrow><mml:msub><mml:mi mathvariant="normal">w</mml:mi><mml:mi mathvariant="normal">sub</mml:mi></mml:msub></mml:mrow></mml:msub><mml:mi>g</mml:mi></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>=</mml:mo><mml:msub><mml:mi>h</mml:mi><mml:mrow><mml:mi mathvariant="normal">sub</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo>-</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:msubsup><mml:mi>q</mml:mi><mml:mi>i</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msubsup></mml:mrow><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mfenced close="|" open="|"><mml:mi>g</mml:mi></mml:mfenced><mml:msubsup><mml:mi mathvariant="italic">θ</mml:mi><mml:mi>i</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msubsup></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>,</mml:mo></mml:mrow></mml:math></disp-formula>

            where <inline-formula><mml:math id="M128" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">ρ</mml:mi><mml:mrow><mml:msub><mml:mi mathvariant="normal">w</mml:mi><mml:mi mathvariant="normal">sub</mml:mi></mml:msub></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> is the groundwater density (kg m<sup>−3</sup>) and <inline-formula><mml:math id="M130" display="inline"><mml:mrow><mml:msub><mml:mi>q</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> is the specific discharge field (m s<sup>−1</sup>). Consequently, <inline-formula><mml:math id="M132" display="inline"><mml:mrow><mml:msub><mml:mi>p</mml:mi><mml:mrow><mml:msub><mml:mi mathvariant="normal">rgh</mml:mi><mml:mrow><mml:mi mathvariant="normal">sub</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> approximates <inline-formula><mml:math id="M133" display="inline"><mml:mrow><mml:msub><mml:mi>h</mml:mi><mml:mrow><mml:mi mathvariant="normal">sub</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> in the subsurface, as kinetic energy effects are typically negligible due to the low flow velocities in porous media. However, solving the groundwater flow based on <inline-formula><mml:math id="M134" display="inline"><mml:mrow><mml:msub><mml:mi>h</mml:mi><mml:mrow><mml:mi mathvariant="normal">sub</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> allows for the incorporation of the surface water velocity effects at the SW-GW interface, thereby accounting for their potential influence on the overall subsurface dynamics. This contribution was omitted in the original version of the solver.</p>
      <p id="d2e3171">Following the head solution, <inline-formula><mml:math id="M135" display="inline"><mml:mrow><mml:msub><mml:mi>q</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> (Haitjema and Anderson, 2016) is sequentially computed using Darcy's law:

              <disp-formula id="Ch1.E14" content-type="numbered"><label>14</label><mml:math id="M136" display="block"><mml:mrow><mml:msub><mml:mi>q</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:mo>=</mml:mo><mml:mo>-</mml:mo><mml:msub><mml:mi>K</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mi>j</mml:mi></mml:mrow></mml:msub><mml:mi mathvariant="normal">∇</mml:mi><mml:msub><mml:mi>h</mml:mi><mml:mrow><mml:mi mathvariant="normal">sub</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo>,</mml:mo></mml:mrow></mml:math></disp-formula>

            Darcy's law is generally applicable to slow-moving groundwater flows characterized by Reynolds numbers smaller than 10 (Bear, 1972), a condition that is satisfied in most natural groundwater environments. The application of Darcy's law to non-Darcy-flow in porous media may lead to an overestimation of the groundwater flow rates.</p>
</sec>
<sec id="Ch1.S2.SS1.SSSx5" specific-use="unnumbered">
  <title>Passive Solute Transport</title>
      <p id="d2e3228">The conservative solute transport in the porous medium is modelled using the same advection-diffusion-dispersion equation as in hyporheicScalarInterFoam. Nevertheless, in darcyInterTransportFoam the hydrodynamic dispersion coefficient tensor field, <inline-formula><mml:math id="M137" display="inline"><mml:mrow><mml:msub><mml:mi>D</mml:mi><mml:mrow><mml:mi mathvariant="normal">sub</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi><mml:mi>j</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> (m<sup>2</sup> s<sup>−1</sup>), can either be specified as spacially uniform and constant through a single value or calculated as the sum of the effective molecular diffusion coefficient field, <inline-formula><mml:math id="M140" display="inline"><mml:mrow><mml:msub><mml:mi>D</mml:mi><mml:mrow><mml:mi mathvariant="normal">diff</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi><mml:mi>j</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> (m<sup>2</sup> s<sup>−1</sup>), and the mechanical dispersion coefficient field, <inline-formula><mml:math id="M143" display="inline"><mml:mrow><mml:msub><mml:mi>D</mml:mi><mml:mrow><mml:mi mathvariant="normal">disp</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi><mml:mi>j</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> (m<sup>2</sup> s<sup>−1</sup>). This choice between two alternatives represents an improvement over its predecessor, where only the second option was available, and aims to provide greater flexibility to the user in solute transport simulations. Moreover, unlike in hyporheicScalarInterFoam, the <inline-formula><mml:math id="M146" display="inline"><mml:mrow><mml:msub><mml:mi>D</mml:mi><mml:mrow><mml:mi mathvariant="normal">diff</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi><mml:mi>j</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> tensor corrects for tortuosity the user-defined molecular diffusion coefficient, <inline-formula><mml:math id="M147" display="inline"><mml:mrow><mml:msub><mml:mi>D</mml:mi><mml:mi mathvariant="normal">m</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>, based on Boudreau (1996), ensuring a more accurate representation of solute transport in complex subsurface environments:

              <disp-formula id="Ch1.E15" content-type="numbered"><label>15</label><mml:math id="M148" display="block"><mml:mrow><mml:msub><mml:mi>D</mml:mi><mml:mrow><mml:mi mathvariant="normal">diff</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi><mml:mi>j</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:msub><mml:mi>D</mml:mi><mml:mi mathvariant="normal">m</mml:mi></mml:msub></mml:mrow><mml:mrow><mml:mn mathvariant="normal">1</mml:mn><mml:mo>-</mml:mo><mml:mn mathvariant="normal">2</mml:mn><mml:mi>ln⁡</mml:mi><mml:msub><mml:mi mathvariant="italic">θ</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:mrow></mml:mfrac></mml:mstyle><mml:msub><mml:mi>J</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mi>j</mml:mi></mml:mrow></mml:msub><mml:mo>,</mml:mo></mml:mrow></mml:math></disp-formula>

            where <inline-formula><mml:math id="M149" display="inline"><mml:mrow><mml:msub><mml:mi>J</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mi>j</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> is the tensor of ones. The <inline-formula><mml:math id="M150" display="inline"><mml:mrow><mml:msub><mml:mi>D</mml:mi><mml:mrow><mml:mi mathvariant="normal">disp</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi><mml:mi>j</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> tensor follows the same formulation as in the original solver, with the default setting <inline-formula><mml:math id="M151" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">α</mml:mi><mml:mrow><mml:mi mathvariant="normal">T</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mn mathvariant="normal">0.1</mml:mn><mml:mo>⋅</mml:mo><mml:msub><mml:mi mathvariant="italic">α</mml:mi><mml:mrow><mml:mi mathvariant="normal">L</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> (Cardenas et al., 2008) applied when no field is specified for <inline-formula><mml:math id="M152" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">α</mml:mi><mml:mrow><mml:mi mathvariant="normal">T</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> at the start of the simulation.</p>
</sec>
<sec id="Ch1.S2.SS1.SSSx6" specific-use="unnumbered">
  <title>Heat Transfer</title>
      <p id="d2e3518">The new FCM solves the transport of heat at the subsurface domain assuming local thermodynamic equilibrium in the ground. Thus, both the groundwater and the porous medium (<inline-formula><mml:math id="M153" display="inline"><mml:mrow><mml:msub><mml:mi>T</mml:mi><mml:mrow><mml:msub><mml:mi mathvariant="normal">w</mml:mi><mml:mi mathvariant="normal">sub</mml:mi></mml:msub></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M154" display="inline"><mml:mrow><mml:msub><mml:mi>T</mml:mi><mml:mi mathvariant="normal">pm</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>, respectively) are considered to be at the same temperature <inline-formula><mml:math id="M155" display="inline"><mml:mrow><mml:msub><mml:mi>T</mml:mi><mml:mrow><mml:msub><mml:mi mathvariant="normal">w</mml:mi><mml:mi mathvariant="normal">sub</mml:mi></mml:msub></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:msub><mml:mi>T</mml:mi><mml:mi mathvariant="normal">pm</mml:mi></mml:msub><mml:mo>=</mml:mo><mml:msub><mml:mi>T</mml:mi><mml:mi mathvariant="normal">sub</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>. This assumption simplifies the definition of the heat transfer model to a single energy equation (Rubin, 1974), derived by combining the energy balance equations of both subsurface phases (i.e., water and porous medium):

              <disp-formula id="Ch1.E16" content-type="numbered"><label>16</label><mml:math id="M156" display="block"><mml:mtable class="split" rowspacing="0.2ex" displaystyle="true" columnalign="right left"><mml:mtr><mml:mtd/><mml:mtd><mml:mrow><mml:mi mathvariant="italic">ρ</mml:mi><mml:msub><mml:mi mathvariant="normal">Cp</mml:mi><mml:mrow><mml:mi mathvariant="normal">sub</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo>∂</mml:mo><mml:msub><mml:mi>T</mml:mi><mml:mrow><mml:mi mathvariant="normal">sub</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mrow><mml:mo>∂</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>+</mml:mo><mml:mi mathvariant="normal">∇</mml:mi><mml:mo>⋅</mml:mo><mml:mfenced open="(" close=")"><mml:mrow><mml:msub><mml:mi mathvariant="italic">ρ</mml:mi><mml:mrow><mml:msub><mml:mi mathvariant="normal">w</mml:mi><mml:mi mathvariant="normal">sub</mml:mi></mml:msub></mml:mrow></mml:msub><mml:msub><mml:mi mathvariant="normal">Cp</mml:mi><mml:mrow><mml:msub><mml:mi mathvariant="normal">w</mml:mi><mml:mi mathvariant="normal">sub</mml:mi></mml:msub></mml:mrow></mml:msub><mml:msub><mml:mi>U</mml:mi><mml:mrow><mml:mi mathvariant="normal">sub</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:msub><mml:mi>T</mml:mi><mml:mrow><mml:mi mathvariant="normal">sub</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:mfenced></mml:mrow></mml:mtd></mml:mtr><mml:mtr><mml:mtd/><mml:mtd><mml:mrow><mml:mspace linebreak="nobreak" width="1em"/><mml:mo>-</mml:mo><mml:mi mathvariant="normal">∇</mml:mi><mml:mo>⋅</mml:mo><mml:mo>(</mml:mo><mml:msub><mml:mi>K</mml:mi><mml:mrow><mml:mi mathvariant="normal">sub</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mi mathvariant="normal">∇</mml:mi><mml:msub><mml:mi>T</mml:mi><mml:mrow><mml:mi mathvariant="normal">sub</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo>)</mml:mo><mml:mo>=</mml:mo><mml:mi mathvariant="italic">ρ</mml:mi><mml:msub><mml:mi mathvariant="normal">Cp</mml:mi><mml:mrow><mml:mi mathvariant="normal">sub</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:msub><mml:mi>S</mml:mi><mml:mrow><mml:msub><mml:mi>T</mml:mi><mml:mrow><mml:mi mathvariant="normal">sub</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:msub><mml:mo>,</mml:mo></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>

            where <inline-formula><mml:math id="M157" display="inline"><mml:mrow><mml:msub><mml:mi>T</mml:mi><mml:mrow><mml:mi mathvariant="normal">sub</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> is the subsurface temperature field (°C), <inline-formula><mml:math id="M158" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="normal">Cp</mml:mi><mml:mrow><mml:msub><mml:mi mathvariant="normal">w</mml:mi><mml:mi mathvariant="normal">sub</mml:mi></mml:msub></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> is the groundwater specific heat capacity (m<sup>2</sup> s<sup>−2</sup> °C<sup>−1</sup>), <inline-formula><mml:math id="M162" display="inline"><mml:mrow><mml:msub><mml:mi>K</mml:mi><mml:mrow><mml:mi mathvariant="normal">sub</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> is the subsurface thermal conductivity field (kg m s<sup>−3</sup> °C<sup>−1</sup>) and <inline-formula><mml:math id="M165" display="inline"><mml:mrow><mml:msub><mml:mi>S</mml:mi><mml:mrow><mml:msub><mml:mi>T</mml:mi><mml:mrow><mml:mi mathvariant="normal">sub</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> represents any heat source/sink field (°C). The overall specific heat capacity field, <inline-formula><mml:math id="M166" display="inline"><mml:mrow><mml:mi mathvariant="italic">ρ</mml:mi><mml:msub><mml:mi mathvariant="normal">Cp</mml:mi><mml:mrow><mml:mi mathvariant="normal">sub</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula>, is computed by weighted averaging of <inline-formula><mml:math id="M167" display="inline"><mml:mi mathvariant="italic">ρ</mml:mi></mml:math></inline-formula> and Cp of the groundwater and the porous medium based on <inline-formula><mml:math id="M168" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">θ</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>. <inline-formula><mml:math id="M169" display="inline"><mml:mrow><mml:msub><mml:mi>K</mml:mi><mml:mrow><mml:mi mathvariant="normal">sub</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> is also averaged in the same way, with the thermal conductivity of groundwater, <inline-formula><mml:math id="M170" display="inline"><mml:mrow><mml:msub><mml:mi>K</mml:mi><mml:mrow><mml:msub><mml:mi mathvariant="normal">w</mml:mi><mml:mi mathvariant="normal">sub</mml:mi></mml:msub></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> (kg m s<sup>−3</sup> °C<sup>−1</sup>), calculated analogously to <inline-formula><mml:math id="M173" display="inline"><mml:mrow><mml:msub><mml:mi>K</mml:mi><mml:mrow><mml:msub><mml:mi>p</mml:mi><mml:mi mathvariant="normal">sur</mml:mi></mml:msub></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> and the thermal conductivity of the porous medium, <inline-formula><mml:math id="M174" display="inline"><mml:mrow><mml:msub><mml:mi>K</mml:mi><mml:mi mathvariant="normal">pm</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> (kg m s<sup>−3</sup> °C<sup>−1</sup>), prescribed by the user as a single constant value. By default, the variables used to compute <inline-formula><mml:math id="M177" display="inline"><mml:mrow><mml:msub><mml:mi>K</mml:mi><mml:mrow><mml:msub><mml:mi mathvariant="normal">w</mml:mi><mml:mi mathvariant="normal">sub</mml:mi></mml:msub></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> are assigned the values of their surface counterparts, although user-defined values can also be specified.</p>
</sec>
</sec>
<sec id="Ch1.S2.SS2">
  <label>2.2</label><title>Coupling modes between the two domains</title>
      <p id="d2e4025">Although darcyInterTransportFoam has been initially designed to run in sequential iterative mode (i.e., two-way coupling), the solver also supports application in asynchronous linking mode (i.e., one-way coupling). Both coupling approaches were previously available in hyporheicScalarInterFoam.</p>
      <p id="d2e4028">Nevertheless, minor updates have been introduced to the sequential iterative coupling scheme to enhance the data transfer between domains, thereby enforcing flux consistency across the interface. These include the code reorganization to improve readability and comprehension, the reformulation of the data mapping approach and the definition of new options for selecting the processes to simulate. Further details on the updates implemented in the two-way coupling scheme can be found in Sect. 2.3.1.</p>
      <p id="d2e4031">The governing surface and subsurface flow equations are solved sequentially and iteratively within each time step in the updated fully-coupled scheme, as follows:</p>
      <p id="d2e4034">In the first iteration, <inline-formula><mml:math id="M178" display="inline"><mml:mi>k</mml:mi></mml:math></inline-formula>, the surface hydrodynamic fields, namely <inline-formula><mml:math id="M179" display="inline"><mml:mrow><mml:msubsup><mml:mi>U</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow><mml:mi>k</mml:mi></mml:msubsup></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M180" display="inline"><mml:mrow><mml:msubsup><mml:mi>p</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow><mml:mi>k</mml:mi></mml:msubsup></mml:mrow></mml:math></inline-formula>, are first solved using the Navier-Stokes equations to next infer from them <inline-formula><mml:math id="M181" display="inline"><mml:mrow><mml:msubsup><mml:mi>h</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow><mml:mi>k</mml:mi></mml:msubsup></mml:mrow></mml:math></inline-formula>.</p>
      <p id="d2e4099">The estimated <inline-formula><mml:math id="M182" display="inline"><mml:mrow><mml:msubsup><mml:mi>h</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow><mml:mi>k</mml:mi></mml:msubsup></mml:mrow></mml:math></inline-formula> at the bottom boundary of the surface domain is transferred to the top boundary of the subsurface domain (Fig. 2) according to:

            <disp-formula id="Ch1.E17" content-type="numbered"><label>17</label><mml:math id="M183" display="block"><mml:mrow><mml:mfenced close="" open="{"><mml:mtable class="array" columnalign="left left left"><mml:mtr><mml:mtd><mml:mrow><mml:mi mathvariant="normal">∇</mml:mi><mml:msubsup><mml:mi>h</mml:mi><mml:mrow><mml:mi mathvariant="normal">sub</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow><mml:mi>k</mml:mi></mml:msubsup><mml:mo>⋅</mml:mo><mml:msub><mml:mi>n</mml:mi><mml:mrow><mml:mi mathvariant="normal">sub</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mn mathvariant="normal">0</mml:mn></mml:mrow></mml:mtd><mml:mtd><mml:mo>⇒</mml:mo></mml:mtd><mml:mtd><mml:mrow><mml:msubsup><mml:mi>U</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow><mml:mi>k</mml:mi></mml:msubsup><mml:mo>⋅</mml:mo><mml:msub><mml:mi>n</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo>&lt;</mml:mo><mml:mn mathvariant="normal">0</mml:mn><mml:mspace width="0.25em" linebreak="nobreak"/><mml:mo>(</mml:mo><mml:mtext>upwelling flux</mml:mtext><mml:mo>)</mml:mo></mml:mrow></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mrow><mml:msubsup><mml:mi>h</mml:mi><mml:mrow><mml:mi mathvariant="normal">sub</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow><mml:mi>k</mml:mi></mml:msubsup><mml:mo>=</mml:mo><mml:msubsup><mml:mi>h</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow><mml:mi>k</mml:mi></mml:msubsup></mml:mrow></mml:mtd><mml:mtd><mml:mo>⇒</mml:mo></mml:mtd><mml:mtd><mml:mrow><mml:msubsup><mml:mi>U</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow><mml:mi>k</mml:mi></mml:msubsup><mml:mo>⋅</mml:mo><mml:msub><mml:mi>n</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo>&gt;</mml:mo><mml:mn mathvariant="normal">0</mml:mn><mml:mspace linebreak="nobreak" width="0.25em"/><mml:mo>(</mml:mo><mml:mtext>downwelling flux</mml:mtext><mml:mo>)</mml:mo></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:mfenced></mml:mrow></mml:math></disp-formula>

          where <inline-formula><mml:math id="M184" display="inline"><mml:mrow><mml:msub><mml:mi>n</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M185" display="inline"><mml:mrow><mml:msub><mml:mi>n</mml:mi><mml:mrow><mml:mi mathvariant="normal">sub</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> are, respectively, the outward-pointing unit normal vector field of the surface bottom and subsurface top boundaries.</p>

      <fig id="F2" specific-use="star"><label>Figure 2</label><caption><p id="d2e4306">Two-way data mapping at the interface patch of the surface and subsurface meshes for the full coupling of both domains.</p></caption>
          <graphic xlink:href="https://gmd.copernicus.org/articles/19/3923/2026/gmd-19-3923-2026-f02.png"/>

        </fig>

      <p id="d2e4315">The groundwater flow is then simulated using the saturated porous media continuity equation, which results in an estimated <inline-formula><mml:math id="M186" display="inline"><mml:mrow><mml:msubsup><mml:mi>h</mml:mi><mml:mrow><mml:mi mathvariant="normal">sub</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow><mml:mi>k</mml:mi></mml:msubsup></mml:mrow></mml:math></inline-formula> from which an estimated <inline-formula><mml:math id="M187" display="inline"><mml:mrow><mml:msubsup><mml:mi>q</mml:mi><mml:mi>i</mml:mi><mml:mi>k</mml:mi></mml:msubsup></mml:mrow></mml:math></inline-formula> is ultimately inferred.</p>
      <p id="d2e4349">The resulting <inline-formula><mml:math id="M188" display="inline"><mml:mrow><mml:msubsup><mml:mi>q</mml:mi><mml:mi>i</mml:mi><mml:mi>k</mml:mi></mml:msubsup></mml:mrow></mml:math></inline-formula> at the upper boundary of the subsurface domain is subsequently mapped to the bottom boundary of the surface domain (Fig. 2). Accordingly, in the next iteration, <inline-formula><mml:math id="M189" display="inline"><mml:mrow><mml:mi>k</mml:mi><mml:mo>+</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:math></inline-formula>, the surface bottom BC for <inline-formula><mml:math id="M190" display="inline"><mml:mrow><mml:msubsup><mml:mi>U</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow><mml:mrow><mml:mi>k</mml:mi><mml:mo>+</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msubsup></mml:mrow></mml:math></inline-formula> will depend on whether the flux is downwelling or upwelling as per:

            <disp-formula id="Ch1.E18" content-type="numbered"><label>18</label><mml:math id="M191" display="block"><mml:mrow><mml:mfenced close="" open="{"><mml:mtable class="array" columnalign="left left left"><mml:mtr><mml:mtd><mml:mrow><mml:msubsup><mml:mi>U</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow><mml:mrow><mml:mi>k</mml:mi><mml:mo>+</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msubsup><mml:mo>=</mml:mo><mml:msubsup><mml:mi>q</mml:mi><mml:mi>i</mml:mi><mml:mi>k</mml:mi></mml:msubsup></mml:mrow></mml:mtd><mml:mtd><mml:mo>⇒</mml:mo></mml:mtd><mml:mtd><mml:mrow><mml:msubsup><mml:mi>q</mml:mi><mml:mi>i</mml:mi><mml:mi>k</mml:mi></mml:msubsup><mml:mo>⋅</mml:mo><mml:msub><mml:mi>n</mml:mi><mml:mrow><mml:mi mathvariant="normal">sub</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo>&gt;</mml:mo><mml:mn mathvariant="normal">0</mml:mn><mml:mspace linebreak="nobreak" width="0.25em"/><mml:mo>(</mml:mo><mml:mtext>upwelling flux</mml:mtext><mml:mo>)</mml:mo></mml:mrow></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mrow><mml:mi mathvariant="normal">∇</mml:mi><mml:msubsup><mml:mi>U</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow><mml:mrow><mml:mi>k</mml:mi><mml:mo>+</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msubsup><mml:mo>⋅</mml:mo><mml:msub><mml:mi>n</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mn mathvariant="normal">0</mml:mn></mml:mrow></mml:mtd><mml:mtd><mml:mo>⇒</mml:mo></mml:mtd><mml:mtd><mml:mrow><mml:msubsup><mml:mi>q</mml:mi><mml:mi>i</mml:mi><mml:mi>k</mml:mi></mml:msubsup><mml:mo>⋅</mml:mo><mml:msub><mml:mi>n</mml:mi><mml:mrow><mml:mi mathvariant="normal">sub</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo>&lt;</mml:mo><mml:mn mathvariant="normal">0</mml:mn><mml:mspace width="0.25em" linebreak="nobreak"/><mml:mo>(</mml:mo><mml:mtext>downwelling flux</mml:mtext><mml:mo>)</mml:mo></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:mfenced></mml:mrow></mml:math></disp-formula>

          <inline-formula><mml:math id="M192" display="inline"><mml:mrow><mml:msubsup><mml:mi>p</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow><mml:mrow><mml:mi>k</mml:mi><mml:mo>+</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msubsup></mml:mrow></mml:math></inline-formula> will be inferred from <inline-formula><mml:math id="M193" display="inline"><mml:mrow><mml:msubsup><mml:mi>U</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow><mml:mrow><mml:mi>k</mml:mi><mml:mo>+</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msubsup></mml:mrow></mml:math></inline-formula> through a fixed flux BC. The iterative process will proceed until convergence (Fig. 1).</p>
      <p id="d2e4594">Once the flow field is solved, a similar iterative scheme is applied to both the solute transport and the heat transfer processes. Depending on the direction of the flux at the interface patch, the BC defined for each domain can be either a fixed value or a fixed flux (Fig. 2). Thereby, for each iteration within a time step, the potential temperature BCs at the subsurface top boundary will be:

            <disp-formula id="Ch1.E19" content-type="numbered"><label>19</label><mml:math id="M194" display="block"><mml:mrow><mml:mfenced close="" open="{"><mml:mtable class="array" columnalign="left left left"><mml:mtr><mml:mtd><mml:mrow><mml:mi mathvariant="normal">∇</mml:mi><mml:msubsup><mml:mi>T</mml:mi><mml:mrow><mml:mi mathvariant="normal">sub</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow><mml:mi>k</mml:mi></mml:msubsup><mml:mo>⋅</mml:mo><mml:msub><mml:mi>n</mml:mi><mml:mrow><mml:mi mathvariant="normal">sub</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mn mathvariant="normal">0</mml:mn></mml:mrow></mml:mtd><mml:mtd><mml:mo>⇒</mml:mo></mml:mtd><mml:mtd><mml:mrow><mml:msubsup><mml:mi>U</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow><mml:mi>k</mml:mi></mml:msubsup><mml:mo>⋅</mml:mo><mml:msub><mml:mi>n</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo>&lt;</mml:mo><mml:mn mathvariant="normal">0</mml:mn><mml:mspace width="0.25em" linebreak="nobreak"/><mml:mo>(</mml:mo><mml:mtext>upwelling flux</mml:mtext><mml:mo>)</mml:mo></mml:mrow></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mrow><mml:msubsup><mml:mi>T</mml:mi><mml:mrow><mml:mi mathvariant="normal">sub</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow><mml:mi>k</mml:mi></mml:msubsup><mml:mo>=</mml:mo><mml:msubsup><mml:mi>T</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow><mml:mi>k</mml:mi></mml:msubsup></mml:mrow></mml:mtd><mml:mtd><mml:mo>⇒</mml:mo></mml:mtd><mml:mtd><mml:mrow><mml:msubsup><mml:mi>U</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow><mml:mi>k</mml:mi></mml:msubsup><mml:mo>⋅</mml:mo><mml:msub><mml:mi>n</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo>&gt;</mml:mo><mml:mn mathvariant="normal">0</mml:mn><mml:mspace width="0.25em" linebreak="nobreak"/><mml:mo>(</mml:mo><mml:mtext>downwelling flux</mml:mtext><mml:mo>)</mml:mo></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:mfenced></mml:mrow></mml:math></disp-formula>

          whereas at the surface bottom patch:

            <disp-formula id="Ch1.E20" content-type="numbered"><label>20</label><mml:math id="M195" display="block"><mml:mrow><mml:mfenced close="" open="{"><mml:mtable class="array" columnalign="left left left"><mml:mtr><mml:mtd><mml:mrow><mml:msubsup><mml:mi>T</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow><mml:mrow><mml:mi>k</mml:mi><mml:mo>+</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msubsup><mml:mo>=</mml:mo><mml:msubsup><mml:mi>T</mml:mi><mml:mrow><mml:mi mathvariant="normal">sub</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow><mml:mi>k</mml:mi></mml:msubsup></mml:mrow></mml:mtd><mml:mtd><mml:mo>⇒</mml:mo></mml:mtd><mml:mtd><mml:mrow><mml:msubsup><mml:mi>q</mml:mi><mml:mi>i</mml:mi><mml:mi>k</mml:mi></mml:msubsup><mml:mo>⋅</mml:mo><mml:msub><mml:mi>n</mml:mi><mml:mrow><mml:mi mathvariant="normal">sub</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo>&gt;</mml:mo><mml:mn mathvariant="normal">0</mml:mn><mml:mspace width="0.25em" linebreak="nobreak"/><mml:mo>(</mml:mo><mml:mtext>upwelling flux</mml:mtext><mml:mo>)</mml:mo></mml:mrow></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mrow><mml:mi mathvariant="normal">∇</mml:mi><mml:msubsup><mml:mi>T</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow><mml:mrow><mml:mi>k</mml:mi><mml:mo>+</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msubsup><mml:mo>⋅</mml:mo><mml:msub><mml:mi>n</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mn mathvariant="normal">0</mml:mn></mml:mrow></mml:mtd><mml:mtd><mml:mo>⇒</mml:mo></mml:mtd><mml:mtd><mml:mrow><mml:msubsup><mml:mi>q</mml:mi><mml:mi>i</mml:mi><mml:mi>k</mml:mi></mml:msubsup><mml:mo>⋅</mml:mo><mml:msub><mml:mi>n</mml:mi><mml:mrow><mml:mi mathvariant="normal">sub</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo>&lt;</mml:mo><mml:mn mathvariant="normal">0</mml:mn><mml:mspace width="0.25em" linebreak="nobreak"/><mml:mo>(</mml:mo><mml:mtext>downwelling flux</mml:mtext><mml:mo>)</mml:mo></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:mfenced></mml:mrow></mml:math></disp-formula>

          As happened to the flow solution (Eqs. 17 and 18), the iterations will continue until the convergence is reached within each time step. The same procedure will be employed by solute transport.</p>
</sec>
<sec id="Ch1.S2.SS3">
  <label>2.3</label><title>Code novelties</title>
      <p id="d2e4909">A brief description of the code novelties used in the subsequent test case is provided in the following subsections, while the full set of solver updates and simulation add-ons is indicated in Table 1 and described in detail in the Supplement to this article.</p>

<table-wrap id="T1" specific-use="star"><label>Table 1</label><caption><p id="d2e4915">Overview of the modelling limitations of hyporheicScalarInterFoam and the corresponding updates implemented in darcyInterTransportFoam, indicating whether each limitation is addressed, the nature of the update and whether the functionality is exercised in the test case. An extended description of each limitation and its associated update is provided in Sects. S2, S3 and S4, with the corresponding point number indicated in brackets in column 1. The marks in columns 3 and 5 denote the status of each entry: a tick for “yes”, a double dash for “partial” and a cross for “no”.</p></caption><oasis:table frame="topbot"><oasis:tgroup cols="5">
     <oasis:colspec colnum="1" colname="col1" align="left"/>
     <oasis:colspec colnum="2" colname="col2" align="justify" colwidth="6cm"/>
     <oasis:colspec colnum="3" colname="col3" align="justify" colwidth="3.5cm"/>
     <oasis:colspec colnum="4" colname="col4" align="justify" colwidth="2.5cm"/>
     <oasis:colspec colnum="5" colname="col5" align="justify" colwidth="2cm"/>
     <oasis:thead>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1"/>
         <oasis:entry colname="col2" align="left">Modelling limitations of <italic>hyporheicScalarInterFoam</italic></oasis:entry>
         <oasis:entry colname="col3" align="left">Resolved in <italic>darcyInterTransportFoam</italic></oasis:entry>
         <oasis:entry colname="col4" align="left">Type of update (New/Improved functionality)</oasis:entry>
         <oasis:entry colname="col5" align="left">Applied in the test case</oasis:entry>
       </oasis:row>
     </oasis:thead>
     <oasis:tbody>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1">1 (S2-1)</oasis:entry>
         <oasis:entry colname="col2" align="left">No direct calculation of hydrological variables (e.g., <inline-formula><mml:math id="M196" display="inline"><mml:mrow><mml:msub><mml:mi>h</mml:mi><mml:mrow><mml:mi mathvariant="normal">sub</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula>, <inline-formula><mml:math id="M197" display="inline"><mml:mrow><mml:msub><mml:mi>q</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>)</oasis:entry>
         <oasis:entry colname="col3" align="left"><inline-formula><mml:math id="M198" display="inline"><mml:mo>✓</mml:mo></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col4" align="left">New</oasis:entry>
         <oasis:entry colname="col5" align="left"><inline-formula><mml:math id="M199" display="inline"><mml:mo>✓</mml:mo></mml:math></inline-formula></oasis:entry>
       </oasis:row>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1">2 (S2-2)</oasis:entry>
         <oasis:entry colname="col2" align="left">Absence of surface variable (e.g., <inline-formula><mml:math id="M200" display="inline"><mml:mrow><mml:msub><mml:mi>d</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula>, <inline-formula><mml:math id="M201" display="inline"><mml:mrow><mml:msub><mml:mi>h</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula>) clipping based on <inline-formula><mml:math id="M202" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">α</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> thresholds</oasis:entry>
         <oasis:entry colname="col3" align="left"><inline-formula><mml:math id="M203" display="inline"><mml:mo>✓</mml:mo></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col4" align="left">New</oasis:entry>
         <oasis:entry colname="col5" align="left"><inline-formula><mml:math id="M204" display="inline"><mml:mo>×</mml:mo></mml:math></inline-formula></oasis:entry>
       </oasis:row>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1">3 (S2-3)</oasis:entry>
         <oasis:entry colname="col2" align="left">Inability to specify a free-surface reference (hRef) in the surface domain</oasis:entry>
         <oasis:entry colname="col3" align="left"><inline-formula><mml:math id="M205" display="inline"><mml:mo>✓</mml:mo></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col4" align="left">New</oasis:entry>
         <oasis:entry colname="col5" align="left"><inline-formula><mml:math id="M206" display="inline"><mml:mo>✓</mml:mo></mml:math></inline-formula></oasis:entry>
       </oasis:row>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1">4 (S2-4)</oasis:entry>
         <oasis:entry colname="col2" align="left">The body force required for compatibility with periodic BCs is only included in the computation of <inline-formula><mml:math id="M207" display="inline"><mml:mrow><mml:msub><mml:mi>q</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3" align="left"><inline-formula><mml:math id="M208" display="inline"><mml:mo>✓</mml:mo></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col4" align="left">Improved</oasis:entry>
         <oasis:entry colname="col5" align="left"><inline-formula><mml:math id="M209" display="inline"><mml:mo>×</mml:mo></mml:math></inline-formula></oasis:entry>
       </oasis:row>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1">5 (S2-5)</oasis:entry>
         <oasis:entry colname="col2" align="left">Subsurface properties, such as <inline-formula><mml:math id="M210" display="inline"><mml:mrow><mml:msub><mml:mi>K</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mi>j</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula>, <inline-formula><mml:math id="M211" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">θ</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>, <inline-formula><mml:math id="M212" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">α</mml:mi><mml:mrow><mml:mi mathvariant="normal">L</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M213" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">α</mml:mi><mml:mrow><mml:mi mathvariant="normal">T</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula>, must be defined as homogeneous and isotropic across the entire domain</oasis:entry>
         <oasis:entry colname="col3" align="left"><inline-formula><mml:math id="M214" display="inline"><mml:mo>✓</mml:mo></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col4" align="left">Improved</oasis:entry>
         <oasis:entry colname="col5" align="left"><inline-formula><mml:math id="M215" display="inline"><mml:mo>✓</mml:mo></mml:math></inline-formula></oasis:entry>
       </oasis:row>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1">6 (S2-6)</oasis:entry>
         <oasis:entry colname="col2" align="left">Full hydraulic connectivity along the sediment–water interface for the simulation to run</oasis:entry>
         <oasis:entry colname="col3" align="left"><inline-formula><mml:math id="M216" display="inline"><mml:mo>✓</mml:mo></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col4" align="left">New</oasis:entry>
         <oasis:entry colname="col5" align="left"><inline-formula><mml:math id="M217" display="inline"><mml:mo>✓</mml:mo></mml:math></inline-formula></oasis:entry>
       </oasis:row>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1">7 (–)</oasis:entry>
         <oasis:entry colname="col2" align="left">Simulation of groundwater table fluctuations and the effects of unsaturated flow</oasis:entry>
         <oasis:entry colname="col3" align="left"><inline-formula><mml:math id="M218" display="inline"><mml:mo>×</mml:mo></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col4" align="left">–</oasis:entry>
         <oasis:entry colname="col5" align="left"><inline-formula><mml:math id="M219" display="inline"><mml:mo>×</mml:mo></mml:math></inline-formula></oasis:entry>
       </oasis:row>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1">8 (S2-7)</oasis:entry>
         <oasis:entry colname="col2" align="left">Uncoupled domain–process selection scheme</oasis:entry>
         <oasis:entry colname="col3" align="left"><inline-formula><mml:math id="M220" display="inline"><mml:mo>✓</mml:mo></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col4" align="left">Improved</oasis:entry>
         <oasis:entry colname="col5" align="left"><inline-formula><mml:math id="M221" display="inline"><mml:mo>✓</mml:mo></mml:math></inline-formula></oasis:entry>
       </oasis:row>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1">9 (S2-8)</oasis:entry>
         <oasis:entry colname="col2" align="left">Passive solute transport must be solved in both water and air phases within the surface domain</oasis:entry>
         <oasis:entry colname="col3" align="left"><inline-formula><mml:math id="M222" display="inline"><mml:mo>✓</mml:mo></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col4" align="left">Improved</oasis:entry>
         <oasis:entry colname="col5" align="left"><inline-formula><mml:math id="M223" display="inline"><mml:mo>✓</mml:mo></mml:math></inline-formula></oasis:entry>
       </oasis:row>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1">10 (–)</oasis:entry>
         <oasis:entry colname="col2" align="left">Reactive solute transport simulation of key biogeochemical processes</oasis:entry>
         <oasis:entry colname="col3" align="left"><inline-formula><mml:math id="M224" display="inline"><mml:mo>×</mml:mo></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col4" align="left">–</oasis:entry>
         <oasis:entry colname="col5" align="left"><inline-formula><mml:math id="M225" display="inline"><mml:mo>×</mml:mo></mml:math></inline-formula></oasis:entry>
       </oasis:row>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1">11 (S2-9)</oasis:entry>
         <oasis:entry colname="col2" align="left">Heat transport is not supported in either domain</oasis:entry>
         <oasis:entry colname="col3" align="left"><inline-formula><mml:math id="M226" display="inline"><mml:mo>✓</mml:mo></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col4" align="left">New</oasis:entry>
         <oasis:entry colname="col5" align="left"><inline-formula><mml:math id="M227" display="inline"><mml:mo>✓</mml:mo></mml:math></inline-formula></oasis:entry>
       </oasis:row>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1">12 (S2-10)</oasis:entry>
         <oasis:entry colname="col2" align="left">Domain coupling relies on interpolation at the interface</oasis:entry>
         <oasis:entry colname="col3" align="left"><inline-formula><mml:math id="M228" display="inline"><mml:mo>✓</mml:mo></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col4" align="left">Improved</oasis:entry>
         <oasis:entry colname="col5" align="left"><inline-formula><mml:math id="M229" display="inline"><mml:mo>✓</mml:mo></mml:math></inline-formula></oasis:entry>
       </oasis:row>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1">13 (S2-11)</oasis:entry>
         <oasis:entry colname="col2" align="left">Convergence between surface and subsurface solutions is controlled by a fixed number of iterations</oasis:entry>
         <oasis:entry colname="col3" align="left"><inline-formula><mml:math id="M230" display="inline"><mml:mo>✓</mml:mo></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col4" align="left">Improved</oasis:entry>
         <oasis:entry colname="col5" align="left"><inline-formula><mml:math id="M231" display="inline"><mml:mo>✓</mml:mo></mml:math></inline-formula></oasis:entry>
       </oasis:row>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1">14 (S2-12)</oasis:entry>
         <oasis:entry colname="col2" align="left">Lack of alternative interface BCs for one-way coupling mode</oasis:entry>
         <oasis:entry colname="col3" align="left"><inline-formula><mml:math id="M232" display="inline"><mml:mo>✓</mml:mo></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col4" align="left">New</oasis:entry>
         <oasis:entry colname="col5" align="left"><inline-formula><mml:math id="M233" display="inline"><mml:mo>×</mml:mo></mml:math></inline-formula></oasis:entry>
       </oasis:row>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1">15 (S2-13)</oasis:entry>
         <oasis:entry colname="col2" align="left">Data field reinitialization must be handled externally through pre-processing</oasis:entry>
         <oasis:entry colname="col3" align="left"><inline-formula><mml:math id="M234" display="inline"><mml:mo>✓</mml:mo></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col4" align="left">New</oasis:entry>
         <oasis:entry colname="col5" align="left"><inline-formula><mml:math id="M235" display="inline"><mml:mo>×</mml:mo></mml:math></inline-formula></oasis:entry>
       </oasis:row>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1">16 (S3)</oasis:entry>
         <oasis:entry colname="col2" align="left">Solver add-ons: pre- and post-processing utilities</oasis:entry>
         <oasis:entry colname="col3" align="left"><inline-formula><mml:math id="M236" display="inline"><mml:mo>✓</mml:mo></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col4" align="left">New</oasis:entry>
         <oasis:entry colname="col5" align="left"><inline-formula><mml:math id="M237" display="inline"><mml:mo>✓</mml:mo></mml:math></inline-formula></oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">17 (S4)</oasis:entry>
         <oasis:entry colname="col2" align="left">Solver add-ons: custom surface and subsurface boundary conditions</oasis:entry>
         <oasis:entry colname="col3" align="left"><inline-formula><mml:math id="M238" display="inline"><mml:mo>✓</mml:mo></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col4" align="left">New</oasis:entry>
         <oasis:entry colname="col5" align="left">- -</oasis:entry>
       </oasis:row>
     </oasis:tbody>
   </oasis:tgroup></oasis:table></table-wrap>

<sec id="Ch1.S2.SS3.SSS1">
  <label>2.3.1</label><title>Solver updates</title>
      <p id="d2e5578">The updates implemented in the solver comprise modifications to the structure and organization of the code (Sect. S1), along with improvements to existing functionalities and the addition of new ones (Sect. S2).</p>
      <p id="d2e5581">The solver updates described below include the names of all the cited parameters in the code (i.e., files, variables, fields, dictionaries, etc.), along with the corresponding point numbers (in brackets) referring to their extended descriptions in Sect. S2:</p>
      <p id="d2e5584">Computation of additional hydrology-related fields, such as the specific discharge (<inline-formula><mml:math id="M239" display="inline"><mml:mi>q</mml:mi></mml:math></inline-formula>), the water depth (dSur, dSub) or hydraulic head (hSur, hSub). Accordingly, the groundwater flow is solved based on hSub, in contrast to the modified pressure field (pTildeSub) used in the original model (1).</p>
      <p id="d2e5594">Definition of a reference for the free-surface (hRef) in the surface domain. This optional feature allows to specify a water height at the surface outlet patch that, combined with the appropriate BCs for pressure and velocity, enables the flow to leave the simulation domain freely (3).</p>
      <p id="d2e5598">Possibility to set the porosity (theta) and the longitudinal and transverse dispersivities (alpha_L and alpha_T) as heterogeneous via scalar fields, as well as the hydraulic conductivity (<inline-formula><mml:math id="M240" display="inline"><mml:mi>K</mml:mi></mml:math></inline-formula>) as heterogeneous and anisotropic through a tensor field. This non-uniform field definition provides full flexibility in assigning the previous parameters throughout the subsurface domain, enabling, e.g., the setup of layers with diverse geologic characteristics, a heterogeneous parameter distribution or the definition of impermeable zones (5).</p>
      <p id="d2e5608">Simplification of the scheme used to select the processes to be solved by the model. As a result, the choice of the flow, the solute transport as well as the heat transfer simulation can be made jointly for both surface and subsurface domains (flow, soluteTransport and heatTransfer options in the simulationProperties dictionary, respectively). Furthermore, as an alternative to this joint selection, the simulation of each process can be also separately specified for each domain. The different process selection options as well as their corresponding implications can be checked in Fig. 1 (7).</p>
      <p id="d2e5611">Full reformulation of the passive solute transport module, including both the code organization and the modelling approach. Regarding the later, both the surface diffusion and the subsurface hydrodynamic dispersion fields (DSur and DSub, respectively) can be either computed through new or partially modified equations or specified as uniform throughout the domain via a single value (constDSur or constDSub). Moreover, the transport of conservative solutes (CSur) can be optionally solved in one or two phases at the surface domain (solutePhases). All the solute transport related expressions are gathered within the corresponding header files CSurEqn.H and CSubEqn.H in the surface and subsurface domains. A thorough description of the novel transport equations is provided in Sect. 2.1.1 and 2.1.2 (8).</p>
      <p id="d2e5614">Addition of a heat transfer module for the simulation of the temperature distribution in both surface and subsurface domains. Both the code organization and the modelling scheme of this new module are based on those implemented in its solute transport counterpart. Consequently, two phase-based simulation options (heatPhases) are included in the TSurEqn.H file to simulate the transfer of heat in the surface domain (TSur), whereas the energy equation required to resolve the temperature distribution in the ground (TSub) is contained in TSubEqn.H. Further details about the implemented heat transfer equations can be found in Sect. 2.1.1 and 2.1.2 (9).</p>
      <p id="d2e5617">Modification of two-way data mapping (Sect. 2.2) for a more accurate conveyance of the information between the domains. In this way, the data is no longer interpolated but directly assigned to the matching nodes of both meshes at their respective interface patch. This new method ensures the exact transmission of the solution from one domain to another (hSur, <inline-formula><mml:math id="M241" display="inline"><mml:mi>q</mml:mi></mml:math></inline-formula>, CSur/CSub and TSur/TSub) (10).</p>
      <p id="d2e5627">Reformulation of the convergence check at the SW-GW interface. Rather than relying on a fixed maximum number of correction loops, water and solute flux consistencies are evaluated at each time step by comparing the exchange fluxes predicted from the surface domain with those computed from the groundwater solution. Convergence is considered achieved when both water and solute flux mismatches (couplePhiMaxMismatch and coupleSolutePhiMaxMismatch) fall below the specified tolerances (couplePhiTol and couplePhiSoluteTol) (Fig. 1) (11).</p>
</sec>
<sec id="Ch1.S2.SS3.SSS2">
  <label>2.3.2</label><title>Pre- and post-processing utilities</title>
      <p id="d2e5639">Four new utilities were developed to be used with darcyInterTransportFoam (Sect. S3). Additionally, some of them are also compatible with other OpenFOAM solvers. The complete new set was used to perform pre- and post-processing actions in the implemented test case:</p>
      <p id="d2e5642">checkMeshesMatch: checks whether the number of faces of both meshes and their coordinates match at the interface patch. The fulfilment of both conditions ensures the appropriate fitting of both surface and subsurface meshes. Only applicable to OpenFOAM models consisting of two adjacent simulation meshes.</p>
      <p id="d2e5645">changeZRefMesh: performs two optional actions: (1) translation of the mesh points according to a user-specified reference mesh elevation; and (2) adjustment of hRef to the actual mesh location. Both actions are independent of each other. Applicable to further OpenFOAM models.</p>
      <p id="d2e5648">restoreZRefMesh: initially designed to be used in combination with changeZRefMesh but also applicable on its own. This utility conducts three optional and independent actions: (1) translation of the mesh points according to the meshShiftZ value; (2) reestablishment of the original, user-defined hRef (if previously applied changeZRefMesh); and (3) adjustment of the computed hydrological fields (piezoSur, hSur and hSub) based on meshShiftZ. meshShiftZ can be either previously determined by changeZRefMesh or provided by the user in the constant directory. Applicable beyond darcyInterTransportFoam.</p>
      <p id="d2e5652">transferMeshDecomp: transfers the domain decomposition from one mesh to another through the interface patch of both meshes. A prior decomposition of both domains (decomposePar utility) is required to generate the necessary cellDist and cellDecomposition files for its execution. Furthermore, it optionally overwrites the cellDecomposition file of the reference and/or target mesh once the transfer is done. Only applicable to OpenFOAM models consisting of two adjacent modelling meshes.</p>
</sec>
<sec id="Ch1.S2.SS3.SSS3">
  <label>2.3.3</label><title>Surface and subsurface boundary conditions</title>
      <p id="d2e5664">One new boundary condition for <inline-formula><mml:math id="M242" display="inline"><mml:mrow><mml:msub><mml:mi>U</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> and another two for <inline-formula><mml:math id="M243" display="inline"><mml:mrow><mml:msub><mml:mi>h</mml:mi><mml:mrow><mml:mi mathvariant="normal">sub</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> were implemented along with the new solver (Sect. S4). Analogously to the novel utilities, some of the new BCs are darcyInterTransportFoam-specific while others can also be applied to other OpenFOAM solvers. The two <inline-formula><mml:math id="M244" display="inline"><mml:mrow><mml:msub><mml:mi>h</mml:mi><mml:mrow><mml:mi mathvariant="normal">sub</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> boundary conditions were used in the test case:</p>
      <p id="d2e5715">darcyGradHead: sets at the patch the <inline-formula><mml:math id="M245" display="inline"><mml:mrow><mml:mi mathvariant="normal">∇</mml:mi><mml:msub><mml:mi>h</mml:mi><mml:mrow><mml:mi mathvariant="normal">sub</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> resulting from the defined <inline-formula><mml:math id="M246" display="inline"><mml:mrow><mml:msub><mml:mi>q</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> BC. It is based on the previously developed darcyGradPressure BC (Horgue et al., 2015). Applicable to OpenFOAM models other than darcyInterTransportFoam.</p>
      <p id="d2e5747">surfaceHydrostaticHead: specifies at the inlet, outlet or aquifer (i.e., bottom) patch of the subsurface domain the hydrostatic <inline-formula><mml:math id="M247" display="inline"><mml:mrow><mml:msub><mml:mi>h</mml:mi><mml:mrow><mml:mi mathvariant="normal">sub</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> computed at the equivalent surface boundary. Accordingly, single values will be assigned to the subsurface inlet and outlet patches (<inline-formula><mml:math id="M248" display="inline"><mml:mrow><mml:mo>max⁡</mml:mo><mml:mfenced close=")" open="("><mml:mrow><mml:msub><mml:mi mathvariant="normal">piezo</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:mfenced><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula>, whereas an entire head field will be prescribed to the bottom boundary of the subsurface domain (<inline-formula><mml:math id="M249" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="normal">piezo</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula>). In this early version, its use is restricted to the above-mentioned boundaries. Only applicable to darcyInterTransportFoam.</p>
</sec>
</sec>
</sec>
<sec id="Ch1.S3">
  <label>3</label><title>Test case</title>
      <p id="d2e5814">The performance and capabilities of darcyInterTransportFoam are demonstrated through a 3D test case, where the SW-GW flow, solute transport and heat transfer processes are simulated across a segment of an actual, alluvial river-aquifer system. A small description of the simulation domain, the simulated hydraulic scenario and details of the overall modelling setup are provided below.</p>
<sec id="Ch1.S3.SS1">
  <label>3.1</label><title>Simulation domain</title>
      <p id="d2e5824">To ensure the necessity of fully-coupled modelling for capturing the full dynamics of the system, a field site characterized by high <inline-formula><mml:math id="M250" display="inline"><mml:mrow><mml:msub><mml:mi>K</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mi>j</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> values was selected to conduct the evaluation test case. The simulation domain focuses on a segment of the Emme River near Aeschau in the Emmental region of Switzerland (Fig. A1 in the Appendix). At this location, the river features a coarse gravel bed underlain by quaternary alluvium composed of coarse sandy gravel with a variable proportion of silt (Käser and Hunkeler, 2016; Peel et al., 2022). This geology creates an extremely conductive river-aquifer system (Blau and Muchenberger, 1997; Schilling et al., 2017), with depth-averaged <inline-formula><mml:math id="M251" display="inline"><mml:mrow><mml:msub><mml:mi>K</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mi>j</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> values ranging from <inline-formula><mml:math id="M252" display="inline"><mml:mrow><mml:mn mathvariant="normal">2.3</mml:mn><mml:mo>×</mml:mo><mml:msup><mml:mn mathvariant="normal">10</mml:mn><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">3</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula> to <inline-formula><mml:math id="M253" display="inline"><mml:mrow><mml:mn mathvariant="normal">7</mml:mn><mml:mo>×</mml:mo><mml:msup><mml:mn mathvariant="normal">10</mml:mn><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">3</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula> m s<sup>−1</sup> and <inline-formula><mml:math id="M255" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">θ</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> values between 0.1 and 0.3 (Schilling et al., 2022; Würsten, 1991). The high permeability of the alluvium results in continuous SW-GW interactions across the riverbed (Tang et al., 2018). These exchanges significantly impact the groundwater mixing ratios and travel times, particularly during high-flow events, when the river discharge can account for up to 90 % of the total aquifer recharge (Poffet, 2011; Popp et al., 2021). Together, the described geological and hydraulic characteristics create a highly dynamic river-aquifer system, ideal for testing and evaluating the new fully-coupled SW-GW OpenFOAM model. Further details on the field site characteristics are provided in Käser and Hunkeler (2016) and Schilling et al. (2017).</p>
</sec>
<sec id="Ch1.S3.SS2">
  <label>3.2</label><title>Hydraulic scenario</title>
      <p id="d2e5923">A 8-well abstraction plant (BR1 to BR8) is situated on the extensive floodplain along the river's left bank (Blanc et al., 2024; Schilling et al., 2017, 2022) (Fig. A1). At the end of 2018, two temporary vertical wells (VB1 and VB2) were drilled in the vicinity of this existing wellfield to conduct a major, 1.5-month pumping test (Peel et al., 2022; Popp et al., 2021). Throughout the test, all or part of the water pumped from the two newly installed wells was discharged into the Emme via several pipes (Fig. A2). The mean river temperature during the experiment was 2 °C, while the temperature of the abstracted groundwater averaged 8 °C, coinciding with the mean annual air temperature at the site (Figura et al., 2013). Both surface and subsurface temperatures were obtained from point measurements taken on-site. The resulting plume from the temperature contrast, along with the heat exchange results from previous studies at the site, provides an ideal scenario to test the newly implemented heat transfer module of darcyInterTransportFoam. Consequently, this scenario is selected for the model's test case. Furthermore, although no solute measurements were taken in the river during the pumping test, the solute exchanges are also simulated, assuming similar interaction dynamics as heat across the SW-GW interface.</p>
</sec>
<sec id="Ch1.S3.SS3">
  <label>3.3</label><title>General modelling setup</title>
<sec id="Ch1.S3.SS3.SSS1">
  <label>3.3.1</label><title>Mesh features</title>
      <p id="d2e5941">The surface and subsurface meshes for the test case were generated using blockMesh, one of the mesh generation utilities of OpenFOAM. Accordingly, the resulting meshes consist of 3D, structured, hexahedral blocks defined by either straight or curved edges. To enable full control over the mesh generation process, the blockMeshDict file required for running blockMesh was generated for each mesh using a set of user-defined MATLAB scripts (Pardo-Álvarez, 2026b). These scripts were also used to generate other mesh-related dictionaries (e.g., topoSetDict) and input data files (e.g., setFieldsDict) associated with the resulting structured meshes.</p>

      <fig id="F3" specific-use="star"><label>Figure 3</label><caption><p id="d2e5946">Simulation meshes generated with blockMesh.</p></caption>
            <graphic xlink:href="https://gmd.copernicus.org/articles/19/3923/2026/gmd-19-3923-2026-f03.png"/>

          </fig>

      <p id="d2e5955">A high-resolution (0.25 m) Digital Elevation Model (DEM), acquired on 20 March 2015 using drone-based photogrammetry (Schilling et al., 2017), was used to define the interface boundary of both domains (i.e., the riverbed patch) (Fig. A3). The surface and subsurface meshes are approximately 2.5 and 10 m high, respectively, and both are about 235 m long and 50 m wide. However, rectangular inflow and outflow stretches of around 6.25 and 12.5 m long, respectively, were added to each mesh to prevent potential perturbations caused by the geometric features of the inlet and outlet boundaries. Moreover, the smooth transition between these regular sections and the actual riverbed topography was achieved through approximately 12.5 m long segments. Consequently, the total length of each mesh was increased by around 43.75 m (Fig. A3). The other two dimensions remained unaltered.</p>
      <p id="d2e5959">As for the mesh discretization, a mesh sensitivity study was conducted to determine the optimal resolution for each mesh, leading to the selection of a surface mesh with approximately <inline-formula><mml:math id="M256" display="inline"><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>×</mml:mo><mml:mn mathvariant="normal">106</mml:mn></mml:mrow></mml:math></inline-formula> cells and a subsurface mesh with about <inline-formula><mml:math id="M257" display="inline"><mml:mrow><mml:mn mathvariant="normal">8</mml:mn><mml:mo>×</mml:mo><mml:mn mathvariant="normal">106</mml:mn></mml:mrow></mml:math></inline-formula> elements. Identical cell counts in the longitudinal and transversal directions are imposed for both domains to ensure effective interface node matching and, thus, successful coupling of their solutions.</p>
      <p id="d2e5986">Moreover, the meshes were gradually refined vertically towards the SW-GW interface to capture the complex dynamics across this boundary and satisfy the <inline-formula><mml:math id="M258" display="inline"><mml:mrow><mml:mi>y</mml:mi><mml:mo>+</mml:mo></mml:mrow></mml:math></inline-formula> (dimensionless wall distance) requirement near the riverbed in the surface domain (Fig. 3). In both meshes, the smallest elements are located close to the interface (0.001 m<sup>2</sup> face area), while the largest cells are situated within the air-phase in the surface domain (0.24 m<sup>2</sup>) and at the bottom boundary in the subsurface domain (0.1 m<sup>2</sup>). Especially large element sizes were defined for the surface air-phase, since detailed processes in this region are not of interest for the present study. This phase is only simulated to account for the water level fluctuations.</p>
</sec>
<sec id="Ch1.S3.SS3.SSS2">
  <label>3.3.2</label><title>Model parametrization</title>
      <p id="d2e6034">All fluid parameters were assumed to stay constant over time in agreement with the simulated steady-state flow and transport dynamics. Common values of <inline-formula><mml:math id="M262" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">ν</mml:mi><mml:mrow><mml:msub><mml:mi mathvariant="normal">phys</mml:mi><mml:mi>p</mml:mi></mml:msub></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M263" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">ρ</mml:mi><mml:mi>p</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> at ambient temperature were defined for the air and water (Table A1 in the Appendix). Regarding the solute transport parameters, a <inline-formula><mml:math id="M264" display="inline"><mml:mrow><mml:msub><mml:mi>D</mml:mi><mml:mi mathvariant="normal">phys</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> of <inline-formula><mml:math id="M265" display="inline"><mml:mrow><mml:mn mathvariant="normal">4.2</mml:mn><mml:mo>×</mml:mo><mml:msup><mml:mn mathvariant="normal">10</mml:mn><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">10</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula> m<sup>2</sup> s<sup>−1</sup>, corresponding to fluorescein sodium (NaFl), and a <inline-formula><mml:math id="M268" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">Sc</mml:mi><mml:mi mathvariant="normal">turb</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> of 1 were applied to both surface fluids. <inline-formula><mml:math id="M269" display="inline"><mml:mrow><mml:msub><mml:mi>D</mml:mi><mml:mi mathvariant="normal">m</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> was assumed to be equal to <inline-formula><mml:math id="M270" display="inline"><mml:mrow><mml:msub><mml:mi>D</mml:mi><mml:mi mathvariant="normal">phys</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>. Moreover, heat parameters, such as <inline-formula><mml:math id="M271" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">Pr</mml:mi><mml:mi>p</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>, were inferred from the fluid temperatures specified for each domain. Further details on the fluid properties are provided in Table A1.</p>

      <fig id="F4" specific-use="star"><label>Figure 4</label><caption><p id="d2e6160">Porosity field (<inline-formula><mml:math id="M272" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">θ</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>) of the test case (background image from © Google Maps 2024).</p></caption>
            <graphic xlink:href="https://gmd.copernicus.org/articles/19/3923/2026/gmd-19-3923-2026-f04.jpg"/>

          </fig>

      <p id="d2e6180">Regarding the geological properties, two layers of different homogeneous and isotropic <inline-formula><mml:math id="M273" display="inline"><mml:mrow><mml:msub><mml:mi>K</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mi>j</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M274" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">θ</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> were defined in the subsurface domain (Fig. 4). The upper layer, located at the first 2 m beneath the riverbed, has a <inline-formula><mml:math id="M275" display="inline"><mml:mrow><mml:msub><mml:mi>K</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mi>j</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> of <inline-formula><mml:math id="M276" display="inline"><mml:mrow><mml:mn mathvariant="normal">2.8</mml:mn><mml:mo>×</mml:mo><mml:msup><mml:mn mathvariant="normal">10</mml:mn><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">3</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula> m s<sup>−1</sup> and a <inline-formula><mml:math id="M278" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">θ</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> of 0.41. These values were assigned via a setFieldsDict using a triangulated surface geometry. The rest of the aquifer corresponds to the second layer, whose <inline-formula><mml:math id="M279" display="inline"><mml:mrow><mml:msub><mml:mi>K</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mi>j</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M280" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">θ</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> are <inline-formula><mml:math id="M281" display="inline"><mml:mrow><mml:mn mathvariant="normal">6.4</mml:mn><mml:mo>×</mml:mo><mml:msup><mml:mn mathvariant="normal">10</mml:mn><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">3</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula> m s<sup>−1</sup> and 0.1, respectively. Moreover, eight impermeable regions of different depths (from 0.25 to 1 m) were defined below the surface dry areas (i.e. the riverbanks and several gravel bars) by means of a triangulated surface geometry using the water table height as reference (Fig. 4). Within these regions, the values of <inline-formula><mml:math id="M283" display="inline"><mml:mrow><mml:msub><mml:mi>K</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mi>j</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M284" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">θ</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> are small enough to ensure the flow cannot pass through them. Thereby, <inline-formula><mml:math id="M285" display="inline"><mml:mrow><mml:msub><mml:mi>K</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mi>j</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> is set to 10<sup>−20</sup> m s<sup>−1</sup> and <inline-formula><mml:math id="M288" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">θ</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> to 10<sup>−3</sup>. Additional geological parameters, such as <inline-formula><mml:math id="M290" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">α</mml:mi><mml:mrow><mml:mi mathvariant="normal">L</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M291" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">α</mml:mi><mml:mrow><mml:mi mathvariant="normal">T</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula>, were also prescribed at the aquifer. In this way, a different homogeneous <inline-formula><mml:math id="M292" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">α</mml:mi><mml:mrow><mml:mi mathvariant="normal">L</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> was assigned to each subsurface region. Particularly, <inline-formula><mml:math id="M293" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">α</mml:mi><mml:mrow><mml:mi mathvariant="normal">L</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> of 3 and 5 m were set, respectively, to the upper and lower layers, while a field of 10<sup>−7</sup> m was prescribed to the impervious zones. <inline-formula><mml:math id="M295" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">α</mml:mi><mml:mrow><mml:mi mathvariant="normal">T</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> was approximated by <inline-formula><mml:math id="M296" display="inline"><mml:mrow><mml:mn mathvariant="normal">1</mml:mn><mml:mo>/</mml:mo><mml:mn mathvariant="normal">10</mml:mn></mml:mrow></mml:math></inline-formula> of <inline-formula><mml:math id="M297" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">α</mml:mi><mml:mrow><mml:mi mathvariant="normal">L</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula>. The rest of the ground parameters can be found in Table A1.</p>
</sec>
<sec id="Ch1.S3.SS3.SSS3">
  <label>3.3.3</label><title>Initial and boundary conditions</title>
      <p id="d2e6536">All surface and subsurface fields were initialized with values as close as possible to the expected solution to help the model reach the steady state faster. Some values were obtained from a spin-up run, and thus directly specified in the field data files for the entire simulation domain (Tables A2, A3 and A4), while others were assigned to specific mesh locations through different setFields actions. The latter was the case of the surface fields alpha.water (<inline-formula><mml:math id="M298" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">α</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>), <inline-formula><mml:math id="M299" display="inline"><mml:mi>U</mml:mi></mml:math></inline-formula> (<inline-formula><mml:math id="M300" display="inline"><mml:mrow><mml:msub><mml:mi>U</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula>), <inline-formula><mml:math id="M301" display="inline"><mml:mi>C</mml:mi></mml:math></inline-formula> (<inline-formula><mml:math id="M302" display="inline"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula>) and <inline-formula><mml:math id="M303" display="inline"><mml:mi>T</mml:mi></mml:math></inline-formula> (<inline-formula><mml:math id="M304" display="inline"><mml:mrow><mml:msub><mml:mi>T</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula>).</p>
      <p id="d2e6620">On the other hand, as it happened with the fluid and geologic properties, all the prescribed boundary conditions remained constant during the simulation to represent a steady-state scenario. The inlet of the surface domain is split into two patches, with <inline-formula><mml:math id="M305" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">α</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> prescribed accordingly on each one: water enters the domain through the lower patch (inletWater) via a specified constant discharge (10 m<sup>3</sup> s<sup>−1</sup>), whereas the upper half (inletAir) is reserved for the air flow by means of a total pressure condition. The latter condition is also applied to the top boundary (atmosphere). Additionally, water also flows into the domain through the waterJet patch (0.42 m<sup>3</sup> s<sup>−1</sup>). The water level at the surface outlet (0.25 m) is fixed by combining a hydrostatic pressure condition with a reference free-surface elevation (hRef). At the riverbed, <inline-formula><mml:math id="M310" display="inline"><mml:mrow><mml:msub><mml:mi>U</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> is initially set to 0 m s<sup>−1</sup>, switching to a heterogeneous field after the first coupling iteration. The impact of the riverbed roughness in the flow dynamics is also considered through the application of a rough wall function to <inline-formula><mml:math id="M312" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">ν</mml:mi><mml:mrow><mml:mi mathvariant="normal">turb</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> at this patch. As for the subsurface domain, the inlet and outlet boundaries are prescribed with an upstream <inline-formula><mml:math id="M313" display="inline"><mml:mrow><mml:msub><mml:mi>q</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> of <inline-formula><mml:math id="M314" display="inline"><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>×</mml:mo><mml:msup><mml:mn mathvariant="normal">10</mml:mn><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">5</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula> m s<sup>−1</sup> and a downstream hydrostatic <inline-formula><mml:math id="M316" display="inline"><mml:mrow><mml:msub><mml:mi>h</mml:mi><mml:mrow><mml:mi mathvariant="normal">sub</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> condition, respectively. Furthermore, <inline-formula><mml:math id="M317" display="inline"><mml:mrow><mml:msub><mml:mi>h</mml:mi><mml:mrow><mml:mi mathvariant="normal">sub</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> is originally fixed to zero at the riverbed, pending the first iteration of the coupling scheme to change its value. Regarding the solute transport and heat transfer simulation, constant input values of 5 kg m<sup>−3</sup> and 2 °C are set at the inletWater patch and 10 kg m<sup>−3</sup> and 8 °C at the waterJet and subsurface inlet boundaries, whereas both inletAir and atmosphere patches are prescribed with a zero-gradient outflow condition with specified input for the case of reversing flow. Similar mixed BCs are defined at the riverbed in the two domains, mapping the values from the coupled domain in case of inflow. Both surface and subsurface outlet patches are set to a zero-gradient condition. The remaining boundaries, namely banks and aquifer, are specified as impermeable using a slip condition. As such, the flow can move along the patch but not across it.</p>
      <p id="d2e6819">The full suite of initial and boundary conditions prescribed for the test case is detailed in Appendix A. For more detailed information on their use and implementation, refer to the online OpenFOAM User's Guide (OpenCFD Ltd., 2023).</p>
</sec>
<sec id="Ch1.S3.SS3.SSS4">
  <label>3.3.4</label><title>Numerical schemes, linear solvers and solution algorithms</title>
      <p id="d2e6830">The terms of the partial differential equations governing the flow, solute transport and heat transfer are transformed into algebraic equations through different spatial and temporal discretization schemes. The complete suite of numerical schemes used in the present test case can be checked in Table A5.</p>
      <p id="d2e6833">The discretized equations are then solved using a range of iterative linear-solvers. The selected linear-solver, along with the preconditioner and tolerance needed to achieve an accurate solution, is defined for each dynamic variable in Table A6.</p>
      <p id="d2e6836">In the surface domain, the 3D velocities and pressure are solved iteratively using the PIMPLE pressure-velocity coupling algorithm (OpenCFD Ltd., 2023). This iterative procedure is necessary for the VOF method to effectively solve the pressure field while satisfying the continuity equation. The pressure correction is achieved via the Poisson equation, with convergence attained through 3 inner-correctors and 1 outer-corrector. As for the subsurface solution, the hydraulic heads are corrected for mesh non-orthogonality using 1 non-orthogonal corrector.</p>
      <p id="d2e6839">The model setup is completed with the definition of the simulation control options. The initial timestep was set to 0.001 s, allowing a maximum timestep of 1 s. Moreover, the timestep size was dynamically adjusted according to a specified maximum Courant number of 0.5 and a maximum alpha Courant number of 1.</p>
</sec>
</sec>
</sec>
<sec id="Ch1.S4">
  <label>4</label><title>Results</title>
      <p id="d2e6853">The test case is defined as a 3D, partially open system. Consequently, water fluxes enter and exit the modelling domain only through the upstream and downstream boundaries, while the riverbanks and aquifer bottom are considered impermeable. This simplified assumption improves upon the 2D, closed model setups of Li et al. (2020) and Lee et al. (2021) by better capturing the dynamic behaviour of a natural river. Furthermore, the defined system aligns with the need expressed by Li et al. (2020) to further study the performance of FCMs in open systems.</p>
      <p id="d2e6856">Based on the fact that the original model, hyporheicScalarInterFoam, already proved its efficacy to tackle the hydrodynamics of the hyporheic zone, the reach-scale interfacial exchanges are shown this time, together with their overall impact in the whole system dynamics. The selected scale aims to demonstrate the potential of the new model to also untangle the flow dynamics and transport processes at larger hydrological contexts than the hyporheic region.</p>
      <p id="d2e6859">Since both the conservative transport and heat transfer do not influence the flow, the steady, pre-simulated flow field was used throughout an intermediate period of the simulation (area coloured in the graphs) to speed-up the computational times of both processes.</p>
      <p id="d2e6862">A selection of the most representative results from the test case is presented in this section. The simulated flow exchanges across the riverbed and associated groundwater flowpaths, along with their impact on the solute concentration and water temperature, are shown and discussed below.</p>
<sec id="Ch1.S4.SS1">
  <label>4.1</label><title>Exchange water fluxes across the riverbed</title>
      <p id="d2e6873">Figure 5 illustrates how the groundwater flowpaths cross diagonally the domain, moving from the right to the left bank as they travel through the aquifer. Moreover, they do not avoid the natural riverbanks, but flow underneath as a consequence of the subsurface characterization (Sect. 3.2.2). The length of the resulting flowpaths is directly related to the described directions, being possible to find values ranging from 5 to 170 m. Both physical and geological features of the system explain this fact. In this regard, a shallow channel is formed on the left side of the riverbed as a result of the significant height variation along its cross-section (Fig. A3). Such topographical difference causes a head gradient that drives most of the groundwater flowpaths of the domain. Rather than flowing straight, the paths change their direction towards the left bank of the river. This fact, along with the permeable riverbanks, generally makes the flow travel longer distances than if moved longitudinally under the course of the river. Furthermore, the same system characteristics favour the existence of a broad set of smaller path lengths generated by the multiple gradients produced across the riverbed. A 3D view of the groundwater flowpaths underneath the riverbed is shown in Fig. A4.</p>

      <fig id="F5" specific-use="star"><label>Figure 5</label><caption><p id="d2e6878">2D top-view of the simulated groundwater flowpaths underneath the riverbed (background image from © Google Maps 2024).</p></caption>
          <graphic xlink:href="https://gmd.copernicus.org/articles/19/3923/2026/gmd-19-3923-2026-f05.jpg"/>

        </fig>

      <p id="d2e6887">As required, the water balance is conserved within the system. This fact is verified by the surface and subsurface effluxes, that equalled the water influxes once the steady-state was reached. Such conservation of mass confirms the good functioning of the coupling iterative scheme of darcyInterTransportFoam. On the other hand, the exchange fluxes across the riverbed show higher upwelling rates than downwelling (0.34 and 0.28 m<sup>3</sup> s<sup>−1</sup>, respectively), indicating that the exfiltration towards the river prevails over the infiltration into the ground. This pattern is confirmed by the conservative solute and temperature results presented in the following sections.</p>
</sec>
<sec id="Ch1.S4.SS2">
  <label>4.2</label><title>Water temperature field</title>
      <p id="d2e6919">Both the SW-GW heat exchanges and the groundwater plume generated in the river during the pumping test were modelled to evaluate the efficiency of the novel module.</p>
      <p id="d2e6922">The specified initial temperatures correspond to the mean values measured in-situ during the pumping experiment. Accordingly, the air and water phases in the surface domain were initially set to <inline-formula><mml:math id="M322" display="inline"><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">2</mml:mn></mml:mrow></mml:math></inline-formula> and 2 °C, respectively, while the groundwater temperature was initialized to 8 °C.</p>
      <p id="d2e6935">The simulated plume was compared to that measured on site using a drone-mounted thermal camera. As shown in Fig. 6, both drone-based (panel a) and model-based (panel b) outcomes depict the temperature contrast generated by the warm abstracted groundwater. However, while the trajectory and location of the plume look similar in both images, the shape and length differ between them. The reasons behind these differences can be diverse and go from the lack of accurate field observations to a wrong selection of the simulation parameters, or even a combination of both. In this case, the high-flow conditions presented in the river the day the thermal flight was carried out made the acquisition of additional field data especially difficult. This fact reduced the availability of in-situ temperature measurements and, consequently, the capability to later validate the values observed with the drone. Moreover, access to detailed information on the discharged groundwater was challenging due to the engineering approach of the data source. In most cases, the companies responsible for the pumping test provided data at hourly or even daily intervals. These temporal resolutions – far from those required to thoroughly study highly dynamic processes like temperature – combined with the described on-site data limitations, complicated the definition of a suitable model setup for reproducing the temperature field captured by the drone. However, despite these constraints, the model reproduces the overall spatial pattern of heat redistribution, indicating an adequate functioning of the new solver's heat transfer module, while local discrepancies in magnitude remain, as reflected by a root mean square error (RMSE) of 0.82 °C. The mismatch with the observed values can be attributed to a suboptimal selection of the simulation parameters, suggesting that an improved choice would lead to a better match.</p>

      <fig id="F6" specific-use="star"><label>Figure 6</label><caption><p id="d2e6941"><bold>(a)</bold> Drone-measured and <bold>(b)</bold> simulated temperature plumes generated by the groundwater jet at the water surface (background image captured on site by the drone).</p></caption>
          <graphic xlink:href="https://gmd.copernicus.org/articles/19/3923/2026/gmd-19-3923-2026-f06.jpg"/>

        </fig>

      <p id="d2e6955">As for the heat exchanges across the riverbed, the results obtained show that the two-way exchange mostly occurs across the main course of the river, namely, the shallow channel located on the left side of the bed (Fig. 7a). Within this region, areas of warm groundwater are combined with areas of cold surface water. No groundwater contribution is produced outside of this zone. The resulting temperature pattern aligns with that described in previous studies at the site. One of these, Käser and Hunkeler (2016), identified an alternate sequence of upwelling and downwelling locations along the Emme which proved the existence of a complex pattern of river-aquifer interactions. The outcomes achieved with the new model reproduce such pattern, corroborating in this way the capability of darcyInterTransportFoam to solve actual heat transfer processes.</p>

      <fig id="F7" specific-use="star"><label>Figure 7</label><caption><p id="d2e6960"><bold>(a)</bold> Modelled water temperature pattern at the riverbed (background image from © Google Maps 2024) and <bold>(b)</bold> cross-sectional view in the <inline-formula><mml:math id="M323" display="inline"><mml:mi>x</mml:mi></mml:math></inline-formula>-<inline-formula><mml:math id="M324" display="inline"><mml:mi>z</mml:mi></mml:math></inline-formula> plane along the dashed line in <bold>(a)</bold>.</p></caption>
          <graphic xlink:href="https://gmd.copernicus.org/articles/19/3923/2026/gmd-19-3923-2026-f07.jpg"/>

        </fig>

      <p id="d2e6991">Furthermore, the heat outputs also indicate that, despite the multiple interactions produced across the riverbed, their impact in the surface and subsurface water temperatures is relatively small, as shown in Fig. 8. This figure illustrates how the average temperatures stay nearly constant over time at the outlet of both domains. Such steady behaviour can be explained by the small magnitude of the riverbed exchanges (Sect. 4.1). As a result of this, the tiny gaining fluxes infiltrate in the ending domain just a few millimetres (first row of cells) before mixing with the main flow of the system (Fig. 7b). The big difference in volume between the two flows makes the temperature of the former to diffuse within the second, consequently minimizing its effect in the mean temperature of the domain. These little heat infiltrations would also explain the measuring approach followed by Käser and Hunkeler (2016), that required from near-bed measurements to properly detect the temperature changes resulting from the subsurface upwelling.</p>

      <fig id="F8" specific-use="star"><label>Figure 8</label><caption><p id="d2e6996">Average water temperature across the surface and subsurface outlet boundaries. The subscripts <italic>sur</italic> and <italic>sub</italic> refer to surface and subsurface domains, respectively. The coloured area corresponds to the simulation period in which the pre-simulated flow field was used to only run heat transfer.</p></caption>
          <graphic xlink:href="https://gmd.copernicus.org/articles/19/3923/2026/gmd-19-3923-2026-f08.png"/>

        </fig>

</sec>
<sec id="Ch1.S4.SS3">
  <label>4.3</label><title>Conservative solute field</title>
      <p id="d2e7019">The solute analysis skipped the plume caused by the released groundwater and only simulated the mass exchanges that occurred across the river-aquifer interface.</p>

      <fig id="F9" specific-use="star"><label>Figure 9</label><caption><p id="d2e7024">Modelled solute concentration pattern at the riverbed (background image from © Google Maps 2024).</p></caption>
          <graphic xlink:href="https://gmd.copernicus.org/articles/19/3923/2026/gmd-19-3923-2026-f09.jpg"/>

        </fig>

      <fig id="F10" specific-use="star"><label>Figure 10</label><caption><p id="d2e7035">Solute flux across the <bold>(a)</bold> outlet and <bold>(b)</bold> interface boundaries. <bold>(c)</bold> Solute mass in each simulated domain and total mass in the system. The subscripts <italic>sur</italic> and <italic>sub</italic> refer to surface and subsurface domains, respectively, while <italic>up</italic> and <italic>down</italic> indicate upwelling and downwelling fluxes. The coloured area corresponds to the simulation period in which the pre-simulated flow field was used to only run solute transport.</p></caption>
          <graphic xlink:href="https://gmd.copernicus.org/articles/19/3923/2026/gmd-19-3923-2026-f10.png"/>

        </fig>

      <p id="d2e7067">Initial <inline-formula><mml:math id="M325" display="inline"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> of 0 and 5 kg m<sup>−3</sup> were respectively prescribed for the air and water phases, while <inline-formula><mml:math id="M327" display="inline"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mrow><mml:mi mathvariant="normal">sub</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> was initialized to 10 kg m<sup>−3</sup>. Although unrealistic, these high concentration values were chosen to ensure a clear representation of both the interfacial exchanges and the solute mixture in each domain.</p>
      <p id="d2e7126">The solute concentrations attained at the riverbed are shown in Fig. 9. Analogously to temperature, the bidirectional exchange pattern is mainly located along the shallow channel situated on the left side of the bed. Outside of this zone, no groundwater exfiltration is produced and, thus, the concentrations remain around 5 kg m<sup>−3</sup>. However, in contrast to heat, that diffuses within the surface flow, the solute mass concentrates over time towards the end of the simulation domain. Such accumulation is behind the different extension of subsurface upwelling depicted in Figs. 7a and 9. Yet, the locations where the groundwater actually exfiltrates can be still identified, as they correspond to the darkest spots of the resultant solute field. The pattern described by such spots matches that exhibited by the warm upwelling groundwater, as expected (Fig. 7a).</p>
      <p id="d2e7141">The aforementioned downstream concentrations are supported by the solute efflux of the surface domain. As plotted in Fig. 10a, the concentration increases over time at the surface outlet while remains essentially stable at its subsurface counterpart. The followed trends confirm the solute accumulation at the surface and also point out the prevalence of subsurface upwelling over surface downwelling. The latter is corroborated by the solute fluxes measured across the riverbed (Fig. 10b), which aligned with the previously described water exchanges (Sect. 4.1).</p>
      <p id="d2e7144">The solute mass increases in the surface domain and decreases in the subsurface as a result of the described interfacial exchanges (Fig. 10c). The steady-state is reached in both domains once the solute is fully mixed within the system. However, as expected, the total mass is conserved and stays constant throughout the whole simulation. This fact corroborates the system mass balance and, thus, the good functioning of the coupling iterative algorithm at the interface of both domains.</p>
</sec>
</sec>
<sec id="Ch1.S5">
  <label>5</label><title>Limitations and implications</title>
      <p id="d2e7157">Analogously to its predecessor, the current version of darcyInterTransportFoam simulates steady-state, fully saturated subsurface flow assuming a static groundwater table. This modelling framework reflects the physical assumption that surface water dynamics occur on timescales much shorter than those governing subsurface flow, thereby justifying the steady-state treatment of groundwater. However, the inability to simulate unsaturated conditions introduces limitations regarding the applicability of the solver. For example, if the groundwater table drops under a clogged streambed, unsaturated zones develop. The code cannot reproduce this disconnection between the surface and the subsurface. Similarly, rapid declines in surface water levels can lead to unsaturated conditions along the riverbanks, which also cannot be represented within the current framework. These limitations are not unique to darcyInterTransportFoam, but were already inherent to hyporheicScalarInterFoam. Nonetheless, scenarios involving localized and well-defined unsaturated regions, such as fine-grained riverbank deposits or seasonally disconnected floodplain margins, can still be approximated with the new code by prescribing impermeable zones and conducting fully-coupled simulations only in the hydraulically connected sections.</p>
      <p id="d2e7160">Meanwhile, the assumption of full saturation remains valid in other hydrological settings, including gaining river reaches supported by shallow, unconfined aquifers; alluvial valleys with consistently high groundwater tables due to regional discharge; and perennial rivers where sustained baseflow maintains saturation across the riverbed and adjacent banks. For such groundwater systems, Haitjema (2006) developed an approach to assess when steady-state conditions can adequately approximate transient system response to periodic hydraulic stresses. This method calculates an aquifer response time, <inline-formula><mml:math id="M330" display="inline"><mml:mi mathvariant="italic">τ</mml:mi></mml:math></inline-formula> (–), given by:

          <disp-formula id="Ch1.E21" content-type="numbered"><label>21</label><mml:math id="M331" display="block"><mml:mrow><mml:mi mathvariant="italic">τ</mml:mi><mml:mo>=</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mn mathvariant="normal">1</mml:mn><mml:mrow><mml:mn mathvariant="normal">4</mml:mn><mml:mi>P</mml:mi></mml:mrow></mml:mfrac></mml:mstyle><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mi>S</mml:mi><mml:msup><mml:mi>L</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msup></mml:mrow><mml:mrow><mml:mi>K</mml:mi><mml:mi>b</mml:mi></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>,</mml:mo></mml:mrow></mml:math></disp-formula>

        where <inline-formula><mml:math id="M332" display="inline"><mml:mi>P</mml:mi></mml:math></inline-formula> is the period of the forcing function (365 d for seasonal fluctuations), <inline-formula><mml:math id="M333" display="inline"><mml:mi>S</mml:mi></mml:math></inline-formula> is the storativity (specific yield, <inline-formula><mml:math id="M334" display="inline"><mml:mrow><mml:msub><mml:mi>S</mml:mi><mml:mi>y</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>, for an unconfined aquifer), <inline-formula><mml:math id="M335" display="inline"><mml:mi>L</mml:mi></mml:math></inline-formula> is the characteristic system length defined as the distance between major surface water features (m), <inline-formula><mml:math id="M336" display="inline"><mml:mi>K</mml:mi></mml:math></inline-formula> is the hydraulic conductivity (m s<sup>−1</sup>) and <inline-formula><mml:math id="M338" display="inline"><mml:mi>b</mml:mi></mml:math></inline-formula> is the saturated thickness (m).</p>
      <p id="d2e7265">Therefore, prior estimation of <inline-formula><mml:math id="M339" display="inline"><mml:mi mathvariant="italic">τ</mml:mi></mml:math></inline-formula> is recommended to evaluate the suitability of the steady-state groundwater formulation adopted in darcyInterTransportFoam for a given system. In general, small values of <inline-formula><mml:math id="M340" display="inline"><mml:mi mathvariant="italic">τ</mml:mi></mml:math></inline-formula> (<inline-formula><mml:math id="M341" display="inline"><mml:mrow><mml:mi mathvariant="italic">τ</mml:mi><mml:mo>&lt;</mml:mo><mml:mn mathvariant="normal">0.1</mml:mn></mml:mrow></mml:math></inline-formula>) characterize highly permeable unconfined aquifers and most confined aquifers, for which bounding or successive steady-state solutions can be used to represent annual periodicity. Moderately permeable to low-permeability unconfined systems (<inline-formula><mml:math id="M342" display="inline"><mml:mrow><mml:mn mathvariant="normal">0.1</mml:mn><mml:mo>&lt;</mml:mo><mml:mi mathvariant="italic">τ</mml:mi><mml:mo>&lt;</mml:mo><mml:mn mathvariant="normal">1.0</mml:mn></mml:mrow></mml:math></inline-formula>) are likely to exhibit local transient effects that are not captured by successive steady-state solutions and therefore typically require transient simulations. In low-permeability unconfined aquifers (<inline-formula><mml:math id="M343" display="inline"><mml:mrow><mml:mi mathvariant="italic">τ</mml:mi><mml:mo>&gt;</mml:mo><mml:mn mathvariant="normal">1.0</mml:mn></mml:mrow></mml:math></inline-formula>), the groundwater system responds slowly to periodic changes in recharge or boundary conditions, such that a time-averaged steady-state approximation is appropriate. Further justification for these guidelines is provided in Haitjema (2006) and Anderson et al. (2015).</p>
      <p id="d2e7322">However, while the current modelling approach may be appropriate for the aforementioned cases, further development of the solver will be required to account for the groundwater table fluctuations and the effects of unsaturated flow on the overall system dynamics. One possible path forward would be to adopt a strategy similar to that implemented in groundwaterFoam (Horgue et al., 2022), which solves unsaturated flow by linearizing the pressure head form of Richards' equation using either Picard's or Newton's method. Additional work will also be needed to develop a reactive solute transport module for the simulation of key biogeochemical reactions (e.g., aerobic respiration, denitrification, etc.). Although previous custom fully-coupled solvers in OpenFOAM, such as hyporheicFoam, were already capable of simulating reactive processes, integrating them into the current framework will require reformulating the module to operate within a two-phase flow context, which adds complexity to its implementation. These enhancements will enable more comprehensive simulations of the dynamic and biogeochemical processes occurring at the river-aquifer interface, even in regions where SW and GW are hydraulically disconnected.</p>
      <p id="d2e7326">On the other hand, the accessibility to sufficient computational resources to run big CFD models, such as that described in this paper, may represent a limitation to achieving an efficient computation with darcyInterTransportFoam. In this way, the OpenFOAM software allows users to take full advantage of the computer hardware by enabling parallel computations on a theoretically unlimited number of processors. Four mesh decomposition methods are supported to that end. In the present study, the manual decomposition method was applied to ensure an equal division of the surface and subsurface domains. Moreover, 124 CPUs were used to run in parallel the test case on 4 nodes of a local HPC (High-Performance Computing) cluster (2.9 GHz, Ubuntu 22.04.1 LTS operating system). However, access to such amount of computing resources can sometimes be challenging, since most computers are normally equipped with just 8 to 16 cores (with hyperthreading), rarely more. For this reason, it is highly encouraged to use darcyInterTransportFoam on massively parallel machines (e.g. HPC supercomputers or multi-core processors) provided with the necessary computational resources to run any model regardless of its scale and resolution. However, there are some caviates concerning parallelisation. A common recommendation for domain decomposition is that the number of cells hosted per core should lie between 30 000 and 100 000 to guarantee an optimal parallelisation. Whenever this condition is not met and, therefore, the number of cells per core exceeds the recommended cap, the computational times increase dramatically, consequently breaking the compromise between computational efficiency and accuracy in the numerical solution.</p>
      <p id="d2e7329">Regarding the limitations specific to the simulated test case, the difficulty of acquiring high-resolution in-situ data on the simulated flow, transport and heat processes reduced the availability of field observations for comparison against the model results. The small number of on-site observations (drone-based temperature maps, point temperature measurements and flow data) could initially be considered insufficient to guarantee the quality and accuracy of the simulation. However, the simulated results are consistent with findings from previously conducted field and modelling studies at the site. This agreement, together with the conservation of flow and mass observed in the simulation, provides additional evidence supporting the computational consistency and efficiency of the new solver.</p>
</sec>
<sec id="Ch1.S6" sec-type="conclusions">
  <label>6</label><title>Summary and conclusions</title>
      <p id="d2e7340">An upgraded version of the fully-coupled, three-dimensional SW-GW solver  hyporheicScalarInterFoam, named darcyInterTransportFoam, is presented in this paper. Its novel simulation features are thoroughly described, along with an evaluation of its performance in a test case conducted at a 235 m-long river segment of an actual alluvial aquifer.</p>
      <p id="d2e7343">The results achieved in the test case confirm the good functioning of the new solver and its add-ons. Such a statement is supported by the facts presented below. The number of the involved solver modification (Sect. 2.3.1) is included between square brackets in each point:</p>
      <p id="d2e7346">The water flow exits the surface domain freely at a subcritical water height without requiring an obstacle (e.g., a step, ramp or gate) to stabilize the water level before reaching the outlet patch (Bayon-Barrachina and Lopez-Jimenez, 2015) (2).</p>
      <p id="d2e7349">The parametrization of the real aquifer is captured in the simulated subsurface domain, enabling a realistic estimation of groundwater flowpaths, subsurface velocities and hydraulic heads (1, 3).</p>
      <p id="d2e7353">Unsaturated regions in the subsurface domain, formed beneath surface dry areas, are no longer a limitation for the computation, as they are defined as impermeable. The simulation is still carried out at the hydraulically connected river-aquifer zones. Accordingly, both direction and length of the flowpaths adjust to the physical and geological characteristics of the system (1, 3).</p>
      <p id="d2e7356">Passive solute transport and heat transfer are effectively simulated in the surface and subsurface domains. Additionally, both processes are solved in a single phase (water) in the surface domain. The agreement between the modelled outcomes and field observations further validates this model's performance (4, 5, 6, 8).</p>
      <p id="d2e7359">Both water and solute mass balances are conserved within the system, which ensures the flux consistency across the interface of both domains (1, 5, 7, 8).</p>
      <p id="d2e7362">Water, solute and temperature results exhibit interconnected behaviour. Similarly, the flux exchanges across the interface and the mass balance of each domain display interdependent dynamics (1, 4, 5, 6, 7, 8).</p>
      <p id="d2e7365">The above points illustrate that, despite the modelling limitations of the present version of darcyInterTransportFoam, the new solver fills most of the simulation gaps of its predecessor, hyporheicScalarInterFoam. In this way, the model is successfully applied to solve the flow, solute and heat exchanges across the riverbed of the selected Emme River segment. Moreover, its utility to study the SW-GW interactions and dynamics beyond the hyporheic zone is also demonstrated through its application to a reach-scale scenario.</p>
      <p id="d2e7368">The successful performance of darcyInterTransportFoam confirms its potential for simulating multiple hydrogeological scenarios, underpinned by its capability to represent the intricate characteristics of natural systems and the diverse dynamic processes they drive. Among its new functionalities, the ability to prescribe heterogeneity and anisotropy in the subsurface, as well as to define layers or anthropogenic structures (e.g., weirs), represents a significant step toward more physically realistic riverbed-aquifer interactions. This feature, combined with the solute transport and heat transfer modelling, enables the simulation of important feedback mechanisms between SW and GW, whose detailed dynamics could not be accounted for in the previous version of the solver. For instance, the migration of a contaminant plume from GW into a river under geologically complex conditions can now be simulated, with spatial variability in <inline-formula><mml:math id="M344" display="inline"><mml:mrow><mml:msub><mml:mi>K</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mi>j</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M345" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">θ</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> governing both the transport pathways and the timing of pollutant discharge. Similarly, the inclusion of stratified layering and anisotropic properties allows for a more accurate representation of gaining-losing conditions and hyporheic exchanges, both of which are highly sensitive to subsurface characterization and drive key biogeochemical processes. In such contexts, temperature dynamics act not only as tracers but also as active drivers of biochemical reactions. Moreover, in river-aquifer systems affected by anthropogenic modifications, such as dams, levees or bank reinforcements, the improved modelling framework enables the explicit definition of these structures to assess their influence on hydraulic connectivity, and consequently on processes like solute retention and thermal buffering.</p>
      <p id="d2e7397">Further code development is still needed to address the remaining limitations of the current solver version, such as the simulation of unsaturated flow and multicomponent reactive transport. Closing these gaps will enable a more comprehensive representation of the physical and biogeochemical processes occurring at the river–aquifer interface.</p>
</sec>

      
      </body>
    <back><app-group>

<app id="App1.Ch1.S1">
  <label>Appendix A</label><title/>

      <fig id="FA1"><label>Figure A1</label><caption><p id="d2e7414">Location of the model's test case in the Emme River (background image from © Google Maps 2024).</p></caption>
        
        <graphic xlink:href="https://gmd.copernicus.org/articles/19/3923/2026/gmd-19-3923-2026-f11.jpg"/>

      </fig>

      <fig id="FA2"><label>Figure A2</label><caption><p id="d2e7427">Snapshot of the pipes releasing pumped groundwater in the Emme River at two different flow scenarios (background image captured on site by the drone).</p></caption>
        
        <graphic xlink:href="https://gmd.copernicus.org/articles/19/3923/2026/gmd-19-3923-2026-f12.jpg"/>

      </fig>

<fig id="FA3"><label>Figure A3</label><caption><p id="d2e7442">High-resolution (25 cm) riverbed DEM used to define the 3D meshes of the test case (background image from © Google Maps 2024).</p></caption>
        
        <graphic xlink:href="https://gmd.copernicus.org/articles/19/3923/2026/gmd-19-3923-2026-f13.jpg"/>

      </fig>

      <fig id="FA4"><label>Figure A4</label><caption><p id="d2e7455">3D view of the simulated groundwater flowpaths underneath the riverbed (background image from © Google Maps 2024).</p></caption>
        
        <graphic xlink:href="https://gmd.copernicus.org/articles/19/3923/2026/gmd-19-3923-2026-f14.jpg"/>

      </fig>

<table-wrap id="TA1"><label>Table A1</label><caption><p id="d2e7471">Surface and subsurface (italic) fluid and geological parameters defined in the test case.</p></caption><oasis:table frame="topbot"><oasis:tgroup cols="6">
     <oasis:colspec colnum="1" colname="col1" align="left"/>
     <oasis:colspec colnum="2" colname="col2" align="left"/>
     <oasis:colspec colnum="3" colname="col3" align="left"/>
     <oasis:colspec colnum="4" colname="col4" align="left" colsep="1"/>
     <oasis:colspec colnum="5" colname="col5" align="right"/>
     <oasis:colspec colnum="6" colname="col6" align="left"/>
     <oasis:thead>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1"/>
         <oasis:entry colname="col2">Phases</oasis:entry>
         <oasis:entry colname="col3">Parameter</oasis:entry>
         <oasis:entry namest="col4" nameend="col5" colsep="0">Value </oasis:entry>
         <oasis:entry colname="col6">Dimensions</oasis:entry>
       </oasis:row>
     </oasis:thead>
     <oasis:tbody>
       <oasis:row>
         <oasis:entry colname="col1">Fluid parameters</oasis:entry>
         <oasis:entry colname="col2">Water</oasis:entry>
         <oasis:entry colname="col3">Transport model</oasis:entry>
         <oasis:entry namest="col4" nameend="col6" colsep="0">Newtonian </oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"/>
         <oasis:entry colname="col2"/>
         <oasis:entry colname="col3">Physical kinematic viscosity (<inline-formula><mml:math id="M346" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">ν</mml:mi><mml:mrow><mml:msub><mml:mi mathvariant="normal">phys</mml:mi><mml:mi mathvariant="normal">w</mml:mi></mml:msub></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula>)</oasis:entry>
         <oasis:entry namest="col4" nameend="col5" colsep="0">10<sup>−6</sup></oasis:entry>
         <oasis:entry colname="col6">m<sup>2</sup> s<sup>−1</sup></oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"/>
         <oasis:entry colname="col2"/>
         <oasis:entry colname="col3">Density (<inline-formula><mml:math id="M350" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">ρ</mml:mi><mml:mi mathvariant="normal">w</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>)</oasis:entry>
         <oasis:entry namest="col4" nameend="col5" colsep="0">1000 </oasis:entry>
         <oasis:entry colname="col6">kg m<sup>−3</sup></oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"/>
         <oasis:entry colname="col2"/>
         <oasis:entry colname="col3">Specific heat capacity (<inline-formula><mml:math id="M352" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="normal">Cp</mml:mi><mml:mi mathvariant="normal">w</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>)</oasis:entry>
         <oasis:entry colname="col4">4211</oasis:entry>
         <oasis:entry colname="col5"><italic>4196</italic></oasis:entry>
         <oasis:entry colname="col6">J kg<sup>−1</sup> °C<sup>−1</sup></oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"/>
         <oasis:entry colname="col2"/>
         <oasis:entry colname="col3">Mean temperature (<inline-formula><mml:math id="M355" display="inline"><mml:mrow><mml:msub><mml:mi>T</mml:mi><mml:mi mathvariant="normal">w</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>)</oasis:entry>
         <oasis:entry colname="col4">2</oasis:entry>
         <oasis:entry colname="col5"><italic>8</italic></oasis:entry>
         <oasis:entry colname="col6">°C</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"/>
         <oasis:entry rowsep="1" colname="col2"/>
         <oasis:entry rowsep="1" colname="col3">Prandtl number (<inline-formula><mml:math id="M356" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">Pr</mml:mi><mml:mi mathvariant="normal">w</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>)</oasis:entry>
         <oasis:entry rowsep="1" colname="col4">12.46</oasis:entry>
         <oasis:entry rowsep="1" colname="col5"><italic>9.99</italic></oasis:entry>
         <oasis:entry rowsep="1" colname="col6">–</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"/>
         <oasis:entry colname="col2">Air</oasis:entry>
         <oasis:entry colname="col3">Transport model</oasis:entry>
         <oasis:entry namest="col4" nameend="col6" colsep="0">Newtonian </oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"/>
         <oasis:entry colname="col2"/>
         <oasis:entry colname="col3">Physical kinematic viscosity (<inline-formula><mml:math id="M357" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">ν</mml:mi><mml:mrow><mml:msub><mml:mi mathvariant="normal">phys</mml:mi><mml:mi mathvariant="normal">a</mml:mi></mml:msub></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula>)</oasis:entry>
         <oasis:entry namest="col4" nameend="col5" colsep="0"><inline-formula><mml:math id="M358" display="inline"><mml:mrow><mml:mn mathvariant="normal">1.48</mml:mn><mml:mo>×</mml:mo><mml:msup><mml:mn mathvariant="normal">10</mml:mn><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">5</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col6">m<sup>2</sup> s<sup>−1</sup></oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"/>
         <oasis:entry colname="col2"/>
         <oasis:entry colname="col3">Density (<inline-formula><mml:math id="M361" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">ρ</mml:mi><mml:mi mathvariant="normal">a</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>)</oasis:entry>
         <oasis:entry namest="col4" nameend="col5" colsep="0">1 </oasis:entry>
         <oasis:entry colname="col6">kg m<sup>−3</sup></oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"/>
         <oasis:entry colname="col2"/>
         <oasis:entry colname="col3">Specific heat capacity (<inline-formula><mml:math id="M363" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="normal">Cp</mml:mi><mml:mi mathvariant="normal">a</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>)</oasis:entry>
         <oasis:entry namest="col4" nameend="col5" colsep="0">1005 </oasis:entry>
         <oasis:entry colname="col6">J kg<sup>−1</sup> °C<sup>−1</sup></oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"/>
         <oasis:entry colname="col2"/>
         <oasis:entry colname="col3">Mean temperature (<inline-formula><mml:math id="M366" display="inline"><mml:mrow><mml:msub><mml:mi>T</mml:mi><mml:mi mathvariant="normal">a</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>)</oasis:entry>
         <oasis:entry namest="col4" nameend="col5" colsep="0"><inline-formula><mml:math id="M367" display="inline"><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">2</mml:mn></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col6">°C</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"/>
         <oasis:entry rowsep="1" colname="col2"/>
         <oasis:entry rowsep="1" colname="col3">Prandtl number (<inline-formula><mml:math id="M368" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">Pr</mml:mi><mml:mi mathvariant="normal">a</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>)</oasis:entry>
         <oasis:entry rowsep="1" namest="col4" nameend="col5" colsep="0">0.72 </oasis:entry>
         <oasis:entry rowsep="1" colname="col6">–</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"/>
         <oasis:entry colname="col2">Both</oasis:entry>
         <oasis:entry colname="col3">Surface tension (<inline-formula><mml:math id="M369" display="inline"><mml:mi mathvariant="italic">σ</mml:mi></mml:math></inline-formula>)</oasis:entry>
         <oasis:entry namest="col4" nameend="col5" colsep="0">0.07 </oasis:entry>
         <oasis:entry colname="col6">J m<sup>−2</sup></oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"/>
         <oasis:entry colname="col2"/>
         <oasis:entry colname="col3">Molecular diffusion coefficient (<inline-formula><mml:math id="M371" display="inline"><mml:mrow><mml:msub><mml:mi>D</mml:mi><mml:mi mathvariant="normal">phys</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>, <inline-formula><mml:math id="M372" display="inline"><mml:mrow><mml:msub><mml:mi>D</mml:mi><mml:mi mathvariant="normal">m</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>)</oasis:entry>
         <oasis:entry namest="col4" nameend="col5" colsep="0">4.2 <inline-formula><mml:math id="M373" display="inline"><mml:mo>×</mml:mo></mml:math></inline-formula> 10<sup>−10</sup></oasis:entry>
         <oasis:entry colname="col6">m<sup>2</sup> s<sup>−1</sup></oasis:entry>
       </oasis:row>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1"/>
         <oasis:entry colname="col2"/>
         <oasis:entry colname="col3">Turbulent Schmidt number (<inline-formula><mml:math id="M377" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">Sc</mml:mi><mml:mi mathvariant="normal">turb</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>)</oasis:entry>
         <oasis:entry namest="col4" nameend="col5" colsep="0">1 </oasis:entry>
         <oasis:entry colname="col6">–</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry namest="col1" nameend="col2">Geological </oasis:entry>
         <oasis:entry colname="col3">Density (<inline-formula><mml:math id="M378" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">ρ</mml:mi><mml:mi mathvariant="normal">pm</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>)</oasis:entry>
         <oasis:entry namest="col4" nameend="col5" colsep="0"><italic>2600</italic></oasis:entry>
         <oasis:entry colname="col6">kg m<sup>−3</sup></oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry namest="col1" nameend="col2">parameters </oasis:entry>
         <oasis:entry colname="col3">Specific heat capacity (<inline-formula><mml:math id="M380" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="normal">Cp</mml:mi><mml:mi mathvariant="normal">pm</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>)</oasis:entry>
         <oasis:entry namest="col4" nameend="col5" colsep="0"><italic>782</italic></oasis:entry>
         <oasis:entry colname="col6">J kg<sup>−1</sup> °C<sup>−1</sup></oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"/>
         <oasis:entry colname="col2"/>
         <oasis:entry colname="col3">Thermal conductivity (<inline-formula><mml:math id="M383" display="inline"><mml:mrow><mml:msub><mml:mi>K</mml:mi><mml:mi mathvariant="normal">pm</mml:mi></mml:msub><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry namest="col4" nameend="col5" colsep="0"><italic>2.9</italic></oasis:entry>
         <oasis:entry colname="col6">kg m s<sup>−3</sup> °C<sup>−1</sup></oasis:entry>
       </oasis:row>
     </oasis:tbody>
   </oasis:tgroup></oasis:table></table-wrap>

<table-wrap id="TA2"><label>Table A2</label><caption><p id="d2e8267">Initial (IC) and boundary conditions (BC) defined for each surface variable.</p></caption><oasis:table frame="topbot"><oasis:tgroup cols="7">
     <oasis:colspec colnum="1" colname="col1" align="justify" colwidth="1.5cm"/>
     <oasis:colspec colnum="2" colname="col2" align="justify" colwidth="1.5cm"/>
     <oasis:colspec colnum="3" colname="col3" align="justify" colwidth="2.8cm"/>
     <oasis:colspec colnum="4" colname="col4" align="justify" colwidth="3.8cm"/>
     <oasis:colspec colnum="5" colname="col5" align="justify" colwidth="2cm"/>
     <oasis:colspec colnum="6" colname="col6" align="justify" colwidth="2.7cm"/>
     <oasis:colspec colnum="7" colname="col7" align="justify" colwidth="3.1cm"/>
     <oasis:thead>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1" align="left"/>
         <oasis:entry colname="col2" align="left"/>
         <oasis:entry colname="col3" align="left">p_rgh (<inline-formula><mml:math id="M386" display="inline"><mml:mrow><mml:msub><mml:mi>p</mml:mi><mml:mrow><mml:mi mathvariant="normal">rgh</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula>)</oasis:entry>
         <oasis:entry colname="col4" align="left">U (<inline-formula><mml:math id="M387" display="inline"><mml:mrow><mml:msub><mml:mi>U</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula>)</oasis:entry>
         <oasis:entry colname="col5" align="left">alpha.water (<inline-formula><mml:math id="M388" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">α</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>)</oasis:entry>
         <oasis:entry colname="col6" align="left">C (<inline-formula><mml:math id="M389" display="inline"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula>)</oasis:entry>
         <oasis:entry colname="col7" align="left">T (<inline-formula><mml:math id="M390" display="inline"><mml:mrow><mml:msub><mml:mi>T</mml:mi><mml:mrow><mml:mi mathvariant="normal">sur</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula>)</oasis:entry>
       </oasis:row>
     </oasis:thead>
     <oasis:tbody>
       <oasis:row rowsep="1">
         <oasis:entry namest="col1" nameend="col2" align="left">Dimensions </oasis:entry>
         <oasis:entry colname="col3" align="left">[1 <inline-formula><mml:math id="M391" display="inline"><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:math></inline-formula> <inline-formula><mml:math id="M392" display="inline"><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">2</mml:mn></mml:mrow></mml:math></inline-formula> 0 0 0 0] (kg m<sup>−1</sup> s<sup>−2</sup>)</oasis:entry>
         <oasis:entry colname="col4" align="left">[0 1 <inline-formula><mml:math id="M395" display="inline"><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:math></inline-formula> 0 0 0 0]  (m s<sup>−1</sup>)</oasis:entry>
         <oasis:entry colname="col5" align="left">[0 0 0 0 0 0 0] (–)</oasis:entry>
         <oasis:entry colname="col6" align="left">[1 <inline-formula><mml:math id="M397" display="inline"><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">3</mml:mn></mml:mrow></mml:math></inline-formula> 0 0 0 0 0] (kg m<sup>−3</sup>)</oasis:entry>
         <oasis:entry colname="col7" align="left">[0 0 0 1 0 0 0] (°C)</oasis:entry>
       </oasis:row>
       <oasis:row rowsep="1">
         <oasis:entry namest="col1" nameend="col2" align="left">Initial conditions </oasis:entry>
         <oasis:entry colname="col3" align="left">uniform 0.001</oasis:entry>
         <oasis:entry colname="col4" align="left">uniform (0 0 0)</oasis:entry>
         <oasis:entry colname="col5" align="left">uniform 0</oasis:entry>
         <oasis:entry colname="col6" align="left">uniform 0</oasis:entry>
         <oasis:entry colname="col7" align="left">uniform <inline-formula><mml:math id="M399" display="inline"><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">2</mml:mn></mml:mrow></mml:math></inline-formula></oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1" align="left">Boundaries</oasis:entry>
         <oasis:entry rowsep="1" colname="col2" align="left">inletAir</oasis:entry>
         <oasis:entry rowsep="1" colname="col3" align="left"><bold>totalPressure</bold>  p0 uniform 0  value uniform 0</oasis:entry>
         <oasis:entry rowsep="1" colname="col4" align="left"><bold>pressureInletOutletVelocity</bold>  value uniform (0 0 0)</oasis:entry>
         <oasis:entry rowsep="1" colname="col5" align="left"><bold>inletOutlet</bold>  inletValue uniform 0  value uniform 0</oasis:entry>
         <oasis:entry rowsep="1" colname="col6" align="left"><bold>inletOutlet</bold>  inletValue uniform 0  value uniform 0</oasis:entry>
         <oasis:entry rowsep="1" colname="col7" align="left"><bold>inletOutlet</bold>  inletValue uniform <inline-formula><mml:math id="M400" display="inline"><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">2</mml:mn></mml:mrow></mml:math></inline-formula>  value uniform <inline-formula><mml:math id="M401" display="inline"><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">2</mml:mn></mml:mrow></mml:math></inline-formula></oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1" align="left"/>
         <oasis:entry rowsep="1" colname="col2" align="left">inletWater</oasis:entry>
         <oasis:entry rowsep="1" colname="col3" align="left"><bold>fixedFluxPressure</bold>  value uniform 0</oasis:entry>
         <oasis:entry rowsep="1" colname="col4" align="left"><bold>flowRateInletVelocity</bold>  volumetricFlowRate 10  value uniform (0 0 0)</oasis:entry>
         <oasis:entry rowsep="1" colname="col5" align="left"><bold>fixedValue</bold> value uniform 1</oasis:entry>
         <oasis:entry rowsep="1" colname="col6" align="left"><bold>fixedValue</bold> value uniform 5</oasis:entry>
         <oasis:entry rowsep="1" colname="col7" align="left"><bold>fixedValue</bold> value uniform 2</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1" align="left"/>
         <oasis:entry rowsep="1" colname="col2" align="left">waterJet</oasis:entry>
         <oasis:entry rowsep="1" colname="col3" align="left"><bold>fixedFluxPressure</bold>  value uniform 0</oasis:entry>
         <oasis:entry rowsep="1" colname="col4" align="left"><bold>flowRateInletVelocity</bold>  volumetricFlowRate 0.42  value uniform (0 0 0)</oasis:entry>
         <oasis:entry rowsep="1" colname="col5" align="left"><bold>fixedValue</bold>  value uniform 1</oasis:entry>
         <oasis:entry rowsep="1" colname="col6" align="left"><bold>fixedValue</bold>  value uniform 10</oasis:entry>
         <oasis:entry rowsep="1" colname="col7" align="left"><bold>fixedValue</bold>  value uniform 8</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1" align="left"/>
         <oasis:entry rowsep="1" colname="col2" align="left">banks</oasis:entry>
         <oasis:entry rowsep="1" colname="col3" align="left"><bold>slip</bold></oasis:entry>
         <oasis:entry rowsep="1" colname="col4" align="left"><bold>slip</bold></oasis:entry>
         <oasis:entry rowsep="1" colname="col5" align="left"><bold>slip</bold></oasis:entry>
         <oasis:entry rowsep="1" colname="col6" align="left"><bold>slip</bold></oasis:entry>
         <oasis:entry rowsep="1" colname="col7" align="left"><bold>slip</bold></oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1" align="left"/>
         <oasis:entry rowsep="1" colname="col2" align="left">riverbed</oasis:entry>
         <oasis:entry rowsep="1" colname="col3" align="left"><bold>fixedFluxPressure</bold>  value uniform 0</oasis:entry>
         <oasis:entry rowsep="1" colname="col4" align="left"><bold>fixedValue</bold>  value uniform (0 0 0)</oasis:entry>
         <oasis:entry rowsep="1" colname="col5" align="left"><bold>zeroGradient</bold></oasis:entry>
         <oasis:entry rowsep="1" colname="col6" align="left"><bold>surInterfaceSolute</bold>  value uniform 0</oasis:entry>
         <oasis:entry rowsep="1" colname="col7" align="left"><bold>surInterfaceHeat</bold>  value uniform <inline-formula><mml:math id="M402" display="inline"><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">2</mml:mn></mml:mrow></mml:math></inline-formula></oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1" align="left"/>
         <oasis:entry rowsep="1" colname="col2" align="left">atmosphere</oasis:entry>
         <oasis:entry rowsep="1" colname="col3" align="left"><bold>totalPressure</bold>  p0 uniform 0  value uniform 0</oasis:entry>
         <oasis:entry rowsep="1" colname="col4" align="left"><bold>pressureInletOutletVelocity</bold>  value uniform (0 0 0)</oasis:entry>
         <oasis:entry rowsep="1" colname="col5" align="left"><bold>inletOutlet</bold>  inletValue uniform 0  value uniform 0</oasis:entry>
         <oasis:entry rowsep="1" colname="col6" align="left"><bold>inletOutlet</bold>  inletValue uniform 0  value uniform 0</oasis:entry>
         <oasis:entry rowsep="1" colname="col7" align="left"><bold>inletOutlet</bold>  inletValue uniform <inline-formula><mml:math id="M403" display="inline"><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">2</mml:mn></mml:mrow></mml:math></inline-formula>  value uniform <inline-formula><mml:math id="M404" display="inline"><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">2</mml:mn></mml:mrow></mml:math></inline-formula></oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1" align="left"/>
         <oasis:entry colname="col2" align="left">outlet</oasis:entry>
         <oasis:entry colname="col3" align="left"><bold>fixedValue</bold>  value uniform 0</oasis:entry>
         <oasis:entry colname="col4" align="left"><bold>pressureInletOutletVelocity</bold>  value uniform (0 0 0)</oasis:entry>
         <oasis:entry colname="col5" align="left"><bold>zeroGradient</bold></oasis:entry>
         <oasis:entry colname="col6" align="left"><bold>zeroGradient</bold></oasis:entry>
         <oasis:entry colname="col7" align="left"><bold>zeroGradient</bold></oasis:entry>
       </oasis:row>
     </oasis:tbody>
   </oasis:tgroup></oasis:table></table-wrap>

<table-wrap id="TA3"><label>Table A3</label><caption><p id="d2e8891">Initial (IC) and boundary conditions (BC) defined for each kOmegaSST turbulence model variable.</p></caption><oasis:table frame="topbot"><oasis:tgroup cols="5">
     <oasis:colspec colnum="1" colname="col1" align="justify" colwidth="1.5cm"/>
     <oasis:colspec colnum="2" colname="col2" align="justify" colwidth="1.5cm"/>
     <oasis:colspec colnum="3" colname="col3" align="justify" colwidth="3.7cm"/>
     <oasis:colspec colnum="4" colname="col4" align="justify" colwidth="3cm"/>
     <oasis:colspec colnum="5" colname="col5" align="justify" colwidth="3cm"/>
     <oasis:thead>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1" align="left"/>
         <oasis:entry colname="col2" align="left"/>
         <oasis:entry colname="col3" align="left">nut (<inline-formula><mml:math id="M405" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">ν</mml:mi><mml:mrow><mml:mi mathvariant="normal">turb</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula>)</oasis:entry>
         <oasis:entry colname="col4" align="left">k (<inline-formula><mml:math id="M406" display="inline"><mml:mrow><mml:msub><mml:mi>k</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>)</oasis:entry>
         <oasis:entry colname="col5" align="left">omega (<inline-formula><mml:math id="M407" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">ω</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>)</oasis:entry>
       </oasis:row>
     </oasis:thead>
     <oasis:tbody>
       <oasis:row rowsep="1">
         <oasis:entry namest="col1" nameend="col2" align="left">Dimensions </oasis:entry>
         <oasis:entry colname="col3" align="left">[0 2 <inline-formula><mml:math id="M408" display="inline"><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:math></inline-formula> 0 0 0 0]  (m<sup>2</sup> s<sup>−1</sup>)</oasis:entry>
         <oasis:entry colname="col4" align="left">[0 2 <inline-formula><mml:math id="M411" display="inline"><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">2</mml:mn></mml:mrow></mml:math></inline-formula> 0 0 0 0] (m<sup>2</sup> s<sup>−2</sup>)</oasis:entry>
         <oasis:entry colname="col5" align="left">[0 0 <inline-formula><mml:math id="M414" display="inline"><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:math></inline-formula> 0 0 0 0]  (s<sup>−1</sup>)</oasis:entry>
       </oasis:row>
       <oasis:row rowsep="1">
         <oasis:entry namest="col1" nameend="col2" align="left">Initial conditions </oasis:entry>
         <oasis:entry colname="col3" align="left">uniform 0.05</oasis:entry>
         <oasis:entry colname="col4" align="left">uniform 0.2</oasis:entry>
         <oasis:entry colname="col5" align="left">uniform 4.5</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1" align="left">Boundaries</oasis:entry>
         <oasis:entry rowsep="1" colname="col2" align="left">inletAir</oasis:entry>
         <oasis:entry rowsep="1" colname="col3" align="left"><bold>calculated</bold>  value uniform 0.05</oasis:entry>
         <oasis:entry rowsep="1" colname="col4" align="left"><bold>inletOutlet</bold>  inletValue uniform 0.2  value uniform 0.2</oasis:entry>
         <oasis:entry rowsep="1" colname="col5" align="left"><bold>inletOutlet</bold>  inletValue uniform 4.5  value uniform 4.5</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1" align="left"/>
         <oasis:entry rowsep="1" colname="col2" align="left">inletWater</oasis:entry>
         <oasis:entry rowsep="1" colname="col3" align="left"><bold>calculated</bold>  value uniform 0.05</oasis:entry>
         <oasis:entry rowsep="1" colname="col4" align="left"><bold>fixedValue</bold>  value uniform 0.1</oasis:entry>
         <oasis:entry rowsep="1" colname="col5" align="left"><bold>fixedValue</bold>  value uniform 9</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1" align="left"/>
         <oasis:entry rowsep="1" colname="col2" align="left">waterJet</oasis:entry>
         <oasis:entry rowsep="1" colname="col3" align="left"><bold>calculated</bold>  value uniform 0.05</oasis:entry>
         <oasis:entry rowsep="1" colname="col4" align="left"><bold>fixedValue</bold>  value uniform 0.1</oasis:entry>
         <oasis:entry rowsep="1" colname="col5" align="left"><bold>fixedValue</bold>  value uniform 9</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1" align="left"/>
         <oasis:entry rowsep="1" colname="col2" align="left">banks</oasis:entry>
         <oasis:entry rowsep="1" colname="col3" align="left"><bold>slip</bold></oasis:entry>
         <oasis:entry rowsep="1" colname="col4" align="left"><bold>slip</bold></oasis:entry>
         <oasis:entry rowsep="1" colname="col5" align="left"><bold>slip</bold></oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1" align="left"/>
         <oasis:entry rowsep="1" colname="col2" align="left">riverbed</oasis:entry>
         <oasis:entry rowsep="1" colname="col3" align="left"><bold>nutkRoughWallFunction</bold>  Cs uniform 0.5  Ks uniform 0.03  value uniform 0.05</oasis:entry>
         <oasis:entry rowsep="1" colname="col4" align="left"><bold>kqRWallFunction</bold>  value uniform 0.2</oasis:entry>
         <oasis:entry rowsep="1" colname="col5" align="left"><bold>omegaWallFunction</bold>  value uniform 4.5</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1" align="left"/>
         <oasis:entry rowsep="1" colname="col2" align="left">atmosphere</oasis:entry>
         <oasis:entry rowsep="1" colname="col3" align="left"><bold>calculated</bold>  value uniform 0.05</oasis:entry>
         <oasis:entry rowsep="1" colname="col4" align="left"><bold>inletOutlet</bold>  inletValue uniform 0.2  value uniform 0.2</oasis:entry>
         <oasis:entry rowsep="1" colname="col5" align="left"><bold>inletOutlet</bold>  inletValue uniform 4.5  value uniform 4.5</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1" align="left"/>
         <oasis:entry colname="col2" align="left">outlet</oasis:entry>
         <oasis:entry colname="col3" align="left"><bold>calculated</bold>  value uniform 0.05</oasis:entry>
         <oasis:entry colname="col4" align="left"><bold>zeroGradient</bold></oasis:entry>
         <oasis:entry colname="col5" align="left"><bold>zeroGradient</bold></oasis:entry>
       </oasis:row>
     </oasis:tbody>
   </oasis:tgroup></oasis:table></table-wrap>

<table-wrap id="TA4"><label>Table A4</label><caption><p id="d2e9295">Initial (IC) and boundary conditions (BC) defined for each subsurface variable.</p></caption><oasis:table frame="topbot"><oasis:tgroup cols="6">
     <oasis:colspec colnum="1" colname="col1" align="justify" colwidth="1.5cm"/>
     <oasis:colspec colnum="2" colname="col2" align="justify" colwidth="1.5cm"/>
     <oasis:colspec colnum="3" colname="col3" align="justify" colwidth="3.4cm"/>
     <oasis:colspec colnum="4" colname="col4" align="justify" colwidth="3cm"/>
     <oasis:colspec colnum="5" colname="col5" align="justify" colwidth="3cm"/>
     <oasis:colspec colnum="6" colname="col6" align="justify" colwidth="3cm"/>
     <oasis:thead>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1" align="left"/>
         <oasis:entry colname="col2" align="left"/>
         <oasis:entry colname="col3" align="left">h (<inline-formula><mml:math id="M416" display="inline"><mml:mrow><mml:msub><mml:mi>h</mml:mi><mml:mrow><mml:mi mathvariant="normal">sub</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula>)</oasis:entry>
         <oasis:entry colname="col4" align="left">q (<inline-formula><mml:math id="M417" display="inline"><mml:mrow><mml:msub><mml:mi>q</mml:mi><mml:mi mathvariant="normal">i</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>)</oasis:entry>
         <oasis:entry colname="col5" align="left">C (<inline-formula><mml:math id="M418" display="inline"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mrow><mml:mi mathvariant="normal">sub</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula>)</oasis:entry>
         <oasis:entry colname="col6" align="left">T (<inline-formula><mml:math id="M419" display="inline"><mml:mrow><mml:msub><mml:mi>T</mml:mi><mml:mrow><mml:mi mathvariant="normal">sub</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula>)</oasis:entry>
       </oasis:row>
     </oasis:thead>
     <oasis:tbody>
       <oasis:row rowsep="1">
         <oasis:entry namest="col1" nameend="col2" align="left">Dimensions </oasis:entry>
         <oasis:entry colname="col3" align="left">[0 1 0 0 0 0 0]  (m)</oasis:entry>
         <oasis:entry colname="col4" align="left">[0 1 <inline-formula><mml:math id="M420" display="inline"><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:math></inline-formula> 0 0 0 0]  (m s<sup>−1</sup>)</oasis:entry>
         <oasis:entry colname="col5" align="left">[1 <inline-formula><mml:math id="M422" display="inline"><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">3</mml:mn></mml:mrow></mml:math></inline-formula> 0 0 0 0 0]  (kg m<sup>−3</sup>)</oasis:entry>
         <oasis:entry colname="col6" align="left">[0 0 0 1 0 0 0]  (°C)</oasis:entry>
       </oasis:row>
       <oasis:row rowsep="1">
         <oasis:entry namest="col1" nameend="col2" align="left">Initial conditions </oasis:entry>
         <oasis:entry colname="col3" align="left">uniform 1</oasis:entry>
         <oasis:entry colname="col4" align="left">uniform (<inline-formula><mml:math id="M424" display="inline"><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn><mml:mo>×</mml:mo><mml:msup><mml:mn mathvariant="normal">10</mml:mn><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">5</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula> <inline-formula><mml:math id="M425" display="inline"><mml:mrow><mml:mn mathvariant="normal">1.5</mml:mn><mml:mo>×</mml:mo><mml:msup><mml:mn mathvariant="normal">10</mml:mn><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">5</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula> 0)</oasis:entry>
         <oasis:entry colname="col5" align="left">uniform 10</oasis:entry>
         <oasis:entry colname="col6" align="left">uniform 8</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1" align="left">Boundaries</oasis:entry>
         <oasis:entry rowsep="1" colname="col2" align="left">inlet</oasis:entry>
         <oasis:entry rowsep="1" colname="col3" align="left"><bold>darcyGradHead</bold>  value uniform 1</oasis:entry>
         <oasis:entry rowsep="1" colname="col4" align="left"><bold>fixedValue</bold>  value uniform (<inline-formula><mml:math id="M426" display="inline"><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn><mml:mo>×</mml:mo><mml:msup><mml:mn mathvariant="normal">10</mml:mn><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">5</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula> <inline-formula><mml:math id="M427" display="inline"><mml:mrow><mml:mn mathvariant="normal">1.5</mml:mn><mml:mo>×</mml:mo><mml:msup><mml:mn mathvariant="normal">10</mml:mn><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">5</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula> 0)</oasis:entry>
         <oasis:entry rowsep="1" colname="col5" align="left"><bold>fixedValue</bold>  value uniform 10</oasis:entry>
         <oasis:entry rowsep="1" colname="col6" align="left"><bold>fixedValue</bold>  value uniform 8</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1" align="left"/>
         <oasis:entry rowsep="1" colname="col2" align="left">banks</oasis:entry>
         <oasis:entry rowsep="1" colname="col3" align="left"><bold>slip</bold></oasis:entry>
         <oasis:entry rowsep="1" colname="col4" align="left"><bold>slip</bold></oasis:entry>
         <oasis:entry rowsep="1" colname="col5" align="left"><bold>slip</bold></oasis:entry>
         <oasis:entry rowsep="1" colname="col6" align="left"><bold>slip</bold></oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1" align="left"/>
         <oasis:entry rowsep="1" colname="col2" align="left">aquifer</oasis:entry>
         <oasis:entry rowsep="1" colname="col3" align="left"><bold>slip</bold></oasis:entry>
         <oasis:entry rowsep="1" colname="col4" align="left"><bold>slip</bold></oasis:entry>
         <oasis:entry rowsep="1" colname="col5" align="left"><bold>slip</bold></oasis:entry>
         <oasis:entry rowsep="1" colname="col6" align="left"><bold>slip</bold></oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1" align="left"/>
         <oasis:entry rowsep="1" colname="col2" align="left">riverbed</oasis:entry>
         <oasis:entry rowsep="1" colname="col3" align="left"><bold>fixedValue</bold>  value uniform 0</oasis:entry>
         <oasis:entry rowsep="1" colname="col4" align="left"><bold>calculated</bold>  value uniform (<inline-formula><mml:math id="M428" display="inline"><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn><mml:mo>×</mml:mo><mml:msup><mml:mn mathvariant="normal">10</mml:mn><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">5</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula> <inline-formula><mml:math id="M429" display="inline"><mml:mrow><mml:mn mathvariant="normal">1.5</mml:mn><mml:mo>×</mml:mo><mml:msup><mml:mn mathvariant="normal">10</mml:mn><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">5</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula> 0)</oasis:entry>
         <oasis:entry rowsep="1" colname="col5" align="left"><bold>subInterfaceSolute</bold>  value uniform 10</oasis:entry>
         <oasis:entry rowsep="1" colname="col6" align="left"><bold>subInterfaceHeat</bold>  value uniform 8</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1" align="left"/>
         <oasis:entry colname="col2" align="left">outlet</oasis:entry>
         <oasis:entry colname="col3" align="left"><bold>surfaceHydrostaticHead</bold>  value uniform 1</oasis:entry>
         <oasis:entry colname="col4" align="left"><bold>calculated</bold>  value uniform (<inline-formula><mml:math id="M430" display="inline"><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn><mml:mo>×</mml:mo><mml:msup><mml:mn mathvariant="normal">10</mml:mn><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">5</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula> <inline-formula><mml:math id="M431" display="inline"><mml:mrow><mml:mn mathvariant="normal">1.5</mml:mn><mml:mo>×</mml:mo><mml:msup><mml:mn mathvariant="normal">10</mml:mn><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">5</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula> 0)</oasis:entry>
         <oasis:entry colname="col5" align="left"><bold>zeroGradient</bold></oasis:entry>
         <oasis:entry colname="col6" align="left"><bold>zeroGradient</bold></oasis:entry>
       </oasis:row>
     </oasis:tbody>
   </oasis:tgroup></oasis:table></table-wrap>

<table-wrap id="TA5"><label>Table A5</label><caption><p id="d2e9802">Numerical schemes selected to discretize the surface and subsurface equation terms.</p></caption><oasis:table frame="topbot"><oasis:tgroup cols="3">
     <oasis:colspec colnum="1" colname="col1" align="left"/>
     <oasis:colspec colnum="2" colname="col2" align="justify" colwidth="6cm"/>
     <oasis:colspec colnum="3" colname="col3" align="justify" colwidth="6cm"/>
     <oasis:thead>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1">Scheme types</oasis:entry>
         <oasis:entry colname="col2" align="left">Equation terms</oasis:entry>
         <oasis:entry colname="col3" align="left">Numerical schemes</oasis:entry>
       </oasis:row>
     </oasis:thead>
     <oasis:tbody>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1">ddtSchemes</oasis:entry>
         <oasis:entry colname="col2" align="left">default</oasis:entry>
         <oasis:entry colname="col3" align="left">Euler</oasis:entry>
       </oasis:row>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1">gradSchemes</oasis:entry>
         <oasis:entry colname="col2" align="left">default</oasis:entry>
         <oasis:entry colname="col3" align="left">Gauss linear</oasis:entry>
       </oasis:row>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1">divSchemes</oasis:entry>
         <oasis:entry colname="col2" align="left">default div(rhoPhi,U)  div(rhoCpPhi,T)  div(phi,C)  div(phi,alpha)  div(phirb,alpha)  div(phi,k)  div(phi,omega)  div(((rho*nuEff)*dev2(T(grad(U)))))</oasis:entry>
         <oasis:entry colname="col3" align="left">Gauss linear  Gauss linearUpwind grad(U)  Gauss limitedLinear 1 Gauss upwind  Gauss vanLeer  Gauss interfaceCompression  Gauss upwind  Gauss upwind  Gauss linear</oasis:entry>
       </oasis:row>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1">laplacianSchemes</oasis:entry>
         <oasis:entry colname="col2" align="left">default</oasis:entry>
         <oasis:entry colname="col3" align="left">Gauss linear corrected</oasis:entry>
       </oasis:row>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1">interpolationSchemes</oasis:entry>
         <oasis:entry colname="col2" align="left">default</oasis:entry>
         <oasis:entry colname="col3" align="left">linear</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">snGradSchemes</oasis:entry>
         <oasis:entry colname="col2" align="left">default</oasis:entry>
         <oasis:entry colname="col3" align="left">corrected</oasis:entry>
       </oasis:row>
     </oasis:tbody>
   </oasis:tgroup></oasis:table></table-wrap>

<table-wrap id="TA6"><label>Table A6</label><caption><p id="d2e9945">Numerical solvers selected to solve the surface and subsurface (italic) variables.</p></caption><oasis:table frame="topbot"><oasis:tgroup cols="9">
     <oasis:colspec colnum="1" colname="col1" align="left"/>
     <oasis:colspec colnum="2" colname="col2" align="left" colsep="1"/>
     <oasis:colspec colnum="3" colname="col3" align="left" colsep="1"/>
     <oasis:colspec colnum="4" colname="col4" align="left" colsep="1"/>
     <oasis:colspec colnum="5" colname="col5" align="left" colsep="1"/>
     <oasis:colspec colnum="6" colname="col6" align="left" colsep="1"/>
     <oasis:colspec colnum="7" colname="col7" align="left" colsep="1"/>
     <oasis:colspec colnum="8" colname="col8" align="left" colsep="1"/>
     <oasis:colspec colnum="9" colname="col9" align="left"/>
     <oasis:thead>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1"/>
         <oasis:entry colname="col2">p_rgh</oasis:entry>
         <oasis:entry colname="col3">h</oasis:entry>
         <oasis:entry colname="col4">U</oasis:entry>
         <oasis:entry colname="col5">alpha.water</oasis:entry>
         <oasis:entry colname="col6">k</oasis:entry>
         <oasis:entry colname="col7">omega</oasis:entry>
         <oasis:entry colname="col8">C</oasis:entry>
         <oasis:entry colname="col9">T</oasis:entry>
       </oasis:row>
     </oasis:thead>
     <oasis:tbody>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1">solver</oasis:entry>
         <oasis:entry namest="col2" nameend="col3" align="center" colsep="1">PCG </oasis:entry>
         <oasis:entry namest="col4" nameend="col8" align="center" colsep="1">smoothSolver </oasis:entry>
         <oasis:entry colname="col9">PBiCG</oasis:entry>
       </oasis:row>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1">preconditioner/smoother</oasis:entry>
         <oasis:entry namest="col2" nameend="col3" align="center" colsep="1">DIC </oasis:entry>
         <oasis:entry namest="col4" nameend="col8" align="center" colsep="1">symGaussSeidel </oasis:entry>
         <oasis:entry colname="col9">DILU</oasis:entry>
       </oasis:row>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1">tolerance</oasis:entry>
         <oasis:entry colname="col2">10<sup>−7</sup></oasis:entry>
         <oasis:entry colname="col3"><italic>10</italic><sup>−6</sup></oasis:entry>
         <oasis:entry namest="col4" nameend="col7" align="center" colsep="1">10<sup>−8</sup></oasis:entry>
         <oasis:entry colname="col8"><italic>10</italic><sup>−6</sup></oasis:entry>
         <oasis:entry colname="col9">10<sup>−7</sup></oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">relative tolerance (relTol)</oasis:entry>
         <oasis:entry colname="col2">0.05</oasis:entry>
         <oasis:entry colname="col3"><italic>0</italic></oasis:entry>
         <oasis:entry namest="col4" nameend="col8" align="center" colsep="1">0 </oasis:entry>
         <oasis:entry colname="col9">0</oasis:entry>
       </oasis:row>
     </oasis:tbody>
   </oasis:tgroup></oasis:table></table-wrap>

</app>
  </app-group><notes notes-type="codedataavailability"><title>Code and data availability</title>

      <p id="d2e10141">The source code of the darcyInterTransportFoam v1.0 solver, as well as that of its complementary utilities and boundary conditions, is publicly available at <uri>https://github.com/alvpardo/darcyInterTransportFoam-latest.git</uri> (last access: 9 September 2025) and preserved in Pardo-Álvarez (2026a, <ext-link xlink:href="https://doi.org/10.5281/zenodo.17092721" ext-link-type="DOI">10.5281/zenodo.17092721</ext-link>) under the MIT License. Installation instructions are provided in the README file. The MATLAB-based OpenFOAM mesh and data dictionary generator is archived in Pardo-Álvarez (2026b, <ext-link xlink:href="https://doi.org/10.5281/zenodo.15857296" ext-link-type="DOI">10.5281/zenodo.15857296</ext-link>). Likewise, the code and data necessary to reproduce all the test case results are deposited in Pardo-Álvarez (2026c, <ext-link xlink:href="https://doi.org/10.5281/zenodo.16283559" ext-link-type="DOI">10.5281/zenodo.16283559</ext-link>).</p>
  </notes><app-group>
        <supplementary-material position="anchor"><p id="d2e10156">The supplement related to this article is available online at <inline-supplementary-material xlink:href="https://doi.org/10.5194/gmd-19-3923-2026-supplement" xlink:title="pdf">https://doi.org/10.5194/gmd-19-3923-2026-supplement</inline-supplementary-material>.</p></supplementary-material>
        </app-group><notes notes-type="authorcontribution"><title>Author contributions</title>

      <p id="d2e10165">APA raised the idea to develop darcyInterTransportFoam from the existing hyporheicScalarInterFoam solver, implemented the model code, set up the test case and performed the simulation. Moreover, APA prepared the figures and wrote the manuscript draft. KK conducted the drone flight to acquire the thermal data. PB and JHF reviewed and corrected the manuscript.</p>
  </notes><notes notes-type="competinginterests"><title>Competing interests</title>

      <p id="d2e10171">The contact author has declared that none of the authors has any competing interests.</p>
  </notes><notes notes-type="disclaimer"><title>Disclaimer</title>

      <p id="d2e10177">Publisher's note: Copernicus Publications remains neutral with regard to jurisdictional claims made in the text, published maps, institutional affiliations, or any other geographical representation in this paper. The authors bear the ultimate responsibility for providing appropriate place names. Views expressed in the text are those of the authors and do not necessarily reflect the views of the publisher.</p>
  </notes><ack><title>Acknowledgements</title><p id="d2e10186">The authors would like to thank Nico Trauth and Santiago Márquez-Damian for their initial assistance with OpenFOAM; Franz Dichgans for the many fruitful discussions on the model code implementation. Special thanks go to Philippe Renard for granting access to Galileo, the local HPC cluster of the Stochastic Hydrogeology and Geostatistics Group at the University of Neuchâtel, which supplied the necessary resources for efficient computations. The authors also extend their gratitude to Przemyslaw Juda and Ludovic Schorpp for their support with cluster-related issues, as well as to the anonymous reviewers and the associate editor for their constructive comments, which greatly improved this manuscript.</p></ack><notes notes-type="financialsupport"><title>Financial support</title>

      <p id="d2e10191">This work was supported by the EU's Framework Programme Horizon 2020 for Research and Innovation under the Marie Sklodowska-Curie grant agreement No. 722028 (ENIGMA ITN) and by the University of Neuchâtel.</p>
  </notes><notes notes-type="reviewstatement"><title>Review statement</title>

      <p id="d2e10197">This paper was edited by Lele Shu and reviewed by two anonymous referees.</p>
  </notes><ref-list>
    <title>References</title>

      <ref id="bib1.bib1"><label>1</label><mixed-citation>Anderson, M. P., Woessner, W. W., and Hunt, R. J.: Applied Groundwater Modeling, 2nd Edn., Elsevier Inc, 564 pp., <ext-link xlink:href="https://doi.org/10.1016/C2009-0-21563-7" ext-link-type="DOI">10.1016/C2009-0-21563-7</ext-link>, 2015.</mixed-citation></ref>
      <ref id="bib1.bib2"><label>2</label><mixed-citation>Aryal, P.: Modeling free surface thermal flow with relative motion of heat source and drop injector with respect to a liquid pool, Technical Rep. in proceedings of the course CFD with open-source software, Chalmers University of Technology, Göteborg, Sweden, 46 pp., <uri>http://dx.doi.org/10.17196/OS_CFD#YEAR_2019</uri>, 2019.</mixed-citation></ref>
      <ref id="bib1.bib3"><label>3</label><mixed-citation>Barthel, R. and Banzhaf, S.: Groundwater and surface water interaction at the regional-scale – A review with focus on regional integrated models, Water Resour. Manag., 30, 1–32, <ext-link xlink:href="https://doi.org/10.1007/s11269-015-1163-z" ext-link-type="DOI">10.1007/s11269-015-1163-z</ext-link>, 2016.</mixed-citation></ref>
      <ref id="bib1.bib4"><label>4</label><mixed-citation>Bayon-Barrachina, A. and Lopez-Jimenez, P. A.: Numerical analysis of hydraulic jumps using OpenFOAM, J. Hydroinform., 17, 662–678, <ext-link xlink:href="https://doi.org/10.2166/hydro.2015.041" ext-link-type="DOI">10.2166/hydro.2015.041</ext-link>, 2015.</mixed-citation></ref>
      <ref id="bib1.bib5"><label>5</label><mixed-citation> Bear, J. (Ed.).: Dynamics of fluids in porous media, 1st Edn., American Elsevier Publishing Company, New York, USA, 764 pp., ISBN 978-0444001146, 1972.</mixed-citation></ref>
      <ref id="bib1.bib6"><label>6</label><mixed-citation>Berberović, E., van Hinsberg, N. P., Jakirlić, S., Roisman, I. V., and Tropea, C.: Drop impact onto a liquid layer of finite thickness: dynamics of the cavity evolution, Phys. Rev. E, 79, 036306, <ext-link xlink:href="https://doi.org/10.1103/PhysRevE.79.036306" ext-link-type="DOI">10.1103/PhysRevE.79.036306</ext-link>, 2009.</mixed-citation></ref>
      <ref id="bib1.bib7"><label>7</label><mixed-citation>Blanc, T., Peel, M., Brennwald, M. S., Kipfer, R., and Brunner, P.: Efficient injection of gas tracers into rivers: a tool to study surface water–groundwater interactions, Water Res., 254, 121375, <ext-link xlink:href="https://doi.org/10.1016/j.watres.2024.121375" ext-link-type="DOI">10.1016/j.watres.2024.121375</ext-link>, 2024.</mixed-citation></ref>
      <ref id="bib1.bib8"><label>8</label><mixed-citation> Blau, R. V. and Muchenberger, F.: Grundlagen für schutz und bewirtschaftung der grundwasser des Kantons Bern: nutzungs-, schutz- und überwachungskonzept für die grundwasserleiter des obersten Emmentals, zwischen Emmenmatt, Langnau und Eggiwil, Technical Rep., wasser- und energiewirtschaft des Kantons Bern, Bern, Switzerland,  1997.</mixed-citation></ref>
      <ref id="bib1.bib9"><label>9</label><mixed-citation>Boano, F., Harvey, J. W., Marion, A., Packman, A. I., Revelli, R., Ridolfi, L., and Wörman, A.: Hyporheic flow and transport processes: mechanisms, models, and biogeochemical implications, Rev. Geophys., 41, 603–679, <ext-link xlink:href="https://doi.org/10.1002/2012RG000417" ext-link-type="DOI">10.1002/2012RG000417</ext-link>, 2014.</mixed-citation></ref>
      <ref id="bib1.bib10"><label>10</label><mixed-citation>Boudreau, B. P.: The diffusive tortuosity of fine-grained unlithified sediments, Geochim. Cosmochim. Ac., 60, 3139–3142, <ext-link xlink:href="https://doi.org/10.1016/0016-7037(96)00158-5" ext-link-type="DOI">10.1016/0016-7037(96)00158-5</ext-link>, 1996.</mixed-citation></ref>
      <ref id="bib1.bib11"><label>11</label><mixed-citation>Broecker, T., Elsesser, W., Teuber, K., Özgen, I., Nützmann, G., and Hinkelmann, R.: High-resolution simulation of free-surface flow and tracer retention over streambeds with ripples, Limnologica, 68, 46–58, <ext-link xlink:href="https://doi.org/10.1016/j.limno.2017.06.005" ext-link-type="DOI">10.1016/j.limno.2017.06.005</ext-link>, 2017.</mixed-citation></ref>
      <ref id="bib1.bib12"><label>12</label><mixed-citation>Broecker, T., Teuber, K., Sobhi Gollo, V., Nützmann, G., Lewandowski, J., and Hinkelmann, R.: Integral flow modelling approach for surface water-groundwater interactions along a rippled streambed, Water, 11, 1517, <ext-link xlink:href="https://doi.org/10.3390/w11071517" ext-link-type="DOI">10.3390/w11071517</ext-link>, 2019.</mixed-citation></ref>
      <ref id="bib1.bib13"><label>13</label><mixed-citation>Broecker, T., Gollo, V. S., Fox, A., Lewandowski, J., Nützmann, G., Arnon, S., and Hinkelmann, R.: High-resolution integrated transport model for studying surface water–groundwater interaction, Groundwater, 59, 488–502, <ext-link xlink:href="https://doi.org/10.1111/gwat.13071" ext-link-type="DOI">10.1111/gwat.13071</ext-link>, 2021.</mixed-citation></ref>
      <ref id="bib1.bib14"><label>14</label><mixed-citation>Brunner, P., Therrien, R., Renard, P., Simmons, C. T., and Hendricks Franssen, H.-J.: Advances in understanding river-groundwater interactions, Rev. Geophys., 55, 818–854, <ext-link xlink:href="https://doi.org/10.1002/2017RG000556" ext-link-type="DOI">10.1002/2017RG000556</ext-link>, 2017.</mixed-citation></ref>
      <ref id="bib1.bib15"><label>15</label><mixed-citation>Cardenas, M. B., Cook, P. L., Jiang, H., and Traykovski, P.: Constraining denitrification in permeable wave-influenced marine sediment using linked hydrodynamic and biogeochemical modeling, Earth Planet. Sc. Lett., 275, 127–137, <ext-link xlink:href="https://doi.org/10.1016/j.epsl.2008.08.016" ext-link-type="DOI">10.1016/j.epsl.2008.08.016</ext-link>, 2008.</mixed-citation></ref>
      <ref id="bib1.bib16"><label>16</label><mixed-citation>Chen, X., Cardenas, M. B., and Chen, L.: Three-dimensional versus two-dimensional bed form-induced hyporheic exchange, Water Resour. Res., 51, 2923–2936, <ext-link xlink:href="https://doi.org/10.1002/2014WR016848" ext-link-type="DOI">10.1002/2014WR016848</ext-link>, 2015.</mixed-citation></ref>
      <ref id="bib1.bib17"><label>17</label><mixed-citation>Chen, X., Cardenas, M. B., and Chen, L.: Hyporheic exchange driven by three-dimensional sandy bed forms: sensitivity to and prediction from bed form geometry, Water Resour. Res., 54, 4131–4149, <ext-link xlink:href="https://doi.org/10.1029/2018WR022663" ext-link-type="DOI">10.1029/2018WR022663</ext-link>, 2018.</mixed-citation></ref>
      <ref id="bib1.bib18"><label>18</label><mixed-citation>Coluccio, K. and Morgan, L. K.: A review of methods for measuring groundwater–surface water exchange in braided rivers, Hydrol. Earth Syst. Sci., 23, 4397–4417, <ext-link xlink:href="https://doi.org/10.5194/hess-23-4397-2019" ext-link-type="DOI">10.5194/hess-23-4397-2019</ext-link>, 2019.</mixed-citation></ref>
      <ref id="bib1.bib19"><label>19</label><mixed-citation>Deshpande, S. S., Anumolu, L., and Trujillo, M. F.: Evaluating the performance of the two-phase flow solver interFoam, Comput. Sci. Discov., 5, 014016, <ext-link xlink:href="https://doi.org/10.1088/1749-4699/5/1/014016" ext-link-type="DOI">10.1088/1749-4699/5/1/014016</ext-link>, 2012.</mixed-citation></ref>
      <ref id="bib1.bib20"><label>20</label><mixed-citation>Dichgans, F., Boos, J.-P., Ahmadi, P., Frei, S., and Fleckenstein, J. H.: Integrated numerical modeling to quantify transport and fate of microplastics in the hyporheic zone, Water Res., 243, 120349, <ext-link xlink:href="https://doi.org/10.1016/j.watres.2023.120349" ext-link-type="DOI">10.1016/j.watres.2023.120349</ext-link>, 2023.</mixed-citation></ref>
      <ref id="bib1.bib21"><label>21</label><mixed-citation>Figura, S., Livingstone, D. M., and Kipfer, R.: Competing controls on groundwater oxygen concentrations revealed in multidecadal time series from riverbank filtration sites, Water Resour. Res., 49, 7411–7426, <ext-link xlink:href="https://doi.org/10.1002/2013WR013750" ext-link-type="DOI">10.1002/2013WR013750</ext-link>, 2013.</mixed-citation></ref>
      <ref id="bib1.bib22"><label>22</label><mixed-citation>Fleckenstein, J. H., Krause, S., Hannah, D. M., and Boano, F.: Groundwater-surface water interactions: new methods and models to improve understanding of processes and dynamics, Adv. Water Resour., 33, 1291–1295, <ext-link xlink:href="https://doi.org/10.1016/j.advwatres.2010.09.011" ext-link-type="DOI">10.1016/j.advwatres.2010.09.011</ext-link>, 2010.</mixed-citation></ref>
      <ref id="bib1.bib23"><label>23</label><mixed-citation>Haitjema, H. M.: The role of hand calculations in ground water flow modeling, Groundwater, 44, 786e791, <ext-link xlink:href="https://doi.org/10.1111/j.1745-6584.2006.00189.x" ext-link-type="DOI">10.1111/j.1745-6584.2006.00189.x</ext-link>, 2006.</mixed-citation></ref>
      <ref id="bib1.bib24"><label>24</label><mixed-citation>Haitjema, H. M. and Anderson, M. P.: Darcy velocity is not a velocity, Groundwater, 54, 1–1, <ext-link xlink:href="https://doi.org/10.1111/gwat.12386" ext-link-type="DOI">10.1111/gwat.12386</ext-link>, 2016.</mixed-citation></ref>
      <ref id="bib1.bib25"><label>25</label><mixed-citation>Haroun, Y., Legendre, D., and Raynal, L.: Volume of fluid method for interfacial reactive mass transfer: application to stable liquid film, Chem. Eng. Sci., 65, 2896–2909, <ext-link xlink:href="https://doi.org/10.1016/j.ces.2010.01.012" ext-link-type="DOI">10.1016/j.ces.2010.01.012</ext-link>, 2010.</mixed-citation></ref>
      <ref id="bib1.bib26"><label>26</label><mixed-citation>Hermans, T., Goderniaux, P., Jougnot, D., Fleckenstein, J. H., Brunner, P., Nguyen, F., Linde, N., Huisman, J. A., Bour, O., Lopez Alvis, J., Hoffmann, R., Palacios, A., Cooke, A.-K., Pardo-Álvarez, Á., Blazevic, L., Pouladi, B., Haruzi, P., Fernandez Visentini, A., Nogueira, G. E. H., Tirado-Conde, J., Looms, M. C., Kenshilikova, M., Davy, P., and Le Borgne, T.: Advancing measurements and representations of subsurface heterogeneity and dynamic processes: towards 4D hydrogeology, Hydrol. Earth Syst. Sci., 27, 255–287, <ext-link xlink:href="https://doi.org/10.5194/hess-27-255-2023" ext-link-type="DOI">10.5194/hess-27-255-2023</ext-link>, 2023.</mixed-citation></ref>
      <ref id="bib1.bib27"><label>27</label><mixed-citation>Hirt, C. W. and Nichols, B. D.: Volume of fluid (VOF) method for the dynamics of free boundaries, J. Comput. Phys., 39, 201–225, <ext-link xlink:href="https://doi.org/10.1016/0021-9991(81)90145-5" ext-link-type="DOI">10.1016/0021-9991(81)90145-5</ext-link>, 1981.</mixed-citation></ref>
      <ref id="bib1.bib28"><label>28</label><mixed-citation>Horgue, P., Soulaine, C., Franc, J., Guibert, R., and Debenest, G.: An open-source toolbox for multiphase flow in porous media, Comput. Phys. Commun., 187, 217–226, <ext-link xlink:href="https://doi.org/10.1016/j.cpc.2014.10.005" ext-link-type="DOI">10.1016/j.cpc.2014.10.005</ext-link>, 2015.</mixed-citation></ref>
      <ref id="bib1.bib29"><label>29</label><mixed-citation>Horgue, P., Renard, F., Gerlero, G., Guibert, R., and Debenest, G.: porousMultiphaseFoam v2107: An open-source tool for modeling saturated/unsaturated water flows and solute transfers at watershed scale, Comput. Phys. Commun., 273, 108278, <ext-link xlink:href="https://doi.org/10.1016/j.cpc.2021.108278" ext-link-type="DOI">10.1016/j.cpc.2021.108278</ext-link>, 2022.</mixed-citation></ref>
      <ref id="bib1.bib30"><label>30</label><mixed-citation>Janssen, F., Cardenas, M. B., Sawyer, A. H., Dammrich, T., Krietsch, J., and de Beer, D.: A comparative experimental and multiphysics computational fluid dynamics study of coupled surface–subsurface flow in bed forms, Water Resour. Res., 48, W08514, <ext-link xlink:href="https://doi.org/10.1029/2012WR011982" ext-link-type="DOI">10.1029/2012WR011982</ext-link>, 2012.</mixed-citation></ref>
      <ref id="bib1.bib31"><label>31</label><mixed-citation>Jin, G., Tang, H., Li, L., and Barry, D. A.: Hyporheic flow under periodic bed forms influenced by low-density gradients, Geophys. Res. Lett., 38, L22401, <ext-link xlink:href="https://doi.org/10.1029/2011GL049694" ext-link-type="DOI">10.1029/2011GL049694</ext-link>, 2011.</mixed-citation></ref>
      <ref id="bib1.bib32"><label>32</label><mixed-citation>Käser, D. and Hunkeler, D.: Contribution of alluvial groundwater to the outflow of mountainous catchments, Water Resour. Res., 52, 680–697, <ext-link xlink:href="https://doi.org/10.1002/2014WR016730" ext-link-type="DOI">10.1002/2014WR016730</ext-link>, 2016.</mixed-citation></ref>
      <ref id="bib1.bib33"><label>33</label><mixed-citation>Krause, S., Boano, F., Cuthbert, M. O., Fleckenstein, J. H., and Lewandowski, J.: Understanding process dynamics at aquifer-surface water interfaces: an introduction to the special section on new modeling approaches and novel experimental technologies, Water Resour. Res., 50, 1847–1855, <ext-link xlink:href="https://doi.org/10.1002/2013WR014755" ext-link-type="DOI">10.1002/2013WR014755</ext-link>, 2014.</mixed-citation></ref>
      <ref id="bib1.bib34"><label>34</label><mixed-citation>Krause, S., Lewandowski, J., Grimm, N. B., Hannah, D. M., Pinay, G., McDonald, K., Martí, E., Argerich, A., Pfister, L., Klaus, J., Battin, T., Larned, S. T., Schelker, J., Fleckenstein, J., Schmidt, C., Rivett, M. O., Watts, G., Sabater, F., Sorolla, A., and Turk, V.: Ecohydrological interfaces as hot spots of ecosystem processes, Water Resour. Res., 53, 6359–6376, <ext-link xlink:href="https://doi.org/10.1002/2016WR019516" ext-link-type="DOI">10.1002/2016WR019516</ext-link>, 2017.</mixed-citation></ref>
      <ref id="bib1.bib35"><label>35</label><mixed-citation>Krause, S., Hannah, D., and Grimm, N. (Eds.): Ecohydrological Interfaces, 1st Edn., John Wiley and Sons, 411 pp., <ext-link xlink:href="https://doi.org/10.1002/9781119489702" ext-link-type="DOI">10.1002/9781119489702</ext-link>, 2023.</mixed-citation></ref>
      <ref id="bib1.bib36"><label>36</label><mixed-citation>Lee, A., Aubeneau, A., and Cardenas, M.: The sensitivity of hyporheic exchange to fractal properties of riverbeds, Water Resour. Res., 56, e2019WR026560, <ext-link xlink:href="https://doi.org/10.1029/2019WR026560" ext-link-type="DOI">10.1029/2019WR026560</ext-link>, 2020.</mixed-citation></ref>
      <ref id="bib1.bib37"><label>37</label><mixed-citation>Lee, A., Aubeneau, A., Liu, X., and Cardenas, M. B.: Hyporheic exchange in sand dunes under a freely deforming river water surface, Water Resour. Res., 57, e2020WR028817, <ext-link xlink:href="https://doi.org/10.1029/2020WR028817" ext-link-type="DOI">10.1029/2020WR028817</ext-link>, 2021.</mixed-citation></ref>
      <ref id="bib1.bib38"><label>38</label><mixed-citation>Lee, A., Aubeneau, A., Cardenas, M., and Liu, X.: Hyporheic exchange due to cobbles on sandy beds, Water Resour. Res., 58, e2021WR030164, <ext-link xlink:href="https://doi.org/10.1029/2021WR030164" ext-link-type="DOI">10.1029/2021WR030164</ext-link>, 2022.</mixed-citation></ref>
      <ref id="bib1.bib39"><label>39</label><mixed-citation>Lewandowski, J., Arnon, S., Banks, E., Batelaan, O., Betterle, A., Broecker, T., Coll, C., Drummond, J. D., Gaona Garcia, J., Galloway, J., Gomez-Velez, J., Grabowski, R. C., Herzog, S. P., Hinkelmann, R., Höhne, A., Hollender, J., Horn, M. A., Jaeger, A., Krause, S., Löchner Prats, A., Magliozzi, C., Meinikmann, K., Mojarrad, B. B., Mueller, B. M., Peralta-Maraver, I., Popp, A. L., Posselt, M., Putschew, A., Radke, M., Raza, M., Riml, J., Robertson, A., Rutere, C., Schaper, J. L., Schirmer, M., Schulz, H., Shanafield, M., Singh, T., Ward, A. S., Wolke, P., Wörman, A., and Wu, L.: Is the hyporheic zone relevant beyond the Scientific Community?, Water, 11, 2230, <ext-link xlink:href="https://doi.org/10.3390/w11112230" ext-link-type="DOI">10.3390/w11112230</ext-link>, 2019.</mixed-citation></ref>
      <ref id="bib1.bib40"><label>40</label><mixed-citation>Lewandowski, J., Meinikmann, K., and Krause, S.: Groundwater–surface water interactions: recent advances and interdisciplinary challenges, Water, 12, 296, <ext-link xlink:href="https://doi.org/10.3390/w12010296" ext-link-type="DOI">10.3390/w12010296</ext-link>, 2020.</mixed-citation></ref>
      <ref id="bib1.bib41"><label>41</label><mixed-citation>Li, B., Liu, X., Kaufman, M. H., Turetcaia, A., Chen, X., and Cardenas, B. M.: Flexible and modular simultaneous modeling of flow and reactive transport in rivers and hyporheic zones, Water Resour. Res., 56, e2019WR026528, <ext-link xlink:href="https://doi.org/10.1029/2019WR026528" ext-link-type="DOI">10.1029/2019WR026528</ext-link>, 2020.</mixed-citation></ref>
      <ref id="bib1.bib42"><label>42</label><mixed-citation>Maxwell, R. M., Putti, M., Meyerhoff, S., Delfs, J.-O., Ferguson, I. M., Ivanov, V., Kim, J., Kolditz, O., Kollet, S. J., Kumar, M., Lopez, S., Niu, J., Paniconi, C., Park, Y.-J., Phanikumar, M. S., Shen, C., Sudicky, E. A., and Sulis, M.: Surface-subsurface model intercomparison: a first set of benchmark results to diagnose integrated hydrology and feedbacks, Water Resour. Res., 50, 1531–1549, <ext-link xlink:href="https://doi.org/10.1002/2013WR013725" ext-link-type="DOI">10.1002/2013WR013725</ext-link>, 2014.</mixed-citation></ref>
      <ref id="bib1.bib43"><label>43</label><mixed-citation>Menter, F. R.: Two-equation eddy-viscosity turbulence models for engineering applications, AIAAJ, 32, 1598–1605, <ext-link xlink:href="https://doi.org/10.2514/3.12149" ext-link-type="DOI">10.2514/3.12149</ext-link>, 1994.</mixed-citation></ref>
      <ref id="bib1.bib44"><label>44</label><mixed-citation>Nieves-Remacha, M. J., Yang, L., and Jensen, K. F.: OpenFOAM computational fluid dynamic simulations of two-phase flow and mass transfer in an advanced-flow reactor, Ind. Eng. Chem. Res., 54, 6649–6659, <ext-link xlink:href="https://doi.org/10.1021/acs.iecr.5b00480" ext-link-type="DOI">10.1021/acs.iecr.5b00480</ext-link>, 2015.</mixed-citation></ref>
      <ref id="bib1.bib45"><label>45</label><mixed-citation>Nisbeth, C. S., Kidmose, J., Weckström, K., Reitzel, K., Odgaard, B. V., Bennike, O., Thorling, L., McGowan, S., Schomacker, A., Kristensen, D. L. J., and Jessen, S.: Dissolved inorganic geogenic phosphorus load to a groundwater-fed lake: implications of terrestrial phosphorus cycling by groundwater, Water, 11, 2213, <ext-link xlink:href="https://doi.org/10.3390/w11112213" ext-link-type="DOI">10.3390/w11112213</ext-link>, 2019.</mixed-citation></ref>
      <ref id="bib1.bib46"><label>46</label><mixed-citation>Nogueira, G. E., Schmidt, C., Brunner, P., Graeber, D., and Fleckenstein, J. H.: Transit-time and temperature control the spatial patterns of aerobic respiration and denitrification in the riparian zone, Water Resour. Res., 57, e2021WR030117, <ext-link xlink:href="https://doi.org/10.1029/2021WR030117" ext-link-type="DOI">10.1029/2021WR030117</ext-link>, 2021.</mixed-citation></ref>
      <ref id="bib1.bib47"><label>47</label><mixed-citation>OpenCFD Ltd.: OpenFOAM<sup>®</sup> v2312 User Guide, <uri>https://doc.openfoam.com/2312/</uri> (last access: 25 December 2024), 2023.</mixed-citation></ref>
      <ref id="bib1.bib48"><label>48</label><mixed-citation>OpenCFD Ltd.: OpenFOAM<sup>®</sup> v2406, OpenFOAM<sup>®</sup> Download [code], <uri>https://dl.openfoam.com/source/v2406/</uri> (last access: 25 December 2024), 2024.</mixed-citation></ref>
      <ref id="bib1.bib49"><label>49</label><mixed-citation>Pardo-Álvarez, Á.: A custom OpenFOAM solver for fully-coupled surface and subsurface hydrological modelling, Doctoral thesis, University of Neuchâtel, 225 pp., <ext-link xlink:href="https://doi.org/10.35662/unine-thesis-3190" ext-link-type="DOI">10.35662/unine-thesis-3190</ext-link>, 2025.</mixed-citation></ref>
      <ref id="bib1.bib50"><label>50</label><mixed-citation>Pardo-Álvarez, Á.: darcyInterTransportFoam v1.0, Zenodo [code], <ext-link xlink:href="https://doi.org/10.5281/zenodo.17092721" ext-link-type="DOI">10.5281/zenodo.17092721</ext-link>, 2026a.</mixed-citation></ref>
      <ref id="bib1.bib51"><label>51</label><mixed-citation>Pardo-Álvarez, Á.: MATLAB-based OpenFOAM mesh and data dictionary generator, Zenodo [code], <ext-link xlink:href="https://doi.org/10.5281/zenodo.15857296" ext-link-type="DOI">10.5281/zenodo.15857296</ext-link>, 2026b.</mixed-citation></ref>
      <ref id="bib1.bib52"><label>52</label><mixed-citation>Pardo-Álvarez, Á.: Code and data associated with Pardo-Álvarez et al. (2026), Zenodo [data set], <ext-link xlink:href="https://doi.org/10.5281/zenodo.16283559" ext-link-type="DOI">10.5281/zenodo.16283559</ext-link>, 2026c.</mixed-citation></ref>
      <ref id="bib1.bib53"><label>53</label><mixed-citation>Peel, M., Kipfer, R., Hunkeler, D., and Brunner, P.: Variable 222Rn emanation rates in an alluvial aquifer: limits on using 222Rn as a tracer of surface water – groundwater interactions, Chem. Geol., 599, 120829, <ext-link xlink:href="https://doi.org/10.1016/j.chemgeo.2022.120829" ext-link-type="DOI">10.1016/j.chemgeo.2022.120829</ext-link>, 2022.</mixed-citation></ref>
      <ref id="bib1.bib54"><label>54</label><mixed-citation> Poffet, D.: Interactions nappe-rivière et stockage dans l'aquifère de la Haute-Emme: approche par la modélisation numérique, MSc Thesis, University of Neuchâtel, Centre for Hydrogeology and Geothermics, Neuchâtel, Switzerland, 134 pp.,  2011.</mixed-citation></ref>
      <ref id="bib1.bib55"><label>55</label><mixed-citation>Popp, A. L., Pardo-Álvarez, Á., Schilling, O. S., Scheidegger, A., Musy, S., Peel, M., Brunner, P., Purtschert, R., Hunkeler, D., and Kipfer, R.: A framework for untangling transient groundwater mixing and travel times, Water Resour. Res., 57, e2020WR028362, <ext-link xlink:href="https://doi.org/10.1029/2020WR028362" ext-link-type="DOI">10.1029/2020WR028362</ext-link>, 2021.</mixed-citation></ref>
      <ref id="bib1.bib56"><label>56</label><mixed-citation>Rubin, H.: Heat dispersion effect on thermal convection in a porous medium layer, J. Hydrol., 21, 173–185, <ext-link xlink:href="https://doi.org/10.1016/0022-1694(74)90035-3" ext-link-type="DOI">10.1016/0022-1694(74)90035-3</ext-link>, 1974.</mixed-citation></ref>
      <ref id="bib1.bib57"><label>57</label><mixed-citation>Rusche, H.: Computational fluid dynamics of dispersed two-phase flows at high phase fractions, PhD Thesis, Imperial College of Science, Technology and Medicine, London, UK, 343 pp., <uri>http://hdl.handle.net/10044/1/8110</uri> (last access: 3 May 2026), 2003.</mixed-citation></ref>
      <ref id="bib1.bib58"><label>58</label><mixed-citation>Schaper, J. L., Posselt, M., McCallum, J. L., Banks, E. W., Hoehne, A., Meinikmann, K., Shanafield, M. A., Batelaan, O., and Lewandowski, J.: Hyporheic exchange controls fate of trace organic compounds in an urban stream, Environ. Sci. Technol., 52, 12285–12294, <ext-link xlink:href="https://doi.org/10.1021/acs.est.8b03117" ext-link-type="DOI">10.1021/acs.est.8b03117</ext-link>, 2018.</mixed-citation></ref>
      <ref id="bib1.bib59"><label>59</label><mixed-citation>Schilling, O. S., Gerber, C., Partington, D. J., Purtschert, R., Brennwald, M. S., Kipfer, R., Hunkeler, D., and Brunner, P.: Advancing physically-based flow simulations of alluvial systems through atmospheric noble gases and the novel 37Ar tracer method, Water Resour. Res., 53, 10465-10490, <ext-link xlink:href="https://doi.org/10.1002/2017WR020754" ext-link-type="DOI">10.1002/2017WR020754</ext-link>, 2017.</mixed-citation></ref>
      <ref id="bib1.bib60"><label>60</label><mixed-citation>Schilling, O. S., Partington, D. J., Doherty, J., Kipfer, R., Hunkeler, D., and Brunner, P.: Buried paleo-channel detection with a groundwater model, tracer-based observations, and spatially varying, preferred anisotropy pilot point calibration, Geophys. Res. Lett., 49, e2022GL098944, <ext-link xlink:href="https://doi.org/10.1029/2022GL098944" ext-link-type="DOI">10.1029/2022GL098944</ext-link>, 2022.</mixed-citation></ref>
      <ref id="bib1.bib61"><label>61</label><mixed-citation>Schulze, L. and Thorenz, C.: The multiphase capabilities of the CFD toolbox OpenFOAM for hydraulic engineering applications, in: proceedings of the 11th International Conference on Hydroscience and Engineering, Hamburg, Germany, 28 September–2 October 2014, 1007–1016, <uri>https://hdl.handle.net/20.500.11970/99530</uri> (last access: 4 May 2026), 2014.</mixed-citation></ref>
      <ref id="bib1.bib62"><label>62</label><mixed-citation>Schulze, L. and Thorenz, C.: Mehrphasenmodellierung im Wasserbau, Open Rep., Bundesanstalt für Wasserbau, Wasserbauwerke – Vom hydraulischen Entwurf bis zum Betrieb, Karlsruhe, Germany, 53–58, <uri>https://hdl.handle.net/20.500.11970/102274</uri> (last access: 4 May 2026), 2015.</mixed-citation></ref>
      <ref id="bib1.bib63"><label>63</label><mixed-citation>Severin, T.: Computational fluid dynamics assisted design of thin-layer cascade photobioreactor components, PhD Thesis, Technical University of Munich, Chair of Biochemical Engineering, Munich, Germany, 166 pp., <uri>https://mediatum.ub.tum.de/doc/1363208/1363208.pdf</uri> (last access: 6 May 2025), 2017.</mixed-citation></ref>
      <ref id="bib1.bib64"><label>64</label><mixed-citation>Sobhi Gollo, V., Broecker, T., Marx, C., Lewandowski, J., Nützmann, G., and Hinkelmann, R.: A comparative study of integral and coupled approaches formodeling hydraulic exchange processes across a rippled streambed, Int. J. Geomath., 13, 1–27, <ext-link xlink:href="https://doi.org/10.1007/s13137-022-00206-5" ext-link-type="DOI">10.1007/s13137-022-00206-5</ext-link>, 2022.</mixed-citation></ref>
      <ref id="bib1.bib65"><label>65</label><mixed-citation>Tang, Q., Schilling, O. S., Kurtz, W., Brunner, P., Vereecken, H., and Hendricks Franssen, H.-J.: Simulating flood-induced riverbed transience using Unmanned Aerial Vehicles, physically based hydrological modeling, and the Ensemble Kalman filter, Water Resour. Res., 54, 9342–9363, <ext-link xlink:href="https://doi.org/10.1029/2018WR023067" ext-link-type="DOI">10.1029/2018WR023067</ext-link>, 2018.</mixed-citation></ref>
      <ref id="bib1.bib66"><label>66</label><mixed-citation>Teuber, K.: A three-dimensional two-phase model for flow, transport and mass transfer processes in sewers, PhD Thesis, Technischen Universität Berlin, Water Resources Management and Modeling of Hydrosystems, Berlin, Germany, 174 pp., <ext-link xlink:href="https://doi.org/10.14279/depositonce-9576" ext-link-type="DOI">10.14279/depositonce-9576</ext-link>, 2020.</mixed-citation></ref>
      <ref id="bib1.bib67"><label>67</label><mixed-citation>Tonina, D. and Buffington, J. M.: Hyporheic exchange in mountain rivers I: mechanics and environmental effects, Geography Compass, 3, 1063–1086, <ext-link xlink:href="https://doi.org/10.1111/j.1749-8198.2009.00226.x" ext-link-type="DOI">10.1111/j.1749-8198.2009.00226.x</ext-link>, 2009.</mixed-citation></ref>
      <ref id="bib1.bib68"><label>68</label><mixed-citation>Toran, L.: Groundwater–surface water interaction, Encycl. Water Sci. Technol. Soc., 1–12, <ext-link xlink:href="https://doi.org/10.1002/9781119300762.wsts0027" ext-link-type="DOI">10.1002/9781119300762.wsts0027</ext-link>, 2019. </mixed-citation></ref>
      <ref id="bib1.bib69"><label>69</label><mixed-citation>Trauth, N. and Fleckenstein, J. H.: Single discharge events increase reactive efficiency of the hyporheic zone, Water Resour. Res., 53, 779–798, <ext-link xlink:href="https://doi.org/10.1002/2016WR019488" ext-link-type="DOI">10.1002/2016WR019488</ext-link>, 2017.</mixed-citation></ref>
      <ref id="bib1.bib70"><label>70</label><mixed-citation>Trauth, N., Schmidt, C., Vieweg, M., Maier, U., and Fleckenstein, J. H.: Hyporheic transport and biogeochemical reactions in pool-riffle systems under varying ambient groundwater flow conditions, J. Geophys. Res.-Biogeo., 119, 910–928, <ext-link xlink:href="https://doi.org/10.1002/2013JG002586" ext-link-type="DOI">10.1002/2013JG002586</ext-link>, 2014.</mixed-citation></ref>
      <ref id="bib1.bib71"><label>71</label><mixed-citation>Trauth, N., Schmidt, C., Vieweg, M., Oswald, S. E., and Fleckenstein, J. H.: Hydraulic controls of in-stream gravel bar hyporheic exchange and reactions, Water Resour. Res., 51, 2243–2263, <ext-link xlink:href="https://doi.org/10.1002/2014WR015857" ext-link-type="DOI">10.1002/2014WR015857</ext-link>, 2015.</mixed-citation></ref>
      <ref id="bib1.bib72"><label>72</label><mixed-citation>Trauth, N., Musolff, A., Knoller, K., Kaden, U. S., Keller, T., Werban, U., and Fleckenstein, J. H.: River water infiltration enhances denitrification efficiency in riparian groundwater, Water Res., 130, 185–199, <ext-link xlink:href="https://doi.org/10.1016/j.watres.2017.11.058" ext-link-type="DOI">10.1016/j.watres.2017.11.058</ext-link>, 2018.</mixed-citation></ref>
      <ref id="bib1.bib73"><label>73</label><mixed-citation> Versteeg, H. K. and Malalasekera, W. (Eds.): An introduction to computational fluid dynamics: the finite volume method, 2nd Edn., Pearson Education, Edinburgh, UK, 503 pp., ISBN 978-0131274983, 2007.</mixed-citation></ref>
      <ref id="bib1.bib74"><label>74</label><mixed-citation>Voermans, J. J., Ghisalberti, M., and Ivey, G. N.: The variation of flow and turbulence across the sediment–water interface, J. Fluid. Mech., 824, 413–437, <ext-link xlink:href="https://doi.org/10.1017/jfm.2017.345" ext-link-type="DOI">10.1017/jfm.2017.345</ext-link>, 2017.</mixed-citation></ref>
      <ref id="bib1.bib75"><label>75</label><mixed-citation> Weller, H. G.: Derivation, modelling and solution of the conditionally averaged two-phase flow equations, Technical Rep. TR/HGW/02, Nabla Ltd, Boston, USA, 9 pp.,  2002.</mixed-citation></ref>
      <ref id="bib1.bib76"><label>76</label><mixed-citation>Weller, H. G., Tabor, G., Jasak, H., and Fureby, C.: A tensorial approach to computational continuum mechanics using object-oriented techniques, Comput. Phys., 12, 620–631, <ext-link xlink:href="https://doi.org/10.1063/1.168744" ext-link-type="DOI">10.1063/1.168744</ext-link>, 1998.</mixed-citation></ref>
      <ref id="bib1.bib77"><label>77</label><mixed-citation>Winter, T. C., Harvey, W. J., Franke, O. L., and Alley, M. W.: Ground water and surface water: a single resource, Open Rep., North Dakota Water Science Center, Denver, USA, 79 pp., <ext-link xlink:href="https://doi.org/10.3133/cir1139" ext-link-type="DOI">10.3133/cir1139</ext-link>, 1998.</mixed-citation></ref>
      <ref id="bib1.bib78"><label>78</label><mixed-citation> Würsten, M.: GWB-Hydrogeologische untersuchungen Aeschau: Schlussbericht, Technical Rep., Geotechnisches Institut, Zürich, Switzerland,  1991.</mixed-citation></ref>
      <ref id="bib1.bib79"><label>79</label><mixed-citation> Young, D. F., Munson, B. R., Okiishi, T. H., and Huebsch, W. W. (Eds.): A brief introduction to fluid mechanics, 5th Edn., John Wiley and Sons, New York, USA, 512 pp., ISBN 978-0470596791, 2010.</mixed-citation></ref>

  </ref-list></back>
    <!--<article-title-html>darcyInterTransportFoam v1.0: an open-source, fully-coupled 3D solver for simulating surface water – saturated groundwater processes and exchanges</article-title-html>
<abstract-html/>
<ref-html id="bib1.bib1"><label>1</label><mixed-citation>
      
Anderson, M. P., Woessner, W. W., and Hunt, R. J.: Applied Groundwater
Modeling, 2nd Edn., Elsevier Inc, 564 pp.,
<a href="https://doi.org/10.1016/C2009-0-21563-7" target="_blank">https://doi.org/10.1016/C2009-0-21563-7</a>, 2015.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib2"><label>2</label><mixed-citation>
      
Aryal, P.: Modeling free surface thermal flow with relative motion of heat
source and drop injector with respect to a liquid pool, Technical Rep. in
proceedings of the course CFD with open-source software, Chalmers University
of Technology, Göteborg, Sweden, 46 pp.,
<a href="http://dx.doi.org/10.17196/OS_CFD#YEAR_2019" target="_blank"/>,
2019.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib3"><label>3</label><mixed-citation>
      
Barthel, R. and Banzhaf, S.: Groundwater and surface water interaction at
the regional-scale – A review with focus on regional integrated models,
Water Resour. Manag., 30, 1–32, <a href="https://doi.org/10.1007/s11269-015-1163-z" target="_blank">https://doi.org/10.1007/s11269-015-1163-z</a>,
2016.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib4"><label>4</label><mixed-citation>
      
Bayon-Barrachina, A. and Lopez-Jimenez, P. A.: Numerical analysis of
hydraulic jumps using OpenFOAM, J. Hydroinform., 17, 662–678,
<a href="https://doi.org/10.2166/hydro.2015.041" target="_blank">https://doi.org/10.2166/hydro.2015.041</a>, 2015.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib5"><label>5</label><mixed-citation>
      
Bear, J. (Ed.).: Dynamics of fluids in porous media, 1st Edn., American
Elsevier Publishing Company, New York, USA, 764 pp., ISBN 978-0444001146,
1972.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib6"><label>6</label><mixed-citation>
      
Berberović, E., van Hinsberg, N. P., Jakirlić, S., Roisman, I. V.,
and Tropea, C.: Drop impact onto a liquid layer of finite thickness:
dynamics of the cavity evolution, Phys. Rev. E, 79, 036306,
<a href="https://doi.org/10.1103/PhysRevE.79.036306" target="_blank">https://doi.org/10.1103/PhysRevE.79.036306</a>, 2009.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib7"><label>7</label><mixed-citation>
      
Blanc, T., Peel, M., Brennwald, M. S., Kipfer, R., and Brunner, P.:
Efficient injection of gas tracers into rivers: a tool to study surface
water–groundwater interactions, Water Res., 254, 121375,
<a href="https://doi.org/10.1016/j.watres.2024.121375" target="_blank">https://doi.org/10.1016/j.watres.2024.121375</a>, 2024.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib8"><label>8</label><mixed-citation>
      
Blau, R. V. and Muchenberger, F.: Grundlagen für schutz und
bewirtschaftung der grundwasser des Kantons Bern: nutzungs-, schutz- und
überwachungskonzept für die grundwasserleiter des obersten
Emmentals, zwischen Emmenmatt, Langnau und Eggiwil, Technical Rep., wasser-
und energiewirtschaft des Kantons Bern, Bern, Switzerland,  1997.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib9"><label>9</label><mixed-citation>
      
Boano, F., Harvey, J. W., Marion, A., Packman, A. I., Revelli, R., Ridolfi,
L., and Wörman, A.: Hyporheic flow and transport processes: mechanisms,
models, and biogeochemical implications, Rev. Geophys., 41, 603–679,
<a href="https://doi.org/10.1002/2012RG000417" target="_blank">https://doi.org/10.1002/2012RG000417</a>, 2014.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib10"><label>10</label><mixed-citation>
      
Boudreau, B. P.: The diffusive tortuosity of fine-grained unlithified
sediments, Geochim. Cosmochim. Ac., 60, 3139–3142,
<a href="https://doi.org/10.1016/0016-7037(96)00158-5" target="_blank">https://doi.org/10.1016/0016-7037(96)00158-5</a>, 1996.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib11"><label>11</label><mixed-citation>
      
Broecker, T., Elsesser, W., Teuber, K., Özgen, I., Nützmann, G., and
Hinkelmann, R.: High-resolution simulation of free-surface flow and tracer
retention over streambeds with ripples, Limnologica, 68, 46–58,
<a href="https://doi.org/10.1016/j.limno.2017.06.005" target="_blank">https://doi.org/10.1016/j.limno.2017.06.005</a>, 2017.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib12"><label>12</label><mixed-citation>
      
Broecker, T., Teuber, K., Sobhi Gollo, V., Nützmann, G., Lewandowski,
J., and Hinkelmann, R.: Integral flow modelling approach for surface
water-groundwater interactions along a rippled streambed, Water, 11, 1517,
<a href="https://doi.org/10.3390/w11071517" target="_blank">https://doi.org/10.3390/w11071517</a>, 2019.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib13"><label>13</label><mixed-citation>
      
Broecker, T., Gollo, V. S., Fox, A., Lewandowski, J., Nützmann, G.,
Arnon, S., and Hinkelmann, R.: High-resolution integrated transport model
for studying surface water–groundwater interaction, Groundwater, 59,
488–502, <a href="https://doi.org/10.1111/gwat.13071" target="_blank">https://doi.org/10.1111/gwat.13071</a>, 2021.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib14"><label>14</label><mixed-citation>
      
Brunner, P., Therrien, R., Renard, P., Simmons, C. T., and Hendricks
Franssen, H.-J.: Advances in understanding river-groundwater interactions,
Rev. Geophys., 55, 818–854, <a href="https://doi.org/10.1002/2017RG000556" target="_blank">https://doi.org/10.1002/2017RG000556</a>, 2017.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib15"><label>15</label><mixed-citation>
      
Cardenas, M. B., Cook, P. L., Jiang, H., and Traykovski, P.: Constraining
denitrification in permeable wave-influenced marine sediment using linked
hydrodynamic and biogeochemical modeling, Earth Planet. Sc. Lett., 275,
127–137, <a href="https://doi.org/10.1016/j.epsl.2008.08.016" target="_blank">https://doi.org/10.1016/j.epsl.2008.08.016</a>, 2008.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib16"><label>16</label><mixed-citation>
      
Chen, X., Cardenas, M. B., and Chen, L.: Three-dimensional versus
two-dimensional bed form-induced hyporheic exchange, Water Resour. Res., 51,
2923–2936, <a href="https://doi.org/10.1002/2014WR016848" target="_blank">https://doi.org/10.1002/2014WR016848</a>, 2015.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib17"><label>17</label><mixed-citation>
      
Chen, X., Cardenas, M. B., and Chen, L.: Hyporheic exchange driven by
three-dimensional sandy bed forms: sensitivity to and prediction from bed
form geometry, Water Resour. Res., 54, 4131–4149,
<a href="https://doi.org/10.1029/2018WR022663" target="_blank">https://doi.org/10.1029/2018WR022663</a>, 2018.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib18"><label>18</label><mixed-citation>
      
Coluccio, K. and Morgan, L. K.: A review of methods for measuring groundwater–surface water exchange in braided rivers, Hydrol. Earth Syst. Sci., 23, 4397–4417, <a href="https://doi.org/10.5194/hess-23-4397-2019" target="_blank">https://doi.org/10.5194/hess-23-4397-2019</a>, 2019.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib19"><label>19</label><mixed-citation>
      
Deshpande, S. S., Anumolu, L., and Trujillo, M. F.: Evaluating the
performance of the two-phase flow solver interFoam, Comput. Sci. Discov., 5,
014016, <a href="https://doi.org/10.1088/1749-4699/5/1/014016" target="_blank">https://doi.org/10.1088/1749-4699/5/1/014016</a>, 2012.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib20"><label>20</label><mixed-citation>
      
Dichgans, F., Boos, J.-P., Ahmadi, P., Frei, S., and Fleckenstein, J. H.:
Integrated numerical modeling to quantify transport and fate of
microplastics in the hyporheic zone, Water Res., 243, 120349,
<a href="https://doi.org/10.1016/j.watres.2023.120349" target="_blank">https://doi.org/10.1016/j.watres.2023.120349</a>, 2023.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib21"><label>21</label><mixed-citation>
      
Figura, S., Livingstone, D. M., and Kipfer, R.: Competing controls on
groundwater oxygen concentrations revealed in multidecadal time series from
riverbank filtration sites, Water Resour. Res., 49, 7411–7426,
<a href="https://doi.org/10.1002/2013WR013750" target="_blank">https://doi.org/10.1002/2013WR013750</a>, 2013.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib22"><label>22</label><mixed-citation>
      
Fleckenstein, J. H., Krause, S., Hannah, D. M., and Boano, F.:
Groundwater-surface water interactions: new methods and models to improve
understanding of processes and dynamics, Adv. Water Resour., 33, 1291–1295,
<a href="https://doi.org/10.1016/j.advwatres.2010.09.011" target="_blank">https://doi.org/10.1016/j.advwatres.2010.09.011</a>, 2010.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib23"><label>23</label><mixed-citation>
      
Haitjema, H. M.: The role of hand calculations in ground water flow
modeling, Groundwater, 44, 786e791,
<a href="https://doi.org/10.1111/j.1745-6584.2006.00189.x" target="_blank">https://doi.org/10.1111/j.1745-6584.2006.00189.x</a>, 2006.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib24"><label>24</label><mixed-citation>
      
Haitjema, H. M. and Anderson, M. P.: Darcy velocity is not a velocity,
Groundwater, 54, 1–1, <a href="https://doi.org/10.1111/gwat.12386" target="_blank">https://doi.org/10.1111/gwat.12386</a>, 2016.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib25"><label>25</label><mixed-citation>
      
Haroun, Y., Legendre, D., and Raynal, L.: Volume of fluid method for
interfacial reactive mass transfer: application to stable liquid film, Chem.
Eng. Sci., 65, 2896–2909, <a href="https://doi.org/10.1016/j.ces.2010.01.012" target="_blank">https://doi.org/10.1016/j.ces.2010.01.012</a>, 2010.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib26"><label>26</label><mixed-citation>
      
Hermans, T., Goderniaux, P., Jougnot, D., Fleckenstein, J. H., Brunner, P., Nguyen, F., Linde, N., Huisman, J. A., Bour, O., Lopez Alvis, J., Hoffmann, R., Palacios, A., Cooke, A.-K., Pardo-Álvarez, Á., Blazevic, L., Pouladi, B., Haruzi, P., Fernandez Visentini, A., Nogueira, G. E. H., Tirado-Conde, J., Looms, M. C., Kenshilikova, M., Davy, P., and Le Borgne, T.: Advancing measurements and representations of subsurface heterogeneity and dynamic processes: towards 4D hydrogeology, Hydrol. Earth Syst. Sci., 27, 255–287, <a href="https://doi.org/10.5194/hess-27-255-2023" target="_blank">https://doi.org/10.5194/hess-27-255-2023</a>, 2023.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib27"><label>27</label><mixed-citation>
      
Hirt, C. W. and Nichols, B. D.: Volume of fluid (VOF) method for the
dynamics of free boundaries, J. Comput. Phys., 39, 201–225,
<a href="https://doi.org/10.1016/0021-9991(81)90145-5" target="_blank">https://doi.org/10.1016/0021-9991(81)90145-5</a>, 1981.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib28"><label>28</label><mixed-citation>
      
Horgue, P., Soulaine, C., Franc, J., Guibert, R., and Debenest, G.: An
open-source toolbox for multiphase flow in porous media, Comput. Phys.
Commun., 187, 217–226, <a href="https://doi.org/10.1016/j.cpc.2014.10.005" target="_blank">https://doi.org/10.1016/j.cpc.2014.10.005</a>, 2015.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib29"><label>29</label><mixed-citation>
      
Horgue, P., Renard, F., Gerlero, G., Guibert, R., and Debenest, G.:
porousMultiphaseFoam v2107: An open-source tool for modeling
saturated/unsaturated water flows and solute transfers at watershed scale,
Comput. Phys. Commun., 273, 108278,
<a href="https://doi.org/10.1016/j.cpc.2021.108278" target="_blank">https://doi.org/10.1016/j.cpc.2021.108278</a>, 2022.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib30"><label>30</label><mixed-citation>
      
Janssen, F., Cardenas, M. B., Sawyer, A. H., Dammrich, T., Krietsch, J., and
de Beer, D.: A comparative experimental and multiphysics computational fluid
dynamics study of coupled surface–subsurface flow in bed forms, Water
Resour. Res., 48, W08514, <a href="https://doi.org/10.1029/2012WR011982" target="_blank">https://doi.org/10.1029/2012WR011982</a>, 2012.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib31"><label>31</label><mixed-citation>
      
Jin, G., Tang, H., Li, L., and Barry, D. A.: Hyporheic flow under periodic
bed forms influenced by low-density gradients, Geophys. Res. Lett., 38,
L22401, <a href="https://doi.org/10.1029/2011GL049694" target="_blank">https://doi.org/10.1029/2011GL049694</a>, 2011.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib32"><label>32</label><mixed-citation>
      
Käser, D. and Hunkeler, D.: Contribution of alluvial groundwater to the
outflow of mountainous catchments, Water Resour. Res., 52, 680–697,
<a href="https://doi.org/10.1002/2014WR016730" target="_blank">https://doi.org/10.1002/2014WR016730</a>, 2016.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib33"><label>33</label><mixed-citation>
      
Krause, S., Boano, F., Cuthbert, M. O., Fleckenstein, J. H., and
Lewandowski, J.: Understanding process dynamics at aquifer-surface water
interfaces: an introduction to the special section on new modeling
approaches and novel experimental technologies, Water Resour. Res., 50,
1847–1855, <a href="https://doi.org/10.1002/2013WR014755" target="_blank">https://doi.org/10.1002/2013WR014755</a>, 2014.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib34"><label>34</label><mixed-citation>
      
Krause, S., Lewandowski, J., Grimm, N. B., Hannah, D. M., Pinay, G.,
McDonald, K., Martí, E., Argerich, A., Pfister, L., Klaus, J., Battin,
T., Larned, S. T., Schelker, J., Fleckenstein, J., Schmidt, C., Rivett, M.
O., Watts, G., Sabater, F., Sorolla, A., and Turk, V.: Ecohydrological
interfaces as hot spots of ecosystem processes, Water Resour. Res., 53,
6359–6376, <a href="https://doi.org/10.1002/2016WR019516" target="_blank">https://doi.org/10.1002/2016WR019516</a>, 2017.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib35"><label>35</label><mixed-citation>
      
Krause, S., Hannah, D., and Grimm, N. (Eds.): Ecohydrological Interfaces,
1st Edn., John Wiley and Sons, 411 pp.,
<a href="https://doi.org/10.1002/9781119489702" target="_blank">https://doi.org/10.1002/9781119489702</a>, 2023.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib36"><label>36</label><mixed-citation>
      
Lee, A., Aubeneau, A., and Cardenas, M.: The sensitivity of hyporheic
exchange to fractal properties of riverbeds, Water Resour. Res., 56,
e2019WR026560, <a href="https://doi.org/10.1029/2019WR026560" target="_blank">https://doi.org/10.1029/2019WR026560</a>, 2020.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib37"><label>37</label><mixed-citation>
      
Lee, A., Aubeneau, A., Liu, X., and Cardenas, M. B.: Hyporheic exchange in
sand dunes under a freely deforming river water surface, Water Resour. Res.,
57, e2020WR028817, <a href="https://doi.org/10.1029/2020WR028817" target="_blank">https://doi.org/10.1029/2020WR028817</a>, 2021.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib38"><label>38</label><mixed-citation>
      
Lee, A., Aubeneau, A., Cardenas, M., and Liu, X.: Hyporheic exchange due to
cobbles on sandy beds, Water Resour. Res., 58, e2021WR030164,
<a href="https://doi.org/10.1029/2021WR030164" target="_blank">https://doi.org/10.1029/2021WR030164</a>, 2022.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib39"><label>39</label><mixed-citation>
      
Lewandowski, J., Arnon, S., Banks, E., Batelaan, O., Betterle, A., Broecker,
T., Coll, C., Drummond, J. D., Gaona Garcia, J., Galloway, J., Gomez-Velez,
J., Grabowski, R. C., Herzog, S. P., Hinkelmann, R., Höhne, A.,
Hollender, J., Horn, M. A., Jaeger, A., Krause, S., Löchner Prats, A.,
Magliozzi, C., Meinikmann, K., Mojarrad, B. B., Mueller, B. M.,
Peralta-Maraver, I., Popp, A. L., Posselt, M., Putschew, A., Radke, M.,
Raza, M., Riml, J., Robertson, A., Rutere, C., Schaper, J. L., Schirmer, M.,
Schulz, H., Shanafield, M., Singh, T., Ward, A. S., Wolke, P., Wörman,
A., and Wu, L.: Is the hyporheic zone relevant beyond the Scientific
Community?, Water, 11, 2230, <a href="https://doi.org/10.3390/w11112230" target="_blank">https://doi.org/10.3390/w11112230</a>, 2019.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib40"><label>40</label><mixed-citation>
      
Lewandowski, J., Meinikmann, K., and Krause, S.: Groundwater–surface water
interactions: recent advances and interdisciplinary challenges, Water, 12,
296, <a href="https://doi.org/10.3390/w12010296" target="_blank">https://doi.org/10.3390/w12010296</a>, 2020.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib41"><label>41</label><mixed-citation>
      
Li, B., Liu, X., Kaufman, M. H., Turetcaia, A., Chen, X., and Cardenas, B.
M.: Flexible and modular simultaneous modeling of flow and reactive
transport in rivers and hyporheic zones, Water Resour. Res., 56,
e2019WR026528, <a href="https://doi.org/10.1029/2019WR026528" target="_blank">https://doi.org/10.1029/2019WR026528</a>, 2020.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib42"><label>42</label><mixed-citation>
      
Maxwell, R. M., Putti, M., Meyerhoff, S., Delfs, J.-O., Ferguson, I. M.,
Ivanov, V., Kim, J., Kolditz, O., Kollet, S. J., Kumar, M., Lopez, S., Niu,
J., Paniconi, C., Park, Y.-J., Phanikumar, M. S., Shen, C., Sudicky, E. A.,
and Sulis, M.: Surface-subsurface model intercomparison: a first set of
benchmark results to diagnose integrated hydrology and feedbacks, Water
Resour. Res., 50, 1531–1549, <a href="https://doi.org/10.1002/2013WR013725" target="_blank">https://doi.org/10.1002/2013WR013725</a>, 2014.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib43"><label>43</label><mixed-citation>
      
Menter, F. R.: Two-equation eddy-viscosity turbulence models for engineering
applications, AIAAJ, 32, 1598–1605, <a href="https://doi.org/10.2514/3.12149" target="_blank">https://doi.org/10.2514/3.12149</a>, 1994.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib44"><label>44</label><mixed-citation>
      
Nieves-Remacha, M. J., Yang, L., and Jensen, K. F.: OpenFOAM computational
fluid dynamic simulations of two-phase flow and mass transfer in an
advanced-flow reactor, Ind. Eng. Chem. Res., 54, 6649–6659,
<a href="https://doi.org/10.1021/acs.iecr.5b00480" target="_blank">https://doi.org/10.1021/acs.iecr.5b00480</a>, 2015.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib45"><label>45</label><mixed-citation>
      
Nisbeth, C. S., Kidmose, J., Weckström, K., Reitzel, K., Odgaard, B. V.,
Bennike, O., Thorling, L., McGowan, S., Schomacker, A., Kristensen, D. L.
J., and Jessen, S.: Dissolved inorganic geogenic phosphorus load to a
groundwater-fed lake: implications of terrestrial phosphorus cycling by
groundwater, Water, 11, 2213, <a href="https://doi.org/10.3390/w11112213" target="_blank">https://doi.org/10.3390/w11112213</a>, 2019.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib46"><label>46</label><mixed-citation>
      
Nogueira, G. E., Schmidt, C., Brunner, P., Graeber, D., and Fleckenstein, J.
H.: Transit-time and temperature control the spatial patterns of aerobic
respiration and denitrification in the riparian zone, Water Resour. Res.,
57, e2021WR030117, <a href="https://doi.org/10.1029/2021WR030117" target="_blank">https://doi.org/10.1029/2021WR030117</a>, 2021.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib47"><label>47</label><mixed-citation>
      
OpenCFD Ltd.: OpenFOAM<span style="position:relative; bottom:0.5em; " class="text">®</span> v2312 User Guide,
<a href="https://doc.openfoam.com/2312/" target="_blank"/> (last access: 25 December 2024), 2023.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib48"><label>48</label><mixed-citation>
      
OpenCFD Ltd.: OpenFOAM<span style="position:relative; bottom:0.5em; " class="text">®</span> v2406, OpenFOAM<span style="position:relative; bottom:0.5em; " class="text">®</span> Download [code], <a href="https://dl.openfoam.com/source/v2406/" target="_blank"/> (last access: 25 December 2024), 2024.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib49"><label>49</label><mixed-citation>
      
Pardo-Álvarez, Á.: A custom OpenFOAM solver for fully-coupled
surface and subsurface hydrological modelling, Doctoral thesis, University
of Neuchâtel, 225 pp., <a href="https://doi.org/10.35662/unine-thesis-3190" target="_blank">https://doi.org/10.35662/unine-thesis-3190</a>,
2025.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib50"><label>50</label><mixed-citation>
      
Pardo-Álvarez, Á.: darcyInterTransportFoam v1.0, Zenodo [code],
<a href="https://doi.org/10.5281/zenodo.17092721" target="_blank">https://doi.org/10.5281/zenodo.17092721</a>, 2026a.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib51"><label>51</label><mixed-citation>
      
Pardo-Álvarez, Á.: MATLAB-based OpenFOAM mesh and data dictionary
generator, Zenodo [code], <a href="https://doi.org/10.5281/zenodo.15857296" target="_blank">https://doi.org/10.5281/zenodo.15857296</a>, 2026b.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib52"><label>52</label><mixed-citation>
      
Pardo-Álvarez, Á.: Code and data associated with Pardo-Álvarez
et al. (2026), Zenodo [data set], <a href="https://doi.org/10.5281/zenodo.16283559" target="_blank">https://doi.org/10.5281/zenodo.16283559</a>,
2026c.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib53"><label>53</label><mixed-citation>
      
Peel, M., Kipfer, R., Hunkeler, D., and Brunner, P.: Variable 222Rn
emanation rates in an alluvial aquifer: limits on using 222Rn as a tracer of
surface water – groundwater interactions, Chem. Geol., 599, 120829,
<a href="https://doi.org/10.1016/j.chemgeo.2022.120829" target="_blank">https://doi.org/10.1016/j.chemgeo.2022.120829</a>, 2022.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib54"><label>54</label><mixed-citation>
      
Poffet, D.: Interactions nappe-rivière et stockage dans l'aquifère
de la Haute-Emme: approche par la modélisation numérique, MSc
Thesis, University of Neuchâtel, Centre for Hydrogeology and
Geothermics, Neuchâtel, Switzerland, 134 pp.,  2011.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib55"><label>55</label><mixed-citation>
      
Popp, A. L., Pardo-Álvarez, Á., Schilling, O. S., Scheidegger, A.,
Musy, S., Peel, M., Brunner, P., Purtschert, R., Hunkeler, D., and Kipfer,
R.: A framework for untangling transient groundwater mixing and travel
times, Water Resour. Res., 57, e2020WR028362,
<a href="https://doi.org/10.1029/2020WR028362" target="_blank">https://doi.org/10.1029/2020WR028362</a>, 2021.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib56"><label>56</label><mixed-citation>
      
Rubin, H.: Heat dispersion effect on thermal convection in a porous medium
layer, J. Hydrol., 21, 173–185,
<a href="https://doi.org/10.1016/0022-1694(74)90035-3" target="_blank">https://doi.org/10.1016/0022-1694(74)90035-3</a>, 1974.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib57"><label>57</label><mixed-citation>
      
Rusche, H.: Computational fluid dynamics of dispersed two-phase flows at
high phase fractions, PhD Thesis, Imperial College of Science, Technology
and Medicine, London, UK, 343 pp., <a href="http://hdl.handle.net/10044/1/8110" target="_blank"/> (last access: 3 May 2026), 2003.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib58"><label>58</label><mixed-citation>
      
Schaper, J. L., Posselt, M., McCallum, J. L., Banks, E. W., Hoehne, A.,
Meinikmann, K., Shanafield, M. A., Batelaan, O., and Lewandowski, J.:
Hyporheic exchange controls fate of trace organic compounds in an urban
stream, Environ. Sci. Technol., 52, 12285–12294,
<a href="https://doi.org/10.1021/acs.est.8b03117" target="_blank">https://doi.org/10.1021/acs.est.8b03117</a>, 2018.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib59"><label>59</label><mixed-citation>
      
Schilling, O. S., Gerber, C., Partington, D. J., Purtschert, R., Brennwald,
M. S., Kipfer, R., Hunkeler, D., and Brunner, P.: Advancing physically-based
flow simulations of alluvial systems through atmospheric noble gases and the
novel 37Ar tracer method, Water Resour. Res., 53, 10465-10490,
<a href="https://doi.org/10.1002/2017WR020754" target="_blank">https://doi.org/10.1002/2017WR020754</a>, 2017.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib60"><label>60</label><mixed-citation>
      
Schilling, O. S., Partington, D. J., Doherty, J., Kipfer, R., Hunkeler, D.,
and Brunner, P.: Buried paleo-channel detection with a groundwater model,
tracer-based observations, and spatially varying, preferred anisotropy pilot
point calibration, Geophys. Res. Lett., 49, e2022GL098944,
<a href="https://doi.org/10.1029/2022GL098944" target="_blank">https://doi.org/10.1029/2022GL098944</a>, 2022.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib61"><label>61</label><mixed-citation>
      
Schulze, L. and Thorenz, C.: The multiphase capabilities of the CFD toolbox
OpenFOAM for hydraulic engineering applications, in: proceedings of the 11th
International Conference on Hydroscience and Engineering, Hamburg, Germany,
28 September–2 October 2014, 1007–1016,
<a href="https://hdl.handle.net/20.500.11970/99530" target="_blank"/> (last access: 4 May 2026), 2014.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib62"><label>62</label><mixed-citation>
      
Schulze, L. and Thorenz, C.: Mehrphasenmodellierung im Wasserbau, Open
Rep., Bundesanstalt für Wasserbau, Wasserbauwerke – Vom
hydraulischen Entwurf bis zum Betrieb, Karlsruhe, Germany, 53–58,
<a href="https://hdl.handle.net/20.500.11970/102274" target="_blank"/> (last access: 4 May 2026), 2015.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib63"><label>63</label><mixed-citation>
      
Severin, T.: Computational fluid dynamics assisted design of thin-layer
cascade photobioreactor components, PhD Thesis, Technical University of
Munich, Chair of Biochemical Engineering, Munich, Germany, 166 pp.,
<a href="https://mediatum.ub.tum.de/doc/1363208/1363208.pdf" target="_blank"/> (last access: 6 May 2025), 2017.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib64"><label>64</label><mixed-citation>
      
Sobhi Gollo, V., Broecker, T., Marx, C., Lewandowski, J., Nützmann, G.,
and Hinkelmann, R.: A comparative study of integral and coupled approaches
formodeling hydraulic exchange processes across a rippled streambed, Int. J.
Geomath., 13, 1–27, <a href="https://doi.org/10.1007/s13137-022-00206-5" target="_blank">https://doi.org/10.1007/s13137-022-00206-5</a>, 2022.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib65"><label>65</label><mixed-citation>
      
Tang, Q., Schilling, O. S., Kurtz, W., Brunner, P., Vereecken, H., and
Hendricks Franssen, H.-J.: Simulating flood-induced riverbed transience
using Unmanned Aerial Vehicles, physically based hydrological modeling, and
the Ensemble Kalman filter, Water Resour. Res., 54, 9342–9363,
<a href="https://doi.org/10.1029/2018WR023067" target="_blank">https://doi.org/10.1029/2018WR023067</a>, 2018.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib66"><label>66</label><mixed-citation>
      
Teuber, K.: A three-dimensional two-phase model for flow, transport and mass
transfer processes in sewers, PhD Thesis, Technischen Universität
Berlin, Water Resources Management and Modeling of Hydrosystems, Berlin,
Germany, 174 pp., <a href="https://doi.org/10.14279/depositonce-9576" target="_blank">https://doi.org/10.14279/depositonce-9576</a>,
2020.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib67"><label>67</label><mixed-citation>
      
Tonina, D. and Buffington, J. M.: Hyporheic exchange in mountain rivers I:
mechanics and environmental effects, Geography Compass, 3, 1063–1086,
<a href="https://doi.org/10.1111/j.1749-8198.2009.00226.x" target="_blank">https://doi.org/10.1111/j.1749-8198.2009.00226.x</a>, 2009.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib68"><label>68</label><mixed-citation>
      
Toran, L.: Groundwater–surface water interaction, Encycl. Water Sci.
Technol. Soc., 1–12, <a href="https://doi.org/10.1002/9781119300762.wsts0027" target="_blank">https://doi.org/10.1002/9781119300762.wsts0027</a>, 2019.


    </mixed-citation></ref-html>
<ref-html id="bib1.bib69"><label>69</label><mixed-citation>
      
Trauth, N. and Fleckenstein, J. H.: Single discharge events increase
reactive efficiency of the hyporheic zone, Water Resour. Res., 53, 779–798,
<a href="https://doi.org/10.1002/2016WR019488" target="_blank">https://doi.org/10.1002/2016WR019488</a>, 2017.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib70"><label>70</label><mixed-citation>
      
Trauth, N., Schmidt, C., Vieweg, M., Maier, U., and Fleckenstein, J. H.:
Hyporheic transport and biogeochemical reactions in pool-riffle systems
under varying ambient groundwater flow conditions, J. Geophys. Res.-Biogeo., 119, 910–928, <a href="https://doi.org/10.1002/2013JG002586" target="_blank">https://doi.org/10.1002/2013JG002586</a>, 2014.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib71"><label>71</label><mixed-citation>
      
Trauth, N., Schmidt, C., Vieweg, M., Oswald, S. E., and Fleckenstein, J. H.:
Hydraulic controls of in-stream gravel bar hyporheic exchange and reactions,
Water Resour. Res., 51, 2243–2263, <a href="https://doi.org/10.1002/2014WR015857" target="_blank">https://doi.org/10.1002/2014WR015857</a>,
2015.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib72"><label>72</label><mixed-citation>
      
Trauth, N., Musolff, A., Knoller, K., Kaden, U. S., Keller, T., Werban, U.,
and Fleckenstein, J. H.: River water infiltration enhances denitrification
efficiency in riparian groundwater, Water Res., 130, 185–199,
<a href="https://doi.org/10.1016/j.watres.2017.11.058" target="_blank">https://doi.org/10.1016/j.watres.2017.11.058</a>, 2018.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib73"><label>73</label><mixed-citation>
      
Versteeg, H. K. and Malalasekera, W. (Eds.): An introduction to
computational fluid dynamics: the finite volume method, 2nd Edn., Pearson
Education, Edinburgh, UK, 503 pp., ISBN 978-0131274983, 2007.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib74"><label>74</label><mixed-citation>
      
Voermans, J. J., Ghisalberti, M., and Ivey, G. N.: The variation of flow and
turbulence across the sediment–water interface, J. Fluid. Mech., 824,
413–437, <a href="https://doi.org/10.1017/jfm.2017.345" target="_blank">https://doi.org/10.1017/jfm.2017.345</a>, 2017.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib75"><label>75</label><mixed-citation>
      
Weller, H. G.: Derivation, modelling and solution of the conditionally
averaged two-phase flow equations, Technical Rep. TR/HGW/02, Nabla Ltd,
Boston, USA, 9 pp.,  2002.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib76"><label>76</label><mixed-citation>
      
Weller, H. G., Tabor, G., Jasak, H., and Fureby, C.: A tensorial approach to
computational continuum mechanics using object-oriented techniques, Comput.
Phys., 12, 620–631, <a href="https://doi.org/10.1063/1.168744" target="_blank">https://doi.org/10.1063/1.168744</a>, 1998.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib77"><label>77</label><mixed-citation>
      
Winter, T. C., Harvey, W. J., Franke, O. L., and Alley, M. W.: Ground water
and surface water: a single resource, Open Rep., North Dakota Water Science
Center, Denver, USA, 79 pp., <a href="https://doi.org/10.3133/cir1139" target="_blank">https://doi.org/10.3133/cir1139</a>, 1998.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib78"><label>78</label><mixed-citation>
      
Würsten, M.: GWB-Hydrogeologische untersuchungen Aeschau:
Schlussbericht, Technical Rep., Geotechnisches Institut, Zürich,
Switzerland,  1991.

    </mixed-citation></ref-html>
<ref-html id="bib1.bib79"><label>79</label><mixed-citation>
      
Young, D. F., Munson, B. R., Okiishi, T. H., and Huebsch, W. W. (Eds.): A
brief introduction to fluid mechanics, 5th Edn., John Wiley and Sons, New
York, USA, 512 pp., ISBN 978-0470596791, 2010.

    </mixed-citation></ref-html>--></article>
