Next Article in Journal
Correction: Tasnim Mowri et al. Assessing the Impact of First-Life Lithium-Ion Battery Degradation on Second-Life Performance. Energies 2024, 17, 501
Previous Article in Journal
Capacity Expansion Planning of Hydrogen-Enabled Industrial Energy Systems for Carbon Dioxide Peaking
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A New Straightforward Darcy-Scale Compositional Solver in OpenFOAM for CO2/Water Mutual Solubility in CO2 Storage Processes in Aquifers

by
Ali Papi
1,*,
Amir Jahanbakhsh
1,2 and
Mercedes M. Maroto-Valer
1,2
1
Research Centre for Carbon Solutions (RCCS), School of Engineering and Physical Sciences, Heriot-Watt University, Edinburgh EH14 4AS, UK
2
Industrial Decarbonisation Research and Innovation Centre (IDRIC), Heriot-Watt University, Edinburgh EH14 4AS, UK
*
Author to whom correspondence should be addressed.
Energies 2024, 17(14), 3401; https://doi.org/10.3390/en17143401
Submission received: 20 May 2024 / Revised: 16 June 2024 / Accepted: 9 July 2024 / Published: 11 July 2024
(This article belongs to the Special Issue Optimization of CO2 Capture and Sequestration)

Abstract

:
Advancing the modeling of evaporation and salt precipitation is essential in CO2 storage processes in aquifers. OpenFOAM provides a platform for computational fluid dynamics (CFD) modeling with its open-source C++ object-oriented architecture that can especially be used in the development of fluid flow models in porous media. Some OpenFOAM packages have been developed in this area, and their codes are available for use. Despite this, the existing OpenFOAM literature does not include a model that incorporates multicomponent interactions in multi-phase flow systems, referred to as compositional modeling, at the Darcy scale. This existing gap is addressed in this paper, where a new simple model in OpenFOAM is introduced that aims to model the interaction of CO2 and H2O components in CO2 storage processes in aquifers at the Darcy scale. The model, named compositionalIGFoam, incorporates a compositional solver by extending the impesFoam solver of the porousMultiphaseFoam package, while assuming some simplifications, to account for CO2/water mutual dissolution, relevant to carbon capture and storage (CCS) processes in aquifers. The functionality of the compositionalIGFoam solver was assessed by showcasing its ability to reproduce the outcomes of existing examples. In addition to that, the process of gas injection into a water-saturated core sample was simulated using the developed model to mimic CO2 injection into aquifers. The CMG-GEM commercial compositional simulator was used to compare its results with the coreflood model of this study. Phenomenal agreement was achieved with the GEM model, showing only 1.8% and 0.4% error for both components. This confirms the accuracy and reliability of the developed model. In conclusion, this study enhances the state of the art in porous media modeling using OpenFOAM 10, providing a valuable tool for examining fluid interactions in subsurface environments, especially within the context of CCS processes.

1. Introduction

This paper is an extension of the conference paper in [1]. More developments of the existing tools and models for evaporation and salt precipitation in carbon capture and storage (CCS) processes in porous media are necessary [2,3]. OpenFOAM [4] is an open-source computational fluid dynamics (CFD) platform that leverages its C++ object-oriented architecture to provide a flexible environment for modeling complex fluid flow phenomena [5,6]. A model that accurately represents the multicomponent interaction of multi-phase flow systems at the Darcy scale, such as the interaction of CO2 and H2O components between liquid and gas phases in CO2 storage processes in aquifers, is lacking in the current OpenFOAM literature. Meanwhile, for pore-scale and free-flow systems, the advancements are satisfactory [7,8].
There are various available packages that have been developed to model fluid flow in porous media with OpenFOAM [8,9]. A summary comparison of these packages is given in Table 1. Although these packages are available to use, the advancements in this area still remain relatively under-developed. More research efforts are needed to push the boundaries in this field by developing and refining current models. The packages within OpenFOAM that include porous medium models, such as porousSimpleFoam (single-phase) [10,11] or porousInterFoam (multi-phase) [4], only deal with fluid flow. A source term is added into the Navier–Stokes momentum equations of these models to account for the porous medium contribution in the form of a Darcy–Forchheimer equation that may include a Darcy (D) and a Forchheimer (F) term as the porous structure’s resistance forces [10]. The porousInterIsoFoam package by Missios et al. (2023) [12], which is a developed version of porousInterFoam with a different interface advection scheme, also works the same way. The porousMedia4Foam package by Soulaine et al. (2021) [13] consists of three main solvers that solve for a fully Darcy model, a hybrid multi-continuum Navier–Stokes/Darcy scale model, and a constant-velocity passive scalar species transport model in the single phase. The package allows coupling with geochemical models such as PHREEQC for aqueous species reactive transport modeling [14]. The hybridPorousInterFoam package by Carrillo et al. (2020) [7] is an integrated two-phase hybrid solver that switches between a fully Navier–Stokes flow and a pure Darcy flow, depending on the geometry. The current version of the porousMultiphaseFoam (PMF) package by Horgue et al. (2022) [9] has a number of solvers including impesFoam [15]. The impesFoam module solves for the IMPES solution of incompressible two-phase fluid flow in porous media [16]. The upstreamFoam package by Lange et al. (2023) [17] is a development of the impesFoam solver for compressible fluids. None of these packages, however, consider species transport of multi-phase flow systems within a porous space, so they are not appropriate for modeling compositional phenomena such as water evaporation in CO2 storage processes. PMF has other porous media solvers that mainly have applications in groundwater modeling, such as water flow in soil, the passive scalar transport of species in soil or the species transport of soil contaminants in the two-phase flow of a water/air system using Richard’s equation [9]. Hence, they need to be modified for direct applications in CO2/H2 storage, oil and gas or geothermal energy topics. The GeoChemFoam package by Maes and Menke (2021) [8] solves for a variety of models in the pore scale, including single-phase passive scalar transport, multi-phase fluid flow with or without species transport and reaction, etc. [18,19].
In this study, the impesFoam solver of the PMF package which solves a two-phase incompressible fluid flow model in porous media was chosen as a base code and its code was modified to accommodate a compositional solver.
The model developed in this study is the first of its kind in OpenFOAM to address multi-phase, mutual CO2/water interactions at the Darcy scale in a one-dimensional (1D) framework. It can specifically be used to model the 1D coreflood injection of CO2 into brine-filled samples that can mimic CO2 injection into aquifers. Moreover, it is expandable to include salt precipitation phenomena, thereby offering a versatile toolset for studying complex fluid–rock interactions in subsurface environments.

2. Numerical Method

In impesFoam, which is a Black Oil model (i.e., where the phases are treated as constant-composition pseudo-components [20]), the pressure and saturation equations are solved concurrently while treating the fluid phases as two distinct interfaces. IMPES is an acronym for Implicit Pressure Explicit Saturation. In this method, an implicit approach is adopted to solve the pressure equation with current timestep values, while an explicit approach is used to solve the saturation equation with previous timestep values to address the coupling of these two parameters [16]. The saturation and pressure equations for incompressible two-phase fluids in impesFoam are written as follows:
φ S i t + . U i = q i , i n j   i   =   l   or   g
. K k r g μ g p g ρ g g + . K k r l μ l p g ρ g g p c = q l , i n j + q g , i n j
U i = K k r i μ i p i ρ i g   i   =   l   or   g
where g is the gravitational acceleration and pi, Si, Ui, ρi, kri, μi and qi,inj are the gas or liquid’s pressure, saturation, Darcy velocity [21,22], density, relative permeability, viscosity and injection rate (saturation is defined as the ratio of the fluid’s volume to the rock’s void space [23]). K and φ are the rock’s porosity and permeability and pc is the capillary pressure. For more information on the details of the model, please refer to Ref. [15].
In the compositional model, mass transfer occurs by the interaction of gas and liquid phases. This study focuses on compositionally solving for a two-phase (gas–liquid) binary-component (CO2–H2O) system. This implies that two additional species transport equations must be incorporated into the impesFoam solver for both the gas and liquid phases and subsequently solved. Solving for one component would be sufficient as the other component can be derived from it. Additionally, the gas and liquid components are in equilibrium. If the liquid is assumed a dilute solution, this can be reflected in the form of Henry’s law for the CO2 component [24].
In the following, xCO2 and yCO2 refer to the CO2 component in the liquid and gas phase, respectively. The mass balance equation for the CO2 component in the liquid phase (xCO2) is as follows [3]:
φ ( x C O 2 S w ) t + . ( x C O 2 U w ) φ   D C O 2 , w   . ( S w x C O 2 ) = q C O 2 , i n j
And Henry’s law for the mole fraction of CO2 in the gas phase (yCO2) states the following [24]:
y C O 2 = H C O 2 P g × x C O 2
where DCO2,w and HCO2 are the CO2 diffusion coefficient in water and Henry’s law constant. On the other hand, if an ideal behavior is considered, the gas pressure can be calculated using the summation of the partial pressure of each component. Based on Henry’s and Rault’s laws [25], it can be written as follows:
P g = P C O 2 g + P H 2 O g = H C O 2 × x C O 2 + P s a t × y C O 2 = H × x C O 2 + P s a t × ( 1 x C O 2 )
where Psat is the water pure component saturation pressure. In other words, the CO2 component in the liquid phase can be calculated from gas pressure as follows:
x C O 2 = P g P s a t H P s a t
We applied these changes to the compositions in the impesFoam solver to come up with a compositional solver, named compositionalIGFoam. The algorithm is shown in Figure 1 and is in two parts: in the first part, the IMPES method solves for the saturation and pressure equations, respectively, using Equations (1) and (2). In the second part, the compositional solver solves for the aqueous and gaseous compositions of carbon dioxide using Equations (7) and (5), respectively. The other two components are calculated by subtracting their respective phase components from 1. These calculations start from time zero, are conducted at each time-step and proceed to the next time-step.
Input variables that are taken as scalar fields include the initial conditions for pressure, saturation, velocities and all the compositions. Constant parameters include gravitational acceleration and the permeability file. Phases’ density and viscosity, porosity, relative permeability and capillary pressure models are given to the model through transport properties. The constants, such as Henry’s constant or saturation pressure, are included in the thermophysical properties file. This study addresses H2O-CO2 interactions. If a different system such as H2O-CH4 was to be used, the input parameters would need to be modified accordingly (e.g., Henry’s constant).

3. Results

Models: Water Injection and Gas Injection

The developed compositional solver was initially used to replicate the results of a water injection case example in the porousMultiphaseFoam package (impesFoam tutorials—the injection case [26]) to assess its functionality. The model works well in reproducing the results. In this case example, water is being injected from the middle into a bounded porous medium filled with gas which is open at a constant pressure from the top face. The water saturation profile is shown in Figure 2a. Water flows down from the injection point due to gravity and spreads over the bottom side of the porous model. For better illustrations, using OpenFOAM’s blockmesh meshing utilities, we also improved the solution quality by refining the model’s mesh towards the center and bottom face of the model where most changes to flow occur (Figure 2b). By doing so, a sharp phase interphase is captured, and saturation smearing of the original model is removed.
The code was then modified to consider the case of injecting gas into a liquid enclosure, as is the case in the CCS processes in aquifers. By repeating the previous tutorial for the case of injecting a gas into a liquid-filled porous medium using this solver, the solution becomes that shown in Figure 3, where the gas flows upward and leaves the enclosure at the constant pressure of the top face of the medium, as was expected due to buoyancy. This code is compiled as a new module named compositionalIGFoam in the porousMultiphaseFoam package and is put forward for the simulation of CCS processes in aquifers.

4. Validation

The Water-Saturated Coreflood Model

To further evaluate compositionalIGFoam, we aimed to simulate the CO2 coreflood experiments of water. By doing so, the model’s ability to simulate a gas–liquid fluid flow and water/CO2 mutual solubility in a CCS process in an aquifer is demonstrated. In order to simulate this process, a water-saturated core sample of dimensions 8 cm in length and 3.5 cm in diameter with a meshing of 100 × 1 × 1 was considered, as shown in Figure 4. The flow model is assumed to be 1D to resemble a coreflood experiment. CO2 is injected at the left-hand side with an injection rate of 30 cc/min and the model is kept at a constant pressure of 107 Pa at the right-hand side.
A Brooks–Corey relative permeability and capillary pressure model have been used with the parameters given in Table 2, which also includes other numerical parameters.
To benchmark the solution of compositionalIGFoam solver, an equivalent model was created in CMG-GEM compositional simulator [27], and the solution results, i.e., the final compositional distributions of CO2 and water, were compared.
After CO2 is injected into the fully water-saturated core sample, it pushes the water out of the model. A moving saturation front will be formed and the CO2 saturation inside the model starts to increase. Water saturation can reduce down to its residual water saturation value. The mutual solubility of CO2/water is occurred, i.e., CO2 molecules are dissolved into the liquid phase and water molecules are transferred into the gas phase. The species distributions at the breakthrough point for both the solvers are shown in Figure 5. An equilibrium approach is assumed in this study, meaning that the values of CO2 in the liquid and gas phase will always be in equilibrium. The same holds for water molecules in the liquid and gas phase. After the first touch of fluids with each other at the inlet, both fluids become saturated to their equilibrium value. Therefore, after CO2 is flooded all over the core model, a uniform water composition in the liquid phase (xH2O) and CO2 composition in the gas phase (yCO2) ensues. As can be seen from Figure 5a,c, the value of xH2O from the compositionalIGFoam solver (the model of this study) and the CMG-GEM solver is estimated at 0.9656 and 0.9832, respectively, i.e., an error of 1.8%, which is a great match. The respective yCO2 values (CO2 composition in the gas phase) at this point are calculated at 0.9981 and 0.9938, i.e., an error of 0.4%, which shows they are in a phenomenal agreement (Figure 5b,d).
The values of CO2 in the liquid and H2O in the gas phase (xCO2 and yH2O, respectively) can be calculated from their phase composition counterparts at the breakthrough time and are summarized in Table 3.
Previous compositional models of porous media in OpenFOAM were in the pore-scale and free flow systems [7,8]. This work, however, presents such a model in the Darcy scale in OpenFOAM. Compared to other compositional models in the area, such as CMG-GEM, this model addresses CO2/water interactions with a straightforward and reliable approach by assuming ideal gas and dilute solution behaviors that do not require solving complicated species transport equations, thus making it a readily available candidate for fast initial evaluations of CO2/water interactions. Also, as it is based on the OpenFOAM platform, it provides open-source access features that helps the community for future developments.

5. Conclusions

An OpenFOAM solver was developed in this study. The compositionalIGFoam solver simulates fluid flow and multicomponent interphase interactions in porous media, such as CO2/water dissolution in CO2 storage processes in aquifers. This fills the gap in this field where a Darcy-scale solver was lacking in the OpenFoam platform. The validation of the model against the CMG-GEM commercial compositional simulator with less than 2% compositional error demonstrates the reliability of this solver. The model’s capability of handling gas–liquid interactions, including species transport and phase equilibrium, provides applications in CCS and H2 storage processes, oil and gas reservoir engineering and geothermal energies. By providing an open-source and versatile platform, this study contributes to the ongoing efforts to address critical challenges in energy and environment.
Moving forward, the developed model offers opportunities for further improvements such as refining the numerical methods, incorporating additional geochemical reactions, and extending the model to simulate more complex subsurface processes. Additionally, the model’s expandability to include evaporation and salt precipitation phenomena opens up possibilities for studying broader aspects of fluid–rock interactions in saline aquifers.
In this regard, in the next stages, the numerical method will be improved by coupling incompressible fluid flow and transport equations to come up with a model that can incorporate evaporation. The evaporative model is further developed to include two more aqueous components, i.e., chlorine and sodium ions. By doing so, it can be extended to a salt precipitation model where a third solid phase can appear in the system, i.e., a three-phase flow system. Moreover, the reaction of the aqueous components with each other and with the rock (dissolution/precipitation) can also be considered. Experiments and, to some extent, some of the current numerical tools can come to play for validating such a model.
In summary, compositionalIGFoam creates a basis to develop the cutting-edge technology in porous media to model gas–liquid/fluid–rock interactions, water evaporation and salt precipitation, species transport and phase equilibria with OpenFOAM that provides an invaluable tool for scrutinizing the underground phenomena. Salt precipitation is an issue that not only emerges in CO2 storage applications but also in H2 storage processes. Apart from CCS and H2 storage, a wider implication of this work is in the petroleum industry where Enhanced Oil Recovery (EOR) techniques with CO2 are used for boosting the production. Another application is in the geothermal energies where CO2 Plume Geothermal (CPG) systems are used for the Carbon Capture, Utilization and Storage (CCUS) purposes where the unique specifications of CO2 come into play to increase geothermal energy recovery while this greenhouse gas agent is sequestered underground.

Author Contributions

Conceptualization, A.P. and A.J.; data curation, A.P.; formal analysis, A.P. and A.J.; funding acquisition, M.M.M.-V.; investigation, A.P. and A.J.; methodology, A.P., A.J. and M.M.M.-V.; project administration, M.M.M.-V.; resources, M.M.M.-V.; software, A.P. and A.J.; supervision, A.J. and M.M.M.-V.; validation, A.P.; visualization, A.P.; writing—original draft, A.P.; writing—review and editing, A.J. and M.M.M.-V. All authors have read and agreed to the published version of the manuscript.

Funding

This work acknowledges the support received from the UKRI Industrial Challenge Fund (ISCF) within the UK Industrial Decarbonisation Research and Innovation Centre (IDRIC) award number: EP/V027050/1. Amir Jahanbakhsh and M. Mercedes Maroto-Valer would like to thank the European Research Council (ERC) for funding the MILEPOST project (Grant agreement no.: 695070) under the European Union’s Horizon 2020 research and innovation program. The ERC is not responsible for the views presented in this work, and they are only the views of authors. The use made from the information contained here will not pose any responsibility on the ERC. The authors also would like to express appreciation for the CMG team for license provision and their support during this study.

Data Availability Statement

The data presented in this study are openly available on GitHub (https://github.com/Ali-Papi, accessed on 1 July 2024).

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Papi, A.; Jahanbakhsh, A.; Maroto-Valer, M.M. compositionalIGFoam, a new Darcy-scale compositional solver in OpenFOAM for CO2/water interactions in CO2 storage processes in aquifers. In Proceedings of the InterPore 2024—16th Annual Meeting & Conference Courses, Qingdao, China, 13–16 May 2024; pp. 695–697. [Google Scholar]
  2. Amrollahinasab, O.; Jammernegg, B.; Azizmohammadi, S.; Ott, H. Simulation of CO2-Brine Primary Displacement in Heterogeneous Carbonate Rocks. In Proceedings of the 85th EAGE Annual Conference & Exhibition; European Association of Geoscientists & Engineers, Edinburgh, UK, 22–25 May 2023. [Google Scholar]
  3. Parvin, S.; Masoudi, M.; Sundal, A.; Miri, R. Continuum scale modelling of salt precipitation in the context of CO2 storage in saline aquifers with MRST compositional. Int. J. Greenh. Gas Control 2020, 99, 103075. [Google Scholar] [CrossRef]
  4. Available online: https://www.openfoam.com/documentation/user-guide (accessed on 1 June 2023).
  5. Kim, J.H.; Kim, W.T. Numerical investigation of gas-liquid two-phase flow inside PEMFC gas channels with rectangular and trapezoidal cross sections. Energies 2018, 11, 1403. [Google Scholar] [CrossRef]
  6. Keser, R.; Ceschin, A.; Battistoni, M.; Im, H.G.; Jasak, H. Development of a Eulerian multi-fluid solver for dense spray applications in OpenFOAM. Energies 2020, 13, 4740. [Google Scholar] [CrossRef]
  7. Carrillo, F.J.; Bourg, I.C.; Soulaine, C. Multiphase flow modeling in multiscale porous media: An open-source micro-continuum approach. J. Comput. Phys. X 2020, 8, 100073. [Google Scholar] [CrossRef]
  8. Maes, J.; Menke, H.P. GeoChemFoam: Direct modelling of multiphase reactive transport in real pore geometries with equilibrium reactions. Transp. Porous Media 2021, 139, 271–299. [Google Scholar] [CrossRef]
  9. Horgue, P.; Renard, F.; Gerlero, G.S.; Guibert, R.; Debenest, G. porousMultiphaseFoam v2107: An open-source tool for modeling saturated/unsaturated water flows and solute transfers at watershed scale. Comput. Phys. Commun. 2022, 273, 108278. [Google Scholar] [CrossRef]
  10. Hafsteinsson, H.E. Porous Media in OpenFOAM; Chalmers University of Technology: Gothenburg, Sweden, 2009; p. 14. [Google Scholar]
  11. Gooya, R.; Petit, O.; Chen, C.B. Description of porousSimpleFoam and Adding the Brinkmann Model to the Porous Models. 2014. Online Source. Available online: https://www.tfd.chalmers.se/~hani/kurser/OS_CFD_2013/RezaGooya/Final%20OF.pdf (accessed on 1 October 2023).
  12. Missios, K.; Jacobsen, N.; Moeller, K.; Roenby, J. Extending the isoAdvector Geometric VOF Method to Flows in Porous Media. OpenFOAM® J. 2023, 3, 66–74. [Google Scholar] [CrossRef]
  13. Soulaine, C.; Pavuluri, S.; Claret, F.; Tournassat, C. porousMedia4Foam: Multi-scale open-source platform for hydro-geochemical simulations with OpenFOAM®. Environ. Model. Softw. 2021, 145, 105199. [Google Scholar] [CrossRef]
  14. Pavuluri, S.; Tournassat, C.; Claret, F.; Soulaine, C. Reactive transport modeling with a coupled openfoam®-phreeqc platform. Transp. Porous Media 2022, 145, 475–504. [Google Scholar] [CrossRef]
  15. Horgue, P.; Soulaine, C.; Franc, J.; Guibert, R.; Debenest, G. An open-source toolbox for multiphase flow in porous media. Comput. Phys. Commun. 2015, 187, 217–226. [Google Scholar] [CrossRef]
  16. Chen, Z.; Huan, G.; Li, B. An improved IMPES method for two-phase flow in porous media. Transp. Porous Media 2004, 54, 361–376. [Google Scholar] [CrossRef]
  17. Lange, R.; Magalhães, G.M.; Rocha, F.F.; Coimbra, P.V.; Favero, J.L.; Dias, R.A.; Moraes, A.O.; Schwalbert, M.P. upstreamFoam: An OpenFOAM-based solver for heterogeneous porous media at different scales. arXiv 2023, arXiv:230403390. [Google Scholar]
  18. Maes, J.; Soulaine, C. A new compressive scheme to simulate species transfer across fluid interfaces using the Volume-Of-Fluid method. Chem. Eng. Sci. 2018, 190, 405–418. [Google Scholar] [CrossRef]
  19. Maes, J.; Soulaine, C. A unified single-field Volume-of-Fluid-based formulation for multi-component interfacial transfer with local volume changes. J. Comput. Phys. 2020, 402, 109024. [Google Scholar] [CrossRef]
  20. Ahmed, T. Equations of State and PVT Analysis; Elsevier: Amsterdam, The Netherlands, 2013. [Google Scholar]
  21. Darcy, H. Les Fontaines Publiques de la Ville de Dijon: Exposition et Application des Principes à Suivre et des Formules à Employer Dans Les Questions de Distribution D’eau; Victor dalmont: Paris, France, 1856. [Google Scholar]
  22. Brown, G. Henry Darcy and the making of a law. Water Resour. Res. 2002, 38, 11-1–11-12. [Google Scholar] [CrossRef]
  23. Ahmed, T. Reservoir Engineering Handbook; Gulf Professional Publishing: Houston, TX, USA, 2018. [Google Scholar]
  24. Henry, W. III. Experiments on the quantity of gases absorbed by water, at different temperatures, and under different pressures. In Abstract of the Papers Printed in the Philosophical Transactions of the Royal Society of London; Royal Society: London, UK, 1803; pp. 29–74. [Google Scholar]
  25. Raoult, F. General law of the vapor pressure of solvents. Comptes Rendus 1887, 104, 1430–1433. [Google Scholar]
  26. Available online: https://github.com/phorgue/porousMultiphaseFoam/tree/openfoam-v2206/tutorials/impesFoam-tutorials/injectionExtraction/injection (accessed on 1 April 2024).
  27. Available online: https://www.cmgl.ca/solutions/software/gem/ (accessed on 1 October 2023).
Figure 1. The numerical algorithm.
Figure 1. The numerical algorithm.
Energies 17 03401 g001
Figure 2. (a) Water saturation distribution using our developed model, along with (b) the new mesh resolution.
Figure 2. (a) Water saturation distribution using our developed model, along with (b) the new mesh resolution.
Energies 17 03401 g002
Figure 3. Gas saturation distribution of the case of gas injection into a porous enclosure.
Figure 3. Gas saturation distribution of the case of gas injection into a porous enclosure.
Energies 17 03401 g003
Figure 4. The coreflood model.
Figure 4. The coreflood model.
Energies 17 03401 g004
Figure 5. The water composition in the liquid phase (xH2O) and CO2 composition in the gas phase (yCO2) of (a,c) compositionalIGFoam (this study) and (b,d) CMG-GEM simulator.
Figure 5. The water composition in the liquid phase (xH2O) and CO2 composition in the gas phase (yCO2) of (a,c) compositionalIGFoam (this study) and (b,d) CMG-GEM simulator.
Energies 17 03401 g005
Table 1. A comparison between porous media packages in OpenFOAM.
Table 1. A comparison between porous media packages in OpenFOAM.
PackageDeveloperDarcy FlowFree FlowMulti-PhaseTransportReactive TransportCompressible
porousSimpleFoamOpenFOAM [4]××××
porousInterFoamOpenFOAM [4]××
porousInterIsoFoamMissios et al. (2023) [12]××
porousMedia4FoamSoulaine et al. (2021) [13]×
hybridPorousInterFoamCarrillo et al. (2020) [7]××
porousMultiphaseFoamHorgue et al. (2022) [9]××
impesFoamHorgue et al. (2015) [15]××××
upstreamFoamLange et al. (2023) [17]×××
GeoChemFoamMaes and Menke (2021) [8]××
Table 2. The numerical parameters.
Table 2. The numerical parameters.
Rock and Fluid ParametersBrooks–Corey kr/Pc Model Parameters
T65 °Ckrw,max1
K100 mdkrg,max1
P107 PaSwr0.001
φ0.5Sg,crit0.999
HCO22.9 × 108 PaPc05 Pa
Psat2 × 104 Pan4
μw10−3 kg/m.sα0.2
μCO21.76 × 10−5 kg/m.s
ρw1000 kg/m3
ρCO21 kg/m3
Table 3. Comparison of the binary composition of the coreflood model in CMG-GEM and our study.
Table 3. Comparison of the binary composition of the coreflood model in CMG-GEM and our study.
ComponentxH2OxCO2yH2OyCO2
Model
CMG-GEM0.98320.01680.00620.9938
compositionalIGFoam (this work)0.96560.03440.00190.9981
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Papi, A.; Jahanbakhsh, A.; Maroto-Valer, M.M. A New Straightforward Darcy-Scale Compositional Solver in OpenFOAM for CO2/Water Mutual Solubility in CO2 Storage Processes in Aquifers. Energies 2024, 17, 3401. https://doi.org/10.3390/en17143401

AMA Style

Papi A, Jahanbakhsh A, Maroto-Valer MM. A New Straightforward Darcy-Scale Compositional Solver in OpenFOAM for CO2/Water Mutual Solubility in CO2 Storage Processes in Aquifers. Energies. 2024; 17(14):3401. https://doi.org/10.3390/en17143401

Chicago/Turabian Style

Papi, Ali, Amir Jahanbakhsh, and Mercedes M. Maroto-Valer. 2024. "A New Straightforward Darcy-Scale Compositional Solver in OpenFOAM for CO2/Water Mutual Solubility in CO2 Storage Processes in Aquifers" Energies 17, no. 14: 3401. https://doi.org/10.3390/en17143401

APA Style

Papi, A., Jahanbakhsh, A., & Maroto-Valer, M. M. (2024). A New Straightforward Darcy-Scale Compositional Solver in OpenFOAM for CO2/Water Mutual Solubility in CO2 Storage Processes in Aquifers. Energies, 17(14), 3401. https://doi.org/10.3390/en17143401

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop