SpectraSim Documentation
Parameter · 06 Solver Settings

k and ω convection scheme

numerics.turbulence_scheme Step 06 · Solver Settings

The convection scheme of the kk and ω\omega equations AFTER the first-order start-up phase of a steady run. Auto is limitedLinear 1: second order and bounded.

Last updated

Theory

kk and ω\omega must stay positive. A second-order scheme that overshoots near the steep gradients of a jet edge can produce negative values, which the solver clips ("bounding"), and this slows convergence. Every steady run therefore starts with first-order bounded Gauss upwind for kk and ω\omega for Upwind iterations before the switch iterations, then restarts with the scheme chosen here (OpenFOAM user guide, 2026):

  • limitedLinear 1: a TVD blend of central and upwind interpolation with the limiter of equation (1); it returns to upwind where the solution is not smooth, so it stays bounded.
  • linearUpwind: the upwind value extrapolated with a cell-limited gradient (limitedGrad), equation (2). Less limited, sharper jets; on a poor mesh kk and ω\omega can go negative and be clipped.
  • upwind: first order throughout, equation (3).

Steady runs use all of them in the bounded form (the continuity error of the iteration subtracted, see Momentum (U) convection scheme). The gradients of kk and ω\omega are cell-limited too, because the SST cross-diffusion term uses ∇k⋅∇ω\nabla k\cdot\nabla\omega directly.

A transient run always uses first-order Gauss upwind for kk and ω\omega, whatever this setting says.

Equations

ϕf=ψ(r) ϕflin+(1−ψ(r))ϕC,ψ(r)=max⁡ ⁣(0, min⁡(2r, 1))\phi_f = \psi(r)\,\phi_f^{lin} + \left(1 - \psi(r)\right)\phi_C, \qquad \psi(r) = \max\!\left(0,\ \min(2r,\ 1)\right)
(1)
ϕf=ϕC+(xf−xC)⋅(∇ϕ)C\phi_f = \phi_C + (\mathbf{x}_f - \mathbf{x}_C)\cdot(\nabla\phi)_C
(2)
ϕf=ϕC\phi_f = \phi_C
(3)
wheremeaningunit
ϕ\phikk or ω\omegam²/s², 1/s
ϕf\phi_fValue interpolated to face fm²/s², 1/s
ϕC\phi_CValue of the upwind cellm²/s², 1/s
ϕflin\phi_f^{lin}Central (linear) interpolationm²/s², 1/s
ψ\psiLimiter, with rr the smoothness ratio of Momentum (U) convection scheme-
xf,xC\mathbf{x}_f, \mathbf{x}_CFace and upwind cell centresm

Default and rule

Default
auto: limitedLinear 1Computed by the programMeasured
Rule

Auto = limitedLinear 1, for both analysis types. A typed linearUpwind gets a warning for a compressible run.

Source

limitedLinear 1 is the program's default for the muffler jets, chosen from validation runs as robust and bounded. In the program's residual-sensitivity study the transient solver with limitedLinear 1 for kk and ω\omega diverged on every case tested, a plain pipe included (ω\omega reaching about 106510^{65}); with first-order upwind it was stable. This is the basis of the fixed first-order scheme of transient runs. Schemes: (OpenFOAM user guide, 2026).

Valid range auto | limitedLinear | linearUpwind | upwind; steady runs only

Choice

Auto (limitedLinear 1), limitedLinear, linearUpwind, upwind. Not used by transient runs.

linearUpwind for compressible

Near high-Mach jets kk and ω\omega can go negative and be clipped.

References 1

  1. OpenCFD Ltd. (2026). OpenFOAM user guide. openfoam.com. Web page