-
Notifications
You must be signed in to change notification settings - Fork 77
Description
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. 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.