Skip to content

Commit

Permalink
Merge pull request #1086 from TeamCOMPAS/fixBjorklund
Browse files Browse the repository at this point in the history
Fix Bjorklund Eddington Factor
  • Loading branch information
ilyamandel authored Apr 8, 2024
2 parents bd10dda + 7689fd7 commit eeda005
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/BaseStar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1774,7 +1774,7 @@ double BaseStar::CalculateMassLossRateBjorklundEddingtonFactor() const {
const double YHe = 0.1; // Assumed constant by Bjorklund et al.
double kappa_e = 0.4 * (1.0 + iHe * YHe) / (1.0 + 4.0 * YHe); // cm^2/g
double kappa_e_SI = kappa_e * OPACITY_CGS_TO_SI; // m^2/kg
double top = kappa_e_SI * m_Luminosity * LSOL;
double top = kappa_e_SI * m_Luminosity * LSOLW;
double bottom = 4.0 * M_PI * G * C * m_Mass * MSOL_TO_KG;

return top / bottom;
Expand Down
7 changes: 5 additions & 2 deletions src/changelog.h
Original file line number Diff line number Diff line change
Expand Up @@ -1113,9 +1113,12 @@
// - Defect repair : Added explicit definition `bool isUnstable = false` to avoid confusion in BaseBinaryStar.cpp
// - Defect repair : Fixed erroneous core mass values in ResolveSNIa in WhiteDwarfs.cpp. Was previously 0 for all core masses.
// - Enhancement: Added output parameter TZAMS for internal variable m_TZAMS
// 02.43.00 RTW - Mar 29, 2023 - Enhancement:
// 02.43.00 RTW - Mar 29, 2024 - Enhancement:
// - Added Hirai pulsar rocket kick, and related options
// 02.43.01 SS - Apr 8, 2024 - Defect repair
// - Fix CalculateMassLossRateBjorklundEddingtonFactor to use LSOLW (in SI) rather than LSOL (in cgs)
//

const std::string VERSION_STRING = "02.43.00";
const std::string VERSION_STRING = "02.43.01";

# endif // __changelog_h__

0 comments on commit eeda005

Please sign in to comment.