PTFlash: A deep learning framework for isothermal two-phase equilibrium calculations

05/06/2022
by   Jingang Qu, et al.
0

Phase equilibrium calculations are an essential part of numerical simulations of multi-component multi-phase flow in porous media, accounting for the largest share of the computational time. In this work, we introduce a GPUenabled, fast, and parallel framework, PTFlash, that vectorizes algorithms required for isothermal two-phase flash calculations using PyTorch, and can facilitate a wide range of downstream applications. In addition, to further accelerate PTFlash, we design two task-specific neural networks, one for predicting the stability of given mixtures and the other for providing estimates of the distribution coefficients, which are trained offline and help shorten computation time by sidestepping stability analysis and reducing the number of iterations to reach convergence. The evaluation of PTFlash was conducted on three case studies involving hydrocarbons, CO_2 and N_2 , for which the phase equilibrium was tested over a large range of temperature, pressure and composition conditions, using the Soave-Redlich-Kwong (SRK) equation of state. We compare PTFlash with an in-house thermodynamic library, Carnot, written in C++ and performing flash calculations one by one on CPU. Results show speed-ups on large scale calculations up to two order of magnitudes, while maintaining perfect precision with the reference solution provided by Carnot.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
01/13/2020

Rapid multi-component phase-split calculations using volume functions and reduction methods

We present a new family of fast and robust methods for the calculation o...
research
09/03/2023

Bayesian inference of composition-dependent phase diagrams

Phase diagrams serve as a highly informative tool for materials design, ...
research
01/27/2019

Acceleration of the NVT-flash calculation for multicomponent mixtures using deep neural network models

Phase equilibrium calculation, also known as flash calculation, has been...
research
08/16/2017

Ultra-Fast Reactive Transport Simulations When Chemical Reactions Meet Machine Learning: Chemical Equilibrium

During reactive transport modeling, the computational cost associated wi...
research
04/05/2023

Accelerated high-cycle phase field fatigue predictions

Phase field fracture models have seen widespread application in the last...

Please sign up or login with your details

Forgot password? Click here to reset