Using GYRE machinery to evaluate eigenvalues of Laplace's tidal equations
Posted: Tue Jun 11, 2019 4:06 am
Hi,
I'm currently trying to reproduce some g-mode analysis that involves a formula with eigenvalues of Laplace's tidal equation. This is beyond my usual area of expertise but, given a vague notion that this is something GYRE needs for the Traditional Approximation of Rotation (TAR), I went digging around inside GYRE to see how it evaluates the eigenvalues.
As far as I can tell, this is done through approximations in terms of Chebyshev polynomials, the coefficients of which are stored in data/tar. Fortunately, the segment of code, located in src/tar, include nifty Python routines for plotting evaluations of these functions. So I tried to reproduce Fig. 1 of Lee & Saio (1997).
At risk of offending the copyright gods, here's their figure:
Whereas here's my output from going to src/tar and running
Basically, spot on, except there's clearly a sign difference. What have I missed? As far as I can tell from eq. (8)-(12) in Lee & Saio (1997) and Townsend (2003, which I presume is relevant?) the convention for the sign of the azimuthal dependence in the equations is the same, in the sense that in both papers the eigenfunctions go like exp(+imφ).
Cheers,
Warrick
I'm currently trying to reproduce some g-mode analysis that involves a formula with eigenvalues of Laplace's tidal equation. This is beyond my usual area of expertise but, given a vague notion that this is something GYRE needs for the Traditional Approximation of Rotation (TAR), I went digging around inside GYRE to see how it evaluates the eigenvalues.
As far as I can tell, this is done through approximations in terms of Chebyshev polynomials, the coefficients of which are stored in data/tar. Fortunately, the segment of code, located in src/tar, include nifty Python routines for plotting evaluations of these functions. So I tried to reproduce Fig. 1 of Lee & Saio (1997).
At risk of offending the copyright gods, here's their figure:
Whereas here's my output from going to src/tar and running
Code: Select all
python3 plot_tar_fit.py -10.0 10.0 201 ../../data/tar/tar_fit.m-2.*.h5 LS97_Fig1.png
Cheers,
Warrick