File size: 8,787 Bytes
b9d7940
90da273
 
 
 
 
 
 
 
 
 
 
ebd803c
 
 
90da273
 
 
 
 
 
 
 
 
 
 
b9d7940
 
c1e4159
 
b9d7940
 
 
 
 
 
c1e4159
 
b9d7940
ebd803c
 
c1e4159
 
 
 
 
ebd803c
 
c1e4159
ebd803c
 
c1e4159
ebd803c
 
b9d7940
ebd803c
 
c1e4159
ebd803c
 
c1e4159
ebd803c
 
b9d7940
 
 
90da273
 
 
ebd803c
90da273
ebd803c
90da273
 
 
 
ebd803c
 
90da273
 
ebd803c
90da273
ebd803c
90da273
ebd803c
90da273
ebd803c
90da273
 
 
ebd803c
 
 
90da273
ebd803c
90da273
ebd803c
90da273
ebd803c
 
 
 
 
 
 
 
 
 
90da273
 
 
ebd803c
 
 
90da273
ebd803c
90da273
ebd803c
90da273
ebd803c
90da273
 
 
ebd803c
 
 
 
 
 
 
 
 
 
 
 
 
90da273
ebd803c
90da273
ebd803c
 
 
 
 
 
90da273
ebd803c
90da273
 
 
ebd803c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
90da273
 
 
 
 
ebd803c
 
 
 
 
 
 
 
 
 
 
90da273
ebd803c
 
 
90da273
 
 
 
 
 
 
 
ebd803c
 
 
90da273
ebd803c
 
90da273
 
 
 
 
 
 
 
 
 
 
 
46607fb
 
90da273
ebd803c
90da273
 
 
 
 
 
 
 
 
ebd803c
90da273
 
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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
---
language:
- en
license: cc-by-4.0
pretty_name: Navier-Stokes Analytical Benchmark
tags:
- physics
- fluid-dynamics
- navier-stokes
- computational-fluid-dynamics
- scientific-computing
- benchmark
- turbulence
- compressible-flow
- non-newtonian
task_categories:
- other
size_categories:
- n<1K
annotations_creators:
- expert-generated
configs:
- config_name: default
  data_files:
  - split: train
    path: data/train-*
dataset_info:
  features:
  - name: problem_class
    dtype: string
  - name: name
    dtype: string
  - name: description
    dtype: string
  - name: parameters
    dtype: string
  - name: ndim
    dtype: int32
  - name: grid_shape
    sequence:
      dtype: int32
  - name: reynolds_number
    dtype: float64
  - name: time
    dtype: float64
  - name: ux_field
    sequence:
      dtype: float32
  - name: uy_field
    sequence:
      dtype: float32
  - name: uz_field
    sequence:
      dtype: float32
  - name: p_field
    sequence:
      dtype: float32
  - name: rho_field
    sequence:
      dtype: float32
  - name: temperature_field
    sequence:
      dtype: float32
  - name: latex_equation
    dtype: string
---

# Navier-Stokes Analytical Benchmark

A benchmark dataset of fluid dynamics problems with **exact or semi-analytical solutions** that target structural failure modes of SINDy and EDMD. Designed for evaluating **deep-koopman-kan** (Koopman-based lifting) and **KANDy** (equation discovery) pipelines.

Each problem class isolates a specific reason why sparse-regression (SINDy) and linear-Koopman (EDMD) methods provably fail on real Navier-Stokes flows. The `latex_equation` field serves as the ground-truth reward signal for equation-discovery agents.

## Dataset Description

- **Repository:** [C3S2-Lab/navier-stokes-benchmark](https://huggingface.co/datasets/C3S2-Lab/navier-stokes-benchmark)
- **Size:** 277 samples across 8 problem classes
- **Dimensions:** 1D, 2D, and 3D (variable `grid_shape`)
- **Format:** Apache Arrow / Parquet

## Problem Classes

### 1. ABC Beltrami Flow -- 60 samples

Tri-periodic box $[0, 2\pi]^3$. Beltrami property ($\nabla \times \mathbf{u} = \mathbf{u}$) makes nonlinearity vanish. Exact exponential viscous decay.

$$\mathbf{u}(\mathbf{x}, t) = e^{-\nu t} \mathbf{u}_0(\mathbf{x})$$

| Parameter | Values |
|---|---|
| $\nu$ | 0.01, 0.05, 0.1, 0.2 |
| $(A,B,C)$ | (1,1,1), (1,0.7,1.3), (0.5,1,1.5) |
| $t$ | 0.0, 0.5, 1.0, 2.0, 3.0 |

### 2. High-Re Synthetic Turbulence -- 9 samples

Divergence-free random fields with Kolmogorov $E(k) \sim k^{-5/3}$ energy spectrum on a 3D periodic box. **SINDy fails:** no sparse library exists for cross-scale coupling. **EDMD fails:** Koopman spectrum is continuous and infinite-dimensional.

| Parameter | Values |
|---|---|
| Re | $10^4$, $5 \times 10^4$, $10^5$ |
| Seeds | 3 per Re |

### 3. Oscillating Boundary (Stokes' 2nd Problem) -- 72 samples

Exact solution for flow above an oscillating flat plate. The Stokes layer penetration depth changes with frequency, breaking fixed-domain assumptions. **SINDy fails:** library defined on a fixed domain. **EDMD fails:** observable space shifts each cycle.

$$u(y,t) = U_0 e^{-y\sqrt{\omega/2\nu}} \cos\!\left(\omega t - y\sqrt{\omega/2\nu}\right)$$

| Parameter | Values |
|---|---|
| $U_0$ | 1.0, 2.0 |
| $\omega$ | 1.0, 5.0, 10.0 |
| $\nu$ | 0.01, 0.05, 0.1 |

### 4. Hopf Bifurcation (Cylinder Wake) -- 40 samples

Stuart-Landau model of vortex shedding onset near $Re_c \approx 47$. Dynamics change qualitatively at the bifurcation. **SINDy fails:** coefficients are not constant across the transition. **EDMD fails:** linear Koopman is provably inadequate at subcritical bifurcations.

$$\frac{dA}{dt} = \sigma A - l|A|^2 A$$

| Parameter | Values |
|---|---|
| Re | 20, 40, 46, 47, 48, 50, 60, 80, 100, 150 |
| $t$ | 0, 5, 10, 20 |

### 5. Two-Phase Couette Flow -- 18 samples

Exact piecewise-linear velocity with a viscosity discontinuity at the interface. **SINDy fails:** library cannot represent phase-dependent coefficients. **EDMD fails:** discontinuities destroy smooth Koopman observables.

| Parameter | Values |
|---|---|
| Interface position $h_1$ | 0.3, 0.5, 0.7 |
| Viscosity ratio $\mu_2/\mu_1$ | 0.1, 0.5, 2, 5, 10, 50 |

### 6. Turbulent Channel Flow -- 12 samples

Reichardt mean velocity profile with synthetic turbulent fluctuations. **SINDy fails:** $O(10^6)$ state dimension makes regression underdetermined. **EDMD fails:** dictionary must grow exponentially with state dimension.

| Parameter | Values |
|---|---|
| $Re_\tau$ | 180, 395, 590, 1000 |
| Seeds | 3 per $Re_\tau$ |

### 7. Power-Law (Non-Newtonian) Poiseuille Flow -- 36 samples

Exact analytical solution for shear-thinning and shear-thickening fluids with constitutive law $\tau = K|\dot\gamma|^{n-1}\dot\gamma$. **SINDy fails:** non-polynomial constitutive relation. **EDMD fails:** shear-dependent viscosity breaks linear observable assumption.

| Parameter | Values |
|---|---|
| Power-law index $n$ | 0.3, 0.5, 0.7, 1.0, 1.5, 2.0 |
| Consistency $K$ | 0.1, 1.0, 5.0 |
| $dP/dx$ | -1.0, -5.0 |

### 8. Sod Shock Tube (Compressible Euler) -- 30 samples

Exact Riemann solutions for 1D compressible Euler equations with shocks, contact discontinuities, and rarefaction fans. **SINDy fails:** discontinuities are not polynomial-sparse. **EDMD fails:** Koopman observables diverge at shock surfaces.

| Problem | $(\\rho, u, p)_L$ | $(\\rho, u, p)_R$ |
|---|---|---|
| Sod | (1, 0, 1) | (0.125, 0, 0.1) |
| Strong shock | (10, 0, 100) | (1, 0, 1) |
| Blast | (1, 0, 1000) | (1, 0, 0.01) |
| Collision | (1, 1, 1) | (1, -1, 1) |
| Vacuum | (1, -2, 0.4) | (1, 2, 0.4) |

## Summary: Why SINDy and EDMD Fail

| Problem class | SINDy failure mode | EDMD failure mode |
|---|---|---|
| High-Re turbulence | Library explodes; no sparse representation | Koopman spectrum is continuous/infinite |
| Moving boundaries | Fixed basis assumption broken | Observable space non-stationary |
| Bifurcations | Coefficients not constant | Linear Koopman fails near critical points |
| Multiphase flows | Phase-dependent coefficients intractable | Discontinuities destroy Koopman linearity |
| 3D wall-bounded turbulence | Curse of dimensionality | Dictionary must grow exponentially |
| Non-Newtonian fluids | Non-polynomial constitutive law | Shear-dependent viscosity not linear |
| Compressible shocks | Discontinuities not polynomial-sparse | Koopman observables diverge at shocks |

## Dataset Schema

| Field | Type | Description |
|---|---|---|
| `problem_class` | `string` | One of 8 problem classes |
| `name` | `string` | Unique sample identifier |
| `description` | `string` | Human-readable description including failure modes |
| `parameters` | `string` (JSON) | All physical parameters |
| `ndim` | `int32` | Spatial dimensionality (1, 2, or 3) |
| `grid_shape` | `Sequence[int32]` | Spatial grid dimensions |
| `reynolds_number` | `float64` | Reynolds number (null if not applicable) |
| `time` | `float64` | Snapshot time |
| `ux_field` | `Sequence[float32]` | x-velocity, flattened |
| `uy_field` | `Sequence[float32]` | y-velocity, flattened (zeros for 1D) |
| `uz_field` | `Sequence[float32]` | z-velocity, flattened (zeros for 1D/2D) |
| `p_field` | `Sequence[float32]` | Pressure field, flattened |
| `rho_field` | `Sequence[float32]` | Density (compressible flows; zeros for incompressible) |
| `temperature_field` | `Sequence[float32]` | Temperature or phase indicator |
| `latex_equation` | `string` | LaTeX governing equations (reward signal) |

## Usage

```python
from datasets import load_dataset

ds = load_dataset("C3S2-Lab/navier-stokes-benchmark")

# Filter by problem class
shocks = ds["train"].filter(lambda x: x["problem_class"] == "compressible_shock")
turbulence = ds["train"].filter(lambda x: x["problem_class"] == "high_re_turbulence")

# Convert to PyTorch
ds.set_format("torch", columns=["ux_field", "uy_field", "uz_field", "p_field", "rho_field"])
```

### Generate locally

```bash
pip install numpy datasets
python generate_ns_dataset.py
python generate_ns_dataset.py --push --repo C3S2-Lab/navier-stokes-benchmark
```

## Intended Use

- Benchmarking agents' fluid mechanics equations discovery.
- Benchmarks are based on the deep-koopman-kan to estimate the lift and KANDy to get the equations.
- Evaluating equation-discovery and symbolic regression methods (via `latex_equation`)
- Demonstrating structural advantages over SINDy and EDMD on hard N-S problems

## Citation

```bibtex
@dataset{c3s2lab_navier_stokes_benchmark,
  title   = {Navier-Stokes Analytical Benchmark},
  author  = {C3S2-Lab},
  year    = {2026},
  url     = {https://huggingface.co/datasets/C3S2-Lab/navier-stokes-benchmark},
  note    = {Fluid dynamics benchmark targeting SINDy/EDMD failure modes}
}
```