WVTransformBoussinesq

Decompose nonhydrostatic variable-stratification flow into wave and geostrophic components.


Declaration

classdef WVTransformBoussinesq < WVTransform

Overview

To initialize an instance of the WVTransformBoussinesq class you must specify the domain size, the number of grid points, and either the density profile or the stratification profile.

N0 = 3*2*pi/3600;
L_gm = 1300;
N2 = @(z) N0*N0*exp(2*z/L_gm);
wvt = WVTransformBoussinesq([100e3,100e3,4000],[64,64,65],N2Function=N2,latitude=30);

The transform state is stored in Ap, Am, and A0. Their current-time views are Apt, Amt, and A0t.

Topics

  • Create and restore a transform
  • Inspect the domain
    • Physical environment
      • Planetary rotation
        • beta Meridional gradient of the Coriolis parameter.
        • f Coriolis parameter in radians per second.
        • inertialPeriod Inertial period in seconds.
        • latitude Central latitude of the rotating domain in degrees north.
        • planetaryRadius Radius of the rotating planetary body in meters.
        • rotationRate Planetary rotation rate in radians per second.
      • Stratification and reference density
        • N2 Buoyancy frequency squared sampled on the vertical grid.
        • N2Function Function returning buoyancy frequency squared at requested depths.
        • buoyancyPeriod Shortest buoyancy period in seconds.
        • dLnN2 \(\partial_z \ln N^2\), vertical derivative of the logarithm of squared buoyancy frequency
        • rho0 Boussinesq reference density in kilograms per cubic meter.
        • rhoFunction Function returning the no-motion density profile at requested depths.
        • shouldUseTrueNoMotionProfile Whether density diagnostics use the supplied no-motion profile directly.
      • Gravity
        • g Gravitational acceleration in meters per second squared.
    • Spatial grid
      • Coordinate axes
        • x Periodic x-coordinate axis in meters.
        • y Periodic y-coordinate axis in meters.
        • z Three-dimensional vertical-coordinate array in meters.
      • Coordinate arrays
        • X Gridded x-coordinate array in meters with shape [Nx Ny Nz].
        • Y Gridded y-coordinate array in meters with shape [Nx Ny Nz].
        • Z Gridded vertical-coordinate array in meters with shape [Nx Ny Nz].
        • xyzGrid Return the three-dimensional spatial coordinate arrays.
      • Domain dimensions
        • Lx Periodic domain length in the x direction.
        • Ly Periodic domain length in the y direction.
        • Lz Vertical domain depth in meters.
      • Resolution and shape
        • Nx Number of spatial grid points in the x direction.
        • Ny Number of spatial grid points in the y direction.
        • Nz Number of vertical spatial grid points.
        • spatialMatrixSize Shape of a gridded physical-space field.
      • Quadrature and integration
        • z_int Vertical quadrature weights in meters.
        • volumeIntegral Compute the horizontally averaged depth integral of a scalar field.
    • Spectral grid
      • Compact grid vectors
        • k Compact Nkl-by-1 x-wavenumber vector in \(\mathrm{rad\,m^{-1}}\).
        • l Compact Nkl-by-1 y-wavenumber vector in \(\mathrm{rad\,m^{-1}}\).
        • j Dimensionless Nj-by-1 vertical-mode index vector.
      • Compact grid arrays
        • K X-direction angular-wavenumber array in \(\mathrm{rad\,m^{-1}}\) with shape [Nj Nkl].
        • L Y-direction angular-wavenumber array in \(\mathrm{rad\,m^{-1}}\) with shape [Nj Nkl].
        • J Dimensionless vertical-mode index array with shape [Nj Nkl].
        • kljGrid Return spectral-coordinate arrays in wave-vortex layout.
      • Wavenumber spacing
        • dk Spacing of the x-direction angular-wavenumber axis.
        • dl Spacing of the y-direction angular-wavenumber axis.
      • Horizontal wavenumber geometry
        • Kh Horizontal angular-wavenumber magnitude on the coefficient grid.
        • K2 Squared horizontal angular wavenumber on the coefficient grid.
      • Resolution and shape
      • Vertical modes and scaling
        • verticalModes Vertical-mode solution used to construct the transform basis.
        • h_0 Geostrophic equivalent-depth scale for each vertical mode.
        • h_pm Wave equivalent depth on the spectral grid.
        • Lr2 Squared Rossby deformation radius in square meters.
        • waveModeVerticalStructureAtIndex Return wave vertical-structure factors at one vertical grid index.
      • Vertical-mode transformation matrices
        • FMatrix Transformation matrix \(F\) projecting F-grid values onto vertical modes; shape [Nj Nz].
        • FinvMatrix Transformation matrix \(F^{-1}\) reconstructing F-grid values from vertical modes; shape [Nz Nj].
        • GMatrix Transformation matrix \(G\) projecting G-grid values onto vertical modes; shape [Nj Nz].
        • GinvMatrix Transformation matrix \(G^{-1}\) reconstructing G-grid values from vertical modes; shape [Nz Nj].
    • Transform configuration
      • isHydrostatic Whether the transform uses the hydrostatic approximation.
      • shouldAntialias Whether the spectral grid excludes modes that alias quadratic products.
  • Initialize the flow
  • Evaluate physical fields
    • Registered variables
    • On the model grid
      • Velocity
        • u x-component of the fluid velocity
        • v y-component of the fluid velocity
        • w z-component of the fluid velocity
      • Density and displacement
        • eta approximate isopycnal deviation
        • rho_bar Current horizontally averaged density, [Nz 1], in \(\mathrm{kg\,m^{-3}}\).
        • rho_e excess density
        • rho_nm Diagnosed no-motion density profile, [Nz 1], in \(\mathrm{kg\,m^{-3}}\).
        • rho_nm0 Reference no-motion density profile, [Nz 1], in \(\mathrm{kg\,m^{-3}}\).
        • rho_total total potential density
      • Pressure and surface fields
        • p pressure anomaly
        • pi height anomaly
        • ssh sea-surface height
        • ssu x-component of the fluid velocity at the surface
        • ssv y-component of the fluid velocity at the surface
      • Vorticity and geostrophic fields
        • psi geostrophic streamfunction
        • qgpv quasigeostrophic potential vorticity
        • zeta_x x-component component of relative vorticity
        • zeta_y y-component component of relative vorticity
        • zeta_z vertical component of relative vorticity
    • At arbitrary positions
    • Isopycnal utilities
  • Manage forcing and closures
    • Configure forcing
    • Inspect forcing and closures
    • Summarize forcing
  • Analyze the flow
  • Analyze energy
  • Save transform state
  • Convert representations
  • Differentiate and integrate fields
    • diffX Differentiate a gridded field in the periodic x direction.
    • diffY Differentiate a gridded field in the periodic y direction.
    • diffZF Differentiate an F-grid field with respect to z.
    • diffZG Differentiate a G-grid field with respect to z.
    • intZF Return the first antiderivative of an F-representation.
    • intZG Return the bottom-zero first antiderivative of a G-representation.
  • Inspect flow components
  • Inspect wave-vortex coefficients
    • Stored coefficients
      • Ap Positive-frequency wave–vortex coefficient array.
      • Am Negative-frequency wave–vortex coefficient array.
      • A0 Zero-frequency wave–vortex coefficient array.
    • Coefficients at the current time
      • Apt Apt is the positive-frequency coefficient array evaluated at the current transform time:
      • Amt Amt is the negative-frequency coefficient array evaluated at the current transform time:
      • A0t A0t is the zero-frequency coefficient array evaluated at the current transform time. On the supported \(f\)-plane transforms, A0 has no linear phase winding and therefore
      • waveCoefficientsAtTimeT Return positive- and negative-frequency coefficients at the current time.
    • Coefficient evolution
      • t0 Reference time for the stored wave phases, in seconds.
      • t Current transform time in seconds.
      • Omega Intrinsic angular frequency of each wave and inertial mode.
      • iOmega Imaginary angular frequency, \(i\Omega\), used for linear phase evolution.
      • phase unit-magnitude phase factor that advances Ap from t0 to t
      • conjPhase conjugate phase factor that advances Am from t0 to t
  • Create a related transform
  • Extend a transform
  • Get package information
    • version Installed WaveVortexModel version.

Developer Topics

These items document internal implementation details and are not part of the primary public API.



This site uses Just the Docs, a documentation theme for Jekyll.