Search arXivSearch

arXiv · 2205.03090

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

Abstract

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.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Jingang Qu, Thibault Faney, Jean-Charles de Hemptinne, Soleiman Yousef, Patrick Gallinari. 2022-05-19. PTFlash : A deep learning framework for isothermal two-phase equilibrium calculations. https://arxiv.org/abs/2205.03090

Cite the original work for its findings. Save a collection to share your selection of sources.

KEEP EXPLORING

Related papers

Discovering Kinetically Significant Reaction Mechanisms Beyond Chemical Intuition in Condensed-Phase Radiolysis

Many important chemical systems, from radiation-driven processes to condensed-phase photochemistry, involve reaction mechanisms that are so complex it is a challenge to characterize them experimentally or predict them from chemical intuition. Existing computational approaches to mechanism discovery typically assess pathway importance through thermodynamic favorability alone, which does not provide time-dependent kinetics or inform how to model spatial inhomogeneities. Here we describe an integrated workflow that discovers complex reaction mechanisms without prescribing them and connects molecular-scale reactivity to spatiotemporal observables. The workflow combines high-throughput DFT, automated reaction network construction with chemical plausibility filtering, stochastic pathway sampling to identify reactions which are likely to occur, and spatially resolved reaction-diffusion kinetics simulations with explicit tracking of species in space and time. To demonstrate the workflow on a system of high complexity, we apply it to radiolytic chemistry in an extreme ultraviolet (EUV) organic polymer thin film photoresist, where a single 92 eV photon initiates cascades of radical ions, fragments, and low-energy electrons across a nanoscale radiolytic spur. Starting from over 3,300 species and millions of candidate reactions, the workflow identifies the most likely reaction pathways and produces spatiotemporal maps that resolve product formation on femtosecond-to-nanosecond timescales across a 15.5-nm domain. The simulations predict products detected experimentally and reveal that the identity of the initially photoionized species profoundly shapes the downstream product distribution through multi-step pathways governing the balance between deprotection and crosslinking reactions. The methodology is broadly applicable to complex condensed-phase reactive systems.

physics.chem-ph

QALPA: Property-guided diffusion modeling for efficient exploration of chemical spaces of flexible molecules

Exploring the chemical space of flexible molecules remains challenging because the vast number of possible compounds and conformations, together with the increasing cost and limited generalization of 3D generative models for larger and more complex molecules, restrict access to unexplored chemistry. Here, we introduce QALPA ("Quantum-Aware Learning for Property-space Augmentation"), a property-guided generative framework that combines an E(3)-equivariant diffusion model with active learning and efficient quantum-mechanical (QM) methods to iteratively explore targeted QM property manifolds. By coupling generation with physics-based evaluation, QALPA improves molecular sampling and model reliability in sparsely populated regions of chemical space. Our results show that training on complementary QM datasets spanning both small (QM7-X) and large (Aquamarine) drug-like compounds enables accurate molecular generation across a broad size range, improving transferability beyond the training distribution for complex property manifolds involving both extensive and intensive properties. As a proof of concept, QALPA coupled with the machine learning-augmented tight-binding method EquiDTB efficiently augments alloQM, a QM dataset introduced in this work, comprising 6,253 conformers of allosteric drug molecules, by populating sparse regions of the property landscape defined by the many-body dispersion energy and HOMO-LUMO energy gap. These results demonstrate that the integration of generative AI with efficient ML/QM methods offers a practical pathway toward augmenting sparse QM datasets and sustainably expanding the exploration of chemical space for molecular discovery.

physics.chem-ph

Revisiting the CeO Anion Photoelectron Spectrum: Resolving the Assignment and Photodetachment Mechanism of Satellite Transitions

CeO serves as an important model system for understanding the interplay of electron correlation, spin-orbit coupling, and 4f/5d configurational mixing in lanthanide oxides. Its anion photoelectron spectrum exhibits dense electronic manifolds and multielectron shake-up processes that complicate spectral assignments and photodetachment dynamics. Here, we combine high-resolution anion photoelectron spectroscopy with spin-free and spin-orbit-coupled CASSCF+NEVPT2 calculations to characterize the electronic structure of CeO- and CeO. A binning-based data analysis approach enables observation of weak transitions hidden by spectral congestion, while multireference calculations reproduce the low-lying electronic structure and detachment energetics. On this basis, tentative assignments are proposed for the observed photoelectron features. Analysis of photodetachment selection rules, photoelectron angular distributions, and multielectron detachment channels provides additional insight into the mechanisms underlying the spectrum. These results establish a comprehensive interpretation of the CeO- photoelectron spectrum and underscore the importance of combining high-resolution spectroscopy with multireference relativistic theory for electronically complex lanthanide systems.

physics.chem-ph