World Geothermal Congress · Software for Geothermal Applications

Modeling of Hydrothermal Systems with OpenFOAM

Larus THORVALDSSON, Halldor PALSSON

Abstract

This paper examines the applicability of OpenFOAM for the simulation of hydrothermal systems. OpenFOAM is a free and open source C++ toolbox for the development of numerical solvers in continuum mechanics. It offers some major advantages such as object-oriented code, which enables developers to work at a high level of abstraction, extensive options for parallelization and the potential to construct tailor-made solvers for specific problems. In this project a solver has been constructed which is capable of accounting for the hydrology and thermodynamics of two-phase flow in porous media. The IAPWS-IF97 thermodynamic formulation is used for the equation of state, where the model is both capable of handling phase change and the phases traveling at different velocities. This solver is then validated against a thermal analogy of Henry’s seawater diffusion problem and a test case involving natural convection of two phases. These problems increase the confidence in the validity of the solver and the accuracy of the solution. The conclusion is that OpenFOAM is a viable option in the simulation of geothermal reservoirs and offers some advantages over commonly used simulation tools.

Details

Conference
World Geothermal Congress
Year
2015
Session
Software for Geothermal Applications (27 papers)
Paper number
33025
Language
English
Copyright
International Geothermal Association
Keywords
numerical modeling phase change OpenFOAM Henry’s problem
Record ID
24220

Suggested citation

Larus THORVALDSSON, Halldor PALSSON (2015). Modeling of Hydrothermal Systems with OpenFOAM. Proceedings, World Geothermal Congress 2015, Paper 33025.

Proceedings-level reference. Individual papers do not carry DOIs.

More papers by Thorvaldsson ›