-
Notifications
You must be signed in to change notification settings - Fork 70
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
Magnetic field decay of NSs due to mass accretion #1002
Comments
Dear ShiJie Gao,
Thank you for your question. I am cc’ing Simon and Debatri, who should be able to help you out.
Best wishes,
Ilya
… On 20 Oct 2023, at 09:47, ShiJie Gao ***@***.***> wrote:
I am using COMPAS to calculate the pulsar evolution in X-ray binaries. However, I have observed that the magnetic field decay does not seem to be working as expected.
I have identified a potential cause in the file NS.cpp, as shown in the following line:
double newPulsarMagneticField = (initialMagField - magFieldLowerLimit) * exp(-1 * p_MassGainPerTimeStep / 1000.0 / kappa) + magFieldLowerLimit ;
p_MassGainPerTimeStep seems to be in units of kg (as I found in BinaryConstituentStar.h), while kappa is also in units of kg.
So, the magnetic filed dacay resulting from mass accretion is insignificant.
For example, assuming the massscale is 0.02 solar mass, and a pulsar accreted 0.01 solar mass, the magnetic field B (>>Bmin) should be reduced to
(B-Bminexp(-0.01/0.02)+Bmin~Bexp(-0.5)=0.61B
rather than
(B-Bmin)exp(-0.01/1000/0.02)+Bmin~Bexp(-0.5/1000)=0.9995B.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
Hi Shijie, I believe that you have been in contact with @yuzhesong over email about this issue. I haven't really looked at this version of Typically in COMPAS, masses are in solar masses. So it is already a bit weird that There are a couple of places where we have this rogue factor of 1000:
and later we have
There seems to be a bit of a nasty mix of SI and cgs units throughout NS.cpp. It seems that similar magic factors appear elsewhere in
in As @yuzhesong mentioned, although accretion should be possible through both mass transfer and common envelope evolution, in Chattopadhyay+2020 (https://arxiv.org/abs/1912.02415) we focused on accretion during the common envelope. Certainly for MSP formation, accretion through stable mass transfer will be more important. We have yet to explore this with COMPAS. I also find it a bit weird that UpdateMagneticFieldAndSpin takes 5 parameters in TLDR: Yes, I believe the factor of 1000 is a left over/unneeded cgs conversion. This function should be considered experimental/unsupported at present. |
Dear Ilya and Simon, thanks for your kind replies. I have two additional comments on the plusar recycling process.
Best wishes, |
Dear Ilya, Simon and Yuzhe, I found a typo in Equation 9 of Chattopadhyay+2020 paper, where the right-hand side is missing a factor of 2. The correct form of the equation should be as follows: See also Equation 9 in Sgalletta+2023 (https://doi.org/10.1093/mnras/stad2768). There is another typo in their Equation 9, where the term "P" is unnecessary and can be removed. Additionally, I checked the corresponding code in NS.cpp (lines 384-389)and found that there is also a missing factor of 2. Best wishes, Formula derivation: |
Hi Shijie,
I am in a ship to Antarctica at the moment with very choppy internet. The
typo in the paper was too late to correct, the correct equations were
implemented in the code and my thesis which is available online.
Regards,
Debatri.
…On Thu, Nov 16, 2023 at 8:54 AM ShiJie Gao ***@***.***> wrote:
Dear Ilya, Simon and Yuzhe,
I found a typo in Equation 9 of Chattopadhyay+2020 paper, where the
right-hand side is missing a factor of 2. The correct form of the equation
should be as follows:
$$\frac{1}{\Omega_{\rm f}^2}-\frac{1}{\Omega_{\rm i}^2}=\frac{P_{\rm
f}^2}{4\pi^2}-\frac{P_{\rm
i}^2}{{4}\pi^2}=\left[\frac{4\pi}{\mu_0}\right]\frac{\textcolor{red}{4}
R^6\sin^2 \alpha}{3c^3I}\left[B_{\rm min}^2(t_{\rm f}-t_{\rm i})-\tau
B_{\rm min}(B_{\rm f}-B_{\rm i})-\frac{\tau}{2}(B_{\rm f}^2-B_{\rm
i}^2)\right].$$
See also Equation 9 in Sgalletta+2023 (
https://doi.org/10.1093/mnras/stad2768). There is another typo in their
Equation 9, where the term "P" is unnecessary and can be removed.
Additionally, I checked the corresponding code in NS.cpp (lines
384-389)and found that there is also a missing factor of 2.
Best wishes,
Shijie, Gao
Formula derivation:
[image: 截屏2023-11-16 19 52 46]
<https://user-images.githubusercontent.com/70212620/283439700-b24cc35c-e612-4720-8f63-a8571a63c8b3.png>
—
Reply to this email directly, view it on GitHub
<#1002 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AI2EB52EIXUBZX27IUSEP7TYEX5IHAVCNFSM6AAAAAA6ITJU4KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMJUGI4TSMZXGE>
.
You are receiving this because you were assigned.Message ID:
***@***.***>
|
@debatric , @SimonStevenson , @yuzhesong -- is this an issue on its own, separate from the issue described in #1082 ? [I note that Debatri wrote "The typo in the paper was too late to correct, the correct equations were implemented in the code and my thesis which is available online" -- if so, is it just the case of updating the comments in the code to point to the correct equations? I'd like to resolve long-standing issues, especially with bug labels... |
@ilyamandel #1082 contains the solutions to this issue. Just need to get it to the stage of being able to merged back into dev. |
I am using COMPAS to calculate the pulsar evolution in X-ray binaries. However, I have observed that the magnetic field decay does not seem to be working as expected.
I have identified a potential cause in the file
NS.cpp
, as shown in the following line:double newPulsarMagneticField = (initialMagField - magFieldLowerLimit) * exp(-1 * p_MassGainPerTimeStep / 1000.0 / kappa) + magFieldLowerLimit ;
p_MassGainPerTimeStep
seems to be in units of kg (as I found inBinaryConstituentStar.h
), whilekappa
is also in units of kg. The term/1000.0
seems to be a typo.So, the magnetic filed dacay resulting from mass accretion is insignificant.
For example, assuming the massscale is 0.02 solar mass, and a pulsar accreted 0.01 solar mass, the magnetic field B (>>Bmin) should be reduced to
(B-Bmin)*exp(-0.01/0.02)+Bmin~B*exp(-0.5)=0.61*B
rather than
(B-Bmin)*exp(-0.01/1000/0.02)+Bmin~B*exp(-0.5/1000)=0.9995*B.
The text was updated successfully, but these errors were encountered: