Filter (large eddy simulation)#Gaussian filter
Filtering in the context of large eddy simulation (LES) is a mathematical operation intended to remove a range of small scales from the solution to the Navier-Stokes equations. Because the principal difficulty in simulating turbulent flows comes from the wide range of length and time scales, this operation makes turbulent flow simulation cheaper by reducing the range of scales that must be resolved. The LES filter operation is low-pass, meaning it filters out the scales associated with high frequencies.
Homogeneous filters
File:DNS Velocity Field.png of homogeneous decaying turbulence. The domain size is {{math|L3}}.]]
File:DNS Filtered Velocity Field Small.png and {{math| Δ {{=}} L/32}}]]
File:DNS Filtered Velocity Field Large.png and {{math| Δ {{=}} L/16}}]]
= Definition in physical space =
The low-pass filtering operation used in LES can be applied to a spatial and temporal field, for example . The LES filter operation may be spatial, temporal, or both. The filtered field, denoted with a bar, is defined as:{{cite book
|author=Sagaut, Pierre
|title=Large Eddy Simulation for Incompressible Flows
|publisher=Springer
|year=2006
|edition=Third
|isbn=3-540-26344-6 }}{{cite book
|first=Stephen
|last=Pope
|title=Turbulent Flows
|url=http://www.cambridge.org/catalogue/catalogue.asp?isbn=0521598869
|publisher=Cambridge University Press
|year=2000
|isbn=978-0-521-59886-6 }}
:
\overline{\phi(\boldsymbol{x},t)} = \displaystyle{
\int_{-\infty}^{\infty}} \int_{-\infty}^{\infty} \phi(\boldsymbol{r},t^{\prime}) G(\boldsymbol{x}-\boldsymbol{r},t - t^{\prime}) dt^{\prime} d \boldsymbol{r},
where is a convolution kernel unique to the filter type used. This can be written as a convolution operation:
:
\overline{\phi} = G \star \phi .
The filter kernel uses cutoff length and time scales, denoted and respectively. Scales smaller than these are eliminated from Using this definition, any field may be split up into a filtered and sub-filtered (denoted with a prime) portion, as
:
\phi = \bar{\phi} + \phi^{\prime} .
This can also be written as a convolution operation,
:
\phi^{\prime} = \left( 1 - G \right) \star \phi .
= Definition in spectral space =
The filtering operation removes scales associated with high frequencies, and the operation can accordingly be interpreted in Fourier space. For a scalar field the Fourier transform of is a function of the spatial wave number, and the temporal frequency. can be filtered by the corresponding Fourier transform of the filter kernel, denoted
:
\overline{ \hat{ \phi } }(\boldsymbol{k},\omega) = \hat{ \phi }(\boldsymbol{k},\omega) \hat{G}(\boldsymbol{k},\omega)
or,
:
\overline{ \hat{ \phi } } = \hat{G} \hat{\phi} .
The filter width has an associated cutoff wave number and the temporal filter width also has an associated cutoff frequency The unfiltered portion of is:
:
\hat{\phi^{\prime}} = (1 - \hat{G}) \hat{\phi}.
The spectral interpretation of the filtering operation is essential to the filtering operation in large eddy simulation, as the spectra of turbulent flows is central to LES subgrid-scale models, which reconstruct the effect of the sub-filter scales (the highest frequencies). One of the challenges in subgrid modeling is to effectively mimic the cascade of kinetic energy from low to high frequencies. This makes the spectral properties of the implemented LES filter very important to subgrid modeling efforts.
= Homogeneous filter properties =
Homogeneous LES filters must satisfy the following set of properties when applied to the Navier-Stokes equations.
;1. Conservation of constants
:The value of a filtered constant must be equal to the constant,
::
\overline{a} = a,
:which implies,
::
\int_{-\infty}^{\infty} \int_{-\infty}^{\infty} G( \boldsymbol{\xi}, t^{\prime} ) d^3 \boldsymbol{\xi} dt^{\prime} = 1.
;2. Linearity
::
\overline{ \phi + \psi } = \overline{\phi} + \overline{\psi}.
;3. Commutation with derivatives
::
\overline{ \frac{\partial \phi}{\partial s} } = \frac{\partial \overline{\phi} }{\partial s}, \qquad s = \boldsymbol{x}, t.
:If notation is introduced for operator commutation for two arbitrary operators and , where
::
[f, g] \phi = f \circ g(\phi) - g \circ f(\phi) = f(g(\phi)) - g(f(\phi)),
:then this third property can be expressed as
::
\left[ G \star, \frac{\partial}{\partial s} \right] = 0.
Filters satisfying these properties are generally not Reynolds operators, meaning, first:
:
\begin{array}{rcl}
\overline{ \overline{ \phi } } &\neq& \overline{\phi}, \\
G \star G \star \phi = G^2 \star \phi &\neq& G \star \phi,
\end{array}
and second,
:
\overline{\phi^{\prime}} = G \star (1-G) \star \phi \neq 0 .
Inhomogeneous filters
Implementations of filtering operations for all but the simplest flows are inhomogeneous filter operations. This means that the flow either has non-periodic boundaries, causing problems with certain types of filters, or has a non-constant filter width , or both. This prevents the filter from commuting with derivatives, and the commutation operation leads to several additional error terms:
:
\begin{array}{rcl}
\left[ \frac{\partial}{\partial \boldsymbol{x}}, G \star \right] \phi
&=& \frac{ \partial }{ \partial \boldsymbol{x} } \left( G \star \phi \right) - G \star \frac{\partial \phi}{\partial \boldsymbol{x} } \\
&=& \frac{ \partial }{ \partial \boldsymbol{x} } \int_{\Omega} G( \boldsymbol{x} - \boldsymbol{r}, \Delta(\boldsymbol{x},t)) \phi(\boldsymbol{r},t) d \boldsymbol{r} - G \star \frac{\partial \phi}{\partial \boldsymbol{x} } \\
&=& \left( \frac{ \partial G }{ \partial \Delta } \star \phi \right) \frac{\partial \Delta}{\partial x} + \int_{d \Omega} G(x-r, \Delta(x,t)) \phi(r,t) \boldsymbol{n} dS
\end{array},
where is the vector normal to the surface of the boundary and
The two terms both appear due to inhomogeneities. The first is due to the spatial variation in the filter size while the second is due to the domain boundary. Similarly, the commutation of the filter with the temporal derivative leads to an error term resulting from temporal variation in the filter size,
:
\left[ \frac{\partial}{\partial t}, G \star \right] = \left( \frac{\partial G}{\partial \Delta} \star \phi \right) \frac{\partial \Delta}{\partial t}.
Several filter operations which eliminate or minimize these error terms have been proposed.{{Citation needed|date=November 2010}}
Classic large eddy simulation filters
{{Expand section|Proper alignment of plots|date=January 2020}}
File:EnergySpectrumAndFilteringOperations.png
There are three filters ordinarily used for spatial filtering in large eddy simulation. The definition of and and a discussion of important properties, is given.
= Box filter =
The filter kernel in physical space is given by:
:
G(\boldsymbol{x} - \boldsymbol{r}) = \begin{cases}
\frac{1}{\Delta}, & \text{if} \left| \boldsymbol{x} - \boldsymbol{r} \right| \leq \frac{ \Delta }{ 2 }, \\
0, & \text{otherwise}.
\end{cases}
The filter kernel in spectral space is given by:
:
\hat{G}(\boldsymbol{k}) = \frac{ \sin{( \frac{1}{2} k \Delta )} }{ \frac{1}{2} k \Delta }.
= Gaussian filter =
The filter kernel in physical space is given by:
:
G(\boldsymbol{x} - \boldsymbol{r}) = \left( \frac{ 6 }{ \pi \Delta^{2} } \right)^{\frac{1}{2}} \exp{ \left( - \frac{6 (\boldsymbol{x-r})^2}{\Delta^2} \right) }.
The filter kernel in spectral space is given by:
:
\hat{G}(\boldsymbol{k}) = \exp{ \left( -\frac{ \boldsymbol{k}^2 \Delta^2 }{ 24 } \right) }.
= Sharp spectral filter =
The filter kernel in physical space is given by:
:
G(\boldsymbol{x} - \boldsymbol{r}) = \frac{ \sin{( \pi (\boldsymbol{x-r}) / \Delta )} }{ \pi (\boldsymbol{x-r}) }.
The filter kernel in spectral space is given by:
:
\hat{G}(\boldsymbol{k}) = H \left( k_c - \left| k \right| \right), \qquad k_c = \frac{ \pi }{ \Delta }.