Datasets:
Morgan Taylor Claude Fable 5 commited on
Commit ·
83880a1
1
Parent(s): 247f25a
Marker-style experimental figure; cite PIVtools only
Browse files- piv_vs_hwa_paper.py: PIV profiles drawn as synthetic-style markers
(ensemble = squares, instantaneous passes = circles/triangles), hot
wire as the solid reference line, matching paper_figures.py.
- README: citation section asks for the PIVtools paper only; JHTDB
provenance retained in the generation and license sections.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
- README.md +4 -20
- scripts/piv_vs_hwa_paper.py +20 -9
README.md
CHANGED
|
@@ -331,7 +331,7 @@ repository's git history.
|
|
| 331 |
|
| 332 |
## Citation
|
| 333 |
|
| 334 |
-
If you use this dataset, please cite
|
| 335 |
|
| 336 |
```bibtex
|
| 337 |
@article{taylor_pivtools,
|
|
@@ -340,28 +340,12 @@ If you use this dataset, please cite both the PIVtools paper and the underlying
|
|
| 340 |
journal={SoftwareX},
|
| 341 |
note={submitted}
|
| 342 |
}
|
| 343 |
-
|
| 344 |
-
@article{lee2015direct,
|
| 345 |
-
title={Direct numerical simulation of turbulent channel flow up to Re_tau = 5200},
|
| 346 |
-
author={Lee, M. and Moser, R.D.},
|
| 347 |
-
journal={J. Fluid Mech.},
|
| 348 |
-
year={2015}
|
| 349 |
-
}
|
| 350 |
-
|
| 351 |
-
@article{li2008public,
|
| 352 |
-
title={A public turbulence database cluster and applications to study Lagrangian evolution of velocity increments in turbulence},
|
| 353 |
-
author={Li, Y. and others},
|
| 354 |
-
journal={J. Turbulence},
|
| 355 |
-
year={2008}
|
| 356 |
-
}
|
| 357 |
```
|
| 358 |
|
| 359 |
-
DNS reference data is from the **Johns Hopkins Turbulence Database** (JHTDB).
|
| 360 |
-
|
| 361 |
## License
|
| 362 |
|
| 363 |
CC-BY-4.0 — free to use, modify, and redistribute with attribution to the PIVtools paper.
|
| 364 |
|
| 365 |
-
The DNS ground truth is derived from publicly accessible
|
| 366 |
-
|
| 367 |
-
|
|
|
|
| 331 |
|
| 332 |
## Citation
|
| 333 |
|
| 334 |
+
If you use this dataset, please cite the PIVtools paper.
|
| 335 |
|
| 336 |
```bibtex
|
| 337 |
@article{taylor_pivtools,
|
|
|
|
| 340 |
journal={SoftwareX},
|
| 341 |
note={submitted}
|
| 342 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 343 |
```
|
| 344 |
|
|
|
|
|
|
|
| 345 |
## License
|
| 346 |
|
| 347 |
CC-BY-4.0 — free to use, modify, and redistribute with attribution to the PIVtools paper.
|
| 348 |
|
| 349 |
+
The DNS ground truth is derived from publicly accessible Johns Hopkins Turbulence
|
| 350 |
+
Database data (http://turbulence.pha.jhu.edu) and is redistributed here under the
|
| 351 |
+
same permissive terms.
|
scripts/piv_vs_hwa_paper.py
CHANGED
|
@@ -43,6 +43,11 @@ ENS_COLOR = "#D55E00" # ensemble (orange-red)
|
|
| 43 |
INST_COLOR = "#0072B2" # instantaneous (blue)
|
| 44 |
HW_COLOR = "k" # hot wire
|
| 45 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 46 |
|
| 47 |
# --------------------------------------------------------------------------- #
|
| 48 |
# Profile helpers (central-column median about the station, wall-frame y)
|
|
@@ -203,27 +208,33 @@ def main():
|
|
| 203 |
fig, ax = plt.subplots(1, 2, figsize=(14, 6))
|
| 204 |
|
| 205 |
a0 = ax[0]
|
| 206 |
-
a0.plot(yp_hw, Up_hw, "-
|
| 207 |
-
a0.plot(ypE, UpE,
|
|
|
|
| 208 |
for k, (lbl, ypI, UpI, _) in enumerate(inst_profiles):
|
| 209 |
-
a0.plot(ypI, UpI,
|
| 210 |
-
|
|
|
|
| 211 |
a0.set_xscale("log"); a0.set_xlim(8, 8000); a0.set_ylim(0, 30)
|
| 212 |
a0.grid(True, which="both", alpha=0.3)
|
| 213 |
a0.set_xlabel(r"$y^+$"); a0.set_ylabel(r"$U^+$"); a0.set_title("Mean velocity")
|
| 214 |
a0.legend(loc="upper left")
|
| 215 |
|
| 216 |
a1 = ax[1]
|
| 217 |
-
a1.plot(yp_hw, uup_hw, "-
|
|
|
|
| 218 |
if a.ens_stress_lowess and a.ens_stress_lowess > 0:
|
| 219 |
a1.plot(ypE, uupE, "-", color=ENS_COLOR, lw=0.7, alpha=0.22)
|
| 220 |
s_yp, s_v = log_smooth(ypE, uupE, sigma_decades=a.ens_stress_lowess)
|
| 221 |
-
a1.plot(s_yp, s_v,
|
|
|
|
| 222 |
else:
|
| 223 |
-
a1.plot(ypE, uupE,
|
|
|
|
| 224 |
for k, (lbl, ypI, _, uupI) in enumerate(inst_profiles):
|
| 225 |
-
a1.plot(ypI, uupI,
|
| 226 |
-
|
|
|
|
| 227 |
a1.set_xscale("log"); a1.set_xlim(8, 8000)
|
| 228 |
a1.set_ylim(0, max(12, np.nanmax(uup_hw) * 1.15))
|
| 229 |
a1.grid(True, which="both", alpha=0.3)
|
|
|
|
| 43 |
INST_COLOR = "#0072B2" # instantaneous (blue)
|
| 44 |
HW_COLOR = "k" # hot wire
|
| 45 |
|
| 46 |
+
# Marker convention matches paper_figures.py (synthetic cases):
|
| 47 |
+
# reference = solid black line, each PIV method = its own marker, no line.
|
| 48 |
+
ENS_MARKER = "s"
|
| 49 |
+
INST_MARKERS = ["o", "^", "D"] # one per instantaneous pass
|
| 50 |
+
|
| 51 |
|
| 52 |
# --------------------------------------------------------------------------- #
|
| 53 |
# Profile helpers (central-column median about the station, wall-frame y)
|
|
|
|
| 208 |
fig, ax = plt.subplots(1, 2, figsize=(14, 6))
|
| 209 |
|
| 210 |
a0 = ax[0]
|
| 211 |
+
a0.plot(yp_hw, Up_hw, "-", color=HW_COLOR, lw=2, label="Hot wire", zorder=10)
|
| 212 |
+
a0.plot(ypE, UpE, ENS_MARKER, color=ENS_COLOR, ms=4.5, alpha=0.7,
|
| 213 |
+
linestyle="none", label=ens_lbl, zorder=5)
|
| 214 |
for k, (lbl, ypI, UpI, _) in enumerate(inst_profiles):
|
| 215 |
+
a0.plot(ypI, UpI, INST_MARKERS[k % len(INST_MARKERS)],
|
| 216 |
+
color=inst_colors[k % len(inst_colors)], ms=4.5, alpha=0.7,
|
| 217 |
+
linestyle="none", label=f"PIVtools inst. {lbl}", zorder=4)
|
| 218 |
a0.set_xscale("log"); a0.set_xlim(8, 8000); a0.set_ylim(0, 30)
|
| 219 |
a0.grid(True, which="both", alpha=0.3)
|
| 220 |
a0.set_xlabel(r"$y^+$"); a0.set_ylabel(r"$U^+$"); a0.set_title("Mean velocity")
|
| 221 |
a0.legend(loc="upper left")
|
| 222 |
|
| 223 |
a1 = ax[1]
|
| 224 |
+
a1.plot(yp_hw, uup_hw, "-", color=HW_COLOR, lw=2,
|
| 225 |
+
label="Hot wire (uncorrected)", zorder=10)
|
| 226 |
if a.ens_stress_lowess and a.ens_stress_lowess > 0:
|
| 227 |
a1.plot(ypE, uupE, "-", color=ENS_COLOR, lw=0.7, alpha=0.22)
|
| 228 |
s_yp, s_v = log_smooth(ypE, uupE, sigma_decades=a.ens_stress_lowess)
|
| 229 |
+
a1.plot(s_yp, s_v, ENS_MARKER, color=ENS_COLOR, ms=4.5, alpha=0.7,
|
| 230 |
+
linestyle="none", label=ens_lbl, zorder=5)
|
| 231 |
else:
|
| 232 |
+
a1.plot(ypE, uupE, ENS_MARKER, color=ENS_COLOR, ms=4.5, alpha=0.7,
|
| 233 |
+
linestyle="none", label=ens_lbl, zorder=5)
|
| 234 |
for k, (lbl, ypI, _, uupI) in enumerate(inst_profiles):
|
| 235 |
+
a1.plot(ypI, uupI, INST_MARKERS[k % len(INST_MARKERS)],
|
| 236 |
+
color=inst_colors[k % len(inst_colors)], ms=4.5, alpha=0.7,
|
| 237 |
+
linestyle="none", label=f"PIVtools inst. {lbl}", zorder=4)
|
| 238 |
a1.set_xscale("log"); a1.set_xlim(8, 8000)
|
| 239 |
a1.set_ylim(0, max(12, np.nanmax(uup_hw) * 1.15))
|
| 240 |
a1.grid(True, which="both", alpha=0.3)
|