SpectraSim Documentation
Parameter · 08 Mesh

Minimum element size

acoustics.mesh.min_element_size Unit: mm Step 08 · Mesh

The smallest element size that the curvature and growth rules may request. It prevents a very small radius (a hole rim, a fillet) from filling the model with very small elements.

Last updated

Theory

The curvature rule sizes elements in proportion to the local radius of curvature, and the growth rule propagates small surface elements into the volume. On a model with very small radii, either rule could request elements far smaller than the wavelength requires; this multiplies the number of unknowns without improving the acoustic result. The minimum is a floor under both rules, equation (1). The program passes it to Gmsh as Mesh.MeshSizeMin and also applies it in its own size callback (Gmsh reference manual, 2025).

On auto, the minimum is a fixed fraction of the maximum, so it follows the frequency and the temperature in the same way. Geometry smaller than the minimum is still represented in the mesh; only the size the rules may request is limited.

Equations

hmin=hmax20(auto),h(x)≥hminh_{min} = \frac{h_{max}}{20} \quad \text{(auto)}, \qquad h(\mathbf{x}) \ge h_{min}
(1)
wheremeaningunit
hminh_{min}Minimum element sizem
hmaxh_{max}Maximum element size (on auto: for the smallest sound speed of the model)m
hhElement size at a pointm

Default and rule

Default
auto: maximum element size / 20Computed by the program
Rule

Auto = maximum / 20. Example: hmaxh_{max} = 68.6 mm gives hminh_{min} = 3.43 mm.

Source

The divisor 20 is the program's default; it is not derived from a published rule and has not been compared with other values. The Gmsh option is described in the Gmsh manual (Gmsh reference manual, 2025).

Valid range 0 < h_min < h_max

Values

Above 0, at most 10 m and below the maximum element size (checked when the setting is saved). Displayed and entered in mm.

Too large

A minimum close to the maximum disables most of the curvature refinement: curved walls and port rims become faceted. The model fidelity check compares each meshed face area with its CAD area (warning at 0.5 % for ports, 1 % for walls).

Not quantified

The effect of the divisor on the transmission loss has not been quantified.

References 1

  1. Geuzaine, C. and Remacle, J.-F. (2025). Gmsh reference manual, version 4.15. gmsh.info. Web page