Physics-informed convolutional neural networks for fluid flow through porous media

This paper presents a physics-informed convolutional neural network framework that accurately predicts pore-scale velocity fields in complex porous media by integrating physical constraints into the training process, thereby enabling significant acceleration of Lattice-Boltzmann simulations through improved initial conditions.

Original authors: Rafał Topolnicki, Paweł Dłotko, Maciej Matyka

Published 2026-05-21
📖 5 min read🧠 Deep dive

Original authors: Rafał Topolnicki, Paweł Dłotko, Maciej Matyka

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are trying to predict how water flows through a sponge. In the real world, sponges have tiny, twisting, and irregular holes. To calculate exactly how the water moves through every single twist and turn using traditional math, you need a supercomputer and a lot of time. It's like trying to map every single grain of sand on a beach by hand; it's accurate, but painfully slow.

This paper introduces a new way to do this using Artificial Intelligence (AI). Think of the AI as a "super-observer" that learns to guess the water's path just by looking at a picture of the sponge's holes, without needing to do the heavy math every time.

Here is a breakdown of how they did it and what they found, using simple analogies:

1. The Problem: The "Slow Math" vs. The "Fast Guess"

Traditionally, scientists use a method called Lattice Boltzmann Method (LBM) to simulate fluid flow. Imagine this as a very careful, slow-motion video game where the computer calculates the movement of billions of tiny water particles one by one. It's accurate, but it takes a long time to run, especially for complex sponges.

The authors wanted to train a Convolutional Neural Network (CNN)—a type of AI good at recognizing patterns in images—to act as a "shortcut." They wanted the AI to look at a picture of the sponge and instantly "paint" the picture of how the water would flow through it.

2. The Training: Teaching the AI with "Rules"

You can't just show the AI pictures and let it guess randomly. If you do, it might draw water flowing through the solid parts of the sponge, which is physically impossible.

To fix this, the authors gave the AI a special scorecard (Loss Function) with four specific rules to follow, much like a coach correcting a student:

  • The "No-Go" Zone Rule: If the AI predicts water flowing inside a solid rock or obstacle, it gets a big penalty. (Imagine a teacher saying, "Water can't walk through walls!")
  • The "No-Spilling" Rule: The water must be incompressible (it can't just disappear or appear out of nowhere). The AI is penalized if the math doesn't balance out.
  • The "Seamless Wrap" Rule: Since the sponge samples are treated as if they wrap around like a video game map (periodic boundaries), the flow on the left edge must match the flow on the right edge. The AI is penalized if the flow looks broken at the edges.
  • The "Twistiness" Rule: The AI must predict the correct overall "tortuosity" (how twisty and long the path is). If the path looks too straight or too crazy compared to reality, it loses points.

By combining these rules with the actual answer (the slow, accurate LBM simulation), the AI learned to make guesses that were not only fast but also physically correct.

3. The Results: The "Best Student"

The researchers tested many different AI architectures (different "brain" designs). They found that a specific design called ResNet-101 was the best student.

  • Accuracy: It could predict the water flow with incredible precision, matching the slow, expensive computer simulations almost perfectly.
  • Speed: While the traditional method took hundreds of milliseconds, the AI could make a prediction in just 5 milliseconds on a graphics card. That's like going from walking to a sprint.

4. The "Out-of-Distribution" Test: Can it Handle New Sponges?

A smart AI shouldn't just memorize the training pictures; it should understand the concept of flow. The researchers tested the AI on sponges it had never seen before:

  • Different Shapes: They used sponges made of squares and circles instead of the wavy lines the AI was trained on. The AI still worked well, though it struggled slightly more with sharp squares than round circles.
  • Different Densities: They tested sponges that were very dense (few holes). The AI did well on moderately dense sponges but started to get confused when the sponge was extremely dense (near the point where water can't flow through at all).
  • Real-World Sponges: They even tested it on real lithium-ion battery electrodes (scanned from real life). The AI handled these messy, real-world structures surprisingly well.

5. The "Superpower" Application: The Warm Start

The most practical trick they discovered is using the AI to speed up the slow computer simulations.

  • The Cold Start: Usually, to run a simulation, you start with zero water movement and wait for it to settle. This takes a long time.
  • The Warm Start: The researchers let the AI make a quick, "rough guess" of the flow first. They fed this guess into the slow computer simulation as a starting point.
  • The Result: Because the simulation started with a good guess instead of zero, it converged (finished) 50% faster in half of the cases. In 90% of cases, it was faster than starting from scratch.

Summary

The paper presents a system where an AI learns to predict fluid flow through porous materials by looking at the shape of the holes. By teaching the AI strict physical rules (like "water can't go through rocks"), they created a tool that is:

  1. Extremely fast (milliseconds vs. seconds).
  2. Physically accurate (it respects the laws of physics).
  3. Versatile (it works on new shapes and even real-world materials).
  4. A booster (it can speed up traditional simulations by giving them a "head start").

The authors conclude that while the AI isn't perfect for every single extreme case (like extremely dense sponges), it is a powerful new tool for understanding how fluids move through complex materials.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →