You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/source/changelog.rst
+11-7Lines changed: 11 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -66,14 +66,18 @@ options for :ref:`kap/defaults:kap_lowT_prefix`:
66
66
67
67
**Opacity interpolation**
68
68
69
+
We have updated the opacity interpolation scheme to provide much higher quality derivatives when doing cubic interpolation
70
+
in composition.
71
+
69
72
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,
71
74
while leaving the default as linear interpolation::
72
75
73
76
cubic_interpolation_in_X = .false.
74
77
cubic_interpolation_in_Z = .false.
75
78
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
77
81
density and temperature, which often disagreed with the numerical derivatives produced via nearest neighbor
78
82
Richardson extrapolation. The figure below shows this comparison on a logarithmic scale, where in general red indicates poor quality
79
83
derivatives and blue indicates high quality derivatives.
@@ -82,10 +86,10 @@ derivatives and blue indicates high quality derivatives.
82
86
:alt:old cubic relative kap derivative error
83
87
84
88
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.
89
93
90
94
91
95
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
94
98
To improve the numerical stability of MESA's cubic opacity interpolation routines, we have implemented
95
99
automatic differentiation into the opacity interpolating functions. Now, when using cubic interpolation, the opacity derivatives for an arbitrary mixture
96
100
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.
0 commit comments