--- license: cc-by-4.0 language: - en tags: - piv - particle-image-velocimetry - fluid-dynamics - turbulence - channel-flow - validation - benchmark - synthetic-data pretty_name: PIVtools Turbulent Channel Validation Dataset size_categories: - 10K \ --num-frames 4000 \ --output-dir ./out ``` | Flag | Description | |------|-------------| | `--mode` / `-m` | `instantaneous` or `ensemble` | | `--runs` / `-r` | Comma-separated 0-based pass indices (e.g. `2,3`) | | `--windows` / `-w` | Labels for those passes (e.g. `32,16`) | | `--gt-dir` / `-g` | Directory containing `direct_stats.mat` — e.g. `./ground_truth/noisy` or `./ground_truth/clean` (required) | | `--base-dir` / `-b` | PIV results base (instantaneous mode) | | `--ensemble-dir` / `-e` | Direct path to ensemble result directory | | `--num-frames` / `-n` | Frame count subdirectory (default 1000; use 4000 for this dataset) | | `--output-dir` / `-o` | Output directory | | `--y-plus-offset` / `-y` | Additional y+ offset on top of hardcoded +1 | | `--show-fit-lines` | Overlay log-law and viscous sublayer curves | ### `stereo_benchmark_comparison.py` — stereo 3C + 6-stress benchmark Uses LaTeX for labels (`text.usetex=True`); requires MiKTeX / TeXLive. ```bash python scripts/stereo_benchmark_comparison.py \ --gt-dir ./ground_truth/noisy \ --stereo-base \ --num-frames 4000 \ --output-dir ./out ``` ### `cross_method_comparison.py` — multi-method overlay Publication-quality plots comparing one pass from each of instantaneous, ensemble, and stereo against DNS on the same axes. Okabe-Ito colourblind palette. ```bash python scripts/cross_method_comparison.py \ --gt-dir ./ground_truth/noisy \ --output-dir ./out \ --inst-stats \ --ens-dir \ --stereo-stats ``` ### `paper_figures.py` — combined Case A + Case B figures Reproduces the figures in the PIVtools paper: Case A (open symbols) and Case B (filled symbols) overlaid. Any combination of paths may be supplied — the script plots whichever it receives. ```bash # Case B only (what this dataset ships today) python scripts/paper_figures.py \ --gt-noisy-dir ./ground_truth \ --inst-noisy-stats \ --ens-noisy-dir \ --stereo-noisy-stats \ --output-dir ./out ``` ### `tcf_direct_stats.py` — recompute ground truth If you regenerate the synthetic images via EUROSIG, this script recomputes `direct_stats.mat` from the underlying JHTDB particle position files (`B*_A.data`, `B*_B.data`). ```bash python scripts/tcf_direct_stats.py \ --data-dir \ --output-dir ./ground_truth ``` ## Unit conventions | Quantity | PIVtools storage | Benchmark display | |----------|-----------------|-------------------| | Velocity | m/s | mm/s (× 1000) | | Reynolds stress | (m/s)² | (mm/s)² (× 1e6) | | Spatial coordinates | mm | wall units y⁺ = y / δ_ν | ## Masks `stereo_noisy/mask_Cam{1,2}.mat` hold pixel-space boolean masks (same shape as images) that exclude regions outside the valid field of view. PIVtools loads them automatically when configured with `masking.enabled: true` and `mask_file_pattern: mask_Cam{cam}.mat`. ## Citation If you use this dataset, please cite both the PIVtools paper and the underlying DNS source. ```bibtex @article{taylor_pivtools, title={PIVtools: an open-source PIV framework with integrated planar, stereoscopic, and ensemble pipelines}, author={Taylor, M.T. and Lawson, J.M. and Ganapathisubramani, B.}, journal={SoftwareX}, note={submitted} } @article{lee2015direct, title={Direct numerical simulation of turbulent channel flow up to Re_tau = 5200}, author={Lee, M. and Moser, R.D.}, journal={J. Fluid Mech.}, year={2015} } @article{li2008public, title={A public turbulence database cluster and applications to study Lagrangian evolution of velocity increments in turbulence}, author={Li, Y. and others}, journal={J. Turbulence}, year={2008} } ``` DNS reference data is from the **Johns Hopkins Turbulence Database** (JHTDB). ## License CC-BY-4.0 — free to use, modify, and redistribute with attribution to the PIVtools paper. The DNS ground truth is derived from publicly accessible JHTDB data and is redistributed here under the same permissive terms; consult the JHTDB usage policy (http://turbulence.pha.jhu.edu) for their citation requirements.