ONNX Model Zoo

linchensen/FuXi-CFD-model

By linchensen · ↓ 0 · ♥ 5 · Updated 2026-02-25

What's in this repo

This page lists the files in linchensen/FuXi-CFD-model, including fuxicfd_model.onnx.

  • 1 ONNX models (.onnx files)
  • 31 files, including 5 .md, 5 .xml, 4 .py, 3 .npz, 3 .npy, 3 .pyc
  • Last updated 2026-02-25

ONNX files

File Size Download
fuxicfd-model/model/fuxicfd_model.onnx — Download

How to use

These ONNX files can be loaded with ONNX Runtime. To inspect a model graph, upload the file to the Netron viewer. Download links point to the original files on Hugging Face.

README

FuXi-CFD Model

Overview

This repository accompanies the paper:

Reconstructing fine-scale 3D wind fields with terrain-informed machine learning

It provides the pre-trained FuXi-CFD model used in the study, exported in ONNX format, together with a complete inference example.

Version: v1.0
Framework: ONNX (runtime inference)


Model Description

FuXi-CFD is a terrain-informed deep learning model designed to reconstruct fine-scale three-dimensional wind fields from coarse atmospheric inputs and high-resolution terrain information.

Model Inputs

The model expects an inputs.npz file containing:

  • dem — terrain elevation (300 × 300, float32, meters)
  • roughness — surface roughness length (300 × 300, float32, meters)
  • u_100m — coarse zonal wind at 100 m (9 × 9, float32, m s⁻¹)
  • v_100m — coarse meridional wind at 100 m (9 × 9, float32, m s⁻¹)

All variables must be provided in physical units (no normalization applied by the user).
Normalization parameters used during training are included in normalization/.

Model Outputs

The model produces a file prediction.npz containing:

  • u — zonal wind component (27, 300, 300), m s⁻¹
  • v — meridional wind component (27, 300, 300), m s⁻¹
  • w — vertical wind component (27, 300, 300), m s⁻¹
  • k — turbulent kinetic energy (27, 300, 300), m² s⁻²

The vertical levels correspond to the 27 non-uniform heights described in the associated dataset documentation.


Quick Start (Inference Example)

cd inference_example
python scripts/infer.py \
  --model ../model/fuxicfd_model.onnx \
  --input data/inputs.npz \
  --output data/prediction.npz

Outputs are saved as data/prediction.npz with keys: u, v, w, k.


Repository Structure

  • model/ — exported ONNX weights
  • inference_example/ — complete preprocessing → inference → postprocessing pipeline
    • normalization/ — training-time normalization parameters
    • scripts/ — runnable inference scripts
    • utils/ — helper functions

License

CC BY-NC 4.0


Citation

If you use this model, please cite:

Lin, C., et al. Reconstructing fine-scale 3D wind fields with terrain-informed machine learning, Nature Communications (2026).

Model info

onnx region:us
↓ 0 ♥ 5

Created: 2026-01-13

Updated: 2026-02-25

View on Hugging Face

Files (31)

.gitattributes
README.md
fuxicfd-model/.idea/.gitignore
fuxicfd-model/.idea/fuxicfd-model.iml
fuxicfd-model/.idea/inspectionProfiles/profiles_settings.xml
fuxicfd-model/.idea/misc.xml
fuxicfd-model/.idea/modules.xml
fuxicfd-model/.idea/vcs.xml
fuxicfd-model/.idea/workspace.xml
fuxicfd-model/LICENSE
fuxicfd-model/README.md
fuxicfd-model/inference_example/README.md
fuxicfd-model/inference_example/configs/model_config.yml
fuxicfd-model/inference_example/configs/normalization.yml
fuxicfd-model/inference_example/data/inputs.npz
fuxicfd-model/inference_example/data/outputs.npz
fuxicfd-model/inference_example/data/prediction.npz
fuxicfd-model/inference_example/normalization/README.md
fuxicfd-model/inference_example/normalization/scaler_input.npy
fuxicfd-model/inference_example/normalization/scaler_output.npy
fuxicfd-model/inference_example/scripts/check.ipynb
fuxicfd-model/inference_example/scripts/infer.py
fuxicfd-model/inference_example/utils/__pycache__/io.cpython-312.pyc
fuxicfd-model/inference_example/utils/__pycache__/postprocessing.cpython-312.pyc
fuxicfd-model/inference_example/utils/__pycache__/preprocessing.cpython-312.pyc
fuxicfd-model/inference_example/utils/height.npy
fuxicfd-model/inference_example/utils/io.py
fuxicfd-model/inference_example/utils/postprocessing.py
fuxicfd-model/inference_example/utils/preprocessing.py
fuxicfd-model/model/README.md
fuxicfd-model/model/fuxicfd_model.onnx ONNX

Related models