Skip to content
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

IMRPhenomD giving NaNs for equal mass spinless BHs #17

Open
ThibeauWouters opened this issue Oct 20, 2023 · 1 comment
Open

IMRPhenomD giving NaNs for equal mass spinless BHs #17

ThibeauWouters opened this issue Oct 20, 2023 · 1 comment

Comments

@ThibeauWouters
Copy link
Collaborator

Hi there!

I have been working on adding tidal contributions from NRTidalv2 to ripple, focusing on the IMRPhenomD waveforms as BBH baseline for the moment. While testing my implementation and sampling masses, I noticed that the IMRPhenomD waveform generator, gen_IMRPhenomD_hphc, returns NaN values for some mass values if enforcing the BHs to be of equal mass. The problem seems to arise from the equal mass constraint, since the problem does not arise if I nudge the smaller mass with a very small number, e.g. 1e-8. It seems that this issue arises in around 20% of cases that I checked by randomly sampling a mass from a uniform distribution between 1 and 100 solar masses (i.e. the range reported in the ripple paper0.

This issue arises if I install ripple from scratch in a fresh conda env (Python 3.10.13). I have not checked this observation for other Python versions yet. For convenience, I have written my observations in a small notebook, which you can find here to reproduce the result.

@tedwards2412
Copy link
Owner

Hi! That's great that you're working on NRTidalv2, this was actually going to be my next target waveform. Let me know if there is anything I can do to help.

My suspicion from looking at your notebook is that when solve for eta, sometimes (due to small numerical inaccuracies) it will give eta > 0.25 which will cause NaNs since eta is strictly bounded. It would probably be useful to put a check on this directly in the PhenomD evaluation so that users know this is happening.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants