SpECTRE
v2025.03.17
|
Matrices for filtering spectral coefficients. More...
Functions | |
Matrix | exponential_filter (const Mesh< 1 > &mesh, double alpha, unsigned half_power) |
Returns a Matrix by which to multiply the nodal coefficients to apply a stable exponential filter. More... | |
const Matrix & | zero_lowest_modes (const Mesh< 1 > &mesh, size_t number_of_modes_to_zero) |
Zeros the lowest number_of_modes_to_zero modal coefficients. Note that the matrix must be applied to a nodal representation. More... | |
Matrices for filtering spectral coefficients.
Matrix Spectral::filtering::exponential_filter | ( | const Mesh< 1 > & | mesh, |
double | alpha, | ||
unsigned | half_power | ||
) |
Returns a Matrix
by which to multiply the nodal coefficients to apply a stable exponential filter.
The exponential filter rescales the modal coefficients according to:
where
const Matrix & Spectral::filtering::zero_lowest_modes | ( | const Mesh< 1 > & | mesh, |
size_t | number_of_modes_to_zero | ||
) |
Zeros the lowest number_of_modes_to_zero
modal coefficients. Note that the matrix must be applied to a nodal representation.
Given a function
where number_of_modes_to_zero
modal coefficients. That is, after the filter is applied
where