-
Notifications
You must be signed in to change notification settings - Fork 1
Issues with vanishing decay rates #10
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
Comments
Hi Tomas, thanks a lot for pointing this out! Can you confirm that is issue mainly occurs for large lifetimes, i.e. tau > 1e10s, corresponding to small temperatures T <~ 1e-5MeV? Also, I agree that this should mainly be a numerical problem and setting the rates to some small value instead of zero is a very sensible thing to do. I will play around with this issue a bit and implement your fix soon. |
The few points I've seen that hit this issue all had large lifetimes, but most points with large lifetimes won't. It seems to be quite fine tuned cases that have problems, hard to reproduce in small scales, but I've seen it in every large scale scan I've done. If it's useful I can try to find more of these problematic points. |
If I may also add my two cents to it. I have found the same bug for different sets of inputs. For me the fatal input values were
and
So it seems to be rather unrelated to the lifetime and it is more the fact that the mass is so close to the threshold,such that the reaction rates are rendered that small. I have actually found another possibility to fix it. My idea was to go further to the root of the actual problem and to set the reaction rate, calculated in The fix that I had is the following
Feel free to implement this fix, if you prefer it. Best, |
I was wondering why I never encountered this problem before and after digging in the code I found out that I already fixed it at some point. But I only ever pushed the changes to the dev channel (The implementation is very close to the one that Patrick suggested). But even though the new v1.3 with the fix is not so far away, I will probably also push the change to v1.2.1, so that no one gets confused in the future. So thanks again to both of you for pointing this out! |
I guess the reason might just be that you did a grid scan and the spacing in the mass direction was such that you skipped the problematic values of the mass. From what I see, it seems to be a very fine tuned region in mass.
Does that mean that you will reassign the |
I was thinking about simply pushing the changes without making a new version, maybe with a note on the website. But I will think about it a little more. |
Uh oh!
There was an error while loading. Please reload this page.
Occasionally some decay rates vanish, e.g. the Be7+a>He3+He4 rate is exactly 0 for low temperatures for the following parameter point (using the decay model)
I don't know how sensible these values are, but they are not unique, and many such points are easily reached in large parameter scans.
These decay rates are so small that are below the precision limit and are effectively set to 0, which causes problems down the line when setting up the interpolators using log scale, and acropolis fails with an NaN error. I don't think this is a conceptual problem, really small rates are possible as far as I can tell, so it should be just a computational problem on how to handle these really small rates. Locally I've just regularized all zeroes in the grids to the minimum float value of the system, which is enough for the log interpolator to work fine. This is my suggested fix to
acropolis/utils.py
I hope this helps you with implementing a fix to this in this or any other way.
Cheers,
Tomas
The text was updated successfully, but these errors were encountered: