SpectraSim Documentation
Parameter · 08 Mesh

Expansion ratio

mesh.expansion_ratio Step 08 · Mesh

The thickness ratio between neighbouring prism layers, from the wall outwards. Together with the number of layers and the first (or last) layer it fixes how thick the whole layer stack is.

Last updated

Theory

Layer ii (1 at the wall) is rr times thicker than layer i−1i-1, equation (1), so the stack is a geometric series. The mesher is given the ratio as expansionRatio together with either the first layer (firstLayerThickness, curvature sizing with the wall function) or the last layer (finalLayerThickness, uniform sizing and low-Re), both relative to the size of the cell just outside the layers (OpenFOAM user guide, 2026).

A larger ratio reaches a given stack thickness with fewer layers but makes a larger jump in cell size inside the boundary layer; a ratio of 1 gives layers of equal thickness. With curvature sizing the ratio also decides how many of the auto layers fit within 0.8 of the wall cell (see Number of prism layers): with a first layer of 0.075 wall cells, 6 layers make 0.74 wall cells at r=1.2r = 1.2.

The size jump from the outermost layer to the cell outside is also governed by rr indirectly: with the last-layer form the outermost layer is 0.5 (wall function) or 0.1 (low-Re) of that cell by construction.

Equations

ti=t1 r i−1,δ=∑i=1nti=t1 rn−1r−1(r≠1),δ=n t1(r=1)t_i = t_1\,r^{\,i-1}, \qquad \delta = \sum_{i=1}^{n} t_i = t_1\,\frac{r^{n} - 1}{r - 1} \quad (r \ne 1), \qquad \delta = n\,t_1 \quad (r = 1)
(1)
wheremeaningunit
tit_iThickness of layer ii, 1 at the wallm
t1t_1First-layer thicknessm
rrExpansion ratio-
nnNumber of layers-
δ\deltaThickness of the stackm

Default and rule

Default
auto: 1.2 (wall function), 1.15 (low-Re)Computed by the program
Rule

Auto, changed together with the wall treatment: 1.2 with the wall function, 1.15 with low-Re (gentler, because twelve layers have to fit into a thinner stack). A typed value is used as typed.

Source

The values 1.2 and 1.15 are the program's defaults; they are not derived from a measurement or a published correlation. The stack thickness is the geometric series of equation (1), as the program computes it.

Valid range no check by the program; values a little above 1

Values

The program does not limit the value. Values a little above 1 are usual; 1 gives equal layers.

Stack too thick

A larger ratio, or more layers, makes a thicker stack. With curvature sizing on auto the number of layers is reduced to fit; a typed number of layers is not, and gets a warning.

Not measured

Neither 1.2 nor 1.15 was compared with other ratios on a real muffler.

References 1

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