setGeostrophicModes
set amplitudes of the given geostrophic modes
Declaration
[k,l] = setGeostrophicModes(self)
Parameters
kModeinteger index, (kMode > -Nx/2 && kMode < Nx/2)lModeinteger index, (lMode > -Ny/2 && lMode < Ny/2)jinteger index, (j >= 1 && j <= nModes), unless k=l=j=0phi(optional) phase in radians, (0 <= phi <= 2*pi), default 0ufluid velocity u (m/s)
Returns
kwavenumber k of the kModes (radians/m)lwavenumber 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.