Normalized inertias: GYRE vs ADIPLS
Posted: Fri Jan 03, 2014 11:02 am
Hi,
I've been mucking around with some results that use mode inertias. I found myself struggling to recover some previous results I computed with ADIPLS, and I seem to have narrowed the issue down to the mode inertias. Now, before I get too far ahead, I'm not sure this is really a bug rather than me not being careful about what is being computed, but the outputs take the same name and I'm not sure where the difference is.
Here's a plot of the normalized inertias for ADIPLS (blue) vs those of GYRE (green) for Model S from the ADIPLS distribution nested in MESA (mesa/adipls/adipls_tar_files/models.c.tar.gz/fgong.l5bi.d.15). The input files for GYRE and ADIPLS are attached. (Calculations done with GYRE 2.3.)
I'm not worried about the overall difference but the shapes of the curves are obviously different, especially at high frequencies. The ADIPLS curve flattens out (and actually turns around) whereas the GYRE curve keeps decreasing.
I've dug around quite a lot into the definitions of the normalizations because I know the linear perturbation analysis only defines the solution up to a constant scaling. I've used ekinr=1 in ADIPLS (see eqn 4.3b in the ADIPLS notes), which should correspond to inertia_norm_type = 'BOTH' in GYRE. I've dug around in the (beautifully clear!) GYRE code and it looks like the definition of E there is fine, up to a constant.
If I look at the unnormalized inertias (i.e. 'E' in the output), I find that they are always basically one. So I'm inferring that the normalization condition is such that this is true. For ADIPLS, I'm not so sure what's happening but it's implied that the condition is y_1 = xi_r / R = 1. (BTW, can phpBB do maths?) This could easily be the cause of the problem, but I'm not actually sure if this is the condition he uses and, in that case, which is right...
I would check the eigenfunctions directly but I'm not yet well-versed enough in ADIPLS to extract that kind of information. I'll get cracking, though.
W
I've been mucking around with some results that use mode inertias. I found myself struggling to recover some previous results I computed with ADIPLS, and I seem to have narrowed the issue down to the mode inertias. Now, before I get too far ahead, I'm not sure this is really a bug rather than me not being careful about what is being computed, but the outputs take the same name and I'm not sure where the difference is.
Here's a plot of the normalized inertias for ADIPLS (blue) vs those of GYRE (green) for Model S from the ADIPLS distribution nested in MESA (mesa/adipls/adipls_tar_files/models.c.tar.gz/fgong.l5bi.d.15). The input files for GYRE and ADIPLS are attached. (Calculations done with GYRE 2.3.)
I'm not worried about the overall difference but the shapes of the curves are obviously different, especially at high frequencies. The ADIPLS curve flattens out (and actually turns around) whereas the GYRE curve keeps decreasing.
I've dug around quite a lot into the definitions of the normalizations because I know the linear perturbation analysis only defines the solution up to a constant scaling. I've used ekinr=1 in ADIPLS (see eqn 4.3b in the ADIPLS notes), which should correspond to inertia_norm_type = 'BOTH' in GYRE. I've dug around in the (beautifully clear!) GYRE code and it looks like the definition of E there is fine, up to a constant.
If I look at the unnormalized inertias (i.e. 'E' in the output), I find that they are always basically one. So I'm inferring that the normalization condition is such that this is true. For ADIPLS, I'm not so sure what's happening but it's implied that the condition is y_1 = xi_r / R = 1. (BTW, can phpBB do maths?) This could easily be the cause of the problem, but I'm not actually sure if this is the condition he uses and, in that case, which is right...
I would check the eigenfunctions directly but I'm not yet well-versed enough in ADIPLS to extract that kind of information. I'll get cracking, though.
W