Neural network-based interface reconstruction algorithm for two-phase fluid flow

Junhua Gong, Yujie Chen, Bo Yu, Dongliang Sun, Bohong Wang, Guoyun Shi, Bin ChenFundamental Research 2025

TL;DR

This paper introduces two novel neural network-based algorithms, CIR-ANN and CIR-CNN, for accurately reconstructing curved interfaces in two-phase fluid flow simulations. By leveraging deep learning to predict circle parameters, these methods offer improved accuracy and computational efficiency compared to traditional techniques, especially when combined with a proposed strict mass conservation strategy.

What Problem Does This Paper Address?

Simulating two-phase fluid flow, common in everything from ocean waves to industrial processes, requires accurately tracking the interface between fluids (like liquid and vapor). Traditional methods often approximate these interfaces as linear, which can lead to inaccuracies, especially when surface tension causes the interface to curve. While some curved reconstruction methods exist, they can be computationally expensive and complex to implement. This paper aims to bridge this gap by developing efficient and accurate neural network-based algorithms for curved interface reconstruction, addressing the limitations of existing linear and complex curved methods.

Methods

The core of this work lies in two neural network architectures: an Artificial Neural Network (ANN) and a Convolutional Neural Network (CNN). Both are trained to predict the center coordinates and radius of a circular arc that approximates the vapor-liquid interface within a grid cell. The input to these networks is the volume fraction of the fluid in a 5x5 grid cell block surrounding the interface.

Key methodological contributions include:

  • CIR-ANN and CIR-CNN Algorithms: These are the proposed algorithms that utilize ANN and CNN, respectively, for predicting the parameters of the circular interface.
  • Strict Mass Conservation Strategy: To ensure the reliability of the neural network predictions, a post-processing step is introduced. This strategy iteratively adjusts the predicted radius to strictly enforce mass conservation, improving accuracy.
  • Data Generation: A random method is used to generate numerous circular interfaces with varying parameters. The volume fractions within grid cells are calculated, and these, along with the true circle parameters, form the training dataset.
  • Hyperparameter Optimization: The Optuna framework is used for Bayesian optimization to fine-tune hyperparameters for both ANN and CNN models, ensuring optimal performance.

Datasets

The study generates its own datasets for training and evaluating the neural network models. This involves creating a large number of random circular interfaces within a computational domain and calculating the corresponding fluid volume fractions in a 5x5 grid cell block for each interface. These generated datasets are used to train the CIR-ANN and CIR-CNN models and to test their performance against various benchmarks.

Key Insights and Ideas

  • Neural Networks for Curved Interfaces: The paper demonstrates that neural networks, particularly CNNs, are well-suited for predicting the parameters of curved interfaces, offering a more efficient alternative to traditional geometric methods.
  • CNNs Outperform ANNs for Spatial Data: CNNs show superior performance over ANNs in this task, likely due to their inherent ability to process spatial information in the volume fraction data, which ANNs lose when flattening the input.
  • Mass Conservation is Crucial: The strict mass conservation strategy significantly improves the accuracy of the neural network predictions, highlighting the importance of this physical constraint in fluid simulations.
  • Trade-off Between Accuracy and Complexity: While more complex methods like QUASI can achieve very high accuracy, the proposed neural network approaches offer a better balance of accuracy and computational efficiency.

Key Results

  • Static Interface Reconstruction: The CIR-CNN algorithm achieved impressive average accuracy ratios: 48.40x better than PLIC, 86.69x better than ELVIRA, 26.34x better than QUASI (after first correction), and 4.07x better than CIR.
  • Dynamic Interface Reconstruction: In horizontal translation tests, CIR-CNN showed average accuracy ratios of 12.11x over CIR and 102.36x over VOSET-PLIC.
  • Computational Efficiency: The proposed algorithms significantly reduce computational time. For random circular interfaces, CIR-ANN and CIR-CNN achieved average time reduction ratios of 4.16x and 7.86x compared to CIR and ELVIRA, respectively.
  • Impact of Mass Conservation: The strict mass conservation strategy improved accuracy by factors of 3.19x (CIR-ANN) and 6.35x (CIR-CNN) on a 5x5 grid.
  • CNN vs. ANN: The CIR-CNN consistently outperformed CIR-ANN in accuracy across most tests, though CIR-ANN showed slightly better accuracy in complex time-reversed vortex fields due to its input processing.

Limitations and Future Work

  • Complex Flow Fields: The performance advantage of the proposed algorithms decreases in complex rotation and shear recovery flow fields due to the increased complexity of volume fraction distributions.
  • Computational Cost of Mass Conservation: While effective, the strict mass conservation strategy adds to the overall computational time, especially for the CIR-ANN algorithm.
  • Future Work: The authors suggest exploring more efficient correction methods for the mass conservation strategy and investigating the application of these algorithms to more complex flow scenarios and three-dimensional simulations. They also mention the potential for further improvements by using more advanced neural network architectures or data preprocessing techniques.

Summary updated

BibTeX
@inproceedings{gong2025neural,
  author = {Junhua Gong and Yujie Chen and Bo Yu and Dongliang Sun and Bohong Wang and Guoyun Shi and Bin Chen},
  title = {{Neural network-based interface reconstruction algorithm for two-phase fluid flow}},
  booktitle = {Fundamental Research},
  year = {2025},
  doi = {10.1016/j.fmre.2025.01.018},
}
Figure