SpectraSim Documentation
Parameter · 05 Boundary Conditions

Inlet turbulence

turbulence_inlet.mode Step 05 · Boundary Conditions

Selects how the inlet turbulence quantities kk and ω\omega are set: estimated for fully developed pipe flow from the inlet Reynolds number, or computed from a typed intensity and mixing length.

Last updated

Theory

The k-ω SST model (Menter, 1994) needs the turbulent kinetic energy kk and the specific dissipation rate ω\omega on every inlet. The program writes OpenFOAM's turbulentIntensityKineticEnergyInlet for kk and turbulentMixingLengthFrequencyInlet for ω\omega (OpenFOAM user guide, 2026), which compute them every iteration from the local velocity of the inlet faces, an intensity II and a mixing length ℓ\ell, equations (2) and (3).

"Fully developed" estimates II and ℓ\ell from the inlet, equation (1): the Reynolds number uses the equivalent uniform velocity of the inlet (the magnitude, for a velocity vector) and the hydraulic diameter of the inlet patch, Dh=4A/PD_h = 4A/P from the exported surface. The typed intensity and length are then not used (they are kept in the case file). "Intensity and length" uses Turbulence intensity and Mixing length (blank length: 0.07 Dh0.07\,D_h).

The same formulas give the starting values written next to the boundary conditions. In a muffler the inlet turbulence usually matters little for the pressure drop: the jets and expansions inside generate far more turbulence than the inlet carries.

Equations

I=0.16 Re−1/8,ℓ=0.07 Dh,Re=UDhν,Dh=4API = 0.16\,Re^{-1/8}, \qquad \ell = 0.07\,D_h, \qquad Re = \frac{U D_h}{\nu}, \qquad D_h = \frac{4A}{P}
(1)
wheremeaningunit
IITurbulence intensity-
ℓ\ellMixing lengthm
ReReInlet Reynolds number-
UUEquivalent uniform inlet velocitym/s
DhD_hHydraulic diameter of the inlet patchm
A,PA, PArea and perimeter of the inlet patchm², m
ν\nuKinematic viscosity of the gasm²/s
k=32(I ∣U∣)2k = \tfrac{3}{2}\left(I\,\lvert\mathbf{U}\rvert\right)^2
(2)
ω=kCμ1/4 ℓ,Cμ=0.09\omega = \frac{\sqrt{k}}{C_\mu^{1/4}\,\ell}, \qquad C_\mu = 0.09
(3)
wheremeaningunit
kkTurbulent kinetic energy at the inletm²/s²
ω\omegaSpecific dissipation rate at the inlet1/s
∣U∣\lvert\mathbf{U}\rvertVelocity magnitude on the inlet facem/s

Default and rule

Default
Fully developed
Rule

Fully developed.

Source

Equations (2) and (3) are the definitions behind OpenFOAM's two inlet conditions (OpenFOAM user guide, 2026). The intensity estimate 0.16 Re−1/80.16\,Re^{-1/8} and the mixing length 0.07 Dh0.07\,D_h for fully developed pipe flow are widely used engineering estimates.

Valid range Fully developed | Intensity and length

When to type values

Use "Intensity and length" when the inlet turbulence is known (for example measured), or when the inlet is fed by something other than a long straight pipe.

Estimate

Equation (1) is a pipe-flow estimate; a short or disturbed inlet pipe has a different turbulence level.

References 2

  1. Menter, F. R. (1994). Two-equation eddy-viscosity turbulence models for engineering applications. AIAA Journal, 32(8), 1598-1605. DOI 10.2514/3.12149
  2. OpenCFD Ltd. (2026). OpenFOAM user guide. openfoam.com. Web page