Skip to content

Commit 62a0db0

Browse files
committed
Updated FMIX_BRCEK coefficients, fixed error in calculation
1 parent 44124d6 commit 62a0db0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/MainSequence.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -848,7 +848,7 @@ double MainSequence::CalculateInitialMainSequenceCoreMass(const double p_Mass, c
848848
// After full mixing not at ZAMS, use the approach from Brcek+ (2025)
849849
else {
850850
double h = PPOW(10.0, p_HeliumAbundanceCore * (p_HeliumAbundanceCore + 2.0) / 4.0);
851-
fmix = BRCEK_FMIX_COEFFICIENTS[0] + BRCEK_FMIX_COEFFICIENTS[1] * std::exp(-p_Mass * h / BRCEK_FMIX_COEFFICIENTS[2]) * PPOW(1.0 - BRCEK_FMIX_COEFFICIENTS[4] / (p_Mass * h), BRCEK_FMIX_COEFFICIENTS[3]);
851+
fmix = (BRCEK_FMIX_COEFFICIENTS[0] + BRCEK_FMIX_COEFFICIENTS[1] * std::exp(-p_Mass * h / BRCEK_FMIX_COEFFICIENTS[2])) * PPOW(1.0 - BRCEK_FMIX_COEFFICIENTS[4] / (p_Mass * h), BRCEK_FMIX_COEFFICIENTS[3]);
852852
}
853853
return fmix * p_Mass;
854854
}

src/constants.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3822,7 +3822,7 @@ const std::vector<DBL_VECTOR> SHIKAUCHI_L_COEFFICIENTS = {
38223822
};
38233823
// Coefficients used to determine the initial convective core mass of MS star after full mixing (due to a merger or CHE)
38243824
// from Brcek et al. (2025)
3825-
const DBL_VECTOR BRCEK_FMIX_COEFFICIENTS = {0.897487516925644, -0.570499075062176, 56.9817940103868, 0.54483109433479, 1.72842835324164};
3825+
const DBL_VECTOR BRCEK_FMIX_COEFFICIENTS = {0.898171018326982, -0.592244880828559, 55.7885260968562, 0.359078394562545, 1.87717633667786};
38263826

38273827

38283828
#endif // __constants_h__

0 commit comments

Comments
 (0)