-
Notifications
You must be signed in to change notification settings - Fork 69
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
NaN Values for 'Mass_Core@CO(SN)' with Latest COMPAS (version 03.07.00) #1245
Comments
The immediate cause of this problem is that in The calculation is given by Hurley et al., 2000 eq 39, modified per the discussion following eq 84. I believe our implementation of the equation is correct, so we need to determine why |
It seems that this bug has only recently appeared. I am not certain from which version it started, but I can confirm that the issue does not exist in version v03.00.05. I hope this information helps and saves you some time in the debugging process. |
Problem was introduced in Prior to Running the same command with I ran the same command with I removed the call to EDIT: EDIT: @ilyamandel should we be updating timescales and gbparams after calling |
Possibly related: long period (>~800d) systems containing and sdB (type 7) and a low mass MS star (Msdb/Mms ~0.4 to 0.8, Msdb ~ 0.47 Msun) have completely vanished after introducing One example:
Before the change, the primary star in this system would follow the stellar type sequence 3-4-7 (RLOF at the end of 3/beginning of 4), now it follows 3-4-5 (no RLOF). |
I tried to reproduce @lee0517-hub 's issue, but could not do so either with that command line or with a longer run (no NaNs) when running 03.09.03. It may have been fixed when changing the treatment of mergers in CEs. If it's still an issue with that latest code, I'd be happy to look into this further. |
Hi @nrsegovia , It seems that the situation you are describing is that we were artificially producing certain systems (albeit ones that should exist) because of buggy code. I am not sure that's a good reason to revert the change. But it is interesting to understand what the expected evolutionary sequence should be and why we can't reproduce it. Are you saying that we do form sdB+MS stars, but the masses of the latter are too high? That might point to our needing to assume more stable mass transfer. Or is it that the masses are right, but the separations too small? That may point to less angular momentum loss on non-conservative mass transfer. In other words, I am asking whether this points us to constraints on some evolutionary parameters for which we are currently assuming incorrect values. Or did I misunderstand you, and are you saying that you think there is a bug in the code (in the sense that the code isn't doing what it was intended to do, rather than doing what was intended but the intention being physically incorrect)? |
We do expect sdB + massive MS, though they are harder to constrain observationally (the bright MS star would outshine the sdB). Some authors have predicted these systems using other theoretical methods, so I'm not concerned about them showing up in COMPAS. I wouldn't think that angular momentum loss or mass transfer itself is the problem either, the way I see it (after taking a look at the detailed output) is that these systems are rather 'delicate' in terms of time step choices. As the code is now, we get up to R/RL ~ 0.9988 before the star evolves to the CHeB and significantly shrinks its radius. Before, the code would allow an additional time step that would let the star go up to R/RL ~1.0005, triggering a MT episode. This might have been a 'bug' since the star would be labeled as CHeB but still have a Giant-like radius. I was just thinking that the TL;DR: I do not think it is a problem with the physics side of things. It is just a type of system that is really sensitive to time step-related choices. In fact, removing the |
Supernova issue found by @jeffriley (see #1297 for more discussion) and fixed (see #1298 ). |
@nrsegovia: but surely if there's a star that just fails to fill its Roche lobe while on the FGB, you could start with a slightly smaller binary separation and then it would succeed, right? It sounds to me like there's a different issue: in some way you want a star that acts as an FGB star in some ways and a CHeB in others (perhaps in terms of mass transfer stability?). Is that right? If so, perhaps this pointing us to the need to change that treatment (that is, MT stability, if my guess is correct?). In any case, the immediate issue here has been resolved, so I'll close this issue -- but happy to continue the conversation so we can understand what the physics issue rather than code issue is. |
Describe the bug
When using the latest version of COMPAS (version 03.07.00), I encountered an issue where the data for 'Mass_Core@CO(SN)' is NaN for some binaries.
Label the issue
urgency_high
To Reproduce
Steps to reproduce the behavior:
./COMPAS --critical-mass-ratio-prescription NONE --kick-magnitude-distribution ZERO --random-seed 1724542090 --common-envelope-alpha 1.6265542767303343 --wolf-rayet-multiplier 0.8084912681292984 --number-of-systems 1 --initial-mass-function KROUPA --mass-ratio-distribution DUQUENNOYMAYOR1991 --semi-major-axis-distribution SANA2012 --minimum-secondary-mass 5 --metallicity-distribution LOGUNIFORM --tides-prescription PERFECT --remnant-mass-prescription FRYER2022 --common-envelope-allow-radiative-envelope-survive False --common-envelope-allow-immediate-RLOF-post-CE-survive False
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
Versioning (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: