-
Notifications
You must be signed in to change notification settings - Fork 5
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
Add functionality for time-variable abundances and radiative losses #87
Conversation
@wtbarnes, if we're changing abundances, does this function need to be updated? |
I slightly reworked the input functionality so that time-fixed coronal and time-fixed photospheric abundances are now valid options. |
If you rebase or merge in main, you should pick up the C++-14 changes to SConstruct. |
Ready for review! Since this is a breaking change, I think we should review carefully. Would any additional tests be useful? |
Honestly, I'm not sure. I need to go back and remind myself what the logic of that function even is. I think it mainly has to do with the H/He ratio though. How impacted is that by the transition from coronal to photospheric? I'm also a little worried about the name of this function given that it potentially is unrelated to the abundance variations in the radiative losses. I'm fine with changing it to something else. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry this has taken so long to get to. Overall, I'm fine with the user-facing part of this functionality. However, I'm mainly concerned with hardcoding the sizes of the arrays and the corresponding abundance factors and densities these correspond to. I've left several comments to this effect.
I also think we should add a few tests that use these three new inputs just to ensure that they keep working. I'm happy to do that.
It looks like that's what this function does. Helium does not change its abundance in what we've programmed here, although I've been tinkering with the idea of generalizing this for other stellar classes (some stars have an inverse FIP bias). In that case, it's possible that helium might change with time. |
@wtbarnes, I'm having trouble adding tests, and not sure what the issue is. I keep getting something similar to this when running
The code I've added to
Any idea here? Other than the tests, I think I've addressed everything else. |
Ok, I've added a really basic test for each of the new radiative loss options to essentially just make sure that it can be run with that option without erroring. I'm not sure why you were seeing the error you were seeing with pytest. Because I've pushed to your branch, make sure to pull down the latest changes before making any more commits to avoid any "fun" conflicts! |
Thanks for the help with that! I have no idea the cause of the error. Pytest runs A-okay without that added code, though. |
Thanks for all of your efforts per usual @jwreep! |
New functionality introduced to allow the abundance factor to vary with time, and thus the radiative losses to vary with time.