setGeostrophicModes
set amplitudes of the given geostrophic modes
Declaration
[k,l] = setGeostrophicModes(self)
Parameters
kMode
integer index, (kMode > -Nx/2 && kMode < Nx/2)lMode
integer index, (lMode > -Ny/2 && lMode < Ny/2)j
integer index, (j >= 1 && j <= nModes), unless k=l=j=0phi
(optional) phase in radians, (0 <= phi <= 2*pi), default 0u
fluid velocity u (m/s)
Returns
k
wavenumber k of the kModes (radians/m)l
wavenumber l of the lModes (radians/m)
Discussion
Set the amplitude of the given geostrophic modes by overwriting any existing amplitudes. The parameters are given as horizontal and vertical modes, and the function will return the associated horizontal wavenumbers of those modes.
For example,
wvt.addGeostrophicModes(kMode=0,lMode=1,jMode=1,u=0.5);
will add a geostrophic mode.