File size: 4,733 Bytes
9868a79 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 | ---
pretty_name: 'NACA 0012 in Euler flow: SU2 surface distribution and convergence'
license: apache-2.0
task_categories:
- tabular-regression
size_categories:
- 1K<n<10K
tags:
- pinneapple
- physics
- scientific-machine-learning
- aerodynamics
- euler
- su2
- naca-0012
- simulation-evidence
configs:
- config_name: default
default: true
data_files:
- split: surface
path: data/default/surface-*.parquet
- split: history
path: data/default/history-*.parquet
- split: meta
path: data/default/meta-*.parquet
dataset_info:
- config_name: default
features: {}
splits:
- name: surface
num_bytes: 0
num_examples: 0
- name: history
num_bytes: 0
num_examples: 0
- name: meta
num_bytes: 0
num_examples: 0
---
# NACA 0012 in Euler flow: SU2 surface distribution and convergence
SU2 Euler solution of the NACA 0012 at M = 0.5, alpha = 2 deg: the surface distribution (density, momentum, energy at every surface point) and the convergence history of the inner iterations, ending at CL = 0.272349, CD = 0.001428.
`sim_su2_naca0012_euler` v1.0.0 (revision `v1.0.0`) · licence apache-2.0 · part of the [PINNeAPPle](https://github.com/PINNeAPPle-Labs/PINNeAPPle) zoo
## Configs and splits
| Config | Split | Samples | Parquet rows | Parquet files | Content |
|---|---|---|---|---|---|
| `default` | `surface` | 200 | 0 | 0 | surface points of the airfoil |
| `default` | `history` | 3000 | 0 | 0 | inner iterations of the solver |
| `default` | `meta` | 1 | 0 | 0 | what the run solved and the coefficients it ended at |
## Columns
| Column | Unit | Type | Description |
|---|---|---|---|
| `x` | m | float64 | surface x |
| `y` | m | float64 | surface y |
| `density` | kg/m^3 | float64 | density at the surface point |
| `momentum_x` | kg/(m^2 s) | float64 | x momentum |
| `momentum_y` | kg/(m^2 s) | float64 | y momentum |
| `energy` | J/m^3 | float64 | total energy per volume |
| `inner_iter` | - | float64 | inner iteration |
| `rms_rho` | - | float64 | RMS residual of density |
| `cl` | - | float64 | lift coefficient per iteration |
| `cd` | - | float64 | drag coefficient per iteration |
| `mach` | - | float64 | free-stream Mach number |
| `aoa_deg` | deg | float64 | angle of attack |
| `cl_final` | - | float64 | lift coefficient at the last iteration |
| `cd_final` | - | float64 | drag coefficient at the last iteration |
## Load
With the library (the npz files, SHA-256 checked; arrays with their full shape):
```bash
pip install "pinneapple @ git+https://github.com/PINNeAPPle-Labs/PINNeAPPle"
```
```python
import pinneapple as pp
d = pp.datasets.load("sim_su2_naca0012_euler", split="surface")
print(d.n_rows, d.columns)
```
With `datasets` (the Parquet files of this repo):
```python
from datasets import load_dataset
ds = load_dataset("PINNeAPPle-Labs/sim-su2-naca0012-euler", split="surface", revision="v1.0.0")
print(ds)
```
Each sample of this dataset is larger than the viewer can show in one row, so the Parquet files store one row per step of its first axis (1 steps): `sample` is the row of the split in `pp.datasets.load` and `step` the index along that axis; columns hold one step, the others are repeated on every step. `pp.datasets.load` returns the samples whole; `pinneapple_hub.zoo.parquet.read_parquet` puts the Parquet rows back together the same way.
## Provenance
SU2 run kept at /Users/yanbarros/su2/caso (case file naca0012_euler.cfg, mesh mesh_NACA0012_inv.su2)
## Verification
the run reached 3000 inner iterations; CL and CD are the last history row, read from history.csv, not retyped
## Files
The npz files are the library's format and the source of truth: `pp.datasets.load` downloads them from this repo at the tagged revision and refuses any file whose SHA-256 differs from the manifest of the package. The Parquet files under `data/` are derived from them by `pinneapple_hub.zoo.parquet.write_dataset` and hold the same numbers (a test round-trips npz -> Parquet -> arrays bit for bit); they are what the dataset viewer and `load_dataset` read.
| File | Size | SHA-256 |
|---|---|---|
| `data.npz` | 0.1 MB | `c35581aa507112a9a2a0e5fc15fa94f82077da3600e087f61540b7146c368a5a` |
Total 0.1 MB of npz.
## Citation
SU2 tutorial case (NACA 0012 inviscid), SU2 v8 series
## Cite
If you use this dataset, please cite PINNeAPPle (software, Zenodo DOI [10.5281/zenodo.23343062](https://doi.org/10.5281/zenodo.23343062); see [CITATION.cff](https://github.com/PINNeAPPle-Labs/PINNeAPPle/blob/main/CITATION.cff)):
```bibtex
@software{pinneapple,
author = {Barros, Yan and Schiassi, Enrico},
title = {PINNeAPPle},
doi = {10.5281/zenodo.23343062},
url = {https://github.com/PINNeAPPle-Labs/PINNeAPPle}
}
```
|