InternalModesConstantStratification
Solve the vertical mode problem for constant buoyancy frequency.
Declaration
classdef InternalModesConstantStratification < InternalModesBaseOverview
InternalModesConstantStratification provides the closed-form
solutions used throughout the package for validation and smoke
testing. In this model,
and the background density is the linear profile
\[\bar{\rho}(z) = \rho_0 - \frac{N_0^2 \rho_0}{g} z.\]The fixed-\(K\) and fixed-\(\omega\) solutions reduce to trigonometric or hyperbolic functions with analytically known equivalent depths, making this class the main reference implementation for checking the numerical solvers.
im = InternalModesConstantStratification(N0=5.2e-3, zIn=[-5000 0], zOut=zOut, latitude=33);
[F, G, h, omega] = im.modesAtWavenumber(2*pi/1000);
Topics
- Create and initialize modes
InternalModesConstantStratificationInitialize the constant-stratification analytical solver.
- Inspect grids and stratification
N0Constant buoyancy frequency \(N_0\) in radians per second.
- Compute modes
bottomModesAtWavenumberReturn the analytical bottom SQG mode for constant stratification.surfaceModesAtWavenumberReturn the analytical surface SQG mode for constant stratification.
- Inspect analytical solutions
BaroclinicModesWithEigenvalueEvaluate the analytical baroclinic mode shapes for given eigenvalues.BarotropicModeAtFrequencyReturn the analytical barotropic mode branch for fixed \(\omega\).BarotropicModeAtWavenumberReturn the analytical barotropic mode branch for fixed \(K\).BuoyancyFrequencyFromConstantStratificationEstimateN0andrho0from a constant-stratification profile.IsStratificationConstantTest whether a supplied profile is close to constant stratification.
Developer Topics
These items document internal implementation details and are not part of the primary public API.
- Developer topics
BaroclinicModeNormalizationReturn the requested analytical normalization factor for baroclinic modes.BarotropicModeEvaluate a chosen analytical barotropic branch.BarotropicModeNormalizationReturn the requested analytical normalization factor for the barotropic branch.