Skip to main content
QUICK REVIEW

[Paper Review] Ultra-Fast Reactive Transport Simulations When Chemical Reactions Meet Machine Learning: Chemical Equilibrium

Allan M. M. Leal, Dmitrii A. Kulik|arXiv (Cornell University)|Aug 16, 2017
Machine Learning in Materials ScienceMaterials Science9 citations
TL;DR

This paper proposes a machine learning method that accelerates chemical equilibrium calculations in reactive transport simulations by predicting new equilibrium states using nearby past solutions, avoiding expensive iterative computations. The approach achieves up to 100× speedup by leveraging on-demand training and first-order derivatives, enabling real-time, accurate predictions without prior statistical training.

ABSTRACT

During reactive transport modeling, the computational cost associated with chemical reaction calculations is often 10-100 times higher than that of transport calculations. Most of these costs results from chemical equilibrium calculations that are performed at least once in every mesh cell and at every time step of the simulation. Calculating chemical equilibrium is an iterative process, where each iteration is in general so computationally expensive that even if every calculation converged in a single iteration, the resulting speedup would not be significant. Thus, rather than proposing a fast-converging numerical method for solving chemical equilibrium equations, we present a machine learning method that enables new equilibrium states to be quickly and accurately estimated, whenever a previous equilibrium calculation with similar input conditions has been performed. We demonstrate the use of this smart chemical equilibrium method in a reactive transport modeling example and show that, even at early simulation times, the majority of all equilibrium calculations are quickly predicted and, after some time steps, the machine-learning-accelerated chemical solver has been fully trained to rapidly perform all subsequent equilibrium calculations, resulting in speedups of almost two orders of magnitude. We remark that our new on-demand machine learning method can be applied to any case in which a massive number of sequential/parallel evaluations of a computationally expensive function $f$ needs to be done, $y=f(x)$. We remark, that, in contrast to traditional machine learning algorithms, our on-demand training approach does not require a statistics-based training phase before the actual simulation of interest commences. The introduced on-demand training scheme requires, however, the first-order derivatives $\\partial f/\\partial x$ for later smart predictions.

Motivation & Objective

  • Address the dominant computational bottleneck in reactive transport simulations, where chemical equilibrium calculations consume 10–100× more time than transport processes.
  • Overcome the limitations of traditional iterative solvers, which remain expensive even with fast convergence due to repeated evaluation of thermodynamic properties and linear system solves.
  • Develop a machine learning framework that enables fast, accurate prediction of chemical equilibrium states without requiring a pre-simulation training phase.
  • Enable real-time, on-demand learning during simulation by using first-order derivatives to guide smart predictions based on previously solved, similar equilibrium problems.
  • Demonstrate the method’s effectiveness in a reactive transport case study, showing significant performance gains even at early simulation stages.

Proposed method

  • Perform a nearest-neighbor lookup in a database of previously solved equilibrium problems to find the most similar input conditions.
  • Use a linear approximation based on first-order derivatives to estimate the new equilibrium composition from the closest prior solution via vector addition and matrix multiplication.
  • Apply a lightweight acceptance criterion to validate the predicted equilibrium state, ensuring accuracy without full re-computation.
  • Dynamically train the model during simulation by storing new solutions only when prediction fails, avoiding pre-simulation data collection.
  • Leverage the fact that only a small fraction of mesh cells experience high reactivity at any time, making predictions highly effective for performance gains.
  • Use the Jacobian of the equilibrium function (partial derivatives ∂f/∂x) to compute sensitivity-based corrections, enabling accurate extrapolation between similar chemical states.

Experimental results

Research questions

  • RQ1Can machine learning be used to accelerate chemical equilibrium calculations in reactive transport simulations without requiring a priori training data?
  • RQ2To what extent can on-demand, derivative-based predictions reduce computational cost compared to standard iterative solvers?
  • RQ3How effective is the method in reducing simulation time when only a small fraction of cells undergo significant chemical changes at any time step?
  • RQ4Can the method maintain high accuracy while bypassing expensive operations like thermodynamic property evaluation and linear system solves?
  • RQ5What is the performance gain achievable in a real reactive transport model when using the smart equilibrium algorithm?

Key findings

  • The proposed machine learning method achieves speedups of nearly two orders of magnitude (up to ~100×) in reactive transport simulations by accelerating chemical equilibrium calculations.
  • Even at early simulation times, the majority of equilibrium calculations are quickly predicted using nearby past solutions, reducing computational load from the outset.
  • After a few time steps, the model becomes fully trained and predicts all subsequent equilibrium states rapidly and accurately, with minimal re-computation.
  • The method bypasses expensive iterative operations such as activity coefficient evaluation and linear system solves by relying on sensitivity-based approximations.
  • The on-demand training approach eliminates the need for large pre-simulation datasets and avoids the uncertainty of when to terminate a traditional training phase.
  • The approach is generalizable to any problem requiring repeated evaluations of a computationally expensive function y = f(x), particularly when input conditions evolve gradually.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.