addRandomFlow
add randomized flow to the existing state
Declaration
addRandomFlow(flowComponentNames,options)
Parameters
flowComponentNamesstrings of flow component names names.uvMax(optional) maximum horizontal velocityA0Spectrum(optional) function_handle of the form @(k,j)ApmSpectrum(optional) function_handle of the form @(k,j)shouldOnlyRandomizeOrientationsamplitudes follow the spectrum exactly, but directions are still randomized
Discussion
Adds random amplitudes at all available modes. Optionally, you can specify which components of the flow should get initialized. For example,
wvt.addRandomFlow();
will add noise at all modes, while
wvt.addRandomFlow('geostrophic','mda');
will add random flow at only thegeostrophic and mean density anomaly flow components, while the wave and inertial oscillations components will remain untouched