WVAntialiasing

Apply explicit spectral antialias filtering for diagnostics.


Declaration

WVAntialiasing < WVForcing

Overview

This closure removes coefficient tendencies in aliased modes and sets those coefficients to zero after every integration step. The horizontal mask uses the transform’s quadratic-aliasing rule. Vertical modes with j >= Nj are discarded; Nj defaults to floor(2*wvt.Nj/3).

Transform-level antialiasing is enabled by default and is more efficient because discarded modes are never computed. Explicit antialiasing is intended for measuring the filter’s effect on energy and potential enstrophy. Construct the transform with shouldAntialias=false before adding this closure. It is compatible with wave-bearing and QG transforms.

Example

wvt = WVTransformConstantStratification([40e3,30e3,2e3],[8,6,5],N0=5.2e-3,latitude=45,isHydrostatic=true,shouldAntialias=false);
wvt.addForcing(WVAntialiasing(wvt));

Topics

  • Create the forcing
  • Inspect forcing configuration
    • Nj Number of retained vertical modes.
  • Inspect forcing or damping scales

Developer Topics

These items document internal implementation details and are not part of the primary public API.

  • Forcing persistence
  • Forcing internals
    • M Logical-shape spectral mask of discarded coefficients.


This site uses Just the Docs, a documentation theme for Jekyll.