InternalModesExponentialStratification
Solve the vertical mode problem for exponential stratification.
Declaration
classdef InternalModesExponentialStratification < InternalModesBaseOverview
InternalModesExponentialStratification provides the closed-form
benchmark for the exponential profile used throughout the manuscript:
together with
\[\bar{\rho}(z) = \rho_0 \left(1 + \frac{b N_0^2}{2 g} \left(1 - e^{2 z / b}\right)\right).\]The resulting vertical modes are expressed in terms of Bessel functions, matching the analytical benchmark used in the validation sections of Early, Lelong, and Smith (2020).
im = InternalModesExponentialStratification(N0=5.2e-3, b=1300, zIn=[-5000 0], zOut=zOut, latitude=33);
[F, G, h, omega] = im.modesAtWavenumber(2*pi/1000);
Topics
- Create and initialize modes
InternalModesExponentialStratificationInitialize the exponential-stratification analytical solver.
- Inspect grids and stratification
- Compute modes
bottomModesAtWavenumberReturn the analytical bottom SQG mode for exponential stratification.surfaceModesAtWavenumberReturn the analytical surface SQG mode for exponential stratification.
- Inspect analytical solutions
BarotropicEquivalentDepthAtFrequencyEstimate the barotropic equivalent depth for fixed \(\omega\).BarotropicEquivalentDepthAtWavenumberEstimate the barotropic equivalent depth for fixed \(K\).FSolutionExact analytical \(F(z,\omega,c)\) solution handle.GSolutionExact analytical \(G(z,\omega,c)\) solution handle.IsStratificationExponentialTest whether a supplied profile is close to the exponential benchmark.N2FunctionBackground buoyancy-frequency function handle.NormalizedModesForOmegaAndCEvaluate and normalize analytical mode functions atzOut.rhoFunctionBackground density function handle.
Developer Topics
These items document internal implementation details and are not part of the primary public API.
- Developer topics
FSolutionApproxApproximate analytical \(F(z,\omega,c)\) solution handle.FindRootsInRangeFind analytical eigenvalue roots over a bounded search interval.GSolutionApproxApproximate analytical \(G(z,\omega,c)\) solution handle.ModeFunctionsForOmegaAndCSelect the exact or approximate analytical mode functions.kConstantNormalizationForOmegaAndCReturn thekConstantnormalization for the analytical exponential solution.nInitialSearchModesNumber of trial roots used when expanding the analytical search interval.shouldApproximatePredicate that chooses between exact and approximate Bessel forms.