# Running OpenFOAM locally (guidance)

This kit does **not** ship a full native OpenFOAM case tree (`system/`, `constant/`, `0/`)
because the published dataset stores **post-processed** results (VTU/STL), not the original
case files from the Rescale job.

## What you have

| Asset | Purpose |
|-------|---------|
| `../mesh/case_data.stl` | Reference geometry (AoA-independent) |
| `../parameters.yaml` | Fixed Re, U∞, solver |
| `../HOW_AoA_WORKS.md` | How to set AoA via freestream vector |
| `compute_freestream.py` | Ux/Uy for any AoA |
| `../../examples/*/case_data_0.vtu` | Target output format + field names |

## Suggested workflow

1. Mesh from `case_data.stl` (or reuse topology from an example VTU for ML-only workflows).
2. Set inlet velocity from AoA (see `compute_freestream.py`).
3. Run `simpleFoam` at Re = 2×10⁶ with turbulence settings matching OpenFOAM v2506 / Rescale tutorial.
4. Post-process to VTU with fields: **Cp, Ux, Uy, p, nut, nuTilda** (see `../postprocessing/README.md`).
5. Integrate Cl/Cd for comparison against `doe/cases.csv` or holdout scalars.

For parity with consortium reference solutions, match the Rescale AI Physics airfoil_2d tutorial setup.
