Theory
The total-pressure drop (mass-flow weighted, inlets minus outlets) is evaluated every iteration. A steady RANS solution with jets often keeps oscillating by 5-30 % peak to peak for ever while its mean is stable; a test on the noise of the signal would never pass, so the program tests the mean.
From the samples after the start-up phase and the settle iterations (Upwind iterations before the switch), the most recent (Δp window) are first searched for a dominant oscillation period (the autocorrelation of the linearly detrended signal, a peak of at least 0.3 at a lag of 2 or more). The window is widened to , so at least two full periods are averaged. The run is converged when both the linear drift across the window, equation (1), and the largest deviation of its three block means from the window mean, equation (2), are within . Drift catches a monotone trend; the block spread catches a slower wander that the straight-line fit averages away.
While the solver runs, the program checks this every few seconds; once it is met it sets stopAt writeNow and the solver writes its fields and ends. The reported pressure drop is the window mean, quoted with the larger of and the measured uncertainty, equation (3), which uses the integrated autocorrelation time because successive samples are not independent. When the coefficient of variation of the window exceeds 3 %, the converged mean is flagged "unsteady" (a limit cycle; not a failure).
A transient run uses this tolerance, but not below 1 %, for the comparison of the last two averaging windows (Time dependency).
Equations
| where | meaning | unit |
|---|---|---|
| Mean of over the window of samples | Pa | |
| Slope of the least-squares line through the window | Pa per iteration | |
| Window length, | iterations | |
| Mean of the -th third of the window | Pa | |
| Tolerance (this setting) | % | |
| Standard deviation of the window | Pa | |
| Integrated autocorrelation time (summed while the autocorrelation stays positive) | iterations | |
| Measured uncertainty of the mean | % |
Default and rule
- Default
- 0.5 % (transient: at least 1 %)Measured
- Rule
0.5 %.
- Source
The rule tests the mean because two simpler rules fail on muffler flows: a window-to-window plateau rule stops benign runs 2-4 % off and "converges" oscillating muffler runs by coincidence, and a noise (coefficient-of-variation) test is never passed by a limit cycle. On the study mufflers the last-iteration values were 4257 / 4121 / 5048 Pa against window means of 4230-4500 Pa on three meshes. Finite-sample caveat: a straight-line fit to an exactly periodic signal shows a small artificial drift (about 1.5 % at 20 samples, 0.06 % at 500), which is why the window should be long. The integrated autocorrelation time uses the standard estimator for correlated series.
Valid range > 0; 0 never converges (no automatic stop, gate 2 not met)
Values
Above 0. Smaller is stricter and needs more iterations.
Zero
0 can never be met: there is then no automatic stop, the run goes to the maximum number of iterations, and gate 2 reports the pressure drop as not converged.