EngiSphere icone
EngiSphere

PICT the Future ๐ŸŒ€ How a GPU-Powered Differentiable Solver is Changing Fluid Simulations!

: ; ;

From turbulent flows to deep learning ๐ŸŒŠ ๐Ÿค– meet PICT, the PyTorch-powered solver redefining fluid dynamics modeling

Published May 27, 2025 By EngiSphere Research Editors
Fluid Dynamics Modeling ยฉ AI Illustration
Fluid Dynamics Modeling ยฉ AI Illustration

The Main Idea

This research introduces PICT, a fully differentiable, GPU-accelerated fluid solver built in PyTorch that enables efficient simulation-coupled deep learning for modeling incompressible fluid flows, especially turbulent ones, with high accuracy and reduced computational cost.


The R&D

Fluid dynamics is tough. Simulating fluids accurately is like solving a massive 3D puzzle where every piece is constantly moving. Now imagine doing that faster, with less computational power, and even using AI to improve the flow models themselves. Sounds like sci-fi? ๐Ÿš€

Well, welcome to the world of PICT โ€” a groundbreaking differentiable fluid solver built in PyTorch, GPU-accelerated, and purpose-made for simulation-coupled learning tasks! ๐Ÿ’ป๐Ÿ’ก

In this article, weโ€™ll explore how this powerful solver is changing the way engineers and scientists model complex flows โ€” with exciting implications for aerospace, climate science, robotics, and beyond! ๐ŸŒโœˆ๏ธ

๐Ÿ’ก What is PICT, Anyway?

PICT stands for Pressure Implicit with Splitting of Operators in Custom Tensorflow (okay, actually just "PICT", but it's based on the well-known PISO algorithm). Itโ€™s designed to solve incompressible fluid flows โ€” the kind you find in air and water simulations โ€” and does so while allowing backpropagation through the simulation.

๐Ÿ‘‰ Thatโ€™s right. This means machine learning models can now be directly trained using physical simulation results. ๐Ÿ˜ฎ

And itโ€™s all implemented in PyTorch with GPU acceleration, making it fast and easy to integrate with modern deep learning workflows.

๐Ÿง  Why Does Differentiability Matter?

In machine learning, gradients are everything. They help models learn what to do better over time.

Now imagine youโ€™re trying to train a neural network to correct an inaccurate fluid simulation. Normally, this would be a nightmare because traditional solvers are not differentiable โ€” theyโ€™re like black boxes. ๐Ÿ•ณ๏ธ

But with PICT, you can calculate gradients through the solver itself โ€” enabling:

๐Ÿ“‰ Loss-driven optimization of initial or boundary conditions
๐ŸŽฏ Training turbulence models directly from flow statistics
๐Ÿ”„ Unrolled training where the solver is part of the learning loop

In other words, the solver becomes part of the neural network โ€” making physics and AI best friends. ๐Ÿค

โš™๏ธ How Does PICT Work?

Letโ€™s break down the magic under the hood:

๐ŸŒ€ PISO Algorithm

At the heart of PICT is the classic PISO algorithm, which separates pressure and velocity updates in a smart way. It uses:

  • A predictor step to estimate velocities
  • Corrector steps to ensure the flow is divergence-free (incompressible)

These steps are adapted for multi-block grids (more on that below), and discretized using finite volume methods. ๐Ÿงฑ

๐Ÿงฉ Multi-Block Grids

PICT uses multi-block structured grids instead of messy unstructured meshes. This gives it:

๐Ÿ’พ Better memory efficiency
๐Ÿ“ Easier alignment with object boundaries
๐Ÿค– Compatibility with CNNs (Convolutional Neural Networks)

Itโ€™s like giving your fluid simulation an organized city layout instead of chaotic backroads.

๐Ÿ” Differentiable All the Way

PICT is meticulously coded so every part of the solver is differentiable, including:

  • The advection-diffusion step
  • The pressure projection
  • And even statistics calculations like turbulence moments

This allows full backpropagation, enabling the training of ML models directly through the simulation. ๐Ÿ”ฌโžก๏ธ๐Ÿง 

๐Ÿงช Tested on Real Physics Benchmarks

PICT isnโ€™t just fancy theory. It was tested on:

โœ… 3D Lid-Driven Cavity

A standard test in fluid mechanics. PICT showed high accuracy and strong convergence, even at coarse resolutions.

๐ŸŒŠ Turbulent Channel Flow (TCF)

PICT successfully simulated a fully developed turbulent channel, matching classic benchmark results and computing accurate turbulence statistics like:

  • Mean velocity
  • Turbulent fluctuations
  • Pressure gradients

And all of this โ€” at lower resolutions with less compute.

๐Ÿค– Deep Learning Meets Fluid Dynamics

This is where things get really exciting. Using PICT, the researchers trained neural networks to correct bad simulations and match high-resolution results.

๐Ÿ’จ Case 1: Vortex Street

A classic 2D benchmark where flow forms behind an obstacle (like air behind a building).

โœ… PICT + AI corrected low-res simulations.
โœ… Removed nasty checkerboard artifacts.
โœ… Kept the flow accurate even after 2000 steps! ๐Ÿš€

๐Ÿงฑ Case 2: Backward-Facing Step

A more complex 2D flow with separation and reattachment.

๐Ÿง  Learned models matched reference statistics over long simulations.
๐Ÿ’ช Outperformed traditional solvers by a huge margin.

๐ŸŒช๏ธ Case 3: 3D Turbulent Channel Flow

This was the toughest test. In full 3D, the PICT-powered model learned an SGS (sub-grid scale) correction, and:

  • Recovered accurate mean flow statistics
  • Reached target friction Reynolds number (Re = 550)
  • Beat traditional models like Smagorinsky
๐Ÿ“Š Why Is This a Big Deal?

Hereโ€™s why PICT matters:

FeatureTraditional SolversPICT
DifferentiableโŒ Noโœ… Yes
GPU AcceleratedโŒ Usually notโœ… Yes
Integrates with MLโŒ Difficultโœ… Built-in
Open Source๐Ÿ”ธ Someโœ… Yes
Supports Grid Refinementโš ๏ธ Sometimesโœ… Multi-blocks

PICT brings fluid solvers into the deep learning era, enabling:

  • Faster model training ๐ŸŽ๏ธ
  • Smarter turbulence modeling ๐ŸŒช๏ธ
  • Better physical realism for AI systems ๐Ÿค–
๐Ÿ”ฎ Whatโ€™s Next for PICT?

The future looks very promising. Some possible applications include:

๐ŸŒฆ๏ธ Weather and Climate Models

Simulations that combine physics + AI can accelerate weather forecasts or climate models dramatically.

๐Ÿฆพ Robotics

Robots that move through fluids โ€” like underwater drones โ€” can train smarter policies using PICT-style differentiable simulations.

โœˆ๏ธ Aerospace and Automotive

Better turbulence models can lead to more efficient planes, drones, and cars. PICT can help design them faster!

๐Ÿ’ฌ Final Thoughts

PICT is more than just a fluid solver. Itโ€™s a bridge between physics and deep learning, allowing engineers to build smarter models that learn from โ€” and respect โ€” the laws of nature. ๐ŸŒ๐Ÿง 

With GPU speed, PyTorch flexibility, and full differentiability, itโ€™s setting the stage for a new generation of simulation-powered AI. ๐Ÿ’ง๐Ÿงฎ


Concepts to Know

๐Ÿ” Fluid Dynamics - The science of how liquids and gases move โ€” from water in pipes to air over airplane wings! ๐ŸŒŠโœˆ๏ธ

๐ŸŒ€ Turbulence - A chaotic, swirling kind of fluid motion that's super hard to predict and simulate โ€” think stormy skies or water boiling in a pot! ๐ŸŒช๏ธ - More about this concept in the article "Optimizing Water Pump Efficiency: The Power of Adjustable Guide Vanes ๐Ÿ’ง".

๐Ÿง  Differentiable Simulation - A simulation that lets AI learn from it by calculating how changes in input affect the output โ€” like giving the simulation a "sense" of cause and effect! ๐Ÿงฉโžก๏ธ๐Ÿ”ง

๐Ÿ”„ Backpropagation - A method used in machine learning where errors are traced backward to update a model โ€” itโ€™s how neural networks learn from mistakes! ๐Ÿ“‰๐Ÿง 

๐Ÿ’ป GPU-Accelerated - Using powerful graphics processors (GPUs) to run heavy computations faster than regular CPUs โ€” crucial for simulations and AI! โšก๐Ÿ’พ - More about this concept in the article "Revolutionizing Big Data Analytics: How EGAโ€™s GPU Magic Speeds Up Groupby Aggregation by 29x ๐Ÿ’ฅ๐Ÿ“Š".

๐Ÿ”ง PISO Algorithm (Pressure Implicit with Splitting of Operators) - A popular method to simulate incompressible fluid flow โ€” it smartly separates pressure and velocity calculations to keep things stable. ๐Ÿ’จ๐Ÿ“

๐Ÿงฑ Finite Volume Method (FVM) - A numerical technique to break down a flow area into small volumes and solve equations in each โ€” kind of like solving a big puzzle piece by piece. ๐Ÿงฉ๐Ÿ”ข

๐Ÿ“Š Subgrid-Scale (SGS) Modeling - A trick to represent the small turbulent swirls too tiny for your simulation to capture โ€” kind of like estimating the tiny details without fully zooming in! ๐Ÿ”โœจ

๐Ÿง  Neural Network - A computer model inspired by the brain, used to learn patterns and make predictions โ€” the engine behind AI learning! ๐Ÿค–๐Ÿง  - More about this concept in the article "Smarter Starts for Stronger Grids โšก Boosting Newton-Raphson with AI and Analytics ๐Ÿค–๐Ÿ”Œ".

๐Ÿงฌ Gradient - A measure of how much something changes โ€” used in AI to adjust models and improve accuracy step-by-step. ๐Ÿ“ˆ๐Ÿ” - More about this concept in the article "Unlocking the Black Box: How Explainable AI (XAI) is Transforming Malware Detection ๐Ÿฆ  ๐Ÿค–".

๐Ÿงช Loss Function - A way to measure how far off your simulation or model is from the truth โ€” lower loss = better model! ๐ŸŽฏ๐Ÿ” - More about this concept in the article "Smart Drones for Tiny Creatures: How AI is Revolutionizing Insect Monitoring ๐Ÿš ๐Ÿฆ‹".

๐Ÿงฉ Multi-Block Grid - A smart way to divide complex shapes into manageable blocks for simulation โ€” think Lego bricks for fluid modeling! ๐Ÿงฑ๐ŸงŠ

๐ŸŒซ๏ธ Reynolds Number (Re) - A number that tells you if a flow is smooth or turbulent โ€” low Re = smooth, high Re = chaotic! ๐ŸŒŠ๐Ÿ”€ - More about this concept in the article "Soaring on Human Power: Engineering the Future of Flight ๐Ÿ›ฉ๏ธ ๐Ÿšดโ€โ™‚๏ธ".


Source: Aleksandra Franz, Hao Wei, Luca Guastoni, Nils Thuerey. PICT -- A Differentiable, GPU-Accelerated Multi-Block PISO Solver for Simulation-Coupled Learning Tasks in Fluid Dynamics. https://doi.org/10.48550/arXiv.2505.16992

From: Technical University of Munich.

ยฉ 2025 EngiSphere.com