CNNs for Multiphase Flow
At Los Alamos National Lab, I worked with two staff scientists on a project examining multiphase flow simulations in subsurface fractures. This is an abridged summary of the full article published in Energies!
Problem & Motivation
Multiphase flow properties of fractures are important for a variety of engineering applications, one being the injection and storage of fluid CO2 underground. Lattice Boltzmann (LBM) simulations can be used to study these properties, but these physics-based simulations require high-performance computing resources and are limited in their domain size.
We present a physics-constrained deep convolutional neural network (CNN) that trains on a few LBM simulations and can quickly and accurately predict the displacement of water by supercritical CO2 through time with 95% accuracy. The goal is to map the characteristics of a 3D fracture to the position of an injected fluid mass of CO2 at multiple timesteps, interpolating between the original simulations with accurate ML predictions that take into account interfacial tension between fluids, fluid-solid interactions, and complex geometries.
Methods
To make computations lightweight and scalable to different fracture sizes, we design a workflow to project the input 3D simulation into two 2D maps that represent the top and bottom surfaces of the fracture. For each timestep, we then use the fracture shape to output two 2D maps, representing the the position of the top and bottom of the menisci of the fluid CO2 with respect to the fracture’s aperture size. Finally, the predicted 3D simulation of the CO2 (red) displacing water (blue) is reconstructed. For details on the convollutional neural network architecture, please read section 3 in the paper.
Results
We tested our model using 40 timesteps from two fractures which had never been seen by the machine learning algorithm. Overall, the shape of the plume and phase distributions are accurately predicted. In general, the algorithm predicts sharper interfaces than the simulation, but if these model outputs were used as an input into an LBM simulation, capillary forces would immediately smooth this result. In this way, a coupled LBM and machine learning scheme could be devised where the LBM resolves the interface from the algorithm at certain intervals. The end result makes 3D multiphase flow predictions easy with applied boundary conditions. An example of one prediction that shows the model’s accuracy in 3D is shown below.
Multiphase flow in fractures is important to many engineering applications, and for future work, we plan to create a larger dataset of simulations with different fractures and conditions to help further develop the capabilities of our machine learning algorithms.
AGU Poster (2022)
I presented this research at the American Geophysical Union Fall Meeting in Chicago, IL in 2022. The full poster presentation is linked in the image below.