WVNarrowBandGeostrophicForcing
Initialize and hold a narrow band of geostrophic coefficients.
Declaration
classdef WVNarrowBandGeostrophicForcing < WVFixedAmplitudeForcingOverview
WVNarrowBandGeostrophicForcing selects the radial band
\(k_f-\Delta k/2<K_h<k_f+\Delta k/2\) at vertical mode j_f and
holds those A0 coefficients fixed while they continue to participate
in nonlinear interactions. Active WVAdaptiveDamping support is
excluded by the inherited fixed-amplitude selection behavior.
The diagnostic modelSpectrum is a function of radial wavenumber
\(k\) in radians per meter. It returns the legacy geostrophic energy
spectrum in \(\mathrm{m^{3}\,s^{-2}}\),
Supplying r makes it authoritative and derives the effective k_r.
Otherwise k_r is authoritative and derives the effective r. Both
effective values are stored. The hydrostatic/stratified and barotropic
branches retain their distinct surface scaling.
Construction has an intentional transform side effect unless
initialPV="none". The default "narrow-band" draws the configured
random spectrum and assigns only the selected band to wvt.A0;
"full-spectrum" assigns the complete draw. Both choices consume the
global random stream. "none" leaves wvt.A0 unchanged and fixes its
current values in the selected band. Restart and resolution conversion
use persisted selected state, reconstruct modelSpectrum from the
scalar configuration, and do not initialize the target transform or
consume random numbers.
Example
wvt = WVTransformBarotropicQG([40e3,40e3],[8,8],latitude=45,shouldAntialias=false);
force = WVNarrowBandGeostrophicForcing(wvt,k_f=2*wvt.dk,u_rms=0.1);
wvt.addForcing(force);
E = force.modelSpectrum(wvt.kRadial);
Topics
- Create the forcing
WVNarrowBandGeostrophicForcingCreate narrow-band geostrophic fixed-amplitude forcing.
- Inspect forcing configuration
A0_indicesLinear indices of the selectedA0coefficients.rEffective large-scale damping rate in inverse seconds.A0barPrescribedA0values in \(\mathrm{m^{2}\,s^{-1}}\).k_rEffective arrest wavenumber \(k_r\) in radians per meter.Ap_indicesLinear indices of the selectedApcoefficients.k_fCenter wavenumber \(k_f\) of the forced band in radians per meter.ApbarPrescribedApvalues in \(\mathrm{m\,s^{-1}}\).j_fForced vertical geostrophic-mode number.Am_indicesLinear indices of the selectedAmcoefficients.u_rmsTarget surface root-mean-square speed in meters per second.AmbarPrescribedAmvalues in \(\mathrm{m\,s^{-1}}\).initialPVPotential-vorticity initialization choice.modelSpectrumConfigured radial geostrophic energy-spectrum function.
- Configure forcing
setWaveForcingCoefficientsSelect positive- and negative-frequency coefficients to fix.setGeostrophicForcingCoefficientsSelect zero-frequency coefficients to fix.setNarrowBandGeostrophicForcingDeprecated 4.x helper for narrow-band geostrophic forcing.
Developer Topics
These items document internal implementation details and are not part of the primary public API.
- Forcing persistence
classRequiredPropertyNamesReturn configuration and selected state required for restart.