PSDI-PFNO: CFD dataset and source code for three-dimensional indoor airflow reconstruction
Description
This repository contains the CFD dataset, supporting numerical records and source code accompanying the manuscript “Prior-conditioned patch-based neural operator for rapid indoor airflow field reconstruction under obstacle relocation”. The dataset comprises 78 steady, isothermal indoor airflow conditions with varying obstacle positions and inlet speeds. It includes native-cell CFD CSV exports, canonical-grid HDF5 velocity fields, normalized model-input arrays, geometry caches and condition manifests. The final model uses 58 Development conditions and is evaluated on 20 benchmark conditions. Canonical velocity fields have shape (3, 60, 80, 160), with components (u, v, w) and spatial ordering (z, y, x). Model-input velocities are normalized by the condition-specific inlet speed. The PSDI-PFNO source code provides a five-stage workflow: CFD data preparation, clamped dual-frame prior construction, three-seed model training, complete velocity-field reconstruction and benchmark evaluation. Reconstruction uses CFD-sampled sparse velocity observations. Model checkpoints are generated by the supplied training stage. Supporting files contain per-condition and summary results, model settings, mesh-selection records and CFD-validation comparisons. Published measurement records used for validation retain their original source attribution. Archive README files document the contents, units and execution instructions. SHA256SUMS.csv provides checksums for the four distributed archives.
Files
Steps to reproduce
Extract PSDI_PFNO_Main_Model_Code.zip. Use Linux or WSL2, install CUDA-enabled PyTorch and the dependencies in requirements.txt, and enter the PSDI-PFNO directory. Place PSDI_PFNO_D78_CFD_Data.zip beside this directory, then run: python server/prepare_inputs.py --archive ../PSDI_PFNO_D78_CFD_Data.zip python server/build_priors.py --what loho --prior p0c python server/build_priors.py --what test --prior p0c python server/train.py --n 5 --seed 32026 python server/train.py --n 5 --seed 42026 python server/train.py --n 5 --seed 52026 python server/predict_fields.py --n 5 python server/evaluate.py --n 5 Alternatively, extract PSDI_PFNO_Model_Input_Data.zip inside the PSDI-PFNO directory and skip the preparation command. Training generates the model checkpoints. Prediction exports complete three-component velocity fields, masks and coordinates. See WORKFLOW.md and the archive README files for details. Verify archive checksums against SHA256SUMS.csv.
Institutions
- Shenyang Jianzhu UniversityLiaoning, Shenyang
- National University of Defense TechnologyHunan, Changsha