SpectraSim Documentation
Parameter · 08 Mesh

Fineness

mesh.fineness Step 08 · Mesh

A whole number from 1 to 5 whose meaning depends on Mesh sizing. With curvature sizing it is an overall size preset (higher = finer); with uniform sizing it is the number of refinement levels between the background cells and the wall cells (higher = coarser background, same wall cell).

Last updated

Theory

Curvature sizing. The fineness scales the background cell by 2\sqrt{2} per step, equation (1). Every size derived from it moves with it: the flat-wall cell h0/2h_0/2, the finest wall cell h0/8h_0/8 and the levels of the ports. Where the wall cell is set by the levels, the number of cells on a surface goes as S/h2S/h^2, so one step doubles those cells, equation (2). On curved walls the size is set by the curvature threshold of Cells across a pipe diameter (about NN cells across each pipe), which does not depend on FF; there a fineness step only shifts the size to the next power of two of the new h0h_0. A model made mostly of pipes therefore grows by much less than a factor 2 per step (see Source).

Uniform sizing. The wall cell is fixed by the cells-across rule, hw=Dh,min/Nh_w = D_{h,min}/N, and the background cell is 2F−12^{F-1} times larger, equation (3). Raising FF adds one refinement level between the two: the wall cells stay the same, the background becomes twice as coarse, and the bulk of the fluid gets fewer cells. A lower fineness therefore means MORE cells in this mode. Feature edges are refined one level finer than the surfaces (level FF), and the fixed floor of the cell limit maxGlobalCells grows with FF (0.3, 0.7, 1.5, 3 and 6 million cells).

An older case file with no cells-across value sizes the background from the diagonal of the model's bounding box instead, h0=dbox/{15,25,40,60,90}h_0 = d_{box}/\{15, 25, 40, 60, 90\} for F=1…5F = 1 \ldots 5; there a higher fineness is finer. The Mesh step always saves a cells-across value.

A mesh independence study (Run step, queue) in curvature mode varies the fineness (2, 3, 4) because it scales every level-driven size by the same ratio; in uniform mode it varies the cells across instead (11, 16, 22) and refuses a fineness study, because the wall cell, which resolves the flow, does not change with FF there. A refinement study for the grid convergence index has to refine the mesh systematically (Celik et al., 2008).

Equations

h0=L6(2)−(F−3)h_0 = \frac{L}{6}\left(\sqrt{2}\right)^{-(F-3)}
(1)
Nsurf(F+1)Nsurf(F)=(h0(F)h0(F+1))2=2\frac{N_{surf}(F+1)}{N_{surf}(F)} = \left(\frac{h_0(F)}{h_0(F+1)}\right)^{2} = 2
(2)
wheremeaningunit
h0h_0Background cell sizem
LLHydraulic diameter of the fluid volume, 4V/Sw4V/S_wm
FFFineness-
NsurfN_{surf}Number of cells whose size is set by the wall levels-
h0=hw 2F−1,hw=Dh,minNh_0 = h_w\,2^{F-1}, \qquad h_w = \frac{D_{h,min}}{N}
(3)
wheremeaningunit
hwh_wWall cell size (uniform sizing)m
Dh,minD_{h,min}Smallest hydraulic diameter of the inlets and outletsm
NNCells across that diameter-

Default and rule

Default
3
Rule

3 ("normal") in both modes: with curvature sizing it gives h0=L/6h_0 = L/6; with uniform sizing two refinement levels between background and wall.

Source

The divisor that fineness 3 stands for (L/6L/6) comes from a mesher setup of case V1 (a 2.0 m multi-chamber muffler with a perforated pipe and three absorptive packings) whose wall sizes matched a reference mesh made with another mesher (22.5 mm background cell); it has not been varied.

Measured effect of one step on V1 (curvature sizing, 6 layers typed, serial meshing): fineness 2 gave 1,304,352 cells in 19 min, fineness 3 gave 1,432,415 cells in 28 min. That is 10 % more cells, not twice, because the walls of that model are mostly pipes sized by the curvature threshold. The mesh-quality advice of the Mesh step nevertheless proposes "fineness +1, about twice the cells" for skewness and inverted-cell failures. The study levels are those of the program's mesh independence study.

Valid range 1 to 5 (whole numbers)

Values

1 to 5, whole numbers (checked when the setting is saved).

Uniform sizing

A higher fineness gives a COARSER background, not a finer wall. To refine the walls in this mode, raise Cells across a pipe diameter.

Curvature sizing on pipe-dominated models

The wall cells of curved walls follow the cells-across threshold, so a fineness step mainly refines flat walls, ports and the bulk. A mesh independence study by fineness has not yet been run on a real model in this mode.

References 1

  1. Celik, I. B., Ghia, U., Roache, P. J. and Freitas, C. J. (2008). Procedure for estimation and reporting of uncertainty due to discretization in CFD applications. Journal of Fluids Engineering, 130(7), 078001. DOI 10.1115/1.2960953