Implements numerical filtering schemes for Large Eddy Simulation (LES). More...
Go to the source code of this file.
Macros | |
| #define | __FUNCT__ "ApplyLESTestFilter" |
| #define | __FUNCT__ "ApplyLESTestFilterSymTensor" |
Functions | |
| static double | ApplySimpsonRuleHomogeneousFilter (double values[3][3][3]) |
| Apply the two-dimensional Simpson stencil on the central homogeneous-plane samples. | |
| static double | ApplyVolumeWeightedBoxFilter (double values[3][3][3], double weights[3][3][3]) |
| Average a 3x3x3 stencil with cell-volume weights while excluding solid cells. | |
| double | ApplyLESTestFilter (LESTestFilterKernel kernel, double values[3][3][3], double weights[3][3][3]) |
| Implementation of ApplyLESTestFilter(). | |
| PetscErrorCode | ApplyLESTestFilterSymTensor (LESTestFilterKernel kernel, SymTensor values[3][3][3], double weights[3][3][3], SymTensor *filtered) |
| Implementation of ApplyLESTestFilterSymTensor(). | |
Implements numerical filtering schemes for Large Eddy Simulation (LES).
This file contains the functions necessary to apply a "test filter" to the resolved velocity field, which is a core component of the dynamic Smagorinsky turbulence model. The choice of filter (e.g., a general 3D box filter or a specialized 2D homogeneous filter) is determined by the simulation's configuration.
Definition in file Filter.c.
|
static |
Apply the two-dimensional Simpson stencil on the central homogeneous-plane samples.
Definition at line 21 of file Filter.c.
|
static |
Average a 3x3x3 stencil with cell-volume weights while excluding solid cells.
Definition at line 37 of file Filter.c.
| double ApplyLESTestFilter | ( | LESTestFilterKernel | kernel, |
| double | values[3][3][3], | ||
| double | weights[3][3][3] | ||
| ) |
Implementation of ApplyLESTestFilter().
Applies a numerical "test filter" to a 3x3x3 stencil of data points.
Full API contract (arguments, ownership, side effects) is documented with the header declaration in include/Filter.h.
Definition at line 123 of file Filter.c.
| PetscErrorCode ApplyLESTestFilterSymTensor | ( | LESTestFilterKernel | kernel, |
| SymTensor | values[3][3][3], | ||
| double | weights[3][3][3], | ||
| SymTensor * | filtered | ||
| ) |
Implementation of ApplyLESTestFilterSymTensor().
Applies the test filter to all six components of a symmetric tensor.
Full API contract (arguments, ownership, side effects) is documented with the header declaration in include/Filter.h.
Definition at line 147 of file Filter.c.