Open
Conversation
|
Just thought I would mention, a possible alternative could be to calculate the Z values for every ATLAS model on the grid, and then use Z throughout the whole code. |
Member
Author
|
@JakeBHassan That's a good idea! |
Member
Author
|
I'm not totally sure interpolating in logZ would provide any benefit or be any different from interpolating in [Fe/H], but i need to think about it longer. Sidenote: I notice the Atlas grids shipped with MESA stop at only -2.5 in [Fe/H], i think. I'm guessing this was a deliberate choice by @nialljmiller so as to not to inflate the repo size, but i'm curious how expensive it would be to extend the grid downward to say -4. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pr addresses the colors bug motivated by Jake Hassan's investigation in #938.
I think the main issue was that the colors module was using Zbase instead of the photospheric metallicity for interpolating the atmosphere tables. The solution was to switch to using metallicity, and add a control for the default reference metallicity used in the computation of the atmosphere tables, which i believe is gs98 for Atlas9. I've added docs for this change as well, but a changelog entry is still necessary, and potentially a "known bugs" entry.
mesa/star/private/history.f90
Lines 270 to 271 in 9ee3f0a
And then in another location, negative metallicities were being rejected (I think since Z was being used instead of [Fe/H])
mesa/colors/private/colors_history.f90
Line 115 in 9ee3f0a
@nialljmiller , @mjoyceGR perhaps you could sweep through these changes and see if they make sense?
I've done some preliminary testing with a 5 Msun model that i stop on the pre-ms when it hits 5000K, for five different metallicities. Below I show the SED normalized and not normalized to illustrate that the colors module is working, and i did this test with type_2_opacities = .true., the mesa default.
One concern raised by this investigation is: what do we do when there is no H? Obviously the current atm tables are H atmosphere tables, but we might want to think about a bette fall back for no H than adopting the lowest metallicity table in the grid? I'm not sure.
If this passes testing, we can merge it into the r25.12.1_colors_updated branch as well, which will ultimately becoming r26.3.1, or probably r26.4.1 now.