Skip to content

Commit 4f8a2f4

Browse files
authored
Merge pull request #1410 from TeamCOMPAS/MERRITT2024-2025
Enhancements- deprecated MERRITT2024 in favour of , plus others
2 parents 6d56cea + 04f1bdf commit 4f8a2f4

File tree

16 files changed

+115
-34
lines changed

16 files changed

+115
-34
lines changed

compas_python_utils/preprocessing/compasConfigDefault.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
##~!!~## COMPAS option values
2-
##~!!~## File Created Wed Jun 25 11:07:34 2025 by COMPAS v03.20.06
2+
##~!!~## File Created Thu Jul 17 09:38:18 2025 by COMPAS v03.21.00
33
##~!!~##
44
##~!!~## The default COMPAS YAML file (``compasConfigDefault.yaml``), as distributed, has
55
##~!!~## all COMPAS option entries commented so that the COMPAS default value for the
@@ -243,7 +243,7 @@ stringChoices:
243243
# --initial-mass-function: 'KROUPA' # Default: 'KROUPA' # Options: ['KROUPA','UNIFORM','POWERLAW','SALPETER']
244244
# --LBV-mass-loss-prescription: 'HURLEY_ADD' # Default: 'HURLEY_ADD' # Options: ['BELCZYNSKI','HURLEY','HURLEY_ADD','ZERO']
245245
# --main-sequence-core-mass-prescription: 'MANDEL' # Default: 'MANDEL' # Options: ['BRCEK','MANDEL','ZERO']
246-
# --mass-loss-prescription: 'MERRITT2024' # Default: 'MERRITT2024' # Options: ['MERRITT2024','BELCZYNSKI2010','HURLEY','ZERO']
246+
# --mass-loss-prescription: 'MERRITT2025' # Default: 'MERRITT2025' # Options: ['MERRITT2025','BELCZYNSKI2010','HURLEY','ZERO']
247247
# --OB-mass-loss-prescription: 'VINK2021' # Default: 'VINK2021' # Options: ['KRTICKA2018','BJORKLUND2022','VINK2021','VINK2001','ZERO']
248248
# --RSG-mass-loss-prescription: 'DECIN2023' # Default: 'DECIN2023' # Options: ['NJ90','KEE2021','YANG2023','DECIN2023','BEASOR2020','VINKSABHAHIT2023','ZERO']
249249
# --VMS-mass-loss-prescription: 'SABHAHIT2023' # Default: 'SABHAHIT2023' # Options: ['SABHAHIT2023','BESTENLEHNER2020','VINK2011','ZERO']

online-docs/pages/User guide/Program options/program-options-list-defaults.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -826,12 +826,12 @@ Default = 0.0
826826

827827
**--mass-loss-prescription** |br|
828828
Mass loss prescription. |br|
829-
Options: { ZERO, HURLEY, BELCZYNSKI2010, MERRITT2024 } |br|
829+
Options: { ZERO, HURLEY, BELCZYNSKI2010, MERRITT2025 } |br|
830830
``ZERO`` : No wind mass loss |br|
831831
``HURLEY`` : Mass loss according to Hurley (2000) |br|
832832
``BELCZYNSKI2010``: Mass loss as per Belczynski (2010), and the default prior to 2023 |br|
833-
``MERRITT2024`` : Flexible mass loss with phase specific options: (OB, RSG, WR, VMS) |br|
834-
Default = MERRITT2024 |br|
833+
``MERRITT2025`` : Flexible mass loss with phase specific options: (OB, RSG, WR, VMS) |br|
834+
Default = MERRITT2025 |br|
835835

836836
**--mass-ratio [ -q ]** |br|
837837
Mass ratio :math:`\frac{m2}{m1}` used to determine secondary mass if not specified via ``--initial-mass-2``. |br|

online-docs/pages/whats-new.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ What's new
33

44
Following is a brief list of important updates to the COMPAS code. A complete record of changes can be found in the file ``changelog.h``.
55

6+
**03.20=1.00 July 17, 2025**
7+
8+
* Deprecated mass loss prescription MERRITT2024 in favour of MERRITT2025
9+
* Added version strings for gsl, boost, and HDF5 to COMPAS splashscreen
10+
611
**03.20.06 June 25, 2025**
712

813
* 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

src/BaseStar.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2469,11 +2469,11 @@ double BaseStar::CalculateMassLossRateBelczynski2010() {
24692469
* or are added to other wind mass loss if LBV_MASS_LOSS_PRESCRIPTION::HURLEY_ADD is used.
24702470
*
24712471
*
2472-
* double CalculateMassLossRateMerritt2024()
2472+
* double CalculateMassLossRateMerritt2025()
24732473
*
24742474
* @return Mass loss rate in Msol per year
24752475
*/
2476-
double BaseStar::CalculateMassLossRateMerritt2024() {
2476+
double BaseStar::CalculateMassLossRateMerritt2025() {
24772477

24782478
m_DominantMassLossRate = MASS_LOSS_TYPE::NONE;
24792479

@@ -2550,8 +2550,8 @@ double BaseStar::CalculateMassLossRate() {
25502550
mDot = CalculateMassLossRateBelczynski2010();
25512551
break;
25522552

2553-
case MASS_LOSS_PRESCRIPTION::MERRITT2024:
2554-
mDot = CalculateMassLossRateMerritt2024();
2553+
case MASS_LOSS_PRESCRIPTION::MERRITT2025:
2554+
mDot = CalculateMassLossRateMerritt2025();
25552555
break;
25562556

25572557
default: // unknown prescription

src/BaseStar.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,7 @@ class BaseStar {
608608
double CalculateMassLossRateVMSSabhahit2023();
609609
double CalculateMassLossRateVMSVink2011() const;
610610
virtual double CalculateMassLossRateBelczynski2010();
611-
virtual double CalculateMassLossRateMerritt2024();
611+
virtual double CalculateMassLossRateMerritt2025();
612612
double CalculateMassLossRateWolfRayetZDependent(const double p_Mu) const;
613613
double CalculateMassLossRateWolfRayet(const double p_Mu) const;
614614
double CalculateMassLossRateWolfRayetSanderVink2020(const double p_Mu) const;

src/CH.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -374,11 +374,11 @@ double CH::CalculateMassLossRateBelczynski2010() {
374374
*
375375
* Modifications for CH stars
376376
*
377-
* double CalculateMassLossRateMerritt2024()
377+
* double CalculateMassLossRateMerritt2025()
378378
*
379379
* @return Mass loss rate in Msol per year
380380
*/
381-
double CH::CalculateMassLossRateMerritt2024() {
381+
double CH::CalculateMassLossRateMerritt2025() {
382382

383383
// Define variables
384384
double Mdot = 0.0;
@@ -396,7 +396,7 @@ double CH::CalculateMassLossRateMerritt2024() {
396396
// cloning it, so that we can ask it what its mass loss rate would be if it were
397397
// a HeMS star
398398
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
399-
MdotWR = clone->CalculateMassLossRateMerritt2024(); // Calculate WR mass loss rate
399+
MdotWR = clone->CalculateMassLossRateMerritt2025(); // Calculate WR mass loss rate
400400
delete clone; clone = nullptr; // return the memory allocated for the clone
401401

402402
// Calculate weight for combining these into total mass-loss rate

src/CH.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class CH: virtual public BaseStar, public MS_gt_07 {
7373

7474
// Mass loss rate
7575
double CalculateMassLossRateBelczynski2010();
76-
double CalculateMassLossRateMerritt2024();
76+
double CalculateMassLossRateMerritt2025();
7777
double CalculateMassLossRateWeightOB(const double p_HeliumAbundanceSurface);
7878

7979
// Radius

src/HeMS.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -399,11 +399,11 @@ double HeMS::CalculateMassLossRateWolfRayetShenar2019() const {
399399
* Calculate the mass loss rate for helium stars in the updated prescription
400400
* Uses Sander & Vink 2020 for Wolf--Rayet stars
401401
*
402-
* double CalculateMassLossRateMerritt2024()
402+
* double CalculateMassLossRateMerritt2025()
403403
*
404404
* @return Mass loss rate in Msol per year
405405
*/
406-
double HeMS::CalculateMassLossRateMerritt2024() {
406+
double HeMS::CalculateMassLossRateMerritt2025() {
407407

408408
double MdotWR = 0.0;
409409

src/HeMS.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class HeMS: virtual public BaseStar, public TPAGB {
4747
static double CalculateLuminosityAtPhaseEnd_Static(const double p_Mass);
4848

4949
double CalculateMassLossRateBelczynski2010();
50-
double CalculateMassLossRateMerritt2024();
50+
double CalculateMassLossRateMerritt2025();
5151

5252
static DBL_DBL CalculateRadiusAtPhaseEnd_Static(const double p_Mass, const double p_Luminosity);
5353
static double CalculateRadiusAtZAMS_Static(const double p_Mass);

src/Options.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ void Options::OptionValues::Initialise() {
424424
m_ExpelConvectiveEnvelopeAboveLuminosityThreshold = false;
425425
m_LuminosityToMassThreshold = 4.2; // Podsiadlowski, private communication
426426

427-
m_MassLossPrescription.type = MASS_LOSS_PRESCRIPTION::MERRITT2024;
427+
m_MassLossPrescription.type = MASS_LOSS_PRESCRIPTION::MERRITT2025;
428428
m_MassLossPrescription.typeString = MASS_LOSS_PRESCRIPTION_LABEL.at(m_MassLossPrescription.type);
429429

430430
m_LBVMassLossPrescription.type = LBV_MASS_LOSS_PRESCRIPTION::HURLEY_ADD;

0 commit comments

Comments
 (0)