Skip to content

Commit 7d3d000

Browse files
committed
[ci skip] another changelog tweak
1 parent 6005eb0 commit 7d3d000

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

docs/source/changelog.rst

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,18 @@ options for :ref:`kap/defaults:kap_lowT_prefix`:
6666

6767
**Opacity interpolation**
6868

69+
We have updated the opacity interpolation scheme to provide much higher quality derivatives when doing cubic interpolation
70+
in composition.
71+
6972
MESA interpolates across opacity tables in the :math:`X–Z` plane through the use of two consequtive 1D splines.
70-
Previous versions of MESA have offered users the ability to choose linear or cubic interpolation for these splines,
73+
MESA offers users the ability to choose linear or cubic interpolation for these splines,
7174
while leaving the default as linear interpolation::
7275

7376
cubic_interpolation_in_X = .false.
7477
cubic_interpolation_in_Z = .false.
7578

76-
We have refrained from adopting cubic interpolation as the default due to poor quality interpolated opacity derivatives with respect to
79+
This choice of default was primarily due to the fact that
80+
the previous cubic composition interpolation scheme in MESA suffered from poor quality interpolated opacity derivatives with respect to
7781
density and temperature, which often disagreed with the numerical derivatives produced via nearest neighbor
7882
Richardson extrapolation. The figure below shows this comparison on a logarithmic scale, where in general red indicates poor quality
7983
derivatives and blue indicates high quality derivatives.
@@ -82,10 +86,10 @@ derivatives and blue indicates high quality derivatives.
8286
:alt: old cubic relative kap derivative error
8387

8488
This figure shows the logarithmic relative error in the derivative :math:`\partial \kappa / \partial T` (:math:`X` = 0.625, :math:`Z` = 0.015),
85-
for an OPAL opacity table grid using Grevesse & Sauval (1998) abundances, generated from MESA’s kap module, using cubic interpolation.
86-
The OPLIB log(:math:`R`) = −8, 1.5 table boundaries are marked with a solid black line and the OPAL/OP log(:math:`R`) = 1.0 boundary is shown with a dashed line.
87-
The approximate location of the Z-dependent transition to an electron conduction dominated opacity is marked with dot-dash blue curve. Regions for Atomic, molecular,
88-
and compton scattering opacity are labeled and presented with their associated blending regions.
89+
for an OPAL opacity table grid using Grevesse & Sauval (1998) abundances, generated from MESA’s kap module, using the previous cubic interpolation scheme.
90+
The OPLIB log(:math:`R`) = −8, 1.5 table boundaries are marked with a solid black line and the OPAL/OP log(:math:`R`) = 1.0 boundary is shown with a dashed line.
91+
The approximate location of the Z-dependent transition to an electron conduction dominated opacity is marked with dot-dash blue curve.
92+
Regions for Atomic, molecular, and compton scattering opacity are labeled and presented with their associated blending regions.
8993

9094

9195
While the opacity derivatives do not directly appear in the canonical equations of stellar structure, they do appear in the Jacobian matrix for MESA's implicit solver.
@@ -94,7 +98,7 @@ Numerically unstable opacity derivatives can halt the progress of the solver and
9498
To improve the numerical stability of MESA's cubic opacity interpolation routines, we have implemented
9599
automatic differentiation into the opacity interpolating functions. Now, when using cubic interpolation, the opacity derivatives for an arbitrary mixture
96100
in the :math:`X–Z` plane are computed by taking the derivative of the interpolating function as opposed to the interpolant of the derivatives. This improvement
97-
has lead to a significant reduction in the relative derivative error and an increase in the numerical accuracy of opacity derivatives computed with cubic interpolation.
101+
has led to a significant reduction in the relative derivative error and an increase in the numerical accuracy of opacity derivatives computed with cubic interpolation.
98102

99103
.. figure:: changelog_plots/cubic_dfridr_dkapdT_ad.png
100104
:alt: new cubic relative kap derivative error

0 commit comments

Comments
 (0)