xoa.core.modes.vertical_modes

Contents

xoa.core.modes.vertical_modes#

xoa.core.modes.vertical_modes(n2, z, nmodes=5, free_surface=False, zmin=-inf, zmax=inf, n2min=1e-09, gravity=9.81)[source]#

Vertical modes of water columns

The problem is discretized with the levels where the stratification is given. The levels where the stratification or the depth is missing, like the ones that are below the bottom, are not used, which allows columns of different depths.

Parameters:
  • n2 (array_like(..., nz)) – Squared Brunt-Vaisala frequency in s-2, at the levels

  • z (array_like(..., nz)) – Vertical coordinate of the levels in meters, that is positive up. It is broadcast with n2, and the levels may be in any order.

  • nmodes (int) – Number of modes, the first one being the barotropic mode. The modes that cannot be computed, because there are not enough levels, are missing.

  • free_surface (bool) – Use the free surface boundary condition instead of the rigid lid. The speed of the barotropic mode is only defined with the free surface.

  • zmin (float) – Only the levels that are in this layer are used, and the modes then have no flux through its limits, which focuses on a part of the water column.

  • zmax (float) – Only the levels that are in this layer are used, and the modes then have no flux through its limits, which focuses on a part of the water column.

  • n2min (float) – Minimal stratification in s-2, which is used where it is smaller, like in unstable or mixed layers.

  • gravity (float) – Gravity acceleration, which is used by the free surface

Returns:

  • array(…, nmodes, nz) – The modes, normalized so that the mean of their squares over the water column is one, and positive at the surface. They are missing where dz is.

  • array(…, nmodes) – The speeds of the modes in m s-1, which are missing for the barotropic mode of the rigid lid, that is infinitely fast.

  • array(…, nz) – Thickness of the layers around the levels, with half layers at the ends of the water column, which are the weights of the integrals.

See also

project, reconstruct