-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Korg fails for some atmospheres #129
Comments
The few points in the middle were just parsing problems. #130 fixes them. For the cool stars, the chemical equilibrium is either not converging, or returning negative number densities which causes things to crash later. Two possibilities:
|
Hi,
(using the v0.10.1 ) |
Interesting, thank you for letting me know. This is indeed crashing in the same place, and almost certainly the same fundamental issue. I'm going to prioritize fixing this, or at least failing more gracefully. |
Thanks. |
To elaborate on what I think is the fundamental cause here, it was definitely the case that the initial guess was throwing the solver to negative values for cool stars, because it was a no-molecules solution. #151 fixes that, I think, and the fundemental problem now is that Korg can't match the MARCS electron number density because it is using a different set of species (and different partition functions, molecular dissociation energies, solver, etc.). The solution going forward is going to be to self-consistently solve for the electron number density (probably using the value from the model atmosphere as a starting point). This is inherently inconsistent, but there's no way around it except calculating our own model atmospheres. The current approach is also inconsistent, as is what everyone else does (except maybe turbospectrum, which might share moleq code with MARCS?) |
With the addition of 28 new molecules in #155, Korg's chemical equilibrium is much more likely to converge for cool stars. |
Great! |
It seems very likely that achieving convergence everywhere is primarily a matter of using a list of species as similar to what MARCs uses as possible (or using different atmospheres). Of course, comparisons to PHOENIX might make it easier to identify missing features, which could point towards missing molecules. In general, comparisons with anything are interesting, especially for cool stars where models struggle more. |
#179 solves this for all atmospheres with solar metallicity (though I will open an issue soon on the places where the calculated and model-atmosphere electron densities dissagree). For lower-metallicity stars, things still sometimes don't work at the top of the red giant branch. I think this is fundamentally the same thing going on: if the set of molecules considered isn't quite the same, the combination of temperature and number density can't be matched. |
closed by #260 |
edit: scroll down or click here for the current status
Details to come. The cool stars failures are OK for now, since we are targeting FGK in paper 1, but obviously we should figure out what's going on. I'm more concerned about the 3 in the middle.
The text was updated successfully, but these errors were encountered: