Zing Forum

Reading

Darcy-CNN: A Comparative Performance Study of Physical Neural Networks in Fluid Simulation

Comparing the performance of traditional CNN and Fourier Neural Operator (FNO) in solving 2D Darcy flow problems, and exploring the application of AI for Science in partial differential equation (PDE) solving.

AI for Science物理神经网络PDE达西流FNOCNN科学计算深度学习流体力学神经算子
Published 2026-06-05 06:42Recent activity 2026-06-05 06:55Estimated read 8 min
Darcy-CNN: A Comparative Performance Study of Physical Neural Networks in Fluid Simulation
1

Section 01

Darcy-CNN Project Guide: Performance Comparison Between CNN and FNO in Darcy Flow Solving

Project Source: GitHub project darcy-cnn (author: thezettascale, released 2024-2025) Core Content: Systematically compare the solving performance of Convolutional Neural Network (CNN) and Fourier Neural Operator (FNO) on 2D Darcy flow problems, and explore the application value of AI for Science in partial differential equation (PDE) solving. Problem Background: Darcy flow is a classic problem of fluid flow in porous media. Traditional numerical methods (e.g., finite element method) are accurate but have high computational costs, while neural network methods can learn solution operators to achieve fast mapping. Thread Structure: Subsequent floors will introduce background, method comparison, experimental design, application value, limitations, and conclusion in sequence.

2

Section 02

Background: Darcy Flow Problem and Technical Foundations of AI for Science

Darcy Flow Problem

Darcy flow describes slow flow in porous media, with the governing equation: -∇·(a(x)∇u(x)) = f(x), x∈D; u(x)=0, x∈∂D where a(x) is the permeability field, u(x) is the pressure field, and f(x) is the source term. The core requirement is to quickly solve u(x) given different a(x). Traditional methods need to re-discretize and solve, which is costly.

Technical Foundations of AI for Science

  • Neural Operator Learning: The goal is to learn function space mapping (a→u), with characteristics such as generalization to arbitrary inputs and cross-resolution consistency. FNO is its representative.
  • PINN vs Neural Operator: PINN uses PDE as a loss constraint, while neural operator learns the solution operator from data. The latter has faster inference speed and is suitable for large-scale scenarios.
3

Section 03

Method Comparison: Principles, Advantages, and Disadvantages of CNN and FNO

Convolutional Neural Network (CNN)

  • Principle: Treat the permeability field as input image and pressure field as output image. Use local receptive fields to capture spatial features, and weight sharing to reduce parameters.
  • Advantages: Mature optimization techniques, strong local feature capture ability.
  • Limitations: Local operator, requiring deep networks to transmit global information.

Fourier Neural Operator (FNO)

  • Principle: Transform to Fourier space via FFT, apply learnable linear transformation, then return to physical space via inverse FFT.
  • Advantages: Global information interaction, resolution invariance, faster convergence (less data and time).
4

Section 04

Experimental Design and Technical Implementation Details

Benchmark Platform

Use XPU (Intel GPU/AI Accelerator) to meet the hardware requirements of large-scale matrix operations for PDE solving.

Comparison Dimensions

  • Accuracy: L2 relative error, physical quantity conservation, high-frequency component recovery.
  • Efficiency: Training time, inference speed, memory usage.
  • Generalization: Out-of-distribution generalization (unseen permeability fields), resolution generalization.

Implementation Points

  • Data Generation: Use numerical solvers like FEniCS/Firedrake to generate high-resolution (a,u) training pairs.
  • Network Architecture:
    • CNN: U-Net structure + skip connections;
    • FNO: Fourier mode number (hyperparameter) + multi-layer Fourier layers + positional encoding.
  • Training Strategy: L2 loss function, cosine annealing learning rate, random transformation of permeability fields to enhance data diversity.
5

Section 05

Practical Application Value

  1. Real-time Simulation and Optimization:
    • Oil reservoir simulation: Quickly evaluate pressure distribution of extraction strategies;
    • Composite material design: Optimize permeability characteristics of porous structures;
    • Groundwater management: Predict the impact of pumping schemes on water levels.
  2. Digital Twin and Uncertainty Quantification:
    • Real-time synchronization of physical system states;
    • Fast evaluation of the impact of parameter uncertainty on solutions;
    • Inverse problem solving: Infer material parameters from observed data.
6

Section 06

Limitations and Future Research Directions

Current Limitations

  • Data dependency: Requires a large number of high-fidelity numerical solutions for training;
  • Extrapolation difficulty: Limited generalization to inputs outside the training distribution;
  • Physical constraints: Pure data-driven methods may violate conservation laws;
  • Complex geometry: Challenges in handling irregular grids and boundaries.

Future Directions

  • Physically constrained neural operators: Embed physical laws;
  • Multi-scale methods: Balance macro and micro scales;
  • Self-supervised learning: Reduce reliance on labeled data;
  • Neural-symbolic combination: Improve interpretability.
7

Section 07

Project Summary and Significance

The Darcy-CNN project provides empirical evidence for the AI for Science field: by comparing CNN and FNO, it helps select suitable architectures for Darcy flow solving. For developers, the project demonstrates the transformation from cutting-edge research to reproducible code. With the advancement of hardware (e.g., XPU) and algorithms, neural operator methods are expected to be applied in more scientific and engineering fields, promoting deep integration of computational science and AI.