Repository navigation
uPrime v0.8.0 - alpha
Pre-releaseuPrime v0.8.0
What's New
Probability Analysis module (◔ Probability Analysis in the Analysis panel). A new window with four tabs covering distribution-level turbulence diagnostics, the things that mean and variance cannot show:
- PDF: normalized histograms of
u,v,w,|V|and the fluctuationsu',v',w', sampled at a point, along a horizontal or vertical line, over an ROI, or over the whole field. Line endpoints can be drawn or typed in numerically (x0, y0, x1, y1), matching the Reynolds Stress and TKE Budget convention. Bin count, manual or robust auto range, density or counts, Gaussian overlay, and a log density axis are all user-set. Skewness, kurtosis, N, mean, standard deviation, and the sample range are reported in the status bar. - Flow Direction: forward-flow and reverse-flow probability maps, the backflow coefficient used to locate and quantify intermittent separation. An adjustable deadband splits samples into forward, reverse, and indeterminate, with the three probabilities summing to one at every valid point. ROI or whole domain.
- Binary Space-Time: a two-color map of the fluctuation sign along a horizontal or vertical line plotted against time, showing the passage, inclination, and persistence of coherent structures. Time-resolved data only; the tab is disabled on non-TR datasets.
- Quadrant: Q1 to Q4 time and stress fractions with a selectable component pair, a joint PDF of the fluctuation pair on a log10(N+1) scale with the quadrant boundaries and hyperbolic hole contours overlaid, a hole-size sweep after Lu and Willmarth, and 2D stress-fraction maps for Q2 (ejections) and Q4 (sweeps). Separate CSV exports for the fractions, the sweep, and the 2D maps.
Correct NaN handling throughout. Every probability is normalized by the number of valid samples at each grid point, not by the total snapshot count, so masked or invalid vectors are excluded rather than counted as zeros. A point with no valid samples returns NaN and renders as background, never as a probability of zero.
ROI restricts computation, not just display. Regions outside a selected ROI are never computed and are drawn in a distinct grey, so an untouched region can never be mistaken for a region of genuinely low probability.
Improvements
- Line selector gained a
show_freeoption. Free (arbitrary-angle) lines can be suppressed where they are not physically meaningful. Used by the PDF and Binary Space-Time tabs; all existing callers are unaffected. - Background computation. All probability calculations run in a
QThreadworker, so the window stays responsive on large datasets. - Deferred module loading. The Probability window is imported only when opened, matching the other analysis modules, so application startup is unaffected.
- 2D Tecplot export gained an optional NaN representation argument; the historical behaviour is unchanged by default.
Notes
Quadrant alignment. Quadrant labels assume x is streamwise and y is wall-normal. Align the dataset in the Coordinate Transform module first, or ejections and sweeps will be mislabelled. The window shows an inline reminder.
Statistical convergence. Probability density functions, and the fourth moment in particular, converge far more slowly than the mean and variance. Treat kurtosis from a few hundred snapshots as indicative only, and check the Mean & Convergence module first.
DaVis (.vc7/.vec) input still depends on LaVision's lvpyio, which is not bundled in the Windows executable. A frozen .exe only sees packages compiled into it, so a separately installed lvpyio is not visible to it. To read DaVis files, run uPrime from source: pip install lvpyio, then python main.py.