Upload folder using huggingface_hub
Browse files- .gitattributes +67 -32
- README.md +84 -0
- README_zh.md +84 -0
- data/airfoil/NACA_Cylinder_Q.npy +3 -0
- data/airfoil/NACA_Cylinder_X.npy +3 -0
- data/airfoil/NACA_Cylinder_Y.npy +3 -0
- data/darcy/piececonst_r421_N1024_smooth1.mat +3 -0
- data/darcy/piececonst_r421_N1024_smooth2.mat +3 -0
- data/elasticity/Meshes/Random_UnitCell_XY_10.npy +3 -0
- data/elasticity/Meshes/Random_UnitCell_rr_10.npy +3 -0
- data/elasticity/Meshes/Random_UnitCell_sigma_10.npy +3 -0
- data/elasticity/Meshes/Random_UnitCell_theta_10.npy +3 -0
- data/ns/NavierStokes_V1e-5_N1200_T20.mat +3 -0
- data/pipe/Pipe_Q.npy +3 -0
- data/pipe/Pipe_X.npy +3 -0
- data/pipe/Pipe_Y.npy +3 -0
- data/plas/plas_N987_T20.mat +3 -0
- dataset_infos.json +1 -0
- manifest.yaml +349 -0
- metadata/file_manifest.csv +15 -0
- metadata/schema.json +272 -0
- metadata/schema.yaml +181 -0
- metadata/source_file_manifest.csv +15 -0
- onescience_relations.yaml +19 -0
- onescience_run_manifest.yaml +349 -0
- reports/dataset_validation.json +383 -0
- reports/source_target_integrity.json +17 -0
- scripts/validate_dataset.py +126 -0
.gitattributes
CHANGED
|
@@ -1,60 +1,95 @@
|
|
| 1 |
*.7z filter=lfs diff=lfs merge=lfs -text
|
| 2 |
*.arrow filter=lfs diff=lfs merge=lfs -text
|
| 3 |
-
*.avro filter=lfs diff=lfs merge=lfs -text
|
| 4 |
*.bin filter=lfs diff=lfs merge=lfs -text
|
|
|
|
| 5 |
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
| 6 |
-
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
| 7 |
*.ftz filter=lfs diff=lfs merge=lfs -text
|
| 8 |
*.gz filter=lfs diff=lfs merge=lfs -text
|
| 9 |
*.h5 filter=lfs diff=lfs merge=lfs -text
|
| 10 |
*.joblib filter=lfs diff=lfs merge=lfs -text
|
| 11 |
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
| 12 |
-
*.lz4 filter=lfs diff=lfs merge=lfs -text
|
| 13 |
-
*.mds filter=lfs diff=lfs merge=lfs -text
|
| 14 |
-
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
| 15 |
*.model filter=lfs diff=lfs merge=lfs -text
|
| 16 |
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
| 17 |
-
*.npy filter=lfs diff=lfs merge=lfs -text
|
| 18 |
-
*.npz filter=lfs diff=lfs merge=lfs -text
|
| 19 |
*.onnx filter=lfs diff=lfs merge=lfs -text
|
| 20 |
*.ot filter=lfs diff=lfs merge=lfs -text
|
| 21 |
*.parquet filter=lfs diff=lfs merge=lfs -text
|
| 22 |
*.pb filter=lfs diff=lfs merge=lfs -text
|
| 23 |
-
*.pickle filter=lfs diff=lfs merge=lfs -text
|
| 24 |
-
*.pkl filter=lfs diff=lfs merge=lfs -text
|
| 25 |
*.pt filter=lfs diff=lfs merge=lfs -text
|
| 26 |
*.pth filter=lfs diff=lfs merge=lfs -text
|
| 27 |
*.rar filter=lfs diff=lfs merge=lfs -text
|
| 28 |
-
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
| 29 |
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
| 30 |
-
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
| 31 |
*.tar filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
*.tflite filter=lfs diff=lfs merge=lfs -text
|
| 33 |
*.tgz filter=lfs diff=lfs merge=lfs -text
|
| 34 |
-
*.wasm filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*.xz filter=lfs diff=lfs merge=lfs -text
|
| 36 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 37 |
-
*.
|
| 38 |
-
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 39 |
-
|
| 40 |
-
*.
|
| 41 |
-
*
|
| 42 |
-
*.
|
| 43 |
-
|
| 44 |
-
*.
|
| 45 |
-
*.
|
| 46 |
-
*.mp3 filter=lfs diff=lfs merge=lfs -text
|
| 47 |
-
*.ogg filter=lfs diff=lfs merge=lfs -text
|
| 48 |
-
*.wav filter=lfs diff=lfs merge=lfs -text
|
| 49 |
-
# Image files - uncompressed
|
| 50 |
-
*.bmp filter=lfs diff=lfs merge=lfs -text
|
| 51 |
-
*.gif filter=lfs diff=lfs merge=lfs -text
|
| 52 |
-
*.png filter=lfs diff=lfs merge=lfs -text
|
| 53 |
-
*.tiff filter=lfs diff=lfs merge=lfs -text
|
| 54 |
-
# Image files - compressed
|
| 55 |
*.jpg filter=lfs diff=lfs merge=lfs -text
|
|
|
|
| 56 |
*.jpeg filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
| 57 |
*.webp filter=lfs diff=lfs merge=lfs -text
|
| 58 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 59 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 60 |
-
*.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
*.7z filter=lfs diff=lfs merge=lfs -text
|
| 2 |
*.arrow filter=lfs diff=lfs merge=lfs -text
|
|
|
|
| 3 |
*.bin filter=lfs diff=lfs merge=lfs -text
|
| 4 |
+
*.bin.* filter=lfs diff=lfs merge=lfs -text
|
| 5 |
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
|
|
|
| 6 |
*.ftz filter=lfs diff=lfs merge=lfs -text
|
| 7 |
*.gz filter=lfs diff=lfs merge=lfs -text
|
| 8 |
*.h5 filter=lfs diff=lfs merge=lfs -text
|
| 9 |
*.joblib filter=lfs diff=lfs merge=lfs -text
|
| 10 |
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
| 11 |
*.model filter=lfs diff=lfs merge=lfs -text
|
| 12 |
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
| 13 |
*.onnx filter=lfs diff=lfs merge=lfs -text
|
| 14 |
*.ot filter=lfs diff=lfs merge=lfs -text
|
| 15 |
*.parquet filter=lfs diff=lfs merge=lfs -text
|
| 16 |
*.pb filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
| 17 |
*.pt filter=lfs diff=lfs merge=lfs -text
|
| 18 |
*.pth filter=lfs diff=lfs merge=lfs -text
|
| 19 |
*.rar filter=lfs diff=lfs merge=lfs -text
|
|
|
|
| 20 |
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
| 21 |
*.tar filter=lfs diff=lfs merge=lfs -text
|
| 22 |
+
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
| 23 |
+
|
| 24 |
+
*.npz filter=lfs diff=lfs merge=lfs -text
|
| 25 |
+
|
| 26 |
+
*.h5 filter=lfs diff=lfs merge=lfs -text
|
| 27 |
+
*.hdf5 filter=lfs diff=lfs merge=lfs -text
|
| 28 |
+
*.pickle filter=lfs diff=lfs merge=lfs -text
|
| 29 |
+
*.pkl filter=lfs diff=lfs merge=lfs -text
|
| 30 |
*.tflite filter=lfs diff=lfs merge=lfs -text
|
| 31 |
*.tgz filter=lfs diff=lfs merge=lfs -text
|
|
|
|
| 32 |
*.xz filter=lfs diff=lfs merge=lfs -text
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
+
*.zstandard filter=lfs diff=lfs merge=lfs -text
|
| 35 |
+
*.tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
*.db* filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
*.ark* filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
**/*ckpt*data* filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
**/*ckpt*.meta filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
**/*ckpt*.index filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
| 42 |
+
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 43 |
*.jpg filter=lfs diff=lfs merge=lfs -text
|
| 44 |
+
*.png filter=lfs diff=lfs merge=lfs -text
|
| 45 |
*.jpeg filter=lfs diff=lfs merge=lfs -text
|
| 46 |
+
*.bmp filter=lfs diff=lfs merge=lfs -text
|
| 47 |
+
*.gif filter=lfs diff=lfs merge=lfs -text
|
| 48 |
*.webp filter=lfs diff=lfs merge=lfs -text
|
| 49 |
+
*.mp3 filter=lfs diff=lfs merge=lfs -text
|
| 50 |
+
*.wav filter=lfs diff=lfs merge=lfs -text
|
| 51 |
+
*.wma filter=lfs diff=lfs merge=lfs -text
|
| 52 |
+
*.aac filter=lfs diff=lfs merge=lfs -text
|
| 53 |
+
*.ogg filter=lfs diff=lfs merge=lfs -text
|
| 54 |
+
*.m4a filter=lfs diff=lfs merge=lfs -text
|
| 55 |
+
*.m3u8 filter=lfs diff=lfs merge=lfs -text
|
| 56 |
+
*.amr filter=lfs diff=lfs merge=lfs -text
|
| 57 |
+
*.audio filter=lfs diff=lfs merge=lfs -text
|
| 58 |
+
*.avi filter=lfs diff=lfs merge=lfs -text
|
| 59 |
+
*.flv filter=lfs diff=lfs merge=lfs -text
|
| 60 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 61 |
+
*.mpg filter=lfs diff=lfs merge=lfs -text
|
| 62 |
+
*.asf filter=lfs diff=lfs merge=lfs -text
|
| 63 |
+
*.mov filter=lfs diff=lfs merge=lfs -text
|
| 64 |
+
*.mpeg filter=lfs diff=lfs merge=lfs -text
|
| 65 |
+
*.3gp filter=lfs diff=lfs merge=lfs -text
|
| 66 |
+
*.wmv filter=lfs diff=lfs merge=lfs -text
|
| 67 |
+
*.rmvb filter=lfs diff=lfs merge=lfs -text
|
| 68 |
+
*.rm filter=lfs diff=lfs merge=lfs -text
|
| 69 |
+
*.ts filter=lfs diff=lfs merge=lfs -text
|
| 70 |
+
*.mkv filter=lfs diff=lfs merge=lfs -text
|
| 71 |
+
*.flash filter=lfs diff=lfs merge=lfs -text
|
| 72 |
+
*.vob filter=lfs diff=lfs merge=lfs -text
|
| 73 |
+
*.pdf filter=lfs diff=lfs merge=lfs -text
|
| 74 |
+
*.ost filter=lfs diff=lfs merge=lfs -text
|
| 75 |
+
*.pst filter=lfs diff=lfs merge=lfs -text
|
| 76 |
+
*.doc filter=lfs diff=lfs merge=lfs -text
|
| 77 |
+
*.docx filter=lfs diff=lfs merge=lfs -text
|
| 78 |
+
*.txt filter=lfs diff=lfs merge=lfs -text
|
| 79 |
+
*.ppt filter=lfs diff=lfs merge=lfs -text
|
| 80 |
+
*.pptx filter=lfs diff=lfs merge=lfs -text
|
| 81 |
+
*.xls filter=lfs diff=lfs merge=lfs -text
|
| 82 |
+
*.xlsx filter=lfs diff=lfs merge=lfs -text
|
| 83 |
+
*.vsd filter=lfs diff=lfs merge=lfs -text
|
| 84 |
+
*.vsdx filter=lfs diff=lfs merge=lfs -text
|
| 85 |
+
*.jsonl filter=lfs diff=lfs merge=lfs -text
|
| 86 |
+
*.json filter=lfs diff=lfs merge=lfs -text
|
| 87 |
+
dataset_infos.json ignore
|
| 88 |
+
*.csv filter=lfs diff=lfs merge=lfs -text
|
| 89 |
+
*.tsv filter=lfs diff=lfs merge=lfs -text
|
| 90 |
+
|
| 91 |
+
*.npy filter=lfs diff=lfs merge=lfs -text
|
| 92 |
+
data/darcy/piececonst_r421_N1024_smooth1.mat filter=lfs diff=lfs merge=lfs -text
|
| 93 |
+
data/darcy/piececonst_r421_N1024_smooth2.mat filter=lfs diff=lfs merge=lfs -text
|
| 94 |
+
data/ns/NavierStokes_V1e-5_N1200_T20.mat filter=lfs diff=lfs merge=lfs -text
|
| 95 |
+
data/plas/plas_N987_T20.mat filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,84 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: other
|
| 3 |
+
#User-Defined Tags
|
| 4 |
+
tags:
|
| 5 |
+
- Multi-Physics PDE Benchmark
|
| 6 |
+
- Surrogate Modeling
|
| 7 |
+
language:
|
| 8 |
+
- en
|
| 9 |
+
- zh
|
| 10 |
+
---
|
| 11 |
+
<p align="center">
|
| 12 |
+
<strong>
|
| 13 |
+
<span style="font-size: 30px;">CFD Benchmark</span>
|
| 14 |
+
</strong>
|
| 15 |
+
</p>
|
| 16 |
+
|
| 17 |
+
## Dataset Description
|
| 18 |
+
|
| 19 |
+
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.
|
| 20 |
+
|
| 21 |
+
The dataset contains six subsets: `airfoil`, `darcy`, `elasticity`, `ns`, `pipe`, and `plas`.
|
| 22 |
+
|
| 23 |
+
Paper: [Transolver: A Fast Transformer Solver for PDEs on General Geometries](https://proceedings.mlr.press/v235/wu24r.html)
|
| 24 |
+
|
| 25 |
+
## Supported Tasks
|
| 26 |
+
|
| 27 |
+
| Subset | Task |
|
| 28 |
+
|---|---|
|
| 29 |
+
| `airfoil` | Steady-state airfoil flow-field prediction. |
|
| 30 |
+
| `darcy` | Darcy equation solution-field prediction. |
|
| 31 |
+
| `elasticity` | Stress prediction for random-cell structures. |
|
| 32 |
+
| `ns` | Navier-Stokes flow-field time-series prediction. |
|
| 33 |
+
| `pipe` | Steady-state pipe flow-field prediction. |
|
| 34 |
+
| `plas` | Plasticity dynamics response prediction. |
|
| 35 |
+
|
| 36 |
+
## Dataset Format and Structure
|
| 37 |
+
|
| 38 |
+
The data is located in the `data/` directory and organized by task:
|
| 39 |
+
|
| 40 |
+
```text
|
| 41 |
+
data/
|
| 42 |
+
airfoil/
|
| 43 |
+
darcy/
|
| 44 |
+
elasticity/
|
| 45 |
+
ns/
|
| 46 |
+
pipe/
|
| 47 |
+
plas/
|
| 48 |
+
```
|
| 49 |
+
|
| 50 |
+
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.
|
| 51 |
+
|
| 52 |
+
See `metadata/schema.yaml` for the shape and dtype of each file and the MATLAB variable structures.
|
| 53 |
+
|
| 54 |
+
## How to Use the Dataset
|
| 55 |
+
|
| 56 |
+
This dataset has been adapted for the `OneScience-Sugon/CFD_Benchmark` model. Download the dataset and model:
|
| 57 |
+
|
| 58 |
+
```bash
|
| 59 |
+
hf download --dataset OneScience-Sugon/cfd_benchmark --local-dir ./cfd_benchmark
|
| 60 |
+
hf download --model OneScience-Sugon/CFD_Benchmark --local-dir ./CFD_Benchmark
|
| 61 |
+
```
|
| 62 |
+
|
| 63 |
+
Quickly check file presence, sizes, and readability:
|
| 64 |
+
|
| 65 |
+
```bash
|
| 66 |
+
cd cfd_benchmark
|
| 67 |
+
python scripts/validate_dataset.py --skip-sha256
|
| 68 |
+
```
|
| 69 |
+
|
| 70 |
+
Remove `--skip-sha256` to perform a complete SHA256 validation.
|
| 71 |
+
|
| 72 |
+
## Official OneScience Information
|
| 73 |
+
|
| 74 |
+
| Platform | OneScience Main Repository | Skills Repository |
|
| 75 |
+
|---|---|---|
|
| 76 |
+
| Gitee | https://gitee.com/onescience-ai/onescience | https://gitee.com/onescience-ai/oneskills |
|
| 77 |
+
| GitHub | https://github.com/onescience-ai/OneScience | https://github.com/onescience-ai/oneskills |
|
| 78 |
+
|
| 79 |
+
## Citation and License
|
| 80 |
+
|
| 81 |
+
- Six standard tasks: [Transolver](https://proceedings.mlr.press/v235/wu24r.html)
|
| 82 |
+
- Darcy and Navier-Stokes data source: [Fourier Neural Operator](https://openreview.net/forum?id=c8P9NQVtmnO)
|
| 83 |
+
- Elasticity, Plasticity, Airfoil, and Pipe data source: [Geo-FNO](https://jmlr.org/papers/v24/23-0064.html)
|
| 84 |
+
- This repository retains the data-source information. Before public distribution or redistribution, verify the licensing requirements with the upstream projects.
|
README_zh.md
ADDED
|
@@ -0,0 +1,84 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: other
|
| 3 |
+
#用户自定义标签
|
| 4 |
+
tags:
|
| 5 |
+
- Multi-Physics PDE Benchmark
|
| 6 |
+
- Surrogate Modeling
|
| 7 |
+
language:
|
| 8 |
+
- en
|
| 9 |
+
- zh
|
| 10 |
+
---
|
| 11 |
+
<p align="center">
|
| 12 |
+
<strong>
|
| 13 |
+
<span style="font-size: 30px;">CFD Benchmark</span>
|
| 14 |
+
</strong>
|
| 15 |
+
</p>
|
| 16 |
+
|
| 17 |
+
## 数据集描述
|
| 18 |
+
|
| 19 |
+
CFD Benchmark 是用于神经 PDE 求解器训练和评测的综合基准数据集,包含规则网格、结构化网格和非规则几何上的六类标准任务。该数据集被 ICML 2024 论文 *Transolver* 用于统一评测,部分数据来源于 FNO 和 Geo-FNO 工作。
|
| 20 |
+
|
| 21 |
+
数据集包含 `airfoil`、`darcy`、`elasticity`、`ns`、`pipe` 和 `plas` 六个子集。
|
| 22 |
+
|
| 23 |
+
论文:[Transolver: A Fast Transformer Solver for PDEs on General Geometries](https://proceedings.mlr.press/v235/wu24r.html)
|
| 24 |
+
|
| 25 |
+
## 数据集支持的任务
|
| 26 |
+
|
| 27 |
+
| 子集 | 任务 |
|
| 28 |
+
|---|---|
|
| 29 |
+
| `airfoil` | 翼型稳态流场预测。 |
|
| 30 |
+
| `darcy` | Darcy 方程解场预测。 |
|
| 31 |
+
| `elasticity` | 随机单元结构应力预测。 |
|
| 32 |
+
| `ns` | Navier-Stokes 流场时间序列预测。 |
|
| 33 |
+
| `pipe` | 管道稳态流场预测。 |
|
| 34 |
+
| `plas` | 塑性动力学响应预测。 |
|
| 35 |
+
|
| 36 |
+
## 数据集的格式和结构
|
| 37 |
+
|
| 38 |
+
数据位于 `data/` 目录,并按任务划分:
|
| 39 |
+
|
| 40 |
+
```text
|
| 41 |
+
data/
|
| 42 |
+
airfoil/
|
| 43 |
+
darcy/
|
| 44 |
+
elasticity/
|
| 45 |
+
ns/
|
| 46 |
+
pipe/
|
| 47 |
+
plas/
|
| 48 |
+
```
|
| 49 |
+
|
| 50 |
+
数据文件采用 NumPy NPY 和 MATLAB v5 格式。Airfoil、Pipe 和 Elasticity 子集包含网格坐标、几何或流场数组;Darcy 和 Navier-Stokes 子集使用 MATLAB 文件保存系数场和解场;Plasticity 子集包含载荷输入及多时间步响应输出。
|
| 51 |
+
|
| 52 |
+
各文件的 shape、dtype 和 MATLAB 变量结构以 `metadata/schema.yaml` 为准。
|
| 53 |
+
|
| 54 |
+
## 数据集使用方式
|
| 55 |
+
|
| 56 |
+
本数据集适配 `OneScience-Sugon/CFD_Benchmark` 模型。下载数据集和模型:
|
| 57 |
+
|
| 58 |
+
```bash
|
| 59 |
+
hf download --dataset OneScience-Sugon/cfd_benchmark --local-dir ./cfd_benchmark
|
| 60 |
+
hf download --model OneScience-Sugon/CFD_Benchmark --local-dir ./CFD_Benchmark
|
| 61 |
+
```
|
| 62 |
+
|
| 63 |
+
快速检查文件存在性、大小和可读性:
|
| 64 |
+
|
| 65 |
+
```bash
|
| 66 |
+
cd cfd_benchmark
|
| 67 |
+
python scripts/validate_dataset.py --skip-sha256
|
| 68 |
+
```
|
| 69 |
+
|
| 70 |
+
移除 `--skip-sha256` 可执行完整 SHA256 校验。
|
| 71 |
+
|
| 72 |
+
## OneScience 官方信息
|
| 73 |
+
|
| 74 |
+
| 平台 | OneScience 主仓库 | Skills 仓库 |
|
| 75 |
+
|---|---|---|
|
| 76 |
+
| Gitee | https://gitee.com/onescience-ai/onescience | https://gitee.com/onescience-ai/oneskills |
|
| 77 |
+
| GitHub | https://github.com/onescience-ai/OneScience | https://github.com/onescience-ai/oneskills |
|
| 78 |
+
|
| 79 |
+
## 引用与许可证
|
| 80 |
+
|
| 81 |
+
- 六项标准任务:[Transolver](https://proceedings.mlr.press/v235/wu24r.html)
|
| 82 |
+
- Darcy 与 Navier-Stokes 数据来源:[Fourier Neural Operator](https://openreview.net/forum?id=c8P9NQVtmnO)
|
| 83 |
+
- Elasticity、Plasticity、Airfoil 与 Pipe 数据来源:[Geo-FNO](https://jmlr.org/papers/v24/23-0064.html)
|
| 84 |
+
- 本仓库保留数据来源说明;公开分发或二次发布前,请根据上游项目确认许可证要求。
|
data/airfoil/NACA_Cylinder_Q.npy
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f79dfdaa3be95a5183981531e59b5a372cf3dd69986109f45426b3eb5410c58c
|
| 3 |
+
size 1122591728
|
data/airfoil/NACA_Cylinder_X.npy
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:23902420694ba8552e427480aa6b26c08ea4e7e0b2454ee83cd9e1d29060f35f
|
| 3 |
+
size 224518448
|
data/airfoil/NACA_Cylinder_Y.npy
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:710c77e42c3fe49edcfc951b59693511e12f5491f9dcb77a506f395178481155
|
| 3 |
+
size 224518448
|
data/darcy/piececonst_r421_N1024_smooth1.mat
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c8b1fd73a8bae85aa48afeb1fabd01204a03debe8e208524b72f615e13d2f664
|
| 3 |
+
size 1692307453
|
data/darcy/piececonst_r421_N1024_smooth2.mat
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c6522cf6cb3a8c4818268b2b07464a85e55ecd7206a23b4b1ac435bfae2e3eb5
|
| 3 |
+
size 1692748750
|
data/elasticity/Meshes/Random_UnitCell_XY_10.npy
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:29c615b7c8b0ef94252e4def4cd9999653b8759104619eb728b91a1cac5b665f
|
| 3 |
+
size 31104080
|
data/elasticity/Meshes/Random_UnitCell_rr_10.npy
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:70dc9fae27e8f361c09b5f43d004d50b30bbdf9c8d62227fd001321c61573f78
|
| 3 |
+
size 672080
|
data/elasticity/Meshes/Random_UnitCell_sigma_10.npy
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:eb8102b580001bab80ee99bfc33289f727491e1d8edab2a4a94abc37a348fa1a
|
| 3 |
+
size 15552080
|
data/elasticity/Meshes/Random_UnitCell_theta_10.npy
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3315da70a33a86757e4799fd92630fcb767193c2a4406b3f45cc6f19b00d56ac
|
| 3 |
+
size 160080
|
data/ns/NavierStokes_V1e-5_N1200_T20.mat
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b4995d0180ec15f06878e17527fd3e08a8f504bbc059ee025caffad11a9a82c0
|
| 3 |
+
size 412877192
|
data/pipe/Pipe_Q.npy
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d1ed4458cfb47e490b3b2487deceb36e516449eca2566d22ef6e8b31492ae223
|
| 3 |
+
size 922577168
|
data/pipe/Pipe_X.npy
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2ef591a0e3d69a54705a89fc656042bfe2a36abd387de5f24afeebd747527b6b
|
| 3 |
+
size 307525808
|
data/pipe/Pipe_Y.npy
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2d140fb1293bb9f87aaf41424ec857e0e89b7925efbf50382f825602473c3ccb
|
| 3 |
+
size 307525808
|
data/plas/plas_N987_T20.mat
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b58681e7777531b34889da46b506d2f18845c5d7b194859394dfd958cf28178f
|
| 3 |
+
size 1613335719
|
dataset_infos.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"default": {"features": {"ok": {"_type": "Value"}, "data_root": {"_type": "Value"}, "file_manifest": {"_type": "Value"}, "checked_files": {"_type": "Value"}, "results": {"_type": "Value"}}, "splits": {"validation":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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
onescience_manifest_version: "0.1"
|
| 2 |
+
resource_type: dataset
|
| 3 |
+
resource:
|
| 4 |
+
id: OneScience/cfd_benchmark
|
| 5 |
+
name: cfd_benchmark
|
| 6 |
+
domain: cfd
|
| 7 |
+
domain_tags:
|
| 8 |
+
- cfd
|
| 9 |
+
- neural_pde_solver
|
| 10 |
+
- benchmark
|
| 11 |
+
task: cfd_operator_learning_dataset
|
| 12 |
+
task_tags:
|
| 13 |
+
- flow_field_prediction
|
| 14 |
+
- pde_operator_learning
|
| 15 |
+
- data_reading_validation
|
| 16 |
+
modalities:
|
| 17 |
+
- gridded_field
|
| 18 |
+
- unstructured_mesh
|
| 19 |
+
input_formats:
|
| 20 |
+
- npy
|
| 21 |
+
- mat
|
| 22 |
+
output_formats: []
|
| 23 |
+
summary: CFD_Benchmark 数据集的 ModelScope 标准数据包,本次包含 airfoil、darcy、elasticity、ns、pipe、plas 六个子集。
|
| 24 |
+
|
| 25 |
+
platform_resource:
|
| 26 |
+
primary:
|
| 27 |
+
platform: modelscope
|
| 28 |
+
repo_id: OneScience/cfd_benchmark
|
| 29 |
+
repo_type: dataset
|
| 30 |
+
url: https://modelscope.cn/datasets/OneScience/cfd_benchmark
|
| 31 |
+
revision: main
|
| 32 |
+
readme_path: README.md
|
| 33 |
+
manifest_path: manifest.yaml
|
| 34 |
+
mirrors: []
|
| 35 |
+
access:
|
| 36 |
+
visibility: public
|
| 37 |
+
license: null
|
| 38 |
+
|
| 39 |
+
website_integration:
|
| 40 |
+
enabled: true
|
| 41 |
+
click_target:
|
| 42 |
+
platform: modelscope
|
| 43 |
+
resource_url: https://modelscope.cn/datasets/OneScience/cfd_benchmark
|
| 44 |
+
llm_handoff:
|
| 45 |
+
readme_required: true
|
| 46 |
+
manifest_required: true
|
| 47 |
+
download_readme_first: true
|
| 48 |
+
resolve_related_models: true
|
| 49 |
+
default_run_goal: minimal_validation
|
| 50 |
+
|
| 51 |
+
runtime:
|
| 52 |
+
enabled: true
|
| 53 |
+
onescience_domain: cfd
|
| 54 |
+
min_onescience_version: null
|
| 55 |
+
supported_execution:
|
| 56 |
+
- local
|
| 57 |
+
- local_slurm
|
| 58 |
+
- remote_slurm
|
| 59 |
+
|
| 60 |
+
onescience:
|
| 61 |
+
repo: https://gitee.com/onescience-ai/onescience
|
| 62 |
+
official_links:
|
| 63 |
+
gitee:
|
| 64 |
+
doc: https://gitee.com/onescience-ai/onescience-doc
|
| 65 |
+
onescience: https://gitee.com/onescience-ai/onescience
|
| 66 |
+
skills: https://gitee.com/onescience-ai/oneskills
|
| 67 |
+
github:
|
| 68 |
+
doc: https://github.com/onescience-ai/OneScience-doc
|
| 69 |
+
onescience: https://github.com/onescience-ai/OneScience
|
| 70 |
+
skills: https://github.com/onescience-ai/oneskills
|
| 71 |
+
install:
|
| 72 |
+
required_by_default: false
|
| 73 |
+
command: source ~/env.sh && bash install.sh cfd
|
| 74 |
+
source_paths: []
|
| 75 |
+
compatibility:
|
| 76 |
+
examples_path: examples/cfd/CFD_Benchmark
|
| 77 |
+
status: examples_compatible
|
| 78 |
+
|
| 79 |
+
runtime_package:
|
| 80 |
+
kind: standard_runtime_package
|
| 81 |
+
package_root: .
|
| 82 |
+
standard_layout:
|
| 83 |
+
workdir: .
|
| 84 |
+
config_dir: metadata
|
| 85 |
+
checkpoint_dir: null
|
| 86 |
+
data_dir: data
|
| 87 |
+
output_dir: reports
|
| 88 |
+
apply_policy:
|
| 89 |
+
mode: direct_use
|
| 90 |
+
target: session_workdir
|
| 91 |
+
overwrite: true
|
| 92 |
+
protect_installed_onescience: true
|
| 93 |
+
entry_files:
|
| 94 |
+
- metadata/file_manifest.csv
|
| 95 |
+
- metadata/schema.yaml
|
| 96 |
+
- scripts/validate_dataset.py
|
| 97 |
+
entrypoints:
|
| 98 |
+
preflight: scripts/validate_dataset.py
|
| 99 |
+
inference: null
|
| 100 |
+
train: null
|
| 101 |
+
finetune: null
|
| 102 |
+
evaluate: null
|
| 103 |
+
visualize: null
|
| 104 |
+
deploy: null
|
| 105 |
+
|
| 106 |
+
files:
|
| 107 |
+
model_files: []
|
| 108 |
+
dataset_files:
|
| 109 |
+
- id: cfd_benchmark_data
|
| 110 |
+
path: data/
|
| 111 |
+
role: train_data
|
| 112 |
+
description_zh: 本次整理的 CFD_Benchmark 六个子集数据目录,包含 airfoil、darcy、elasticity、ns、pipe、plas。
|
| 113 |
+
required: true
|
| 114 |
+
required_for:
|
| 115 |
+
- train
|
| 116 |
+
- evaluate
|
| 117 |
+
- preflight
|
| 118 |
+
format: npy_mat
|
| 119 |
+
source:
|
| 120 |
+
platform: modelscope
|
| 121 |
+
repo_id: OneScience/cfd_benchmark
|
| 122 |
+
repo_type: dataset
|
| 123 |
+
path: data/
|
| 124 |
+
revision: main
|
| 125 |
+
download_method: command_ref
|
| 126 |
+
command_ref: commands.download.download_dataset
|
| 127 |
+
local_path: session_workdir/cfd_cfd_benchmark_data/data/
|
| 128 |
+
size: "约 8.2G"
|
| 129 |
+
checksum: metadata/file_manifest.csv
|
| 130 |
+
large_file: true
|
| 131 |
+
- id: file_manifest
|
| 132 |
+
path: metadata/file_manifest.csv
|
| 133 |
+
role: checksum_manifest
|
| 134 |
+
description_zh: 整理后每个数据文件的相对路径、字节数和 SHA256。
|
| 135 |
+
required: true
|
| 136 |
+
required_for:
|
| 137 |
+
- preflight
|
| 138 |
+
format: csv
|
| 139 |
+
source:
|
| 140 |
+
platform: modelscope
|
| 141 |
+
repo_id: OneScience/cfd_benchmark
|
| 142 |
+
repo_type: dataset
|
| 143 |
+
path: metadata/file_manifest.csv
|
| 144 |
+
revision: main
|
| 145 |
+
download_method: command_ref
|
| 146 |
+
command_ref: commands.download.download_dataset
|
| 147 |
+
local_path: session_workdir/cfd_cfd_benchmark_data/metadata/file_manifest.csv
|
| 148 |
+
size: null
|
| 149 |
+
checksum: null
|
| 150 |
+
large_file: false
|
| 151 |
+
config_files:
|
| 152 |
+
- id: schema
|
| 153 |
+
path: metadata/schema.yaml
|
| 154 |
+
role: schema
|
| 155 |
+
description_zh: 记录 npy shape/dtype 和 MATLAB 文件变量结构。
|
| 156 |
+
required: true
|
| 157 |
+
required_for:
|
| 158 |
+
- preflight
|
| 159 |
+
- train
|
| 160 |
+
- evaluate
|
| 161 |
+
format: yaml
|
| 162 |
+
source:
|
| 163 |
+
platform: modelscope
|
| 164 |
+
repo_id: OneScience/cfd_benchmark
|
| 165 |
+
repo_type: dataset
|
| 166 |
+
path: metadata/schema.yaml
|
| 167 |
+
revision: main
|
| 168 |
+
download_method: command_ref
|
| 169 |
+
command_ref: commands.download.download_dataset
|
| 170 |
+
local_path: session_workdir/cfd_cfd_benchmark_data/metadata/schema.yaml
|
| 171 |
+
checksum: null
|
| 172 |
+
large_file: false
|
| 173 |
+
sample_files: []
|
| 174 |
+
|
| 175 |
+
dataset:
|
| 176 |
+
format:
|
| 177 |
+
- npy
|
| 178 |
+
- matlab_v5_mat
|
| 179 |
+
sample_unit: 不同子集的一个样本定义不同,airfoil/pipe 为一个几何流场样本,darcy/ns/plas 为一个 PDE 系数或时间序列样本,elasticity 为一个随机单元结构样本。
|
| 180 |
+
schema:
|
| 181 |
+
path: metadata/schema.yaml
|
| 182 |
+
checksum_manifest:
|
| 183 |
+
path: metadata/file_manifest.csv
|
| 184 |
+
splits:
|
| 185 |
+
train: 由 CFD_Benchmark 运行脚本通过 ntrain 或 train_ratio 切分。
|
| 186 |
+
validation: null
|
| 187 |
+
test: 由 CFD_Benchmark 运行脚本通过 ntest 或 train_ratio 切分。
|
| 188 |
+
|
| 189 |
+
relations:
|
| 190 |
+
required_datasets: []
|
| 191 |
+
optional_datasets: []
|
| 192 |
+
compatible_models:
|
| 193 |
+
- id: OneScience/CFD_Benchmark
|
| 194 |
+
role: train_data
|
| 195 |
+
required_for:
|
| 196 |
+
- train
|
| 197 |
+
- evaluate
|
| 198 |
+
- preflight
|
| 199 |
+
resource_ref:
|
| 200 |
+
platform: modelscope
|
| 201 |
+
repo_id: OneScience/CFD_Benchmark
|
| 202 |
+
repo_type: model
|
| 203 |
+
url: https://modelscope.cn/models/OneScience/CFD_Benchmark
|
| 204 |
+
revision: main
|
| 205 |
+
readme_path: README.md
|
| 206 |
+
manifest_path: manifest.yaml
|
| 207 |
+
expected_local_path: ../cfd_cfd_benchmark_data/data
|
| 208 |
+
adapter: scripts/standard_train_airfoil_transolver.sh
|
| 209 |
+
|
| 210 |
+
run_matrix:
|
| 211 |
+
scenarios:
|
| 212 |
+
- name: minimal_validation
|
| 213 |
+
capability: preflight
|
| 214 |
+
default: true
|
| 215 |
+
required_datasets:
|
| 216 |
+
- id: OneScience/cfd_benchmark
|
| 217 |
+
role: train_data
|
| 218 |
+
local_path: data/
|
| 219 |
+
required_model_files: []
|
| 220 |
+
command_refs:
|
| 221 |
+
- commands.preflight.validate_dataset
|
| 222 |
+
expected_outputs:
|
| 223 |
+
- reports/dataset_validation.json
|
| 224 |
+
prerequisites:
|
| 225 |
+
- 已下载数据集 OneScience/cfd_benchmark。
|
| 226 |
+
- name: cfd_benchmark_model_train
|
| 227 |
+
capability: train
|
| 228 |
+
required_datasets:
|
| 229 |
+
- id: OneScience/cfd_benchmark
|
| 230 |
+
role: train_data
|
| 231 |
+
local_path: data/
|
| 232 |
+
required_model_files:
|
| 233 |
+
- OneScience/CFD_Benchmark runtime/
|
| 234 |
+
command_refs:
|
| 235 |
+
- commands.preflight.validate_dataset
|
| 236 |
+
expected_outputs:
|
| 237 |
+
- reports/dataset_validation.json
|
| 238 |
+
prerequisites:
|
| 239 |
+
- 下载并进入模型仓库 OneScience/CFD_Benchmark。
|
| 240 |
+
|
| 241 |
+
capabilities:
|
| 242 |
+
inference: false
|
| 243 |
+
train: false
|
| 244 |
+
finetune: false
|
| 245 |
+
evaluate: false
|
| 246 |
+
visualize: false
|
| 247 |
+
deploy: false
|
| 248 |
+
data_reading_validation: true
|
| 249 |
+
|
| 250 |
+
commands:
|
| 251 |
+
download:
|
| 252 |
+
- name: download_dataset
|
| 253 |
+
description: 下载 CFD_Benchmark 数据集标准包。
|
| 254 |
+
cwd: .
|
| 255 |
+
command: modelscope download --dataset OneScience/cfd_benchmark --local_dir ./cfd_cfd_benchmark_data
|
| 256 |
+
required_files: []
|
| 257 |
+
required_env:
|
| 258 |
+
- MODELSCOPE_TOKEN
|
| 259 |
+
expected_outputs:
|
| 260 |
+
- path: cfd_cfd_benchmark_data/manifest.yaml
|
| 261 |
+
type: file
|
| 262 |
+
- path: cfd_cfd_benchmark_data/data/
|
| 263 |
+
type: directory
|
| 264 |
+
success_criteria:
|
| 265 |
+
- exit_code == 0
|
| 266 |
+
preflight:
|
| 267 |
+
- name: validate_dataset
|
| 268 |
+
description: 校验 14 个数据文件的存在性、大小、SHA256、npy shape/dtype 和 mat 变量结构。
|
| 269 |
+
cwd: .
|
| 270 |
+
command: source ~/env.sh && python scripts/validate_dataset.py --data-root data --file-manifest metadata/file_manifest.csv
|
| 271 |
+
required_files:
|
| 272 |
+
- scripts/validate_dataset.py
|
| 273 |
+
- metadata/file_manifest.csv
|
| 274 |
+
- data/
|
| 275 |
+
required_env:
|
| 276 |
+
- python
|
| 277 |
+
- numpy
|
| 278 |
+
- scipy
|
| 279 |
+
expected_outputs:
|
| 280 |
+
- path: reports/dataset_validation.json
|
| 281 |
+
type: file
|
| 282 |
+
success_criteria:
|
| 283 |
+
- exit_code == 0
|
| 284 |
+
prepare: []
|
| 285 |
+
inference: []
|
| 286 |
+
train: []
|
| 287 |
+
finetune: []
|
| 288 |
+
evaluate: []
|
| 289 |
+
visualize: []
|
| 290 |
+
deploy: []
|
| 291 |
+
|
| 292 |
+
expected_outputs:
|
| 293 |
+
- path: reports/dataset_validation.json
|
| 294 |
+
type: json
|
| 295 |
+
description_zh: 数据文件完整性和可读性验证报告。
|
| 296 |
+
- path: metadata/file_manifest.csv
|
| 297 |
+
type: csv
|
| 298 |
+
description_zh: 文件名、大小和 SHA256 校验清单。
|
| 299 |
+
- path: metadata/schema.yaml
|
| 300 |
+
type: yaml
|
| 301 |
+
description_zh: 数据结构说明。
|
| 302 |
+
|
| 303 |
+
diagnostics:
|
| 304 |
+
- id: missing_file
|
| 305 |
+
symptom: validate_dataset.py 报告 status=missing。
|
| 306 |
+
cause: 数据下载不完整或放置目录错误。
|
| 307 |
+
fix: 重新执行 modelscope download --dataset OneScience/cfd_benchmark --local_dir ./cfd_cfd_benchmark_data。
|
| 308 |
+
- id: sha256_mismatch
|
| 309 |
+
symptom: validate_dataset.py 报告 status=sha256_mismatch。
|
| 310 |
+
cause: 文件损坏、复制中断或上传下载过程中内容变化。
|
| 311 |
+
fix: 删除对应文件后重新下载数据集,或用 metadata/source_file_manifest.csv 与源目录重新比对。
|
| 312 |
+
- id: scipy_missing
|
| 313 |
+
symptom: MATLAB 文件只完成 header_only 检查。
|
| 314 |
+
cause: 当前 Python 环境缺少 scipy。
|
| 315 |
+
fix: source ~/env.sh 后重跑验证;当前标准化过程中已用 scipy 生成 metadata/schema.yaml。
|
| 316 |
+
|
| 317 |
+
domain_extension:
|
| 318 |
+
cfd:
|
| 319 |
+
benchmark_name: CFD_Benchmark
|
| 320 |
+
included_subsets:
|
| 321 |
+
airfoil:
|
| 322 |
+
files:
|
| 323 |
+
- NACA_Cylinder_X.npy
|
| 324 |
+
- NACA_Cylinder_Y.npy
|
| 325 |
+
- NACA_Cylinder_Q.npy
|
| 326 |
+
darcy:
|
| 327 |
+
files:
|
| 328 |
+
- piececonst_r421_N1024_smooth1.mat
|
| 329 |
+
- piececonst_r421_N1024_smooth2.mat
|
| 330 |
+
elasticity:
|
| 331 |
+
files:
|
| 332 |
+
- Meshes/Random_UnitCell_XY_10.npy
|
| 333 |
+
- Meshes/Random_UnitCell_rr_10.npy
|
| 334 |
+
- Meshes/Random_UnitCell_sigma_10.npy
|
| 335 |
+
- Meshes/Random_UnitCell_theta_10.npy
|
| 336 |
+
ns:
|
| 337 |
+
files:
|
| 338 |
+
- NavierStokes_V1e-5_N1200_T20.mat
|
| 339 |
+
pipe:
|
| 340 |
+
files:
|
| 341 |
+
- Pipe_X.npy
|
| 342 |
+
- Pipe_Y.npy
|
| 343 |
+
- Pipe_Q.npy
|
| 344 |
+
plas:
|
| 345 |
+
files:
|
| 346 |
+
- plas_N987_T20.mat
|
| 347 |
+
skipped_source_subsets:
|
| 348 |
+
- car
|
| 349 |
+
- diffusion_sorption
|
metadata/file_manifest.csv
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
rel_path,size,sha256
|
| 2 |
+
airfoil/NACA_Cylinder_Q.npy,1122591728,f79dfdaa3be95a5183981531e59b5a372cf3dd69986109f45426b3eb5410c58c
|
| 3 |
+
airfoil/NACA_Cylinder_X.npy,224518448,23902420694ba8552e427480aa6b26c08ea4e7e0b2454ee83cd9e1d29060f35f
|
| 4 |
+
airfoil/NACA_Cylinder_Y.npy,224518448,710c77e42c3fe49edcfc951b59693511e12f5491f9dcb77a506f395178481155
|
| 5 |
+
darcy/piececonst_r421_N1024_smooth1.mat,1692307453,c8b1fd73a8bae85aa48afeb1fabd01204a03debe8e208524b72f615e13d2f664
|
| 6 |
+
darcy/piececonst_r421_N1024_smooth2.mat,1692748750,c6522cf6cb3a8c4818268b2b07464a85e55ecd7206a23b4b1ac435bfae2e3eb5
|
| 7 |
+
elasticity/Meshes/Random_UnitCell_XY_10.npy,31104080,29c615b7c8b0ef94252e4def4cd9999653b8759104619eb728b91a1cac5b665f
|
| 8 |
+
elasticity/Meshes/Random_UnitCell_rr_10.npy,672080,70dc9fae27e8f361c09b5f43d004d50b30bbdf9c8d62227fd001321c61573f78
|
| 9 |
+
elasticity/Meshes/Random_UnitCell_sigma_10.npy,15552080,eb8102b580001bab80ee99bfc33289f727491e1d8edab2a4a94abc37a348fa1a
|
| 10 |
+
elasticity/Meshes/Random_UnitCell_theta_10.npy,160080,3315da70a33a86757e4799fd92630fcb767193c2a4406b3f45cc6f19b00d56ac
|
| 11 |
+
ns/NavierStokes_V1e-5_N1200_T20.mat,412877192,b4995d0180ec15f06878e17527fd3e08a8f504bbc059ee025caffad11a9a82c0
|
| 12 |
+
pipe/Pipe_Q.npy,922577168,d1ed4458cfb47e490b3b2487deceb36e516449eca2566d22ef6e8b31492ae223
|
| 13 |
+
pipe/Pipe_X.npy,307525808,2ef591a0e3d69a54705a89fc656042bfe2a36abd387de5f24afeebd747527b6b
|
| 14 |
+
pipe/Pipe_Y.npy,307525808,2d140fb1293bb9f87aaf41424ec857e0e89b7925efbf50382f825602473c3ccb
|
| 15 |
+
plas/plas_N987_T20.mat,1613335719,b58681e7777531b34889da46b506d2f18845c5d7b194859394dfd958cf28178f
|
metadata/schema.json
ADDED
|
@@ -0,0 +1,272 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"dataset": "CFD_Benchmark",
|
| 3 |
+
"subsets": [
|
| 4 |
+
"airfoil",
|
| 5 |
+
"darcy",
|
| 6 |
+
"elasticity",
|
| 7 |
+
"ns",
|
| 8 |
+
"pipe",
|
| 9 |
+
"plas"
|
| 10 |
+
],
|
| 11 |
+
"files": [
|
| 12 |
+
{
|
| 13 |
+
"path": "airfoil/NACA_Cylinder_Q.npy",
|
| 14 |
+
"format": "npy",
|
| 15 |
+
"shape": [
|
| 16 |
+
2490,
|
| 17 |
+
5,
|
| 18 |
+
221,
|
| 19 |
+
51
|
| 20 |
+
],
|
| 21 |
+
"dtype": "float64"
|
| 22 |
+
},
|
| 23 |
+
{
|
| 24 |
+
"path": "airfoil/NACA_Cylinder_X.npy",
|
| 25 |
+
"format": "npy",
|
| 26 |
+
"shape": [
|
| 27 |
+
2490,
|
| 28 |
+
221,
|
| 29 |
+
51
|
| 30 |
+
],
|
| 31 |
+
"dtype": "float64"
|
| 32 |
+
},
|
| 33 |
+
{
|
| 34 |
+
"path": "airfoil/NACA_Cylinder_Y.npy",
|
| 35 |
+
"format": "npy",
|
| 36 |
+
"shape": [
|
| 37 |
+
2490,
|
| 38 |
+
221,
|
| 39 |
+
51
|
| 40 |
+
],
|
| 41 |
+
"dtype": "float64"
|
| 42 |
+
},
|
| 43 |
+
{
|
| 44 |
+
"path": "darcy/piececonst_r421_N1024_smooth1.mat",
|
| 45 |
+
"format": "matlab_v5",
|
| 46 |
+
"variables": [
|
| 47 |
+
{
|
| 48 |
+
"name": "Kcoeff",
|
| 49 |
+
"shape": [
|
| 50 |
+
1024,
|
| 51 |
+
421,
|
| 52 |
+
421
|
| 53 |
+
],
|
| 54 |
+
"dtype": "double"
|
| 55 |
+
},
|
| 56 |
+
{
|
| 57 |
+
"name": "Kcoeff_x",
|
| 58 |
+
"shape": [
|
| 59 |
+
1024,
|
| 60 |
+
421,
|
| 61 |
+
421
|
| 62 |
+
],
|
| 63 |
+
"dtype": "double"
|
| 64 |
+
},
|
| 65 |
+
{
|
| 66 |
+
"name": "Kcoeff_y",
|
| 67 |
+
"shape": [
|
| 68 |
+
1024,
|
| 69 |
+
421,
|
| 70 |
+
421
|
| 71 |
+
],
|
| 72 |
+
"dtype": "double"
|
| 73 |
+
},
|
| 74 |
+
{
|
| 75 |
+
"name": "coeff",
|
| 76 |
+
"shape": [
|
| 77 |
+
1024,
|
| 78 |
+
421,
|
| 79 |
+
421
|
| 80 |
+
],
|
| 81 |
+
"dtype": "double"
|
| 82 |
+
},
|
| 83 |
+
{
|
| 84 |
+
"name": "sol",
|
| 85 |
+
"shape": [
|
| 86 |
+
1024,
|
| 87 |
+
421,
|
| 88 |
+
421
|
| 89 |
+
],
|
| 90 |
+
"dtype": "double"
|
| 91 |
+
}
|
| 92 |
+
]
|
| 93 |
+
},
|
| 94 |
+
{
|
| 95 |
+
"path": "darcy/piececonst_r421_N1024_smooth2.mat",
|
| 96 |
+
"format": "matlab_v5",
|
| 97 |
+
"variables": [
|
| 98 |
+
{
|
| 99 |
+
"name": "Kcoeff",
|
| 100 |
+
"shape": [
|
| 101 |
+
1024,
|
| 102 |
+
421,
|
| 103 |
+
421
|
| 104 |
+
],
|
| 105 |
+
"dtype": "double"
|
| 106 |
+
},
|
| 107 |
+
{
|
| 108 |
+
"name": "Kcoeff_x",
|
| 109 |
+
"shape": [
|
| 110 |
+
1024,
|
| 111 |
+
421,
|
| 112 |
+
421
|
| 113 |
+
],
|
| 114 |
+
"dtype": "double"
|
| 115 |
+
},
|
| 116 |
+
{
|
| 117 |
+
"name": "Kcoeff_y",
|
| 118 |
+
"shape": [
|
| 119 |
+
1024,
|
| 120 |
+
421,
|
| 121 |
+
421
|
| 122 |
+
],
|
| 123 |
+
"dtype": "double"
|
| 124 |
+
},
|
| 125 |
+
{
|
| 126 |
+
"name": "coeff",
|
| 127 |
+
"shape": [
|
| 128 |
+
1024,
|
| 129 |
+
421,
|
| 130 |
+
421
|
| 131 |
+
],
|
| 132 |
+
"dtype": "double"
|
| 133 |
+
},
|
| 134 |
+
{
|
| 135 |
+
"name": "sol",
|
| 136 |
+
"shape": [
|
| 137 |
+
1024,
|
| 138 |
+
421,
|
| 139 |
+
421
|
| 140 |
+
],
|
| 141 |
+
"dtype": "double"
|
| 142 |
+
}
|
| 143 |
+
]
|
| 144 |
+
},
|
| 145 |
+
{
|
| 146 |
+
"path": "elasticity/Meshes/Random_UnitCell_XY_10.npy",
|
| 147 |
+
"format": "npy",
|
| 148 |
+
"shape": [
|
| 149 |
+
972,
|
| 150 |
+
2,
|
| 151 |
+
2000
|
| 152 |
+
],
|
| 153 |
+
"dtype": "float64"
|
| 154 |
+
},
|
| 155 |
+
{
|
| 156 |
+
"path": "elasticity/Meshes/Random_UnitCell_rr_10.npy",
|
| 157 |
+
"format": "npy",
|
| 158 |
+
"shape": [
|
| 159 |
+
42,
|
| 160 |
+
2000
|
| 161 |
+
],
|
| 162 |
+
"dtype": "float64"
|
| 163 |
+
},
|
| 164 |
+
{
|
| 165 |
+
"path": "elasticity/Meshes/Random_UnitCell_sigma_10.npy",
|
| 166 |
+
"format": "npy",
|
| 167 |
+
"shape": [
|
| 168 |
+
972,
|
| 169 |
+
2000
|
| 170 |
+
],
|
| 171 |
+
"dtype": "float64"
|
| 172 |
+
},
|
| 173 |
+
{
|
| 174 |
+
"path": "elasticity/Meshes/Random_UnitCell_theta_10.npy",
|
| 175 |
+
"format": "npy",
|
| 176 |
+
"shape": [
|
| 177 |
+
2000,
|
| 178 |
+
10
|
| 179 |
+
],
|
| 180 |
+
"dtype": "float64"
|
| 181 |
+
},
|
| 182 |
+
{
|
| 183 |
+
"path": "ns/NavierStokes_V1e-5_N1200_T20.mat",
|
| 184 |
+
"format": "matlab_v5",
|
| 185 |
+
"variables": [
|
| 186 |
+
{
|
| 187 |
+
"name": "a",
|
| 188 |
+
"shape": [
|
| 189 |
+
1200,
|
| 190 |
+
64,
|
| 191 |
+
64
|
| 192 |
+
],
|
| 193 |
+
"dtype": "single"
|
| 194 |
+
},
|
| 195 |
+
{
|
| 196 |
+
"name": "u",
|
| 197 |
+
"shape": [
|
| 198 |
+
1200,
|
| 199 |
+
64,
|
| 200 |
+
64,
|
| 201 |
+
20
|
| 202 |
+
],
|
| 203 |
+
"dtype": "single"
|
| 204 |
+
},
|
| 205 |
+
{
|
| 206 |
+
"name": "t",
|
| 207 |
+
"shape": [
|
| 208 |
+
1,
|
| 209 |
+
20
|
| 210 |
+
],
|
| 211 |
+
"dtype": "single"
|
| 212 |
+
}
|
| 213 |
+
]
|
| 214 |
+
},
|
| 215 |
+
{
|
| 216 |
+
"path": "pipe/Pipe_Q.npy",
|
| 217 |
+
"format": "npy",
|
| 218 |
+
"shape": [
|
| 219 |
+
2310,
|
| 220 |
+
3,
|
| 221 |
+
129,
|
| 222 |
+
129
|
| 223 |
+
],
|
| 224 |
+
"dtype": "float64"
|
| 225 |
+
},
|
| 226 |
+
{
|
| 227 |
+
"path": "pipe/Pipe_X.npy",
|
| 228 |
+
"format": "npy",
|
| 229 |
+
"shape": [
|
| 230 |
+
2310,
|
| 231 |
+
129,
|
| 232 |
+
129
|
| 233 |
+
],
|
| 234 |
+
"dtype": "float64"
|
| 235 |
+
},
|
| 236 |
+
{
|
| 237 |
+
"path": "pipe/Pipe_Y.npy",
|
| 238 |
+
"format": "npy",
|
| 239 |
+
"shape": [
|
| 240 |
+
2310,
|
| 241 |
+
129,
|
| 242 |
+
129
|
| 243 |
+
],
|
| 244 |
+
"dtype": "float64"
|
| 245 |
+
},
|
| 246 |
+
{
|
| 247 |
+
"path": "plas/plas_N987_T20.mat",
|
| 248 |
+
"format": "matlab_v5",
|
| 249 |
+
"variables": [
|
| 250 |
+
{
|
| 251 |
+
"name": "input",
|
| 252 |
+
"shape": [
|
| 253 |
+
987,
|
| 254 |
+
101
|
| 255 |
+
],
|
| 256 |
+
"dtype": "double"
|
| 257 |
+
},
|
| 258 |
+
{
|
| 259 |
+
"name": "output",
|
| 260 |
+
"shape": [
|
| 261 |
+
987,
|
| 262 |
+
101,
|
| 263 |
+
31,
|
| 264 |
+
20,
|
| 265 |
+
4
|
| 266 |
+
],
|
| 267 |
+
"dtype": "double"
|
| 268 |
+
}
|
| 269 |
+
]
|
| 270 |
+
}
|
| 271 |
+
]
|
| 272 |
+
}
|
metadata/schema.yaml
ADDED
|
@@ -0,0 +1,181 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
dataset: CFD_Benchmark
|
| 2 |
+
subsets:
|
| 3 |
+
- airfoil
|
| 4 |
+
- darcy
|
| 5 |
+
- elasticity
|
| 6 |
+
- ns
|
| 7 |
+
- pipe
|
| 8 |
+
- plas
|
| 9 |
+
files:
|
| 10 |
+
- path: airfoil/NACA_Cylinder_Q.npy
|
| 11 |
+
format: npy
|
| 12 |
+
shape:
|
| 13 |
+
- 2490
|
| 14 |
+
- 5
|
| 15 |
+
- 221
|
| 16 |
+
- 51
|
| 17 |
+
dtype: float64
|
| 18 |
+
- path: airfoil/NACA_Cylinder_X.npy
|
| 19 |
+
format: npy
|
| 20 |
+
shape:
|
| 21 |
+
- 2490
|
| 22 |
+
- 221
|
| 23 |
+
- 51
|
| 24 |
+
dtype: float64
|
| 25 |
+
- path: airfoil/NACA_Cylinder_Y.npy
|
| 26 |
+
format: npy
|
| 27 |
+
shape:
|
| 28 |
+
- 2490
|
| 29 |
+
- 221
|
| 30 |
+
- 51
|
| 31 |
+
dtype: float64
|
| 32 |
+
- path: darcy/piececonst_r421_N1024_smooth1.mat
|
| 33 |
+
format: matlab_v5
|
| 34 |
+
variables:
|
| 35 |
+
- name: Kcoeff
|
| 36 |
+
shape:
|
| 37 |
+
- 1024
|
| 38 |
+
- 421
|
| 39 |
+
- 421
|
| 40 |
+
dtype: double
|
| 41 |
+
- name: Kcoeff_x
|
| 42 |
+
shape:
|
| 43 |
+
- 1024
|
| 44 |
+
- 421
|
| 45 |
+
- 421
|
| 46 |
+
dtype: double
|
| 47 |
+
- name: Kcoeff_y
|
| 48 |
+
shape:
|
| 49 |
+
- 1024
|
| 50 |
+
- 421
|
| 51 |
+
- 421
|
| 52 |
+
dtype: double
|
| 53 |
+
- name: coeff
|
| 54 |
+
shape:
|
| 55 |
+
- 1024
|
| 56 |
+
- 421
|
| 57 |
+
- 421
|
| 58 |
+
dtype: double
|
| 59 |
+
- name: sol
|
| 60 |
+
shape:
|
| 61 |
+
- 1024
|
| 62 |
+
- 421
|
| 63 |
+
- 421
|
| 64 |
+
dtype: double
|
| 65 |
+
- path: darcy/piececonst_r421_N1024_smooth2.mat
|
| 66 |
+
format: matlab_v5
|
| 67 |
+
variables:
|
| 68 |
+
- name: Kcoeff
|
| 69 |
+
shape:
|
| 70 |
+
- 1024
|
| 71 |
+
- 421
|
| 72 |
+
- 421
|
| 73 |
+
dtype: double
|
| 74 |
+
- name: Kcoeff_x
|
| 75 |
+
shape:
|
| 76 |
+
- 1024
|
| 77 |
+
- 421
|
| 78 |
+
- 421
|
| 79 |
+
dtype: double
|
| 80 |
+
- name: Kcoeff_y
|
| 81 |
+
shape:
|
| 82 |
+
- 1024
|
| 83 |
+
- 421
|
| 84 |
+
- 421
|
| 85 |
+
dtype: double
|
| 86 |
+
- name: coeff
|
| 87 |
+
shape:
|
| 88 |
+
- 1024
|
| 89 |
+
- 421
|
| 90 |
+
- 421
|
| 91 |
+
dtype: double
|
| 92 |
+
- name: sol
|
| 93 |
+
shape:
|
| 94 |
+
- 1024
|
| 95 |
+
- 421
|
| 96 |
+
- 421
|
| 97 |
+
dtype: double
|
| 98 |
+
- path: elasticity/Meshes/Random_UnitCell_XY_10.npy
|
| 99 |
+
format: npy
|
| 100 |
+
shape:
|
| 101 |
+
- 972
|
| 102 |
+
- 2
|
| 103 |
+
- 2000
|
| 104 |
+
dtype: float64
|
| 105 |
+
- path: elasticity/Meshes/Random_UnitCell_rr_10.npy
|
| 106 |
+
format: npy
|
| 107 |
+
shape:
|
| 108 |
+
- 42
|
| 109 |
+
- 2000
|
| 110 |
+
dtype: float64
|
| 111 |
+
- path: elasticity/Meshes/Random_UnitCell_sigma_10.npy
|
| 112 |
+
format: npy
|
| 113 |
+
shape:
|
| 114 |
+
- 972
|
| 115 |
+
- 2000
|
| 116 |
+
dtype: float64
|
| 117 |
+
- path: elasticity/Meshes/Random_UnitCell_theta_10.npy
|
| 118 |
+
format: npy
|
| 119 |
+
shape:
|
| 120 |
+
- 2000
|
| 121 |
+
- 10
|
| 122 |
+
dtype: float64
|
| 123 |
+
- path: ns/NavierStokes_V1e-5_N1200_T20.mat
|
| 124 |
+
format: matlab_v5
|
| 125 |
+
variables:
|
| 126 |
+
- name: a
|
| 127 |
+
shape:
|
| 128 |
+
- 1200
|
| 129 |
+
- 64
|
| 130 |
+
- 64
|
| 131 |
+
dtype: single
|
| 132 |
+
- name: u
|
| 133 |
+
shape:
|
| 134 |
+
- 1200
|
| 135 |
+
- 64
|
| 136 |
+
- 64
|
| 137 |
+
- 20
|
| 138 |
+
dtype: single
|
| 139 |
+
- name: t
|
| 140 |
+
shape:
|
| 141 |
+
- 1
|
| 142 |
+
- 20
|
| 143 |
+
dtype: single
|
| 144 |
+
- path: pipe/Pipe_Q.npy
|
| 145 |
+
format: npy
|
| 146 |
+
shape:
|
| 147 |
+
- 2310
|
| 148 |
+
- 3
|
| 149 |
+
- 129
|
| 150 |
+
- 129
|
| 151 |
+
dtype: float64
|
| 152 |
+
- path: pipe/Pipe_X.npy
|
| 153 |
+
format: npy
|
| 154 |
+
shape:
|
| 155 |
+
- 2310
|
| 156 |
+
- 129
|
| 157 |
+
- 129
|
| 158 |
+
dtype: float64
|
| 159 |
+
- path: pipe/Pipe_Y.npy
|
| 160 |
+
format: npy
|
| 161 |
+
shape:
|
| 162 |
+
- 2310
|
| 163 |
+
- 129
|
| 164 |
+
- 129
|
| 165 |
+
dtype: float64
|
| 166 |
+
- path: plas/plas_N987_T20.mat
|
| 167 |
+
format: matlab_v5
|
| 168 |
+
variables:
|
| 169 |
+
- name: input
|
| 170 |
+
shape:
|
| 171 |
+
- 987
|
| 172 |
+
- 101
|
| 173 |
+
dtype: double
|
| 174 |
+
- name: output
|
| 175 |
+
shape:
|
| 176 |
+
- 987
|
| 177 |
+
- 101
|
| 178 |
+
- 31
|
| 179 |
+
- 20
|
| 180 |
+
- 4
|
| 181 |
+
dtype: double
|
metadata/source_file_manifest.csv
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
rel_path,size,sha256
|
| 2 |
+
airfoil/NACA_Cylinder_Q.npy,1122591728,f79dfdaa3be95a5183981531e59b5a372cf3dd69986109f45426b3eb5410c58c
|
| 3 |
+
airfoil/NACA_Cylinder_X.npy,224518448,23902420694ba8552e427480aa6b26c08ea4e7e0b2454ee83cd9e1d29060f35f
|
| 4 |
+
airfoil/NACA_Cylinder_Y.npy,224518448,710c77e42c3fe49edcfc951b59693511e12f5491f9dcb77a506f395178481155
|
| 5 |
+
darcy/piececonst_r421_N1024_smooth1.mat,1692307453,c8b1fd73a8bae85aa48afeb1fabd01204a03debe8e208524b72f615e13d2f664
|
| 6 |
+
darcy/piececonst_r421_N1024_smooth2.mat,1692748750,c6522cf6cb3a8c4818268b2b07464a85e55ecd7206a23b4b1ac435bfae2e3eb5
|
| 7 |
+
elasticity/Meshes/Random_UnitCell_XY_10.npy,31104080,29c615b7c8b0ef94252e4def4cd9999653b8759104619eb728b91a1cac5b665f
|
| 8 |
+
elasticity/Meshes/Random_UnitCell_rr_10.npy,672080,70dc9fae27e8f361c09b5f43d004d50b30bbdf9c8d62227fd001321c61573f78
|
| 9 |
+
elasticity/Meshes/Random_UnitCell_sigma_10.npy,15552080,eb8102b580001bab80ee99bfc33289f727491e1d8edab2a4a94abc37a348fa1a
|
| 10 |
+
elasticity/Meshes/Random_UnitCell_theta_10.npy,160080,3315da70a33a86757e4799fd92630fcb767193c2a4406b3f45cc6f19b00d56ac
|
| 11 |
+
ns/NavierStokes_V1e-5_N1200_T20.mat,412877192,b4995d0180ec15f06878e17527fd3e08a8f504bbc059ee025caffad11a9a82c0
|
| 12 |
+
pipe/Pipe_Q.npy,922577168,d1ed4458cfb47e490b3b2487deceb36e516449eca2566d22ef6e8b31492ae223
|
| 13 |
+
pipe/Pipe_X.npy,307525808,2ef591a0e3d69a54705a89fc656042bfe2a36abd387de5f24afeebd747527b6b
|
| 14 |
+
pipe/Pipe_Y.npy,307525808,2d140fb1293bb9f87aaf41424ec857e0e89b7925efbf50382f825602473c3ccb
|
| 15 |
+
plas/plas_N987_T20.mat,1613335719,b58681e7777531b34889da46b506d2f18845c5d7b194859394dfd958cf28178f
|
onescience_relations.yaml
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
required_datasets: []
|
| 2 |
+
optional_datasets: []
|
| 3 |
+
compatible_models:
|
| 4 |
+
- id: OneScience/CFD_Benchmark
|
| 5 |
+
role: train_data
|
| 6 |
+
required_for:
|
| 7 |
+
- train
|
| 8 |
+
- evaluate
|
| 9 |
+
- preflight
|
| 10 |
+
resource_ref:
|
| 11 |
+
platform: modelscope
|
| 12 |
+
repo_id: OneScience/CFD_Benchmark
|
| 13 |
+
repo_type: model
|
| 14 |
+
url: https://modelscope.cn/models/OneScience/CFD_Benchmark
|
| 15 |
+
revision: main
|
| 16 |
+
readme_path: README.md
|
| 17 |
+
manifest_path: manif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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
onescience_manifest_version: "0.1"
|
| 2 |
+
resource_type: dataset
|
| 3 |
+
resource:
|
| 4 |
+
id: OneScience/cfd_benchmark
|
| 5 |
+
name: cfd_benchmark
|
| 6 |
+
domain: cfd
|
| 7 |
+
domain_tags:
|
| 8 |
+
- cfd
|
| 9 |
+
- neural_pde_solver
|
| 10 |
+
- benchmark
|
| 11 |
+
task: cfd_operator_learning_dataset
|
| 12 |
+
task_tags:
|
| 13 |
+
- flow_field_prediction
|
| 14 |
+
- pde_operator_learning
|
| 15 |
+
- data_reading_validation
|
| 16 |
+
modalities:
|
| 17 |
+
- gridded_field
|
| 18 |
+
- unstructured_mesh
|
| 19 |
+
input_formats:
|
| 20 |
+
- npy
|
| 21 |
+
- mat
|
| 22 |
+
output_formats: []
|
| 23 |
+
summary: CFD_Benchmark 数据集的 ModelScope 标准数据包,本次包含 airfoil、darcy、elasticity、ns、pipe、plas 六个子集。
|
| 24 |
+
|
| 25 |
+
platform_resource:
|
| 26 |
+
primary:
|
| 27 |
+
platform: modelscope
|
| 28 |
+
repo_id: OneScience/cfd_benchmark
|
| 29 |
+
repo_type: dataset
|
| 30 |
+
url: https://modelscope.cn/datasets/OneScience/cfd_benchmark
|
| 31 |
+
revision: main
|
| 32 |
+
readme_path: README.md
|
| 33 |
+
manifest_path: manifest.yaml
|
| 34 |
+
mirrors: []
|
| 35 |
+
access:
|
| 36 |
+
visibility: public
|
| 37 |
+
license: null
|
| 38 |
+
|
| 39 |
+
website_integration:
|
| 40 |
+
enabled: true
|
| 41 |
+
click_target:
|
| 42 |
+
platform: modelscope
|
| 43 |
+
resource_url: https://modelscope.cn/datasets/OneScience/cfd_benchmark
|
| 44 |
+
llm_handoff:
|
| 45 |
+
readme_required: true
|
| 46 |
+
manifest_required: true
|
| 47 |
+
download_readme_first: true
|
| 48 |
+
resolve_related_models: true
|
| 49 |
+
default_run_goal: minimal_validation
|
| 50 |
+
|
| 51 |
+
runtime:
|
| 52 |
+
enabled: true
|
| 53 |
+
onescience_domain: cfd
|
| 54 |
+
min_onescience_version: null
|
| 55 |
+
supported_execution:
|
| 56 |
+
- local
|
| 57 |
+
- local_slurm
|
| 58 |
+
- remote_slurm
|
| 59 |
+
|
| 60 |
+
onescience:
|
| 61 |
+
repo: https://gitee.com/onescience-ai/onescience
|
| 62 |
+
official_links:
|
| 63 |
+
gitee:
|
| 64 |
+
doc: https://gitee.com/onescience-ai/onescience-doc
|
| 65 |
+
onescience: https://gitee.com/onescience-ai/onescience
|
| 66 |
+
skills: https://gitee.com/onescience-ai/oneskills
|
| 67 |
+
github:
|
| 68 |
+
doc: https://github.com/onescience-ai/OneScience-doc
|
| 69 |
+
onescience: https://github.com/onescience-ai/OneScience
|
| 70 |
+
skills: https://github.com/onescience-ai/oneskills
|
| 71 |
+
install:
|
| 72 |
+
required_by_default: false
|
| 73 |
+
command: source ~/env.sh && bash install.sh cfd
|
| 74 |
+
source_paths: []
|
| 75 |
+
compatibility:
|
| 76 |
+
examples_path: examples/cfd/CFD_Benchmark
|
| 77 |
+
status: examples_compatible
|
| 78 |
+
|
| 79 |
+
runtime_package:
|
| 80 |
+
kind: standard_runtime_package
|
| 81 |
+
package_root: .
|
| 82 |
+
standard_layout:
|
| 83 |
+
workdir: .
|
| 84 |
+
config_dir: metadata
|
| 85 |
+
checkpoint_dir: null
|
| 86 |
+
data_dir: data
|
| 87 |
+
output_dir: reports
|
| 88 |
+
apply_policy:
|
| 89 |
+
mode: direct_use
|
| 90 |
+
target: session_workdir
|
| 91 |
+
overwrite: true
|
| 92 |
+
protect_installed_onescience: true
|
| 93 |
+
entry_files:
|
| 94 |
+
- metadata/file_manifest.csv
|
| 95 |
+
- metadata/schema.yaml
|
| 96 |
+
- scripts/validate_dataset.py
|
| 97 |
+
entrypoints:
|
| 98 |
+
preflight: scripts/validate_dataset.py
|
| 99 |
+
inference: null
|
| 100 |
+
train: null
|
| 101 |
+
finetune: null
|
| 102 |
+
evaluate: null
|
| 103 |
+
visualize: null
|
| 104 |
+
deploy: null
|
| 105 |
+
|
| 106 |
+
files:
|
| 107 |
+
model_files: []
|
| 108 |
+
dataset_files:
|
| 109 |
+
- id: cfd_benchmark_data
|
| 110 |
+
path: data/
|
| 111 |
+
role: train_data
|
| 112 |
+
description_zh: 本次整理的 CFD_Benchmark 六个子集数据目录,包含 airfoil、darcy、elasticity、ns、pipe、plas。
|
| 113 |
+
required: true
|
| 114 |
+
required_for:
|
| 115 |
+
- train
|
| 116 |
+
- evaluate
|
| 117 |
+
- preflight
|
| 118 |
+
format: npy_mat
|
| 119 |
+
source:
|
| 120 |
+
platform: modelscope
|
| 121 |
+
repo_id: OneScience/cfd_benchmark
|
| 122 |
+
repo_type: dataset
|
| 123 |
+
path: data/
|
| 124 |
+
revision: main
|
| 125 |
+
download_method: command_ref
|
| 126 |
+
command_ref: commands.download.download_dataset
|
| 127 |
+
local_path: session_workdir/cfd_cfd_benchmark_data/data/
|
| 128 |
+
size: "约 8.2G"
|
| 129 |
+
checksum: metadata/file_manifest.csv
|
| 130 |
+
large_file: true
|
| 131 |
+
- id: file_manifest
|
| 132 |
+
path: metadata/file_manifest.csv
|
| 133 |
+
role: checksum_manifest
|
| 134 |
+
description_zh: 整理后每个数据文件的相对路径、字节数和 SHA256。
|
| 135 |
+
required: true
|
| 136 |
+
required_for:
|
| 137 |
+
- preflight
|
| 138 |
+
format: csv
|
| 139 |
+
source:
|
| 140 |
+
platform: modelscope
|
| 141 |
+
repo_id: OneScience/cfd_benchmark
|
| 142 |
+
repo_type: dataset
|
| 143 |
+
path: metadata/file_manifest.csv
|
| 144 |
+
revision: main
|
| 145 |
+
download_method: command_ref
|
| 146 |
+
command_ref: commands.download.download_dataset
|
| 147 |
+
local_path: session_workdir/cfd_cfd_benchmark_data/metadata/file_manifest.csv
|
| 148 |
+
size: null
|
| 149 |
+
checksum: null
|
| 150 |
+
large_file: false
|
| 151 |
+
config_files:
|
| 152 |
+
- id: schema
|
| 153 |
+
path: metadata/schema.yaml
|
| 154 |
+
role: schema
|
| 155 |
+
description_zh: 记录 npy shape/dtype 和 MATLAB 文件变量结构。
|
| 156 |
+
required: true
|
| 157 |
+
required_for:
|
| 158 |
+
- preflight
|
| 159 |
+
- train
|
| 160 |
+
- evaluate
|
| 161 |
+
format: yaml
|
| 162 |
+
source:
|
| 163 |
+
platform: modelscope
|
| 164 |
+
repo_id: OneScience/cfd_benchmark
|
| 165 |
+
repo_type: dataset
|
| 166 |
+
path: metadata/schema.yaml
|
| 167 |
+
revision: main
|
| 168 |
+
download_method: command_ref
|
| 169 |
+
command_ref: commands.download.download_dataset
|
| 170 |
+
local_path: session_workdir/cfd_cfd_benchmark_data/metadata/schema.yaml
|
| 171 |
+
checksum: null
|
| 172 |
+
large_file: false
|
| 173 |
+
sample_files: []
|
| 174 |
+
|
| 175 |
+
dataset:
|
| 176 |
+
format:
|
| 177 |
+
- npy
|
| 178 |
+
- matlab_v5_mat
|
| 179 |
+
sample_unit: 不同子集的一个样本定义不同,airfoil/pipe 为一个几何流场样本,darcy/ns/plas 为一个 PDE 系数或时间序列样本,elasticity 为一个随机单元结构样本。
|
| 180 |
+
schema:
|
| 181 |
+
path: metadata/schema.yaml
|
| 182 |
+
checksum_manifest:
|
| 183 |
+
path: metadata/file_manifest.csv
|
| 184 |
+
splits:
|
| 185 |
+
train: 由 CFD_Benchmark 运行脚本通过 ntrain 或 train_ratio 切分。
|
| 186 |
+
validation: null
|
| 187 |
+
test: 由 CFD_Benchmark 运行脚本通过 ntest 或 train_ratio 切分。
|
| 188 |
+
|
| 189 |
+
relations:
|
| 190 |
+
required_datasets: []
|
| 191 |
+
optional_datasets: []
|
| 192 |
+
compatible_models:
|
| 193 |
+
- id: OneScience/CFD_Benchmark
|
| 194 |
+
role: train_data
|
| 195 |
+
required_for:
|
| 196 |
+
- train
|
| 197 |
+
- evaluate
|
| 198 |
+
- preflight
|
| 199 |
+
resource_ref:
|
| 200 |
+
platform: modelscope
|
| 201 |
+
repo_id: OneScience/CFD_Benchmark
|
| 202 |
+
repo_type: model
|
| 203 |
+
url: https://modelscope.cn/models/OneScience/CFD_Benchmark
|
| 204 |
+
revision: main
|
| 205 |
+
readme_path: README.md
|
| 206 |
+
manifest_path: manifest.yaml
|
| 207 |
+
expected_local_path: ../cfd_cfd_benchmark_data/data
|
| 208 |
+
adapter: scripts/standard_train_airfoil_transolver.sh
|
| 209 |
+
|
| 210 |
+
run_matrix:
|
| 211 |
+
scenarios:
|
| 212 |
+
- name: minimal_validation
|
| 213 |
+
capability: preflight
|
| 214 |
+
default: true
|
| 215 |
+
required_datasets:
|
| 216 |
+
- id: OneScience/cfd_benchmark
|
| 217 |
+
role: train_data
|
| 218 |
+
local_path: data/
|
| 219 |
+
required_model_files: []
|
| 220 |
+
command_refs:
|
| 221 |
+
- commands.preflight.validate_dataset
|
| 222 |
+
expected_outputs:
|
| 223 |
+
- reports/dataset_validation.json
|
| 224 |
+
prerequisites:
|
| 225 |
+
- 已下载数据集 OneScience/cfd_benchmark。
|
| 226 |
+
- name: cfd_benchmark_model_train
|
| 227 |
+
capability: train
|
| 228 |
+
required_datasets:
|
| 229 |
+
- id: OneScience/cfd_benchmark
|
| 230 |
+
role: train_data
|
| 231 |
+
local_path: data/
|
| 232 |
+
required_model_files:
|
| 233 |
+
- OneScience/CFD_Benchmark runtime/
|
| 234 |
+
command_refs:
|
| 235 |
+
- commands.preflight.validate_dataset
|
| 236 |
+
expected_outputs:
|
| 237 |
+
- reports/dataset_validation.json
|
| 238 |
+
prerequisites:
|
| 239 |
+
- 下载并进入模型仓库 OneScience/CFD_Benchmark。
|
| 240 |
+
|
| 241 |
+
capabilities:
|
| 242 |
+
inference: false
|
| 243 |
+
train: false
|
| 244 |
+
finetune: false
|
| 245 |
+
evaluate: false
|
| 246 |
+
visualize: false
|
| 247 |
+
deploy: false
|
| 248 |
+
data_reading_validation: true
|
| 249 |
+
|
| 250 |
+
commands:
|
| 251 |
+
download:
|
| 252 |
+
- name: download_dataset
|
| 253 |
+
description: 下载 CFD_Benchmark 数据集标准包。
|
| 254 |
+
cwd: .
|
| 255 |
+
command: modelscope download --dataset OneScience/cfd_benchmark --local_dir ./cfd_cfd_benchmark_data
|
| 256 |
+
required_files: []
|
| 257 |
+
required_env:
|
| 258 |
+
- MODELSCOPE_TOKEN
|
| 259 |
+
expected_outputs:
|
| 260 |
+
- path: cfd_cfd_benchmark_data/manifest.yaml
|
| 261 |
+
type: file
|
| 262 |
+
- path: cfd_cfd_benchmark_data/data/
|
| 263 |
+
type: directory
|
| 264 |
+
success_criteria:
|
| 265 |
+
- exit_code == 0
|
| 266 |
+
preflight:
|
| 267 |
+
- name: validate_dataset
|
| 268 |
+
description: 校验 14 个数据文件的存在性、大小、SHA256、npy shape/dtype 和 mat 变量结构。
|
| 269 |
+
cwd: .
|
| 270 |
+
command: source ~/env.sh && python scripts/validate_dataset.py --data-root data --file-manifest metadata/file_manifest.csv
|
| 271 |
+
required_files:
|
| 272 |
+
- scripts/validate_dataset.py
|
| 273 |
+
- metadata/file_manifest.csv
|
| 274 |
+
- data/
|
| 275 |
+
required_env:
|
| 276 |
+
- python
|
| 277 |
+
- numpy
|
| 278 |
+
- scipy
|
| 279 |
+
expected_outputs:
|
| 280 |
+
- path: reports/dataset_validation.json
|
| 281 |
+
type: file
|
| 282 |
+
success_criteria:
|
| 283 |
+
- exit_code == 0
|
| 284 |
+
prepare: []
|
| 285 |
+
inference: []
|
| 286 |
+
train: []
|
| 287 |
+
finetune: []
|
| 288 |
+
evaluate: []
|
| 289 |
+
visualize: []
|
| 290 |
+
deploy: []
|
| 291 |
+
|
| 292 |
+
expected_outputs:
|
| 293 |
+
- path: reports/dataset_validation.json
|
| 294 |
+
type: json
|
| 295 |
+
description_zh: 数据文件完整性和可读性验证报告。
|
| 296 |
+
- path: metadata/file_manifest.csv
|
| 297 |
+
type: csv
|
| 298 |
+
description_zh: 文件名、大小和 SHA256 校验清单。
|
| 299 |
+
- path: metadata/schema.yaml
|
| 300 |
+
type: yaml
|
| 301 |
+
description_zh: 数据结构说明。
|
| 302 |
+
|
| 303 |
+
diagnostics:
|
| 304 |
+
- id: missing_file
|
| 305 |
+
symptom: validate_dataset.py 报告 status=missing。
|
| 306 |
+
cause: 数据下载不完整或放置目录错误。
|
| 307 |
+
fix: 重新执行 modelscope download --dataset OneScience/cfd_benchmark --local_dir ./cfd_cfd_benchmark_data。
|
| 308 |
+
- id: sha256_mismatch
|
| 309 |
+
symptom: validate_dataset.py 报告 status=sha256_mismatch。
|
| 310 |
+
cause: 文件损坏、复制中断或上传下载过程中内容变化。
|
| 311 |
+
fix: 删除对应文件后重新下载数据集,或用 metadata/source_file_manifest.csv 与源目录重新比对。
|
| 312 |
+
- id: scipy_missing
|
| 313 |
+
symptom: MATLAB 文件只完成 header_only 检查。
|
| 314 |
+
cause: 当前 Python 环境缺少 scipy。
|
| 315 |
+
fix: source ~/env.sh 后重跑验证;当前标准化过程中已用 scipy 生成 metadata/schema.yaml。
|
| 316 |
+
|
| 317 |
+
domain_extension:
|
| 318 |
+
cfd:
|
| 319 |
+
benchmark_name: CFD_Benchmark
|
| 320 |
+
included_subsets:
|
| 321 |
+
airfoil:
|
| 322 |
+
files:
|
| 323 |
+
- NACA_Cylinder_X.npy
|
| 324 |
+
- NACA_Cylinder_Y.npy
|
| 325 |
+
- NACA_Cylinder_Q.npy
|
| 326 |
+
darcy:
|
| 327 |
+
files:
|
| 328 |
+
- piececonst_r421_N1024_smooth1.mat
|
| 329 |
+
- piececonst_r421_N1024_smooth2.mat
|
| 330 |
+
elasticity:
|
| 331 |
+
files:
|
| 332 |
+
- Meshes/Random_UnitCell_XY_10.npy
|
| 333 |
+
- Meshes/Random_UnitCell_rr_10.npy
|
| 334 |
+
- Meshes/Random_UnitCell_sigma_10.npy
|
| 335 |
+
- Meshes/Random_UnitCell_theta_10.npy
|
| 336 |
+
ns:
|
| 337 |
+
files:
|
| 338 |
+
- NavierStokes_V1e-5_N1200_T20.mat
|
| 339 |
+
pipe:
|
| 340 |
+
files:
|
| 341 |
+
- Pipe_X.npy
|
| 342 |
+
- Pipe_Y.npy
|
| 343 |
+
- Pipe_Q.npy
|
| 344 |
+
plas:
|
| 345 |
+
files:
|
| 346 |
+
- plas_N987_T20.mat
|
| 347 |
+
skipped_source_subsets:
|
| 348 |
+
- car
|
| 349 |
+
- diffusion_sorption
|
reports/dataset_validation.json
ADDED
|
@@ -0,0 +1,383 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"ok": true,
|
| 3 |
+
"data_root": "data",
|
| 4 |
+
"file_manifest": "metadata/file_manifest.csv",
|
| 5 |
+
"checked_files": 14,
|
| 6 |
+
"results": [
|
| 7 |
+
{
|
| 8 |
+
"rel_path": "airfoil/NACA_Cylinder_Q.npy",
|
| 9 |
+
"exists": true,
|
| 10 |
+
"expected_size": 1122591728,
|
| 11 |
+
"expected_sha256": "f79dfdaa3be95a5183981531e59b5a372cf3dd69986109f45426b3eb5410c58c",
|
| 12 |
+
"actual_size": 1122591728,
|
| 13 |
+
"status": "ok",
|
| 14 |
+
"actual_sha256": "f79dfdaa3be95a5183981531e59b5a372cf3dd69986109f45426b3eb5410c58c",
|
| 15 |
+
"schema": {
|
| 16 |
+
"format": "npy",
|
| 17 |
+
"shape": [
|
| 18 |
+
2490,
|
| 19 |
+
5,
|
| 20 |
+
221,
|
| 21 |
+
51
|
| 22 |
+
],
|
| 23 |
+
"dtype": "float64"
|
| 24 |
+
}
|
| 25 |
+
},
|
| 26 |
+
{
|
| 27 |
+
"rel_path": "airfoil/NACA_Cylinder_X.npy",
|
| 28 |
+
"exists": true,
|
| 29 |
+
"expected_size": 224518448,
|
| 30 |
+
"expected_sha256": "23902420694ba8552e427480aa6b26c08ea4e7e0b2454ee83cd9e1d29060f35f",
|
| 31 |
+
"actual_size": 224518448,
|
| 32 |
+
"status": "ok",
|
| 33 |
+
"actual_sha256": "23902420694ba8552e427480aa6b26c08ea4e7e0b2454ee83cd9e1d29060f35f",
|
| 34 |
+
"schema": {
|
| 35 |
+
"format": "npy",
|
| 36 |
+
"shape": [
|
| 37 |
+
2490,
|
| 38 |
+
221,
|
| 39 |
+
51
|
| 40 |
+
],
|
| 41 |
+
"dtype": "float64"
|
| 42 |
+
}
|
| 43 |
+
},
|
| 44 |
+
{
|
| 45 |
+
"rel_path": "airfoil/NACA_Cylinder_Y.npy",
|
| 46 |
+
"exists": true,
|
| 47 |
+
"expected_size": 224518448,
|
| 48 |
+
"expected_sha256": "710c77e42c3fe49edcfc951b59693511e12f5491f9dcb77a506f395178481155",
|
| 49 |
+
"actual_size": 224518448,
|
| 50 |
+
"status": "ok",
|
| 51 |
+
"actual_sha256": "710c77e42c3fe49edcfc951b59693511e12f5491f9dcb77a506f395178481155",
|
| 52 |
+
"schema": {
|
| 53 |
+
"format": "npy",
|
| 54 |
+
"shape": [
|
| 55 |
+
2490,
|
| 56 |
+
221,
|
| 57 |
+
51
|
| 58 |
+
],
|
| 59 |
+
"dtype": "float64"
|
| 60 |
+
}
|
| 61 |
+
},
|
| 62 |
+
{
|
| 63 |
+
"rel_path": "darcy/piececonst_r421_N1024_smooth1.mat",
|
| 64 |
+
"exists": true,
|
| 65 |
+
"expected_size": 1692307453,
|
| 66 |
+
"expected_sha256": "c8b1fd73a8bae85aa48afeb1fabd01204a03debe8e208524b72f615e13d2f664",
|
| 67 |
+
"actual_size": 1692307453,
|
| 68 |
+
"status": "ok",
|
| 69 |
+
"actual_sha256": "c8b1fd73a8bae85aa48afeb1fabd01204a03debe8e208524b72f615e13d2f664",
|
| 70 |
+
"schema": {
|
| 71 |
+
"format": "matlab_v5",
|
| 72 |
+
"variables": [
|
| 73 |
+
{
|
| 74 |
+
"name": "Kcoeff",
|
| 75 |
+
"shape": [
|
| 76 |
+
1024,
|
| 77 |
+
421,
|
| 78 |
+
421
|
| 79 |
+
],
|
| 80 |
+
"dtype": "double"
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"name": "Kcoeff_x",
|
| 84 |
+
"shape": [
|
| 85 |
+
1024,
|
| 86 |
+
421,
|
| 87 |
+
421
|
| 88 |
+
],
|
| 89 |
+
"dtype": "double"
|
| 90 |
+
},
|
| 91 |
+
{
|
| 92 |
+
"name": "Kcoeff_y",
|
| 93 |
+
"shape": [
|
| 94 |
+
1024,
|
| 95 |
+
421,
|
| 96 |
+
421
|
| 97 |
+
],
|
| 98 |
+
"dtype": "double"
|
| 99 |
+
},
|
| 100 |
+
{
|
| 101 |
+
"name": "coeff",
|
| 102 |
+
"shape": [
|
| 103 |
+
1024,
|
| 104 |
+
421,
|
| 105 |
+
421
|
| 106 |
+
],
|
| 107 |
+
"dtype": "double"
|
| 108 |
+
},
|
| 109 |
+
{
|
| 110 |
+
"name": "sol",
|
| 111 |
+
"shape": [
|
| 112 |
+
1024,
|
| 113 |
+
421,
|
| 114 |
+
421
|
| 115 |
+
],
|
| 116 |
+
"dtype": "double"
|
| 117 |
+
}
|
| 118 |
+
],
|
| 119 |
+
"metadata_mode": "scipy.io.whosmat"
|
| 120 |
+
}
|
| 121 |
+
},
|
| 122 |
+
{
|
| 123 |
+
"rel_path": "darcy/piececonst_r421_N1024_smooth2.mat",
|
| 124 |
+
"exists": true,
|
| 125 |
+
"expected_size": 1692748750,
|
| 126 |
+
"expected_sha256": "c6522cf6cb3a8c4818268b2b07464a85e55ecd7206a23b4b1ac435bfae2e3eb5",
|
| 127 |
+
"actual_size": 1692748750,
|
| 128 |
+
"status": "ok",
|
| 129 |
+
"actual_sha256": "c6522cf6cb3a8c4818268b2b07464a85e55ecd7206a23b4b1ac435bfae2e3eb5",
|
| 130 |
+
"schema": {
|
| 131 |
+
"format": "matlab_v5",
|
| 132 |
+
"variables": [
|
| 133 |
+
{
|
| 134 |
+
"name": "Kcoeff",
|
| 135 |
+
"shape": [
|
| 136 |
+
1024,
|
| 137 |
+
421,
|
| 138 |
+
421
|
| 139 |
+
],
|
| 140 |
+
"dtype": "double"
|
| 141 |
+
},
|
| 142 |
+
{
|
| 143 |
+
"name": "Kcoeff_x",
|
| 144 |
+
"shape": [
|
| 145 |
+
1024,
|
| 146 |
+
421,
|
| 147 |
+
421
|
| 148 |
+
],
|
| 149 |
+
"dtype": "double"
|
| 150 |
+
},
|
| 151 |
+
{
|
| 152 |
+
"name": "Kcoeff_y",
|
| 153 |
+
"shape": [
|
| 154 |
+
1024,
|
| 155 |
+
421,
|
| 156 |
+
421
|
| 157 |
+
],
|
| 158 |
+
"dtype": "double"
|
| 159 |
+
},
|
| 160 |
+
{
|
| 161 |
+
"name": "coeff",
|
| 162 |
+
"shape": [
|
| 163 |
+
1024,
|
| 164 |
+
421,
|
| 165 |
+
421
|
| 166 |
+
],
|
| 167 |
+
"dtype": "double"
|
| 168 |
+
},
|
| 169 |
+
{
|
| 170 |
+
"name": "sol",
|
| 171 |
+
"shape": [
|
| 172 |
+
1024,
|
| 173 |
+
421,
|
| 174 |
+
421
|
| 175 |
+
],
|
| 176 |
+
"dtype": "double"
|
| 177 |
+
}
|
| 178 |
+
],
|
| 179 |
+
"metadata_mode": "scipy.io.whosmat"
|
| 180 |
+
}
|
| 181 |
+
},
|
| 182 |
+
{
|
| 183 |
+
"rel_path": "elasticity/Meshes/Random_UnitCell_XY_10.npy",
|
| 184 |
+
"exists": true,
|
| 185 |
+
"expected_size": 31104080,
|
| 186 |
+
"expected_sha256": "29c615b7c8b0ef94252e4def4cd9999653b8759104619eb728b91a1cac5b665f",
|
| 187 |
+
"actual_size": 31104080,
|
| 188 |
+
"status": "ok",
|
| 189 |
+
"actual_sha256": "29c615b7c8b0ef94252e4def4cd9999653b8759104619eb728b91a1cac5b665f",
|
| 190 |
+
"schema": {
|
| 191 |
+
"format": "npy",
|
| 192 |
+
"shape": [
|
| 193 |
+
972,
|
| 194 |
+
2,
|
| 195 |
+
2000
|
| 196 |
+
],
|
| 197 |
+
"dtype": "float64"
|
| 198 |
+
}
|
| 199 |
+
},
|
| 200 |
+
{
|
| 201 |
+
"rel_path": "elasticity/Meshes/Random_UnitCell_rr_10.npy",
|
| 202 |
+
"exists": true,
|
| 203 |
+
"expected_size": 672080,
|
| 204 |
+
"expected_sha256": "70dc9fae27e8f361c09b5f43d004d50b30bbdf9c8d62227fd001321c61573f78",
|
| 205 |
+
"actual_size": 672080,
|
| 206 |
+
"status": "ok",
|
| 207 |
+
"actual_sha256": "70dc9fae27e8f361c09b5f43d004d50b30bbdf9c8d62227fd001321c61573f78",
|
| 208 |
+
"schema": {
|
| 209 |
+
"format": "npy",
|
| 210 |
+
"shape": [
|
| 211 |
+
42,
|
| 212 |
+
2000
|
| 213 |
+
],
|
| 214 |
+
"dtype": "float64"
|
| 215 |
+
}
|
| 216 |
+
},
|
| 217 |
+
{
|
| 218 |
+
"rel_path": "elasticity/Meshes/Random_UnitCell_sigma_10.npy",
|
| 219 |
+
"exists": true,
|
| 220 |
+
"expected_size": 15552080,
|
| 221 |
+
"expected_sha256": "eb8102b580001bab80ee99bfc33289f727491e1d8edab2a4a94abc37a348fa1a",
|
| 222 |
+
"actual_size": 15552080,
|
| 223 |
+
"status": "ok",
|
| 224 |
+
"actual_sha256": "eb8102b580001bab80ee99bfc33289f727491e1d8edab2a4a94abc37a348fa1a",
|
| 225 |
+
"schema": {
|
| 226 |
+
"format": "npy",
|
| 227 |
+
"shape": [
|
| 228 |
+
972,
|
| 229 |
+
2000
|
| 230 |
+
],
|
| 231 |
+
"dtype": "float64"
|
| 232 |
+
}
|
| 233 |
+
},
|
| 234 |
+
{
|
| 235 |
+
"rel_path": "elasticity/Meshes/Random_UnitCell_theta_10.npy",
|
| 236 |
+
"exists": true,
|
| 237 |
+
"expected_size": 160080,
|
| 238 |
+
"expected_sha256": "3315da70a33a86757e4799fd92630fcb767193c2a4406b3f45cc6f19b00d56ac",
|
| 239 |
+
"actual_size": 160080,
|
| 240 |
+
"status": "ok",
|
| 241 |
+
"actual_sha256": "3315da70a33a86757e4799fd92630fcb767193c2a4406b3f45cc6f19b00d56ac",
|
| 242 |
+
"schema": {
|
| 243 |
+
"format": "npy",
|
| 244 |
+
"shape": [
|
| 245 |
+
2000,
|
| 246 |
+
10
|
| 247 |
+
],
|
| 248 |
+
"dtype": "float64"
|
| 249 |
+
}
|
| 250 |
+
},
|
| 251 |
+
{
|
| 252 |
+
"rel_path": "ns/NavierStokes_V1e-5_N1200_T20.mat",
|
| 253 |
+
"exists": true,
|
| 254 |
+
"expected_size": 412877192,
|
| 255 |
+
"expected_sha256": "b4995d0180ec15f06878e17527fd3e08a8f504bbc059ee025caffad11a9a82c0",
|
| 256 |
+
"actual_size": 412877192,
|
| 257 |
+
"status": "ok",
|
| 258 |
+
"actual_sha256": "b4995d0180ec15f06878e17527fd3e08a8f504bbc059ee025caffad11a9a82c0",
|
| 259 |
+
"schema": {
|
| 260 |
+
"format": "matlab_v5",
|
| 261 |
+
"variables": [
|
| 262 |
+
{
|
| 263 |
+
"name": "a",
|
| 264 |
+
"shape": [
|
| 265 |
+
1200,
|
| 266 |
+
64,
|
| 267 |
+
64
|
| 268 |
+
],
|
| 269 |
+
"dtype": "single"
|
| 270 |
+
},
|
| 271 |
+
{
|
| 272 |
+
"name": "u",
|
| 273 |
+
"shape": [
|
| 274 |
+
1200,
|
| 275 |
+
64,
|
| 276 |
+
64,
|
| 277 |
+
20
|
| 278 |
+
],
|
| 279 |
+
"dtype": "single"
|
| 280 |
+
},
|
| 281 |
+
{
|
| 282 |
+
"name": "t",
|
| 283 |
+
"shape": [
|
| 284 |
+
1,
|
| 285 |
+
20
|
| 286 |
+
],
|
| 287 |
+
"dtype": "single"
|
| 288 |
+
}
|
| 289 |
+
],
|
| 290 |
+
"metadata_mode": "scipy.io.whosmat"
|
| 291 |
+
}
|
| 292 |
+
},
|
| 293 |
+
{
|
| 294 |
+
"rel_path": "pipe/Pipe_Q.npy",
|
| 295 |
+
"exists": true,
|
| 296 |
+
"expected_size": 922577168,
|
| 297 |
+
"expected_sha256": "d1ed4458cfb47e490b3b2487deceb36e516449eca2566d22ef6e8b31492ae223",
|
| 298 |
+
"actual_size": 922577168,
|
| 299 |
+
"status": "ok",
|
| 300 |
+
"actual_sha256": "d1ed4458cfb47e490b3b2487deceb36e516449eca2566d22ef6e8b31492ae223",
|
| 301 |
+
"schema": {
|
| 302 |
+
"format": "npy",
|
| 303 |
+
"shape": [
|
| 304 |
+
2310,
|
| 305 |
+
3,
|
| 306 |
+
129,
|
| 307 |
+
129
|
| 308 |
+
],
|
| 309 |
+
"dtype": "float64"
|
| 310 |
+
}
|
| 311 |
+
},
|
| 312 |
+
{
|
| 313 |
+
"rel_path": "pipe/Pipe_X.npy",
|
| 314 |
+
"exists": true,
|
| 315 |
+
"expected_size": 307525808,
|
| 316 |
+
"expected_sha256": "2ef591a0e3d69a54705a89fc656042bfe2a36abd387de5f24afeebd747527b6b",
|
| 317 |
+
"actual_size": 307525808,
|
| 318 |
+
"status": "ok",
|
| 319 |
+
"actual_sha256": "2ef591a0e3d69a54705a89fc656042bfe2a36abd387de5f24afeebd747527b6b",
|
| 320 |
+
"schema": {
|
| 321 |
+
"format": "npy",
|
| 322 |
+
"shape": [
|
| 323 |
+
2310,
|
| 324 |
+
129,
|
| 325 |
+
129
|
| 326 |
+
],
|
| 327 |
+
"dtype": "float64"
|
| 328 |
+
}
|
| 329 |
+
},
|
| 330 |
+
{
|
| 331 |
+
"rel_path": "pipe/Pipe_Y.npy",
|
| 332 |
+
"exists": true,
|
| 333 |
+
"expected_size": 307525808,
|
| 334 |
+
"expected_sha256": "2d140fb1293bb9f87aaf41424ec857e0e89b7925efbf50382f825602473c3ccb",
|
| 335 |
+
"actual_size": 307525808,
|
| 336 |
+
"status": "ok",
|
| 337 |
+
"actual_sha256": "2d140fb1293bb9f87aaf41424ec857e0e89b7925efbf50382f825602473c3ccb",
|
| 338 |
+
"schema": {
|
| 339 |
+
"format": "npy",
|
| 340 |
+
"shape": [
|
| 341 |
+
2310,
|
| 342 |
+
129,
|
| 343 |
+
129
|
| 344 |
+
],
|
| 345 |
+
"dtype": "float64"
|
| 346 |
+
}
|
| 347 |
+
},
|
| 348 |
+
{
|
| 349 |
+
"rel_path": "plas/plas_N987_T20.mat",
|
| 350 |
+
"exists": true,
|
| 351 |
+
"expected_size": 1613335719,
|
| 352 |
+
"expected_sha256": "b58681e7777531b34889da46b506d2f18845c5d7b194859394dfd958cf28178f",
|
| 353 |
+
"actual_size": 1613335719,
|
| 354 |
+
"status": "ok",
|
| 355 |
+
"actual_sha256": "b58681e7777531b34889da46b506d2f18845c5d7b194859394dfd958cf28178f",
|
| 356 |
+
"schema": {
|
| 357 |
+
"format": "matlab_v5",
|
| 358 |
+
"variables": [
|
| 359 |
+
{
|
| 360 |
+
"name": "input",
|
| 361 |
+
"shape": [
|
| 362 |
+
987,
|
| 363 |
+
101
|
| 364 |
+
],
|
| 365 |
+
"dtype": "double"
|
| 366 |
+
},
|
| 367 |
+
{
|
| 368 |
+
"name": "output",
|
| 369 |
+
"shape": [
|
| 370 |
+
987,
|
| 371 |
+
101,
|
| 372 |
+
31,
|
| 373 |
+
20,
|
| 374 |
+
4
|
| 375 |
+
],
|
| 376 |
+
"dtype": "double"
|
| 377 |
+
}
|
| 378 |
+
],
|
| 379 |
+
"metadata_mode": "scipy.io.whosmat"
|
| 380 |
+
}
|
| 381 |
+
}
|
| 382 |
+
]
|
| 383 |
+
}
|
reports/source_target_integrity.json
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"ok": true,
|
| 3 |
+
"source_root": "/public/share/sugonhpcapp01/onestore/onedatasets/CFD_Benchmark",
|
| 4 |
+
"subsets": [
|
| 5 |
+
"airfoil",
|
| 6 |
+
"darcy",
|
| 7 |
+
"elasticity",
|
| 8 |
+
"ns",
|
| 9 |
+
"pipe",
|
| 10 |
+
"plas"
|
| 11 |
+
],
|
| 12 |
+
"source_files": 14,
|
| 13 |
+
"target_files": 14,
|
| 14 |
+
"missing_in_target": [],
|
| 15 |
+
"extra_in_target": [],
|
| 16 |
+
"mismatched": []
|
| 17 |
+
}
|
scripts/validate_dataset.py
ADDED
|
@@ -0,0 +1,126 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python3
|
| 2 |
+
"""Validate CFD_Benchmark dataset files without loading full arrays into memory."""
|
| 3 |
+
|
| 4 |
+
from __future__ import annotations
|
| 5 |
+
|
| 6 |
+
import argparse
|
| 7 |
+
import csv
|
| 8 |
+
import hashlib
|
| 9 |
+
import json
|
| 10 |
+
from pathlib import Path
|
| 11 |
+
from typing import Any
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
def sha256_file(path: Path, chunk_size: int = 1024 * 1024 * 16) -> str:
|
| 15 |
+
digest = hashlib.sha256()
|
| 16 |
+
with path.open("rb") as handle:
|
| 17 |
+
for chunk in iter(lambda: handle.read(chunk_size), b""):
|
| 18 |
+
digest.update(chunk)
|
| 19 |
+
return digest.hexdigest()
|
| 20 |
+
|
| 21 |
+
|
| 22 |
+
def inspect_npy(path: Path) -> dict[str, Any]:
|
| 23 |
+
import numpy as np
|
| 24 |
+
|
| 25 |
+
array = np.load(path, mmap_mode="r")
|
| 26 |
+
return {"format": "npy", "shape": list(array.shape), "dtype": str(array.dtype)}
|
| 27 |
+
|
| 28 |
+
|
| 29 |
+
def inspect_mat(path: Path) -> dict[str, Any]:
|
| 30 |
+
info: dict[str, Any] = {"format": "matlab_v5", "variables": []}
|
| 31 |
+
try:
|
| 32 |
+
import scipy.io as scio
|
| 33 |
+
|
| 34 |
+
variables = []
|
| 35 |
+
for name, shape, dtype in scio.whosmat(path):
|
| 36 |
+
variables.append({"name": name, "shape": list(shape), "dtype": str(dtype)})
|
| 37 |
+
info["variables"] = variables
|
| 38 |
+
info["metadata_mode"] = "scipy.io.whosmat"
|
| 39 |
+
except Exception as exc: # scipy is optional for integrity-only checks.
|
| 40 |
+
info["metadata_mode"] = "header_only"
|
| 41 |
+
info["metadata_warning"] = f"scipy.io.whosmat unavailable: {type(exc).__name__}: {exc}"
|
| 42 |
+
with path.open("rb") as handle:
|
| 43 |
+
info["header_prefix"] = handle.read(64).decode("latin1", errors="replace")
|
| 44 |
+
return info
|
| 45 |
+
|
| 46 |
+
|
| 47 |
+
def load_manifest(path: Path) -> list[dict[str, str]]:
|
| 48 |
+
with path.open("r", newline="") as handle:
|
| 49 |
+
return list(csv.DictReader(handle))
|
| 50 |
+
|
| 51 |
+
|
| 52 |
+
def main() -> int:
|
| 53 |
+
parser = argparse.ArgumentParser()
|
| 54 |
+
parser.add_argument("--data-root", default="data", help="Dataset data root")
|
| 55 |
+
parser.add_argument(
|
| 56 |
+
"--file-manifest",
|
| 57 |
+
default="metadata/file_manifest.csv",
|
| 58 |
+
help="CSV with rel_path,size,sha256 entries",
|
| 59 |
+
)
|
| 60 |
+
parser.add_argument("--skip-sha256", action="store_true", help="Only check names and sizes")
|
| 61 |
+
parser.add_argument("--report", default="reports/dataset_validation.json")
|
| 62 |
+
args = parser.parse_args()
|
| 63 |
+
|
| 64 |
+
data_root = Path(args.data_root)
|
| 65 |
+
manifest_path = Path(args.file_manifest)
|
| 66 |
+
report_path = Path(args.report)
|
| 67 |
+
report_path.parent.mkdir(parents=True, exist_ok=True)
|
| 68 |
+
|
| 69 |
+
rows = load_manifest(manifest_path)
|
| 70 |
+
results = []
|
| 71 |
+
ok = True
|
| 72 |
+
for row in rows:
|
| 73 |
+
rel_path = row["rel_path"]
|
| 74 |
+
expected_size = int(row["size"])
|
| 75 |
+
expected_sha256 = row["sha256"]
|
| 76 |
+
path = data_root / rel_path
|
| 77 |
+
item: dict[str, Any] = {
|
| 78 |
+
"rel_path": rel_path,
|
| 79 |
+
"exists": path.exists(),
|
| 80 |
+
"expected_size": expected_size,
|
| 81 |
+
"expected_sha256": expected_sha256,
|
| 82 |
+
}
|
| 83 |
+
if not path.exists():
|
| 84 |
+
item["status"] = "missing"
|
| 85 |
+
ok = False
|
| 86 |
+
results.append(item)
|
| 87 |
+
continue
|
| 88 |
+
|
| 89 |
+
actual_size = path.stat().st_size
|
| 90 |
+
item["actual_size"] = actual_size
|
| 91 |
+
if actual_size != expected_size:
|
| 92 |
+
item["status"] = "size_mismatch"
|
| 93 |
+
ok = False
|
| 94 |
+
else:
|
| 95 |
+
item["status"] = "ok"
|
| 96 |
+
|
| 97 |
+
if not args.skip_sha256:
|
| 98 |
+
actual_sha256 = sha256_file(path)
|
| 99 |
+
item["actual_sha256"] = actual_sha256
|
| 100 |
+
if actual_sha256 != expected_sha256:
|
| 101 |
+
item["status"] = "sha256_mismatch"
|
| 102 |
+
ok = False
|
| 103 |
+
|
| 104 |
+
if path.suffix == ".npy":
|
| 105 |
+
item["schema"] = inspect_npy(path)
|
| 106 |
+
elif path.suffix == ".mat":
|
| 107 |
+
item["schema"] = inspect_mat(path)
|
| 108 |
+
results.append(item)
|
| 109 |
+
|
| 110 |
+
report = {
|
| 111 |
+
"ok": ok,
|
| 112 |
+
"data_root": str(data_root),
|
| 113 |
+
"file_manifest": str(manifest_path),
|
| 114 |
+
"checked_files": len(results),
|
| 115 |
+
"results": results,
|
| 116 |
+
}
|
| 117 |
+
report_path.write_text(json.dumps(report, indent=2, ensure_ascii=False) + "\n")
|
| 118 |
+
if ok:
|
| 119 |
+
print(f"DATASET_VALIDATION_OK checked_files={len(results)} report={report_path}")
|
| 120 |
+
return 0
|
| 121 |
+
print(f"DATASET_VALIDATION_FAILED report={report_path}")
|
| 122 |
+
return 1
|
| 123 |
+
|
| 124 |
+
|
| 125 |
+
if __name__ == "__main__":
|
| 126 |
+
raise SystemExit(main())
|