Skip to content

Commit 7bd7b32

Browse files
author
Ilya Mandel
committed
Added a maximum threshold of 1000 km/s for Disberg & Mandel (2025) LOGNORMAL kicks, matching paper
1 parent a249ac2 commit 7bd7b32

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

src/BaseStar.cpp

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3904,10 +3904,16 @@ double BaseStar::DrawSNKickMagnitude(const double p_Sigma,
39043904

39053905
case KICK_MAGNITUDE_DISTRIBUTION::LOGNORMAL: { // LOGNORMAL
39063906
// Only draw Disberg & Mandel (2025) kicks for CCSN or PPISN (if they receive a kick)
3907-
// use Maxwellians with sigma set in CalculateSNKickMagnitude() for other SN types
3907+
// use Maxwellians with sigma set in CalculateSNKickMagnitude() for other SN types
39083908
SN_EVENT thisSNevent = utils::SNEventType(m_SupernovaDetails.events.current); // current SN event
3909-
if (thisSNevent == SN_EVENT::CCSN || (thisSNevent == SN_EVENT::PPISN && OPTIONS->NatalKickForPPISN()))
3910-
kickMagnitude = gsl_cdf_lognormal_Pinv(p_Rand, DISBERG_MANDEL_MU, DISBERG_MANDEL_SIGMA);
3909+
if (thisSNevent == SN_EVENT::CCSN || (thisSNevent == SN_EVENT::PPISN && OPTIONS->NatalKickForPPISN())) {
3910+
kickMagnitude = 1001.0;
3911+
double rand = p_Rand; // makes it possible to adjust if p_Rand is too low, to avoid getting stuck
3912+
while( utils::Compare(kickMagnitude, 1000.0) > 0 ) { // maximum kick of 1000 km/s, following Disberg & Mandel (2025)
3913+
kickMagnitude = gsl_cdf_lognormal_Pinv(p_Rand, DISBERG_MANDEL_MU, DISBERG_MANDEL_SIGMA);
3914+
rand = min(rand + p_Rand + 0.0001, 1.0);
3915+
}
3916+
}
39113917
else
39123918
kickMagnitude = DrawKickMagnitudeDistributionMaxwell(p_Sigma, p_Rand);
39133919
} break;

src/changelog.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1591,6 +1591,8 @@
15911591
// 03.20.06 IM - June 25, 2025 - Enhancements:
15921592
// - The MAXWELLIAN NS CCSN kick changed from the Hobbs value of 265 km/s to 217 km/s based on 48 younger than 10 Myr pulsars with proper motions from Disberg & Mandel (2025) sample; corrects Hobbs+ 2005 missing Jacobian
15931593
// - Implemented a LOGNORMAL NS CCSN kick magnitude distribution based on Disberg & Mandel, 2025
1594+
// 03.20.07 IM - June 25, 2025 - Enhancement:
1595+
// - Added a maximum threshold of 1000 km/s for Disberg & Mandel (2025) LOGNORMAL kicks, matching paper
15941596

15951597
const std::string VERSION_STRING = "03.20.06";
15961598

0 commit comments

Comments
 (0)