Enhancing rock permeability to improve geothermal energy production
Geothermal power plants require the right amount of fluid to be able to be passed through rock. This parameter, known as permeability, can be enhanced by engineers to improve energy output.
Justin Pogacnik, a researcher at the University of Auckland, is using high performance computating to explore this. He has created an artificial medium that mimics the properties of rock to gain a better understanding of permeability and how to affect it.
This research uses a technique known as the finite element method, to model permeability and permeability enhancement. The finite element method splits a large problem into many far smaller problems. Calculating each of those sub-problems requires large amounts of memory and many CPU cycles. To get the resolutions required for a practical result, he needed to access HPC facilities provided by NeSI.
Justin describes his work:
What is rock permeability and what affects it in the real world?
Permeability controls the percolation of fluid in porous and fractured rock and is one of the most crucial hydrologic parameters. In geothermal systems, permeability is typically controlled by fractures and fracture connectivity within the rock mass. Because of its complexity, permeability is often a very difficult parameter to evaluate and apply in any meaningful way.
This is especially true in the area of permeability enhancement. For many problems, permeability should be regarded as a time-dependent parameter, that can be enhanced or inhibited over time by various processes suchas chemical species dissolution and precipitation, changes in stress or pore pressure (effective stress), and by thermo-elasto-plastic effects (thermal cracking).
Why is enhancing permeability sometimes important?
Permeability often determines the feasibility of some important geologic processes and their economic potential. This is especially true in geothermal energy production. If permeability is too low, then a geothermal well is often stimulated by over pressurisation (hydrofracking or hydroshearing) or injection of cold water to induce fracturing and enhance permeability. It is the understanding of the permeability enhancement process that is the subject of my research.
How has your research approached this problem?
We have constructed a medium description that is based on the true spatial fluctuation of material properties taken from well log and well core data, a ‘poroperm’ medium. The poroperm medium is characterised by fracture density distribution that follows a pink noise spatial fluctuation and a related long-tailed permeability distribution that describes the fracture connectivity in the medium. Small changes in fracture density result in large changes in permeability. Specifically, we are simulating fluid percolation flow and heat flow through a deformable poroperm medium using the finite element method.
Due to spatial fluctuations in porosity, and thus permeability, fluids tend to percolate through native permeability pathways in the medium. The key to sustainable and productive heat extraction lies in the enhancement of those native percolation pathways. This allows sufficient flow rates without allowing cold water to pass to the receiver wells. We are seeking to understand the physics of injection induced strain damage that result in permeability enhancement of the existing native permeability pathways.
While the initial thought of parallelising a serial code can be daunting, I found the process to be very simple using OpenMP and shared-memory parallelisation (SMP).
Finite element simulations were performed on the NeSI Pan cluster using my own C++ software and using LAPack++ and Magma linear-solver software. Pan allowed me to run these simulations that would otherwise not be possible with just the resources in our lab. In the finite element method, a finer mesh solves the governing partial differential equations more accurately. CPU memory is often the limiting factor for the spatial resolution of the mesh. Finer meshes create many more degrees of freedom, which consume copious amounts of RAM.
The simulations performed in my research are fully coupled multiphysics simulations. Fully coupling different partial differential equations creates an additional memory burden by increasing the size of the linear system that needs to besolved. Adding solid mechanics to a fluid and heat transport system further increases the size of the linear system by a factor of three.
The simulations in the figures were performed on a single node of the NeSI Pan cluster that included 12 cores and 96 GB of RAM. Compared to my desktop computer, which has 8 GB of RAM, I have been able to run significantly finer grids in less time. I could not perform a finite element simulation with even half the mesh resolution of the images seen on my desktop computer.
While the initial thought of parallelising a serial code can be daunting, I found the process to be very simple using OpenMP and SMP. The commands are easy to use and many linear solver packages have SMP versions that can be downloaded, comp iled, and installed fairly easily. I also found the staff to be very helpful when installing necessary packages for my research.
I’m able to run simulations with much finer mesh resolution that are more accurate as a result of the NeSI Pan cluster. These simulations would not be possible for me without access to this resource. I would encourage any researcher that performs even a modest amount of scientific computation to use NeSI for their computational needs.
We are starting a big four-year project to develop new code that needs to be parallelised and will consider using Pan to accomplish that. At this point it’s too early to say whether NeSI will be necessary to use but it is a very useful tool in my toolkit to pull out if needed.
This case study has been adapted from the original produced by the Centre for eResearch at the University of Auckland.