Skip to main content
NVIDIA PhysicsNeMo tutorial: Darcy Flow mapping k(x,y) to u(x,y) visualized with color gradients and vector fields.

Editorial illustration for NVIDIA PhysicsNeMo Tutorial Maps k(x,y) to u(x,y) for Darcy Flow

NVIDIA PhysicsNeMo: Mapping Darcy Flow with AI Neural Ops

NVIDIA PhysicsNeMo Tutorial Maps k(x,y) to u(x,y) for Darcy Flow

Updated: 3 min read

Mapping a heterogeneous permeability field to a pressure distribution , that’s the core of Darcy flow, a fundamental problem in subsurface modeling and reservoir engineering. Traditional solvers are accurate but slow. Neural operators promise speed, but the path from theory to working code is littered with setup headaches and architecture choices.

This tutorial cuts through the noise. You’ll set up NVIDIA PhysicsNeMo on Colab, generate your own 2D Darcy flow data, and watch the physical fields come to life. Then comes the real work: training a Fourier Neural Operator, building a convolutional surrogate baseline, and dipping into the ideas behind Physics-Informed Neural Networks.

Architectures get compared. Predictions get evaluated. Inference gets benchmarked.

And by the end, you’ll have saved models and a clear, hands‑on understanding of how PhysicsNeMo turns scientific machine learning from a concept into a reproducible workflow.

In this tutorial, we implement NVIDIA PhysicsNeMo on Colab and build a practical workflow for physics-informed machine learning. We start by setting up the environment, generating data for the 2D Darcy Flow problem, and visualizing the physical fields to clearly understand the learning task. From there, we implement and train powerful models such as the Fourier Neural Operator and a convolutional surrogate baseline, while also exploring the ideas behind Physics-Informed Neural Networks. Also, we compare architectures, evaluate predictions, benchmark inference, and save trained models, providing a comprehensive hands-on view of how PhysicsNeMo can be used for scientific machine learning problems.

What you’ve built here is more than a model, it’s a bridge between physical laws and machine learning. From Darcy flow to Fourier Neural Operators, from PINNs to inference benchmarks, every step sharpens the same insight: PhysicsNeMo turns complex PDEs into trainable, deployable tools. The code runs.

The predictions converge. And the workflow you now hold isn’t just reproducible, it’s adaptable. Swap in a new geometry, a different equation, a larger dataset.

The architecture stays, the logic scales. This is scientific computing reimagined: not as black-box approximation, but as a disciplined, configurable pipeline. You’ve seen how fast a FNO can learn, how a surrogate can cut inference from minutes to milliseconds, and how a PINN encodes physics without a single simulation.

The lesson is clear, modern SciML isn’t about picking one method. It’s about knowing when to use each. And now, you do.

Common Questions Answered

How does the PhysicsNeMo tutorial map permeability k(x,y) to pressure u(x,y) using Fourier Neural Operators?

The tutorial demonstrates mapping permeability k(x,y) to pressure u(x,y) by implementing a Fourier Neural Operator (FNO) with specific configurations like modes1 and modes2 set to 12. The implementation uses a neural network architecture that learns the relationship between input permeability fields and output pressure fields through a physics-informed approach.

What are the key parameters in the FNO model's __init__ method for the Darcy flow surrogate?

The key parameters include in_channels and out_channels (both set to 1), modes1 and modes2 (both set to 12), width (set to 32), n_layers (set to 4), and padding (set to 9). These parameters define the neural network's architecture, specifying the complexity and structure of the Fourier Neural Operator used to model the Darcy flow.

How does the tutorial approach generating and visualizing Darcy flow data?

The tutorial generates synthetic 2D Darcy flow data and provides visualization of both permeability k(x,y) and pressure u(x,y) fields. It implements the data generation process on Google Colab, allowing users to create and explore the relationship between permeability and pressure using a physics-informed neural network approach.

Further Reading

LIVE03:21OpenAI's Miles Wang in Talks for USD 2B AI Drug Discovery Startup