Skip to content

Commit 37a19db

Browse files
authored
add in extra eddington limit calculation at formation of CO (#569)
1 parent 81453f4 commit 37a19db

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

cosmic/src/evolv2.f

+8-2
Original file line numberDiff line numberDiff line change
@@ -1318,7 +1318,7 @@ SUBROUTINE evolv2(kstar,mass,tb,ecc,z,tphysf,
13181318
& bacc(1),bacc(2),tacc(1),tacc(2),epoch(1),
13191319
& epoch(2),bhspin(1),bhspin(2))
13201320
CALL kick(kw,mass(k),mt,0.d0,0.d0,-1.d0,0.d0,vk,k,
1321-
& 0.d0,fallback,sigmahold,kick_info,disrupt,bkick)
1321+
& 0.d0,fallback,sigmahold,kick_info,disrupt,bkick)
13221322
13231323
sigma = sigmahold !reset sigma after possible ECSN kick dist. Remove this if u want some kick link to the intial pulsar values...
13241324
* set kick values for the bcm array
@@ -1398,11 +1398,14 @@ SUBROUTINE evolv2(kstar,mass,tb,ecc,z,tphysf,
13981398
mass0(k) = m0
13991399
epoch(k) = tphys - age
14001400
endif
1401+
14011402
*
14021403
*
14031404
* Force new NS or BH to have a birth spin peirod and magnetic field.
1404-
*
1405+
*
14051406
if(kstar(k).eq.13.or.kstar(k).eq.14)then
1407+
* re-calculate the Eddington limit of the newly formed CO
1408+
dme = 2.08d-03*eddfac*(1.d0/(1.d0 + zpars(11)))*rad(k)
14061409
if(tphys-epoch(k).lt.tiny)then
14071410
if(kstar(k).eq.13.and.pulsar.gt.0)then
14081411
* write(93,*)'birth start: ',tphys,k,B_0(k),ospin(k)
@@ -1903,6 +1906,7 @@ SUBROUTINE evolv2(kstar,mass,tb,ecc,z,tphysf,
19031906
* Eddington limit for accretion on to the secondary in one orbit.
19041907
*
19051908
8 dme = 2.08d-03*eddfac*(1.d0/(1.d0 + zpars(11)))*rad(j2)*tb
1909+
19061910
supedd = .false.
19071911
novae = .false.
19081912
disk = .false.
@@ -2909,6 +2913,7 @@ SUBROUTINE evolv2(kstar,mass,tb,ecc,z,tphysf,
29092913
dm2 = km*dm2
29102914
dm22 = km*dm22
29112915
dme = km*dme
2916+
29122917
*
29132918
* Calculate orbital angular momentum change due to system mass loss.
29142919
*
@@ -3647,6 +3652,7 @@ SUBROUTINE evolv2(kstar,mass,tb,ecc,z,tphysf,
36473652
& bacc(1),bacc(2),tacc(1),tacc(2),epoch(1),
36483653
& epoch(2),bhspin(1),bhspin(2))
36493654
endif
3655+
36503656
*
36513657
* Test whether the primary still fills its Roche lobe.
36523658
*

0 commit comments

Comments
 (0)