Box averaging filter 2026-11-05
A box averaging filter gives equal weight to all positions within a specified window and zero weight outside it. In one spatial dimension, its normalized kernel and action areThis is a spatial averaging filter expressed as a convolution. In several dimensions, averaging over an axis-aligned rectangular box uses the product of the one-dimensional kernels.
The discrete counterpart averages a fixed number of samples. On an infinite sequence that is zero except for value ten at index zero, a centred five-sample box average produces value two at indices and zero elsewhere. The total remains ten, while the isolated peak spreads. On a finite array, boundary extension must be specified; reflection, zero padding and wrapping can give different edge values.[ref]
uniform_filter1d in the SciPy documentation. Parameters size, mode and origin: window length, boundary extension and centring
Applying the same box average twice is not the same operation as applying it once. The new kernel is the convolution of the two kernels:Indeed, the integral counts the length of overlap of two intervals, divided by . The resulting support has width , and the weight decreases away from its centre.
For a Fourier mode , one application multiplies the amplitude by ; two applications square this multiplier. The sinc function response explains why a box average smooths a signal without implementing an ideal sharp frequency cutoff. In large eddy simulation, that distinction matters when relating a grid filter to a coarser test filter.
Spatial averaging filter 2026-11-05
A spatial averaging filter maps a spatially varying quantity to a weighted local average. For a translation-invariant kernel of characteristic width ,This is a convolution. The normalization preserves a constant value; the kernel determines how each spatial scale is changed. In large eddy simulation, the filter defines the resolved quantities whose evolution is calculated.[ref]
A dynamic subgrid-scale eddy viscosity model by Massimo Germano and others (1990). §2, equations 3–7: filter convolution and resulting resolved equations
For a one-dimensional box averaging filter,Integrating explicitly givesThe multiplier is a sinc function. A wave with retains amplitude , while one with is removed. This filter attenuates different Fourier modes differently; it is not an ideal sharp cutoff of all modes above one threshold.
A linear filter does not preserve products: generally . That lost product information produces the subgrid-scale stress. Nor does every filter satisfy ; applying the box average twice produces a different kernel.
With constant width on an unbounded or periodic region, differentiating the convolution gives under suitable regularity. A width varying with position or a special near-wall construction can introduce additional terms. Those assumptions must be stated before commuting a filter through a partial derivative.
Test filter 2026-11-05
A test filter is an additional spatial averaging filter applied to already resolved data in a dynamic subgrid-scale model. If is the field after the grid filter, a test kernel givesIt probes interactions within the available resolved motion at a coarser analysis level. It does not measure the original subgrid motion directly.[ref]
A dynamic subgrid-scale eddy viscosity model by Massimo Germano and others (1990). §2, grid and test filter construction and two-level stress definitions
For example, suppose two resolved values of one velocity component are and . A test average gives and , so the resolved differenceis nonzero. This quantity is computable from the resolved samples; a dynamic subgrid-scale model uses such information to constrain a closure.
The combined filter is , so its width cannot always be identified with the width of alone. A centred box averaging filter of width has second moment . Combining it with one of width gives second moment , because centred convolution kernels add their second moments. A single box of width has the same second moment, but not the same kernel shape.
Choosing a width convention is therefore part of the model. The Germano identity holds for the filters actually defined; an assumed relation between modeled stresses at those levels is an additional approximation. Near boundaries, the test operation also needs a specified treatment of data outside the available region.