You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// *Jeff* This used to have the code below instead; I'd prefer a static function to calculate the luminosity of the WR star.
2553
+
//HeMS *clone = HeMS::Clone((HeMS&)static_cast<const MainSequence&>(*this), OBJECT_PERSISTENCE::EPHEMERAL, false); // Do not initialise so that we can use same mass, luminosity, radius etc
2554
+
//MdotWR = clone->CalculateMassLossRateMerritt2025(); // Calculate WR mass loss rate
2555
+
//delete clone; clone = nullptr; // return the memory allocated for the clone
2556
+
}
2557
+
2558
+
// Combine each of these prescriptions according to the OB wind fraction
// Mandel * Mueller 2020 call for USSN kicks to be treated in the same way as CCSN kicks; however, if this override flag is set, set the USSN kick to be equal to the user-provided magnitude
3933
+
if (utils::SNEventType(m_SupernovaDetails.events.current) == SN_EVENT::USSN && OPTIONS->USSNKicksOverrideMandelMuller() ) {
// If user wants to transition between OB and WR mass loss rates
390
-
if (OPTIONS->ScaleCHEMassLossWithSurfaceHeliumAbundance()) {
391
-
392
-
// Here we are going to pretend that this CH star is an HeMS star by
393
-
// cloning it, so that we can ask it what its mass loss rate would be if it were
394
-
// a HeMS star
395
-
HeMS *clone = HeMS::Clone((HeMS&)static_cast<const CH&>(*this), OBJECT_PERSISTENCE::EPHEMERAL, false); // Do not initialise so that we can use same mass, luminosity, radius etc
396
-
MdotWR = clone->CalculateMassLossRateMerritt2025(); // Calculate WR mass loss rate
397
-
delete clone; clone = nullptr; // return the memory allocated for the clone
398
-
399
-
// Calculate weight for combining these into total mass-loss rate
0 commit comments