Upload folder using huggingface_hub
Browse filesFiles changed (28)
- .gitattributes+67-32
- README.mdAdded+84
- README_zh.mdAdded+84
- data/airfoil/NACA_Cylinder_Q.npyAdded+3
- data/airfoil/NACA_Cylinder_X.npyAdded+3
- data/airfoil/NACA_Cylinder_Y.npyAdded+3
- data/darcy/piececonst_r421_N1024_smooth1.matAdded+3
- data/darcy/piececonst_r421_N1024_smooth2.matAdded+3
- data/elasticity/Meshes/Random_UnitCell_XY_10.npyAdded+3
- data/elasticity/Meshes/Random_UnitCell_rr_10.npyAdded+3
- data/elasticity/Meshes/Random_UnitCell_sigma_10.npyAdded+3
- data/elasticity/Meshes/Random_UnitCell_theta_10.npyAdded+3
- data/ns/NavierStokes_V1e-5_N1200_T20.matAdded+3
- data/pipe/Pipe_Q.npyAdded+3
- data/pipe/Pipe_X.npyAdded+3
- data/pipe/Pipe_Y.npyAdded+3
- data/plas/plas_N987_T20.matAdded+3
- dataset_infos.jsonAdded+1
- manifest.yamlAdded+349
- metadata/file_manifest.csvAdded+15
- metadata/schema.jsonAdded+272
- metadata/schema.yamlAdded+181
- metadata/source_file_manifest.csvAdded+15
- onescience_relations.yamlAdded+19
- onescience_run_manifest.yamlAdded+349
- reports/dataset_validation.jsonAdded+383
- reports/source_target_integrity.jsonAdded+17
- scripts/validate_dataset.pyAdded+126
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960*.7z filter=lfs diff=lfs merge=lfs -text*.arrow filter=lfs diff=lfs merge=lfs -text*.avro filter=lfs diff=lfs merge=lfs -text*.bin filter=lfs diff=lfs merge=lfs -text*.bz2 filter=lfs diff=lfs merge=lfs -text*.ckpt filter=lfs diff=lfs merge=lfs -text*.ftz filter=lfs diff=lfs merge=lfs -text*.gz filter=lfs diff=lfs merge=lfs -text*.h5 filter=lfs diff=lfs merge=lfs -text*.joblib filter=lfs diff=lfs merge=lfs -text*.lfs.* filter=lfs diff=lfs merge=lfs -text*.lz4 filter=lfs diff=lfs merge=lfs -text*.mds filter=lfs diff=lfs merge=lfs -text*.mlmodel filter=lfs diff=lfs merge=lfs -text*.model filter=lfs diff=lfs merge=lfs -text*.msgpack filter=lfs diff=lfs merge=lfs -text*.npy filter=lfs diff=lfs merge=lfs -text*.npz filter=lfs diff=lfs merge=lfs -text*.onnx filter=lfs diff=lfs merge=lfs -text*.ot filter=lfs diff=lfs merge=lfs -text*.parquet filter=lfs diff=lfs merge=lfs -text*.pb filter=lfs diff=lfs merge=lfs -text*.pickle filter=lfs diff=lfs merge=lfs -text*.pkl filter=lfs diff=lfs merge=lfs -text*.pt filter=lfs diff=lfs merge=lfs -text*.pth filter=lfs diff=lfs merge=lfs -text*.rar filter=lfs diff=lfs merge=lfs -text*.safetensors filter=lfs diff=lfs merge=lfs -textsaved_model/**/* filter=lfs diff=lfs merge=lfs -text*.tar.* filter=lfs diff=lfs merge=lfs -text*.tar filter=lfs diff=lfs merge=lfs -text*.tflite filter=lfs diff=lfs merge=lfs -text*.tgz filter=lfs diff=lfs merge=lfs -text*.wasm filter=lfs diff=lfs merge=lfs -text*.xz filter=lfs diff=lfs merge=lfs -text*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -text# Audio files - uncompressed*.pcm filter=lfs diff=lfs merge=lfs -text*.sam filter=lfs diff=lfs merge=lfs -text*.raw filter=lfs diff=lfs merge=lfs -text# Audio files - compressed*.aac filter=lfs diff=lfs merge=lfs -text*.flac filter=lfs diff=lfs merge=lfs -text*.mp3 filter=lfs diff=lfs merge=lfs -text*.ogg filter=lfs diff=lfs merge=lfs -text*.wav filter=lfs diff=lfs merge=lfs -text# Image files - uncompressed*.bmp filter=lfs diff=lfs merge=lfs -text*.gif filter=lfs diff=lfs merge=lfs -text*.png filter=lfs diff=lfs merge=lfs -text*.tiff filter=lfs diff=lfs merge=lfs -text# Image files - compressed*.jpg filter=lfs diff=lfs merge=lfs -text*.jpeg filter=lfs diff=lfs merge=lfs -text*.webp filter=lfs diff=lfs merge=lfs -text# Video files - compressed*.mp4 filter=lfs diff=lfs merge=lfs -text*.webm filter=lfs diff=lfs merge=lfs -text1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495*.7z filter=lfs diff=lfs merge=lfs -text*.arrow filter=lfs diff=lfs merge=lfs -text*.bin filter=lfs diff=lfs merge=lfs -text*.bin.* filter=lfs diff=lfs merge=lfs -text*.bz2 filter=lfs diff=lfs merge=lfs -text*.ftz filter=lfs diff=lfs merge=lfs -text*.gz filter=lfs diff=lfs merge=lfs -text*.h5 filter=lfs diff=lfs merge=lfs -text*.joblib filter=lfs diff=lfs merge=lfs -text*.lfs.* filter=lfs diff=lfs merge=lfs -text*.model filter=lfs diff=lfs merge=lfs -text*.msgpack filter=lfs diff=lfs merge=lfs -text*.onnx filter=lfs diff=lfs merge=lfs -text*.ot filter=lfs diff=lfs merge=lfs -text*.parquet filter=lfs diff=lfs merge=lfs -text*.pb filter=lfs diff=lfs merge=lfs -text*.pt filter=lfs diff=lfs merge=lfs -text*.pth filter=lfs diff=lfs merge=lfs -text*.rar filter=lfs diff=lfs merge=lfs -textsaved_model/**/* filter=lfs diff=lfs merge=lfs -text*.tar filter=lfs diff=lfs merge=lfs -text*.tar.* filter=lfs diff=lfs merge=lfs -text*.npz filter=lfs diff=lfs merge=lfs -text*.h5 filter=lfs diff=lfs merge=lfs -text*.hdf5 filter=lfs diff=lfs merge=lfs -text*.pickle filter=lfs diff=lfs merge=lfs -text*.pkl filter=lfs diff=lfs merge=lfs -text*.tflite filter=lfs diff=lfs merge=lfs -text*.tgz filter=lfs diff=lfs merge=lfs -text*.xz filter=lfs diff=lfs merge=lfs -text*.zip filter=lfs diff=lfs merge=lfs -text*.zstandard filter=lfs diff=lfs merge=lfs -text*.tfevents* filter=lfs diff=lfs merge=lfs -text*.db* filter=lfs diff=lfs merge=lfs -text*.ark* filter=lfs diff=lfs merge=lfs -text**/*ckpt*data* filter=lfs diff=lfs merge=lfs -text**/*ckpt*.meta filter=lfs diff=lfs merge=lfs -text**/*ckpt*.index filter=lfs diff=lfs merge=lfs -text*.safetensors filter=lfs diff=lfs merge=lfs -text*.ckpt filter=lfs diff=lfs merge=lfs -text*.jpg filter=lfs diff=lfs merge=lfs -text*.png filter=lfs diff=lfs merge=lfs -text*.jpeg filter=lfs diff=lfs merge=lfs -text*.bmp filter=lfs diff=lfs merge=lfs -text*.gif filter=lfs diff=lfs merge=lfs -text*.webp filter=lfs diff=lfs merge=lfs -text*.mp3 filter=lfs diff=lfs merge=lfs -text*.wav filter=lfs diff=lfs merge=lfs -text*.wma filter=lfs diff=lfs merge=lfs -text*.aac filter=lfs diff=lfs merge=lfs -text*.ogg filter=lfs diff=lfs merge=lfs -text*.m4a filter=lfs diff=lfs merge=lfs -text*.m3u8 filter=lfs diff=lfs merge=lfs -text*.amr filter=lfs diff=lfs merge=lfs -text*.audio filter=lfs diff=lfs merge=lfs -text*.avi filter=lfs diff=lfs merge=lfs -text*.flv filter=lfs diff=lfs merge=lfs -text*.mp4 filter=lfs diff=lfs merge=lfs -text*.mpg filter=lfs diff=lfs merge=lfs -text*.asf filter=lfs diff=lfs merge=lfs -text*.mov filter=lfs diff=lfs merge=lfs -text*.mpeg filter=lfs diff=lfs merge=lfs -text*.3gp filter=lfs diff=lfs merge=lfs -text*.wmv filter=lfs diff=lfs merge=lfs -text*.rmvb filter=lfs diff=lfs merge=lfs -text*.rm filter=lfs diff=lfs merge=lfs -text*.ts filter=lfs diff=lfs merge=lfs -text*.mkv filter=lfs diff=lfs merge=lfs -text*.flash filter=lfs diff=lfs merge=lfs -text*.vob filter=lfs diff=lfs merge=lfs -text*.pdf filter=lfs diff=lfs merge=lfs -text*.ost filter=lfs diff=lfs merge=lfs -text*.pst filter=lfs diff=lfs merge=lfs -text*.doc filter=lfs diff=lfs merge=lfs -text*.docx filter=lfs diff=lfs merge=lfs -text*.txt filter=lfs diff=lfs merge=lfs -text*.ppt filter=lfs diff=lfs merge=lfs -text*.pptx filter=lfs diff=lfs merge=lfs -text*.xls filter=lfs diff=lfs merge=lfs -text*.xlsx filter=lfs diff=lfs merge=lfs -text*.vsd filter=lfs diff=lfs merge=lfs -text*.vsdx filter=lfs diff=lfs merge=lfs -text*.jsonl filter=lfs diff=lfs merge=lfs -text*.json filter=lfs diff=lfs merge=lfs -textdataset_infos.json ignore*.csv filter=lfs diff=lfs merge=lfs -text*.tsv filter=lfs diff=lfs merge=lfs -text*.npy filter=lfs diff=lfs merge=lfs -textdata/darcy/piececonst_r421_N1024_smooth1.mat filter=lfs diff=lfs merge=lfs -textdata/darcy/piececonst_r421_N1024_smooth2.mat filter=lfs diff=lfs merge=lfs -textdata/ns/NavierStokes_V1e-5_N1200_T20.mat filter=lfs diff=lfs merge=lfs -textdata/plas/plas_N987_T20.mat filter=lfs diff=lfs merge=lfs -text
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384---license: other#User-Defined Tagstags: - Multi-Physics PDE Benchmark - Surrogate Modelinglanguage: - en - zh---<p align="center"> <strong> <span style="font-size: 30px;">CFD Benchmark</span> </strong></p>
## Dataset Description
CFD Benchmark is a comprehensive benchmark dataset for training and evaluating neural PDE solvers. It contains six standard tasks on regular grids, structured grids, and irregular geometries. The dataset was used for unified evaluation in the ICML 2024 paper *Transolver*, and some of its data originates from the FNO and Geo-FNO works.
The dataset contains six subsets: `airfoil`, `darcy`, `elasticity`, `ns`, `pipe`, and `plas`.
Paper: [Transolver: A Fast Transformer Solver for PDEs on General Geometries](https://proceedings.mlr.press/v235/wu24r.html)
## Supported Tasks
| Subset | Task ||---|---|| `airfoil` | Steady-state airfoil flow-field prediction. || `darcy` | Darcy equation solution-field prediction. || `elasticity` | Stress prediction for random-cell structures. || `ns` | Navier-Stokes flow-field time-series prediction. || `pipe` | Steady-state pipe flow-field prediction. || `plas` | Plasticity dynamics response prediction. |
## Dataset Format and Structure
The data is located in the `data/` directory and organized by task:
```textdata/ airfoil/ darcy/ elasticity/ ns/ pipe/ plas/```
The data files use NumPy NPY and MATLAB v5 formats. The Airfoil, Pipe, and Elasticity subsets contain grid coordinates, geometry, or flow-field arrays; the Darcy and Navier-Stokes subsets use MATLAB files to store coefficient and solution fields; and the Plasticity subset contains load inputs and response outputs over multiple time steps.
See `metadata/schema.yaml` for the shape and dtype of each file and the MATLAB variable structures.
## How to Use the Dataset
This dataset has been adapted for the `OneScience-Sugon/CFD_Benchmark` model. Download the dataset and model:
```bashhf download --dataset OneScience-Sugon/cfd_benchmark --local-dir ./cfd_benchmarkhf download --model OneScience-Sugon/CFD_Benchmark --local-dir ./CFD_Benchmark```
Quickly check file presence, sizes, and readability:
```bashcd cfd_benchmarkpython scripts/validate_dataset.py --skip-sha256```
Remove `--skip-sha256` to perform a complete SHA256 validation.
## Official OneScience Information
| Platform | OneScience Main Repository | Skills Repository ||---|---|---|| Gitee | https://gitee.com/onescience-ai/onescience | https://gitee.com/onescience-ai/oneskills || GitHub | https://github.com/onescience-ai/OneScience | https://github.com/onescience-ai/oneskills |
## Citation and License
- Six standard tasks: [Transolver](https://proceedings.mlr.press/v235/wu24r.html)- Darcy and Navier-Stokes data source: [Fourier Neural Operator](https://openreview.net/forum?id=c8P9NQVtmnO)- Elasticity, Plasticity, Airfoil, and Pipe data source: [Geo-FNO](https://jmlr.org/papers/v24/23-0064.html)- This repository retains the data-source information. Before public distribution or redistribution, verify the licensing requirements with the upstream projects.123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384---license: other#用户自定义标签tags: - Multi-Physics PDE Benchmark - Surrogate Modelinglanguage: - en - zh---<p align="center"> <strong> <span style="font-size: 30px;">CFD Benchmark</span> </strong></p>
## 数据集描述
CFD Benchmark 是用于神经 PDE 求解器训练和评测的综合基准数据集,包含规则网格、结构化网格和非规则几何上的六类标准任务。该数据集被 ICML 2024 论文 *Transolver* 用于统一评测,部分数据来源于 FNO 和 Geo-FNO 工作。
数据集包含 `airfoil`、`darcy`、`elasticity`、`ns`、`pipe` 和 `plas` 六个子集。
论文:[Transolver: A Fast Transformer Solver for PDEs on General Geometries](https://proceedings.mlr.press/v235/wu24r.html)
## 数据集支持的任务
| 子集 | 任务 ||---|---|| `airfoil` | 翼型稳态流场预测。 || `darcy` | Darcy 方程解场预测。 || `elasticity` | 随机单元结构应力预测。 || `ns` | Navier-Stokes 流场时间序列预测。 || `pipe` | 管道稳态流场预测。 || `plas` | 塑性动力学响应预测。 |
## 数据集的格式和结构
数据位于 `data/` 目录,并按任务划分:
```textdata/ airfoil/ darcy/ elasticity/ ns/ pipe/ plas/```
数据文件采用 NumPy NPY 和 MATLAB v5 格式。Airfoil、Pipe 和 Elasticity 子集包含网格坐标、几何或流场数组;Darcy 和 Navier-Stokes 子集使用 MATLAB 文件保存系数场和解场;Plasticity 子集包含载荷输入及多时间步响应输出。
各文件的 shape、dtype 和 MATLAB 变量结构以 `metadata/schema.yaml` 为准。
## 数据集使用方式
本数据集适配 `OneScience-Sugon/CFD_Benchmark` 模型。下载数据集和模型:
```bashhf download --dataset OneScience-Sugon/cfd_benchmark --local-dir ./cfd_benchmarkhf download --model OneScience-Sugon/CFD_Benchmark --local-dir ./CFD_Benchmark```
快速检查文件存在性、大小和可读性:
```bashcd cfd_benchmarkpython scripts/validate_dataset.py --skip-sha256```
移除 `--skip-sha256` 可执行完整 SHA256 校验。
## OneScience 官方信息
| 平台 | OneScience 主仓库 | Skills 仓库 ||---|---|---|| Gitee | https://gitee.com/onescience-ai/onescience | https://gitee.com/onescience-ai/oneskills || GitHub | https://github.com/onescience-ai/OneScience | https://github.com/onescience-ai/oneskills |
## 引用与许可证
- 六项标准任务:[Transolver](https://proceedings.mlr.press/v235/wu24r.html)- Darcy 与 Navier-Stokes 数据来源:[Fourier Neural Operator](https://openreview.net/forum?id=c8P9NQVtmnO)- Elasticity、Plasticity、Airfoil 与 Pipe 数据来源:[Geo-FNO](https://jmlr.org/papers/v24/23-0064.html)- 本仓库保留数据来源说明;公开分发或二次发布前,请根据上游项目确认许可证要求。123version https://git-lfs.github.com/spec/v1oid sha256:f79dfdaa3be95a5183981531e59b5a372cf3dd69986109f45426b3eb5410c58csize 1122591728123version https://git-lfs.github.com/spec/v1oid sha256:23902420694ba8552e427480aa6b26c08ea4e7e0b2454ee83cd9e1d29060f35fsize 224518448123version https://git-lfs.github.com/spec/v1oid sha256:710c77e42c3fe49edcfc951b59693511e12f5491f9dcb77a506f395178481155size 224518448123version https://git-lfs.github.com/spec/v1oid sha256:c8b1fd73a8bae85aa48afeb1fabd01204a03debe8e208524b72f615e13d2f664size 1692307453123version https://git-lfs.github.com/spec/v1oid sha256:c6522cf6cb3a8c4818268b2b07464a85e55ecd7206a23b4b1ac435bfae2e3eb5size 1692748750123version https://git-lfs.github.com/spec/v1oid sha256:29c615b7c8b0ef94252e4def4cd9999653b8759104619eb728b91a1cac5b665fsize 31104080123version https://git-lfs.github.com/spec/v1oid sha256:70dc9fae27e8f361c09b5f43d004d50b30bbdf9c8d62227fd001321c61573f78size 672080123version https://git-lfs.github.com/spec/v1oid sha256:eb8102b580001bab80ee99bfc33289f727491e1d8edab2a4a94abc37a348fa1asize 15552080123version https://git-lfs.github.com/spec/v1oid sha256:3315da70a33a86757e4799fd92630fcb767193c2a4406b3f45cc6f19b00d56acsize 160080123version https://git-lfs.github.com/spec/v1oid sha256:b4995d0180ec15f06878e17527fd3e08a8f504bbc059ee025caffad11a9a82c0size 412877192123version https://git-lfs.github.com/spec/v1oid sha256:d1ed4458cfb47e490b3b2487deceb36e516449eca2566d22ef6e8b31492ae223size 922577168123version https://git-lfs.github.com/spec/v1oid sha256:2ef591a0e3d69a54705a89fc656042bfe2a36abd387de5f24afeebd747527b6bsize 307525808123version https://git-lfs.github.com/spec/v1oid sha256:2d140fb1293bb9f87aaf41424ec857e0e89b7925efbf50382f825602473c3ccbsize 307525808123version https://git-lfs.github.com/spec/v1oid sha256:b58681e7777531b34889da46b506d2f18845c5d7b194859394dfd958cf28178fsize 16133357191{"default": {"features": {"ok": {"_type": "Value"}, "data_root": {"_type": "Value"}, "file_manifest": {"_type": "Value"}, "checked_files": {"_type": "Value"}, "results": {"_type": "Value"}}, "splits": {"validation": {"name": "validation", "dataset_name": "cfd_benchmark"}}}}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349onescience_manifest_version: "0.1"resource_type: datasetresource: id: OneScience/cfd_benchmark name: cfd_benchmark domain: cfd domain_tags: - cfd - neural_pde_solver - benchmark task: cfd_operator_learning_dataset task_tags: - flow_field_prediction - pde_operator_learning - data_reading_validation modalities: - gridded_field - unstructured_mesh input_formats: - npy - mat output_formats: [] summary: CFD_Benchmark 数据集的 ModelScope 标准数据包,本次包含 airfoil、darcy、elasticity、ns、pipe、plas 六个子集。
platform_resource: primary: platform: modelscope repo_id: OneScience/cfd_benchmark repo_type: dataset url: https://modelscope.cn/datasets/OneScience/cfd_benchmark revision: main readme_path: README.md manifest_path: manifest.yaml mirrors: [] access: visibility: public license: null
website_integration: enabled: true click_target: platform: modelscope resource_url: https://modelscope.cn/datasets/OneScience/cfd_benchmark llm_handoff: readme_required: true manifest_required: true download_readme_first: true resolve_related_models: true default_run_goal: minimal_validation
runtime: enabled: true onescience_domain: cfd min_onescience_version: null supported_execution: - local - local_slurm - remote_slurm
onescience: repo: https://gitee.com/onescience-ai/onescience official_links: gitee: doc: https://gitee.com/onescience-ai/onescience-doc onescience: https://gitee.com/onescience-ai/onescience skills: https://gitee.com/onescience-ai/oneskills github: doc: https://github.com/onescience-ai/OneScience-doc onescience: https://github.com/onescience-ai/OneScience skills: https://github.com/onescience-ai/oneskills install: required_by_default: false command: source ~/env.sh && bash install.sh cfd source_paths: [] compatibility: examples_path: examples/cfd/CFD_Benchmark status: examples_compatible
runtime_package: kind: standard_runtime_package package_root: . standard_layout: workdir: . config_dir: metadata checkpoint_dir: null data_dir: data output_dir: reports apply_policy: mode: direct_use target: session_workdir overwrite: true protect_installed_onescience: true entry_files: - metadata/file_manifest.csv - metadata/schema.yaml - scripts/validate_dataset.py entrypoints: preflight: scripts/validate_dataset.py inference: null train: null finetune: null evaluate: null visualize: null deploy: null
files: model_files: [] dataset_files: - id: cfd_benchmark_data path: data/ role: train_data description_zh: 本次整理的 CFD_Benchmark 六个子集数据目录,包含 airfoil、darcy、elasticity、ns、pipe、plas。 required: true required_for: - train - evaluate - preflight format: npy_mat source: platform: modelscope repo_id: OneScience/cfd_benchmark repo_type: dataset path: data/ revision: main download_method: command_ref command_ref: commands.download.download_dataset local_path: session_workdir/cfd_cfd_benchmark_data/data/ size: "约 8.2G" checksum: metadata/file_manifest.csv large_file: true - id: file_manifest path: metadata/file_manifest.csv role: checksum_manifest description_zh: 整理后每个数据文件的相对路径、字节数和 SHA256。 required: true required_for: - preflight format: csv source: platform: modelscope repo_id: OneScience/cfd_benchmark repo_type: dataset path: metadata/file_manifest.csv revision: main download_method: command_ref command_ref: commands.download.download_dataset local_path: session_workdir/cfd_cfd_benchmark_data/metadata/file_manifest.csv size: null checksum: null large_file: false config_files: - id: schema path: metadata/schema.yaml role: schema description_zh: 记录 npy shape/dtype 和 MATLAB 文件变量结构。 required: true required_for: - preflight - train - evaluate format: yaml source: platform: modelscope repo_id: OneScience/cfd_benchmark repo_type: dataset path: metadata/schema.yaml revision: main download_method: command_ref command_ref: commands.download.download_dataset local_path: session_workdir/cfd_cfd_benchmark_data/metadata/schema.yaml checksum: null large_file: false sample_files: []
dataset: format: - npy - matlab_v5_mat sample_unit: 不同子集的一个样本定义不同,airfoil/pipe 为一个几何流场样本,darcy/ns/plas 为一个 PDE 系数或时间序列样本,elasticity 为一个随机单元结构样本。 schema: path: metadata/schema.yaml checksum_manifest: path: metadata/file_manifest.csv splits: train: 由 CFD_Benchmark 运行脚本通过 ntrain 或 train_ratio 切分。 validation: null test: 由 CFD_Benchmark 运行脚本通过 ntest 或 train_ratio 切分。
relations: required_datasets: [] optional_datasets: [] compatible_models: - id: OneScience/CFD_Benchmark role: train_data required_for: - train - evaluate - preflight resource_ref: platform: modelscope repo_id: OneScience/CFD_Benchmark repo_type: model url: https://modelscope.cn/models/OneScience/CFD_Benchmark revision: main readme_path: README.md manifest_path: manifest.yaml expected_local_path: ../cfd_cfd_benchmark_data/data adapter: scripts/standard_train_airfoil_transolver.sh
run_matrix: scenarios: - name: minimal_validation capability: preflight default: true required_datasets: - id: OneScience/cfd_benchmark role: train_data local_path: data/ required_model_files: [] command_refs: - commands.preflight.validate_dataset expected_outputs: - reports/dataset_validation.json prerequisites: - 已下载数据集 OneScience/cfd_benchmark。 - name: cfd_benchmark_model_train capability: train required_datasets: - id: OneScience/cfd_benchmark role: train_data local_path: data/ required_model_files: - OneScience/CFD_Benchmark runtime/ command_refs: - commands.preflight.validate_dataset expected_outputs: - reports/dataset_validation.json prerequisites: - 下载并进入模型仓库 OneScience/CFD_Benchmark。
capabilities: inference: false train: false finetune: false evaluate: false visualize: false deploy: false data_reading_validation: true
commands: download: - name: download_dataset description: 下载 CFD_Benchmark 数据集标准包。 cwd: . command: modelscope download --dataset OneScience/cfd_benchmark --local_dir ./cfd_cfd_benchmark_data required_files: [] required_env: - MODELSCOPE_TOKEN expected_outputs: - path: cfd_cfd_benchmark_data/manifest.yaml type: file - path: cfd_cfd_benchmark_data/data/ type: directory success_criteria: - exit_code == 0 preflight: - name: validate_dataset description: 校验 14 个数据文件的存在性、大小、SHA256、npy shape/dtype 和 mat 变量结构。 cwd: . command: source ~/env.sh && python scripts/validate_dataset.py --data-root data --file-manifest metadata/file_manifest.csv required_files: - scripts/validate_dataset.py - metadata/file_manifest.csv - data/ required_env: - python - numpy - scipy expected_outputs: - path: reports/dataset_validation.json type: file success_criteria: - exit_code == 0 prepare: [] inference: [] train: [] finetune: [] evaluate: [] visualize: [] deploy: []
expected_outputs: - path: reports/dataset_validation.json type: json description_zh: 数据文件完整性和可读性验证报告。 - path: metadata/file_manifest.csv type: csv description_zh: 文件名、大小和 SHA256 校验清单。 - path: metadata/schema.yaml type: yaml description_zh: 数据结构说明。
diagnostics: - id: missing_file symptom: validate_dataset.py 报告 status=missing。 cause: 数据下载不完整或放置目录错误。 fix: 重新执行 modelscope download --dataset OneScience/cfd_benchmark --local_dir ./cfd_cfd_benchmark_data。 - id: sha256_mismatch symptom: validate_dataset.py 报告 status=sha256_mismatch。 cause: 文件损坏、复制中断或上传下载过程中内容变化。 fix: 删除对应文件后重新下载数据集,或用 metadata/source_file_manifest.csv 与源目录重新比对。 - id: scipy_missing symptom: MATLAB 文件只完成 header_only 检查。 cause: 当前 Python 环境缺少 scipy。 fix: source ~/env.sh 后重跑验证;当前标准化过程中已用 scipy 生成 metadata/schema.yaml。
domain_extension: cfd: benchmark_name: CFD_Benchmark included_subsets: airfoil: files: - NACA_Cylinder_X.npy - NACA_Cylinder_Y.npy - NACA_Cylinder_Q.npy darcy: files: - piececonst_r421_N1024_smooth1.mat - piececonst_r421_N1024_smooth2.mat elasticity: files: - Meshes/Random_UnitCell_XY_10.npy - Meshes/Random_UnitCell_rr_10.npy - Meshes/Random_UnitCell_sigma_10.npy - Meshes/Random_UnitCell_theta_10.npy ns: files: - NavierStokes_V1e-5_N1200_T20.mat pipe: files: - Pipe_X.npy - Pipe_Y.npy - Pipe_Q.npy plas: files: - plas_N987_T20.mat skipped_source_subsets: - car - diffusion_sorption123456789101112131415rel_path,size,sha256
airfoil/NACA_Cylinder_Q.npy,1122591728,f79dfdaa3be95a5183981531e59b5a372cf3dd69986109f45426b3eb5410c58c
airfoil/NACA_Cylinder_X.npy,224518448,23902420694ba8552e427480aa6b26c08ea4e7e0b2454ee83cd9e1d29060f35f
airfoil/NACA_Cylinder_Y.npy,224518448,710c77e42c3fe49edcfc951b59693511e12f5491f9dcb77a506f395178481155
darcy/piececonst_r421_N1024_smooth1.mat,1692307453,c8b1fd73a8bae85aa48afeb1fabd01204a03debe8e208524b72f615e13d2f664
darcy/piececonst_r421_N1024_smooth2.mat,1692748750,c6522cf6cb3a8c4818268b2b07464a85e55ecd7206a23b4b1ac435bfae2e3eb5
elasticity/Meshes/Random_UnitCell_XY_10.npy,31104080,29c615b7c8b0ef94252e4def4cd9999653b8759104619eb728b91a1cac5b665f
elasticity/Meshes/Random_UnitCell_rr_10.npy,672080,70dc9fae27e8f361c09b5f43d004d50b30bbdf9c8d62227fd001321c61573f78
elasticity/Meshes/Random_UnitCell_sigma_10.npy,15552080,eb8102b580001bab80ee99bfc33289f727491e1d8edab2a4a94abc37a348fa1a
elasticity/Meshes/Random_UnitCell_theta_10.npy,160080,3315da70a33a86757e4799fd92630fcb767193c2a4406b3f45cc6f19b00d56ac
ns/NavierStokes_V1e-5_N1200_T20.mat,412877192,b4995d0180ec15f06878e17527fd3e08a8f504bbc059ee025caffad11a9a82c0
pipe/Pipe_Q.npy,922577168,d1ed4458cfb47e490b3b2487deceb36e516449eca2566d22ef6e8b31492ae223
pipe/Pipe_X.npy,307525808,2ef591a0e3d69a54705a89fc656042bfe2a36abd387de5f24afeebd747527b6b
pipe/Pipe_Y.npy,307525808,2d140fb1293bb9f87aaf41424ec857e0e89b7925efbf50382f825602473c3ccb
plas/plas_N987_T20.mat,1613335719,b58681e7777531b34889da46b506d2f18845c5d7b194859394dfd958cf28178f123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272{ "dataset": "CFD_Benchmark", "subsets": [ "airfoil", "darcy", "elasticity", "ns", "pipe", "plas" ], "files": [ { "path": "airfoil/NACA_Cylinder_Q.npy", "format": "npy", "shape": [ 2490, 5, 221, 51 ], "dtype": "float64" }, { "path": "airfoil/NACA_Cylinder_X.npy", "format": "npy", "shape": [ 2490, 221, 51 ], "dtype": "float64" }, { "path": "airfoil/NACA_Cylinder_Y.npy", "format": "npy", "shape": [ 2490, 221, 51 ], "dtype": "float64" }, { "path": "darcy/piececonst_r421_N1024_smooth1.mat", "format": "matlab_v5", "variables": [ { "name": "Kcoeff", "shape": [ 1024, 421, 421 ], "dtype": "double" }, { "name": "Kcoeff_x", "shape": [ 1024, 421, 421 ], "dtype": "double" }, { "name": "Kcoeff_y", "shape": [ 1024, 421, 421 ], "dtype": "double" }, { "name": "coeff", "shape": [ 1024, 421, 421 ], "dtype": "double" }, { "name": "sol", "shape": [ 1024, 421, 421 ], "dtype": "double" } ] }, { "path": "darcy/piececonst_r421_N1024_smooth2.mat", "format": "matlab_v5", "variables": [ { "name": "Kcoeff", "shape": [ 1024, 421, 421 ], "dtype": "double" }, { "name": "Kcoeff_x", "shape": [ 1024, 421, 421 ], "dtype": "double" }, { "name": "Kcoeff_y", "shape": [ 1024, 421, 421 ], "dtype": "double" }, { "name": "coeff", "shape": [ 1024, 421, 421 ], "dtype": "double" }, { "name": "sol", "shape": [ 1024, 421, 421 ], "dtype": "double" } ] }, { "path": "elasticity/Meshes/Random_UnitCell_XY_10.npy", "format": "npy", "shape": [ 972, 2, 2000 ], "dtype": "float64" }, { "path": "elasticity/Meshes/Random_UnitCell_rr_10.npy", "format": "npy", "shape": [ 42, 2000 ], "dtype": "float64" }, { "path": "elasticity/Meshes/Random_UnitCell_sigma_10.npy", "format": "npy", "shape": [ 972, 2000 ], "dtype": "float64" }, { "path": "elasticity/Meshes/Random_UnitCell_theta_10.npy", "format": "npy", "shape": [ 2000, 10 ], "dtype": "float64" }, { "path": "ns/NavierStokes_V1e-5_N1200_T20.mat", "format": "matlab_v5", "variables": [ { "name": "a", "shape": [ 1200, 64, 64 ], "dtype": "single" }, { "name": "u", "shape": [ 1200, 64, 64, 20 ], "dtype": "single" }, { "name": "t", "shape": [ 1, 20 ], "dtype": "single" } ] }, { "path": "pipe/Pipe_Q.npy", "format": "npy", "shape": [ 2310, 3, 129, 129 ], "dtype": "float64" }, { "path": "pipe/Pipe_X.npy", "format": "npy", "shape": [ 2310, 129, 129 ], "dtype": "float64" }, { "path": "pipe/Pipe_Y.npy", "format": "npy", "shape": [ 2310, 129, 129 ], "dtype": "float64" }, { "path": "plas/plas_N987_T20.mat", "format": "matlab_v5", "variables": [ { "name": "input", "shape": [ 987, 101 ], "dtype": "double" }, { "name": "output", "shape": [ 987, 101, 31, 20, 4 ], "dtype": "double" } ] } ]}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181dataset: CFD_Benchmarksubsets:- airfoil- darcy- elasticity- ns- pipe- plasfiles:- path: airfoil/NACA_Cylinder_Q.npy format: npy shape: - 2490 - 5 - 221 - 51 dtype: float64- path: airfoil/NACA_Cylinder_X.npy format: npy shape: - 2490 - 221 - 51 dtype: float64- path: airfoil/NACA_Cylinder_Y.npy format: npy shape: - 2490 - 221 - 51 dtype: float64- path: darcy/piececonst_r421_N1024_smooth1.mat format: matlab_v5 variables: - name: Kcoeff shape: - 1024 - 421 - 421 dtype: double - name: Kcoeff_x shape: - 1024 - 421 - 421 dtype: double - name: Kcoeff_y shape: - 1024 - 421 - 421 dtype: double - name: coeff shape: - 1024 - 421 - 421 dtype: double - name: sol shape: - 1024 - 421 - 421 dtype: double- path: darcy/piececonst_r421_N1024_smooth2.mat format: matlab_v5 variables: - name: Kcoeff shape: - 1024 - 421 - 421 dtype: double - name: Kcoeff_x shape: - 1024 - 421 - 421 dtype: double - name: Kcoeff_y shape: - 1024 - 421 - 421 dtype: double - name: coeff shape: - 1024 - 421 - 421 dtype: double - name: sol shape: - 1024 - 421 - 421 dtype: double- path: elasticity/Meshes/Random_UnitCell_XY_10.npy format: npy shape: - 972 - 2 - 2000 dtype: float64- path: elasticity/Meshes/Random_UnitCell_rr_10.npy format: npy shape: - 42 - 2000 dtype: float64- path: elasticity/Meshes/Random_UnitCell_sigma_10.npy format: npy shape: - 972 - 2000 dtype: float64- path: elasticity/Meshes/Random_UnitCell_theta_10.npy format: npy shape: - 2000 - 10 dtype: float64- path: ns/NavierStokes_V1e-5_N1200_T20.mat format: matlab_v5 variables: - name: a shape: - 1200 - 64 - 64 dtype: single - name: u shape: - 1200 - 64 - 64 - 20 dtype: single - name: t shape: - 1 - 20 dtype: single- path: pipe/Pipe_Q.npy format: npy shape: - 2310 - 3 - 129 - 129 dtype: float64- path: pipe/Pipe_X.npy format: npy shape: - 2310 - 129 - 129 dtype: float64- path: pipe/Pipe_Y.npy format: npy shape: - 2310 - 129 - 129 dtype: float64- path: plas/plas_N987_T20.mat format: matlab_v5 variables: - name: input shape: - 987 - 101 dtype: double - name: output shape: - 987 - 101 - 31 - 20 - 4 dtype: double123456789101112131415rel_path,size,sha256
airfoil/NACA_Cylinder_Q.npy,1122591728,f79dfdaa3be95a5183981531e59b5a372cf3dd69986109f45426b3eb5410c58c
airfoil/NACA_Cylinder_X.npy,224518448,23902420694ba8552e427480aa6b26c08ea4e7e0b2454ee83cd9e1d29060f35f
airfoil/NACA_Cylinder_Y.npy,224518448,710c77e42c3fe49edcfc951b59693511e12f5491f9dcb77a506f395178481155
darcy/piececonst_r421_N1024_smooth1.mat,1692307453,c8b1fd73a8bae85aa48afeb1fabd01204a03debe8e208524b72f615e13d2f664
darcy/piececonst_r421_N1024_smooth2.mat,1692748750,c6522cf6cb3a8c4818268b2b07464a85e55ecd7206a23b4b1ac435bfae2e3eb5
elasticity/Meshes/Random_UnitCell_XY_10.npy,31104080,29c615b7c8b0ef94252e4def4cd9999653b8759104619eb728b91a1cac5b665f
elasticity/Meshes/Random_UnitCell_rr_10.npy,672080,70dc9fae27e8f361c09b5f43d004d50b30bbdf9c8d62227fd001321c61573f78
elasticity/Meshes/Random_UnitCell_sigma_10.npy,15552080,eb8102b580001bab80ee99bfc33289f727491e1d8edab2a4a94abc37a348fa1a
elasticity/Meshes/Random_UnitCell_theta_10.npy,160080,3315da70a33a86757e4799fd92630fcb767193c2a4406b3f45cc6f19b00d56ac
ns/NavierStokes_V1e-5_N1200_T20.mat,412877192,b4995d0180ec15f06878e17527fd3e08a8f504bbc059ee025caffad11a9a82c0
pipe/Pipe_Q.npy,922577168,d1ed4458cfb47e490b3b2487deceb36e516449eca2566d22ef6e8b31492ae223
pipe/Pipe_X.npy,307525808,2ef591a0e3d69a54705a89fc656042bfe2a36abd387de5f24afeebd747527b6b
pipe/Pipe_Y.npy,307525808,2d140fb1293bb9f87aaf41424ec857e0e89b7925efbf50382f825602473c3ccb
plas/plas_N987_T20.mat,1613335719,b58681e7777531b34889da46b506d2f18845c5d7b194859394dfd958cf28178f12345678910111213141516171819required_datasets: []optional_datasets: []compatible_models: - id: OneScience/CFD_Benchmark role: train_data required_for: - train - evaluate - preflight resource_ref: platform: modelscope repo_id: OneScience/CFD_Benchmark repo_type: model url: https://modelscope.cn/models/OneScience/CFD_Benchmark revision: main readme_path: README.md manifest_path: manifest.yaml expected_local_path: ../cfd_cfd_benchmark_data/data adapter: scripts/standard_train_airfoil_transolver.sh123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349onescience_manifest_version: "0.1"resource_type: datasetresource: id: OneScience/cfd_benchmark name: cfd_benchmark domain: cfd domain_tags: - cfd - neural_pde_solver - benchmark task: cfd_operator_learning_dataset task_tags: - flow_field_prediction - pde_operator_learning - data_reading_validation modalities: - gridded_field - unstructured_mesh input_formats: - npy - mat output_formats: [] summary: CFD_Benchmark 数据集的 ModelScope 标准数据包,本次包含 airfoil、darcy、elasticity、ns、pipe、plas 六个子集。
platform_resource: primary: platform: modelscope repo_id: OneScience/cfd_benchmark repo_type: dataset url: https://modelscope.cn/datasets/OneScience/cfd_benchmark revision: main readme_path: README.md manifest_path: manifest.yaml mirrors: [] access: visibility: public license: null
website_integration: enabled: true click_target: platform: modelscope resource_url: https://modelscope.cn/datasets/OneScience/cfd_benchmark llm_handoff: readme_required: true manifest_required: true download_readme_first: true resolve_related_models: true default_run_goal: minimal_validation
runtime: enabled: true onescience_domain: cfd min_onescience_version: null supported_execution: - local - local_slurm - remote_slurm
onescience: repo: https://gitee.com/onescience-ai/onescience official_links: gitee: doc: https://gitee.com/onescience-ai/onescience-doc onescience: https://gitee.com/onescience-ai/onescience skills: https://gitee.com/onescience-ai/oneskills github: doc: https://github.com/onescience-ai/OneScience-doc onescience: https://github.com/onescience-ai/OneScience skills: https://github.com/onescience-ai/oneskills install: required_by_default: false command: source ~/env.sh && bash install.sh cfd source_paths: [] compatibility: examples_path: examples/cfd/CFD_Benchmark status: examples_compatible
runtime_package: kind: standard_runtime_package package_root: . standard_layout: workdir: . config_dir: metadata checkpoint_dir: null data_dir: data output_dir: reports apply_policy: mode: direct_use target: session_workdir overwrite: true protect_installed_onescience: true entry_files: - metadata/file_manifest.csv - metadata/schema.yaml - scripts/validate_dataset.py entrypoints: preflight: scripts/validate_dataset.py inference: null train: null finetune: null evaluate: null visualize: null deploy: null
files: model_files: [] dataset_files: - id: cfd_benchmark_data path: data/ role: train_data description_zh: 本次整理的 CFD_Benchmark 六个子集数据目录,包含 airfoil、darcy、elasticity、ns、pipe、plas。 required: true required_for: - train - evaluate - preflight format: npy_mat source: platform: modelscope repo_id: OneScience/cfd_benchmark repo_type: dataset path: data/ revision: main download_method: command_ref command_ref: commands.download.download_dataset local_path: session_workdir/cfd_cfd_benchmark_data/data/ size: "约 8.2G" checksum: metadata/file_manifest.csv large_file: true - id: file_manifest path: metadata/file_manifest.csv role: checksum_manifest description_zh: 整理后每个数据文件的相对路径、字节数和 SHA256。 required: true required_for: - preflight format: csv source: platform: modelscope repo_id: OneScience/cfd_benchmark repo_type: dataset path: metadata/file_manifest.csv revision: main download_method: command_ref command_ref: commands.download.download_dataset local_path: session_workdir/cfd_cfd_benchmark_data/metadata/file_manifest.csv size: null checksum: null large_file: false config_files: - id: schema path: metadata/schema.yaml role: schema description_zh: 记录 npy shape/dtype 和 MATLAB 文件变量结构。 required: true required_for: - preflight - train - evaluate format: yaml source: platform: modelscope repo_id: OneScience/cfd_benchmark repo_type: dataset path: metadata/schema.yaml revision: main download_method: command_ref command_ref: commands.download.download_dataset local_path: session_workdir/cfd_cfd_benchmark_data/metadata/schema.yaml checksum: null large_file: false sample_files: []
dataset: format: - npy - matlab_v5_mat sample_unit: 不同子集的一个样本定义不同,airfoil/pipe 为一个几何流场样本,darcy/ns/plas 为一个 PDE 系数或时间序列样本,elasticity 为一个随机单元结构样本。 schema: path: metadata/schema.yaml checksum_manifest: path: metadata/file_manifest.csv splits: train: 由 CFD_Benchmark 运行脚本通过 ntrain 或 train_ratio 切分。 validation: null test: 由 CFD_Benchmark 运行脚本通过 ntest 或 train_ratio 切分。
relations: required_datasets: [] optional_datasets: [] compatible_models: - id: OneScience/CFD_Benchmark role: train_data required_for: - train - evaluate - preflight resource_ref: platform: modelscope repo_id: OneScience/CFD_Benchmark repo_type: model url: https://modelscope.cn/models/OneScience/CFD_Benchmark revision: main readme_path: README.md manifest_path: manifest.yaml expected_local_path: ../cfd_cfd_benchmark_data/data adapter: scripts/standard_train_airfoil_transolver.sh
run_matrix: scenarios: - name: minimal_validation capability: preflight default: true required_datasets: - id: OneScience/cfd_benchmark role: train_data local_path: data/ required_model_files: [] command_refs: - commands.preflight.validate_dataset expected_outputs: - reports/dataset_validation.json prerequisites: - 已下载数据集 OneScience/cfd_benchmark。 - name: cfd_benchmark_model_train capability: train required_datasets: - id: OneScience/cfd_benchmark role: train_data local_path: data/ required_model_files: - OneScience/CFD_Benchmark runtime/ command_refs: - commands.preflight.validate_dataset expected_outputs: - reports/dataset_validation.json prerequisites: - 下载并进入模型仓库 OneScience/CFD_Benchmark。
capabilities: inference: false train: false finetune: false evaluate: false visualize: false deploy: false data_reading_validation: true
commands: download: - name: download_dataset description: 下载 CFD_Benchmark 数据集标准包。 cwd: . command: modelscope download --dataset OneScience/cfd_benchmark --local_dir ./cfd_cfd_benchmark_data required_files: [] required_env: - MODELSCOPE_TOKEN expected_outputs: - path: cfd_cfd_benchmark_data/manifest.yaml type: file - path: cfd_cfd_benchmark_data/data/ type: directory success_criteria: - exit_code == 0 preflight: - name: validate_dataset description: 校验 14 个数据文件的存在性、大小、SHA256、npy shape/dtype 和 mat 变量结构。 cwd: . command: source ~/env.sh && python scripts/validate_dataset.py --data-root data --file-manifest metadata/file_manifest.csv required_files: - scripts/validate_dataset.py - metadata/file_manifest.csv - data/ required_env: - python - numpy - scipy expected_outputs: - path: reports/dataset_validation.json type: file success_criteria: - exit_code == 0 prepare: [] inference: [] train: [] finetune: [] evaluate: [] visualize: [] deploy: []
expected_outputs: - path: reports/dataset_validation.json type: json description_zh: 数据文件完整性和可读性验证报告。 - path: metadata/file_manifest.csv type: csv description_zh: 文件名、大小和 SHA256 校验清单。 - path: metadata/schema.yaml type: yaml description_zh: 数据结构说明。
diagnostics: - id: missing_file symptom: validate_dataset.py 报告 status=missing。 cause: 数据下载不完整或放置目录错误。 fix: 重新执行 modelscope download --dataset OneScience/cfd_benchmark --local_dir ./cfd_cfd_benchmark_data。 - id: sha256_mismatch symptom: validate_dataset.py 报告 status=sha256_mismatch。 cause: 文件损坏、复制中断或上传下载过程中内容变化。 fix: 删除对应文件后重新下载数据集,或用 metadata/source_file_manifest.csv 与源目录重新比对。 - id: scipy_missing symptom: MATLAB 文件只完成 header_only 检查。 cause: 当前 Python 环境缺少 scipy。 fix: source ~/env.sh 后重跑验证;当前标准化过程中已用 scipy 生成 metadata/schema.yaml。
domain_extension: cfd: benchmark_name: CFD_Benchmark included_subsets: airfoil: files: - NACA_Cylinder_X.npy - NACA_Cylinder_Y.npy - NACA_Cylinder_Q.npy darcy: files: - piececonst_r421_N1024_smooth1.mat - piececonst_r421_N1024_smooth2.mat elasticity: files: - Meshes/Random_UnitCell_XY_10.npy - Meshes/Random_UnitCell_rr_10.npy - Meshes/Random_UnitCell_sigma_10.npy - Meshes/Random_UnitCell_theta_10.npy ns: files: - NavierStokes_V1e-5_N1200_T20.mat pipe: files: - Pipe_X.npy - Pipe_Y.npy - Pipe_Q.npy plas: files: - plas_N987_T20.mat skipped_source_subsets: - car - diffusion_sorption123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383{ "ok": true, "data_root": "data", "file_manifest": "metadata/file_manifest.csv", "checked_files": 14, "results": [ { "rel_path": "airfoil/NACA_Cylinder_Q.npy", "exists": true, "expected_size": 1122591728, "expected_sha256": "f79dfdaa3be95a5183981531e59b5a372cf3dd69986109f45426b3eb5410c58c", "actual_size": 1122591728, "status": "ok", "actual_sha256": "f79dfdaa3be95a5183981531e59b5a372cf3dd69986109f45426b3eb5410c58c", "schema": { "format": "npy", "shape": [ 2490, 5, 221, 51 ], "dtype": "float64" } }, { "rel_path": "airfoil/NACA_Cylinder_X.npy", "exists": true, "expected_size": 224518448, "expected_sha256": "23902420694ba8552e427480aa6b26c08ea4e7e0b2454ee83cd9e1d29060f35f", "actual_size": 224518448, "status": "ok", "actual_sha256": "23902420694ba8552e427480aa6b26c08ea4e7e0b2454ee83cd9e1d29060f35f", "schema": { "format": "npy", "shape": [ 2490, 221, 51 ], "dtype": "float64" } }, { "rel_path": "airfoil/NACA_Cylinder_Y.npy", "exists": true, "expected_size": 224518448, "expected_sha256": "710c77e42c3fe49edcfc951b59693511e12f5491f9dcb77a506f395178481155", "actual_size": 224518448, "status": "ok", "actual_sha256": "710c77e42c3fe49edcfc951b59693511e12f5491f9dcb77a506f395178481155", "schema": { "format": "npy", "shape": [ 2490, 221, 51 ], "dtype": "float64" } }, { "rel_path": "darcy/piececonst_r421_N1024_smooth1.mat", "exists": true, "expected_size": 1692307453, "expected_sha256": "c8b1fd73a8bae85aa48afeb1fabd01204a03debe8e208524b72f615e13d2f664", "actual_size": 1692307453, "status": "ok", "actual_sha256": "c8b1fd73a8bae85aa48afeb1fabd01204a03debe8e208524b72f615e13d2f664", "schema": { "format": "matlab_v5", "variables": [ { "name": "Kcoeff", "shape": [ 1024, 421, 421 ], "dtype": "double" }, { "name": "Kcoeff_x", "shape": [ 1024, 421, 421 ], "dtype": "double" }, { "name": "Kcoeff_y", "shape": [ 1024, 421, 421 ], "dtype": "double" }, { "name": "coeff", "shape": [ 1024, 421, 421 ], "dtype": "double" }, { "name": "sol", "shape": [ 1024, 421, 421 ], "dtype": "double" } ], "metadata_mode": "scipy.io.whosmat" } }, { "rel_path": "darcy/piececonst_r421_N1024_smooth2.mat", "exists": true, "expected_size": 1692748750, "expected_sha256": "c6522cf6cb3a8c4818268b2b07464a85e55ecd7206a23b4b1ac435bfae2e3eb5", "actual_size": 1692748750, "status": "ok", "actual_sha256": "c6522cf6cb3a8c4818268b2b07464a85e55ecd7206a23b4b1ac435bfae2e3eb5", "schema": { "format": "matlab_v5", "variables": [ { "name": "Kcoeff", "shape": [ 1024, 421, 421 ], "dtype": "double" }, { "name": "Kcoeff_x", "shape": [ 1024, 421, 421 ], "dtype": "double" }, { "name": "Kcoeff_y", "shape": [ 1024, 421, 421 ], "dtype": "double" }, { "name": "coeff", "shape": [ 1024, 421, 421 ], "dtype": "double" }, { "name": "sol", "shape": [ 1024, 421, 421 ], "dtype": "double" } ], "metadata_mode": "scipy.io.whosmat" } }, { "rel_path": "elasticity/Meshes/Random_UnitCell_XY_10.npy", "exists": true, "expected_size": 31104080, "expected_sha256": "29c615b7c8b0ef94252e4def4cd9999653b8759104619eb728b91a1cac5b665f", "actual_size": 31104080, "status": "ok", "actual_sha256": "29c615b7c8b0ef94252e4def4cd9999653b8759104619eb728b91a1cac5b665f", "schema": { "format": "npy", "shape": [ 972, 2, 2000 ], "dtype": "float64" } }, { "rel_path": "elasticity/Meshes/Random_UnitCell_rr_10.npy", "exists": true, "expected_size": 672080, "expected_sha256": "70dc9fae27e8f361c09b5f43d004d50b30bbdf9c8d62227fd001321c61573f78", "actual_size": 672080, "status": "ok", "actual_sha256": "70dc9fae27e8f361c09b5f43d004d50b30bbdf9c8d62227fd001321c61573f78", "schema": { "format": "npy", "shape": [ 42, 2000 ], "dtype": "float64" } }, { "rel_path": "elasticity/Meshes/Random_UnitCell_sigma_10.npy", "exists": true, "expected_size": 15552080, "expected_sha256": "eb8102b580001bab80ee99bfc33289f727491e1d8edab2a4a94abc37a348fa1a", "actual_size": 15552080, "status": "ok", "actual_sha256": "eb8102b580001bab80ee99bfc33289f727491e1d8edab2a4a94abc37a348fa1a", "schema": { "format": "npy", "shape": [ 972, 2000 ], "dtype": "float64" } }, { "rel_path": "elasticity/Meshes/Random_UnitCell_theta_10.npy", "exists": true, "expected_size": 160080, "expected_sha256": "3315da70a33a86757e4799fd92630fcb767193c2a4406b3f45cc6f19b00d56ac", "actual_size": 160080, "status": "ok", "actual_sha256": "3315da70a33a86757e4799fd92630fcb767193c2a4406b3f45cc6f19b00d56ac", "schema": { "format": "npy", "shape": [ 2000, 10 ], "dtype": "float64" } }, { "rel_path": "ns/NavierStokes_V1e-5_N1200_T20.mat", "exists": true, "expected_size": 412877192, "expected_sha256": "b4995d0180ec15f06878e17527fd3e08a8f504bbc059ee025caffad11a9a82c0", "actual_size": 412877192, "status": "ok", "actual_sha256": "b4995d0180ec15f06878e17527fd3e08a8f504bbc059ee025caffad11a9a82c0", "schema": { "format": "matlab_v5", "variables": [ { "name": "a", "shape": [ 1200, 64, 64 ], "dtype": "single" }, { "name": "u", "shape": [ 1200, 64, 64, 20 ], "dtype": "single" }, { "name": "t", "shape": [ 1, 20 ], "dtype": "single" } ], "metadata_mode": "scipy.io.whosmat" } }, { "rel_path": "pipe/Pipe_Q.npy", "exists": true, "expected_size": 922577168, "expected_sha256": "d1ed4458cfb47e490b3b2487deceb36e516449eca2566d22ef6e8b31492ae223", "actual_size": 922577168, "status": "ok", "actual_sha256": "d1ed4458cfb47e490b3b2487deceb36e516449eca2566d22ef6e8b31492ae223", "schema": { "format": "npy", "shape": [ 2310, 3, 129, 129 ], "dtype": "float64" } }, { "rel_path": "pipe/Pipe_X.npy", "exists": true, "expected_size": 307525808, "expected_sha256": "2ef591a0e3d69a54705a89fc656042bfe2a36abd387de5f24afeebd747527b6b", "actual_size": 307525808, "status": "ok", "actual_sha256": "2ef591a0e3d69a54705a89fc656042bfe2a36abd387de5f24afeebd747527b6b", "schema": { "format": "npy", "shape": [ 2310, 129, 129 ], "dtype": "float64" } }, { "rel_path": "pipe/Pipe_Y.npy", "exists": true, "expected_size": 307525808, "expected_sha256": "2d140fb1293bb9f87aaf41424ec857e0e89b7925efbf50382f825602473c3ccb", "actual_size": 307525808, "status": "ok", "actual_sha256": "2d140fb1293bb9f87aaf41424ec857e0e89b7925efbf50382f825602473c3ccb", "schema": { "format": "npy", "shape": [ 2310, 129, 129 ], "dtype": "float64" } }, { "rel_path": "plas/plas_N987_T20.mat", "exists": true, "expected_size": 1613335719, "expected_sha256": "b58681e7777531b34889da46b506d2f18845c5d7b194859394dfd958cf28178f", "actual_size": 1613335719, "status": "ok", "actual_sha256": "b58681e7777531b34889da46b506d2f18845c5d7b194859394dfd958cf28178f", "schema": { "format": "matlab_v5", "variables": [ { "name": "input", "shape": [ 987, 101 ], "dtype": "double" }, { "name": "output", "shape": [ 987, 101, 31, 20, 4 ], "dtype": "double" } ], "metadata_mode": "scipy.io.whosmat" } } ]}1234567891011121314151617{ "ok": true, "source_root": "/public/share/sugonhpcapp01/onestore/onedatasets/CFD_Benchmark", "subsets": [ "airfoil", "darcy", "elasticity", "ns", "pipe", "plas" ], "source_files": 14, "target_files": 14, "missing_in_target": [], "extra_in_target": [], "mismatched": []}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126#!/usr/bin/env python3"""Validate CFD_Benchmark dataset files without loading full arrays into memory."""
from __future__ import annotations
import argparseimport csvimport hashlibimport jsonfrom pathlib import Pathfrom typing import Any
def sha256_file(path: Path, chunk_size: int = 1024 * 1024 * 16) -> str: digest = hashlib.sha256() with path.open("rb") as handle: for chunk in iter(lambda: handle.read(chunk_size), b""): digest.update(chunk) return digest.hexdigest()
def inspect_npy(path: Path) -> dict[str, Any]: import numpy as np
array = np.load(path, mmap_mode="r") return {"format": "npy", "shape": list(array.shape), "dtype": str(array.dtype)}
def inspect_mat(path: Path) -> dict[str, Any]: info: dict[str, Any] = {"format": "matlab_v5", "variables": []} try: import scipy.io as scio
variables = [] for name, shape, dtype in scio.whosmat(path): variables.append({"name": name, "shape": list(shape), "dtype": str(dtype)}) info["variables"] = variables info["metadata_mode"] = "scipy.io.whosmat" except Exception as exc: # scipy is optional for integrity-only checks. info["metadata_mode"] = "header_only" info["metadata_warning"] = f"scipy.io.whosmat unavailable: {type(exc).__name__}: {exc}" with path.open("rb") as handle: info["header_prefix"] = handle.read(64).decode("latin1", errors="replace") return info
def load_manifest(path: Path) -> list[dict[str, str]]: with path.open("r", newline="") as handle: return list(csv.DictReader(handle))
def main() -> int: parser = argparse.ArgumentParser() parser.add_argument("--data-root", default="data", help="Dataset data root") parser.add_argument( "--file-manifest", default="metadata/file_manifest.csv", help="CSV with rel_path,size,sha256 entries", ) parser.add_argument("--skip-sha256", action="store_true", help="Only check names and sizes") parser.add_argument("--report", default="reports/dataset_validation.json") args = parser.parse_args()
data_root = Path(args.data_root) manifest_path = Path(args.file_manifest) report_path = Path(args.report) report_path.parent.mkdir(parents=True, exist_ok=True)
rows = load_manifest(manifest_path) results = [] ok = True for row in rows: rel_path = row["rel_path"] expected_size = int(row["size"]) expected_sha256 = row["sha256"] path = data_root / rel_path item: dict[str, Any] = { "rel_path": rel_path, "exists": path.exists(), "expected_size": expected_size, "expected_sha256": expected_sha256, } if not path.exists(): item["status"] = "missing" ok = False results.append(item) continue
actual_size = path.stat().st_size item["actual_size"] = actual_size if actual_size != expected_size: item["status"] = "size_mismatch" ok = False else: item["status"] = "ok"
if not args.skip_sha256: actual_sha256 = sha256_file(path) item["actual_sha256"] = actual_sha256 if actual_sha256 != expected_sha256: item["status"] = "sha256_mismatch" ok = False
if path.suffix == ".npy": item["schema"] = inspect_npy(path) elif path.suffix == ".mat": item["schema"] = inspect_mat(path) results.append(item)
report = { "ok": ok, "data_root": str(data_root), "file_manifest": str(manifest_path), "checked_files": len(results), "results": results, } report_path.write_text(json.dumps(report, indent=2, ensure_ascii=False) + "\n") if ok: print(f"DATASET_VALIDATION_OK checked_files={len(results)} report={report_path}") return 0 print(f"DATASET_VALIDATION_FAILED report={report_path}") return 1
if __name__ == "__main__": raise SystemExit(main()).gitattributes+67-32
README.mdAdded+84
README_zh.mdAdded+84
data/airfoil/NACA_Cylinder_Q.npyAdded+3
data/airfoil/NACA_Cylinder_X.npyAdded+3
data/airfoil/NACA_Cylinder_Y.npyAdded+3
data/darcy/piececonst_r421_N1024_smooth1.matAdded+3
data/darcy/piececonst_r421_N1024_smooth2.matAdded+3
data/elasticity/Meshes/Random_UnitCell_XY_10.npyAdded+3
data/elasticity/Meshes/Random_UnitCell_rr_10.npyAdded+3
data/elasticity/Meshes/Random_UnitCell_sigma_10.npyAdded+3
data/elasticity/Meshes/Random_UnitCell_theta_10.npyAdded+3
data/ns/NavierStokes_V1e-5_N1200_T20.matAdded+3
data/pipe/Pipe_Q.npyAdded+3
data/pipe/Pipe_X.npyAdded+3
data/pipe/Pipe_Y.npyAdded+3
data/plas/plas_N987_T20.matAdded+3
dataset_infos.jsonAdded+1
manifest.yamlAdded+349
metadata/file_manifest.csvAdded+15
metadata/schema.jsonAdded+272
metadata/schema.yamlAdded+181
metadata/source_file_manifest.csvAdded+15
onescience_relations.yamlAdded+19
onescience_run_manifest.yamlAdded+349
reports/dataset_validation.jsonAdded+383
reports/source_target_integrity.jsonAdded+17
scripts/validate_dataset.pyAdded+126