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

Pulsar formed from stellar merger product not recorded in BSE_Pulsar_Evolution #1324

Closed
SimonStevenson opened this issue Jan 20, 2025 · 1 comment
Assignees
Labels
bug Something isn't working severity_moderate This is a moderately severe bug urgency_moderate This is a moderately urgent issue

Comments

@SimonStevenson
Copy link
Collaborator

Describe the bug
Pulsar formed from stellar merger product not recorded in BSE_Pulsar_Evolution

This is similar to issue #1317 I posted recently.

I think I have tracked this down and have a solution. Will post a PR shortly.

The EVOLUTION_STATUS in BaseBinaryStar::Evolve was recorded as MASSLESS_REMNANT due to the IsMRandRemant() check. I have added an additional check to see if the user is evolving pulsars, and if so if the stellar remnant is a neutron star, then keep evolving.

Once I had done this, I found that I got hundreds of thousands of 1 Myr time steps. I tracked this down to MR.h which has CalculateTimestep rather than ChooseTimestep. Fixing this resolved this issue.

I have also added a check to see if the binary is bound to BaseBinaryStar::ChooseTimestep so that the GW and tides stuff is not evaluated for merged/unbound binaries.

Label the issue
Please label the 'severity' and 'urgency' of this issue. You can choose:

urgency_moderate - This is a moderately urgent issue
severity_moderate - This is a moderately severe bug

To Reproduce
This is the system I have been using to test this:

./COMPAS -n 1 --mode BSE --initial-mass-1 14.0 --initial-mass-2 1.0 --semi-major-axis 0.1 --evolve-main-sequence-merger TRUE --evolve-pulsars TRUE --pulsar-birth-magnetic-field-distribution LOGNORMAL --pulsar-birth-spin-period-distribution UNIFORM --radial-change-fraction 0.01 --remnant-mass-prescription FRYER2012

Expected behavior
Pulsar should be recorded in BSE_Pulsar_Evolution.

Versioning (please complete the following information):

  • OS: MacOS v 12.4
  • COMPAS v03.12.00
@SimonStevenson SimonStevenson added the bug Something isn't working label Jan 20, 2025
@SimonStevenson SimonStevenson self-assigned this Jan 20, 2025
@SimonStevenson SimonStevenson added severity_moderate This is a moderately severe bug urgency_moderate This is a moderately urgent issue labels Jan 20, 2025
@ilyamandel
Copy link
Collaborator

Thank you for fixing this with #1325 , @SimonStevenson !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working severity_moderate This is a moderately severe bug urgency_moderate This is a moderately urgent issue
Projects
None yet
Development

No branches or pull requests

2 participants