CFD_Benchmark

Model Overview

CFD_Benchmark is an open-source deep-learning benchmark library for research on neural partial differential equation (PDE) solvers. It extends Tsinghua University's open-source Neural-Solver-Library with Distributed Data Parallel (DDP) training support, additional models, and new datasets, while retaining the original neural-operator and physical-field modeling framework. The library supports neural PDE solver evaluation, deep-learning research for CFD, multi-model performance comparisons, large-scale distributed training experiments, physical simulation dataset development, and algorithm benchmarking.

The library currently supports the following benchmarks:


Supported Neural Solvers

The following neural PDE solvers are supported:

Several vision architectures also serve as effective baselines for structured-geometry tasks:

  • Swin Transformer - Swin Transformer: Hierarchical Vision Transformer using Shifted Windows [ICCV 2021] [Code]
  • U-Net - U-Net: Convolutional Networks for Biomedical Image Segmentation [MICCAI 2015] [Code]

Several established geometric deep-learning models are included for design tasks:

The library also includes the following graph neural network:

  • MeshGraphNet LEARNING MESH-BASED SIMULATION WITH GRAPH NETWORKSICLR 2021 [Code]

Use Cases

Use Case Description
Neural PDE solver evaluation Train, run inference with, and compare models such as FNO, Transolver, GNOT, ONO, and U-NO through a unified workflow
Autoregressive physical prediction Predict the temporal evolution of PDE states step by step using datasets such as PDEBench
Multiphysics modeling Study multiphase flows, multiphysics coupling, and phase-transition phenomena using datasets such as BubbleML
ModelScope/OneCode execution Download the standalone model package, install its dependencies, and run the provided scripts

Usage

1. OneCode

Use the online OneCode environment for an intelligent, one-click AI for Science (AI4S) programming experience:

Launch OneCode for one-click AI4S programming

2. Manual Setup

Hardware Requirements

  • A GPU or DCU is recommended.
  • A CPU can be used for import checks and small-scale pipeline validation, but full training and inference will be slow.
  • DCU users must install DTK in advance. DTK 25.04.2 or later, or the OneScience-recommended version for the target cluster, is recommended.

Download the Model Package

modelscope download --model OneScience/CFD_Benchmark --local_dir ./CFD_Benchmark 
cd CFD_Benchmark 

Set Up the Runtime Environment

DCU Environment

# Activate DTK and Conda first
conda create -n onescience311 python=3.11 -y
conda activate onescience311
# Installation with uv is also supported
pip install onescience[cfd-dcu] -i http://mirrors.onescience.ai:3141/pypi/simple/  --trusted-host mirrors.onescience.ai

GPU Environment

# Activate Conda first
conda create -n onescience311 python=3.11 -y libstdcxx-ng=12 libgcc-ng=12 gcc_linux-64=12 gxx_linux-64=12
conda activate onescience311
# Installation with uv is also supported
pip install onescience[cfd-gpu] -i http://mirrors.onescience.ai:3141/pypi/simple/  --trusted-host mirrors.onescience.ai

Training Data

Use the dataset links in the benchmark overview above to download the required data.

The six standard benchmark datasets from [FNO] and [geo-FNO] are available from this link.

The PDEBench [NeurIPS 2022 Track dataset and benchmark], used for benchmarking autoregressive tasks, is available from this link.

The ShapeNet-Car [TOG 2018] benchmark dataset for industrial design tasks is available from [this link].

The BubbleML [Multiphase Multiphysics Dataset], designed for research on multiphysics phase-transition phenomena, is available from [this link].

The OneScience community also provides the cfd_benchmark dataset for training. Download it with the command below and verify that the data path in conf/config.yaml is configured correctly:

modelscope download --dataset OneScience/cfd_benchmark  --local_dir ./data

Training

python scripts/train.py

Model Weights

This repository will provide weights trained on the OneScience cfd_benchmark dataset in the weights/ directory. The weights will be uploaded soon.

Inference

python scripts/inference.py

Inference loads the trained weights referenced by paths.weight_path and writes the metrics to:

./results/{train.save_name}/metrics.json

Official OneScience Resources

Citations and License

  • Reference repository: Neural-Solver-Library.
  • This repository retains source attribution and has been adapted for automated execution through OneScience and ModelScope.
Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Papers for OneScience/CFD_Benchmark