@@ -91,10 +91,10 @@ BaseStar::BaseStar(const unsigned long int p_RandomSeed,
9191
9292 // calculate coefficients, constants etc.
9393
94- CalculateRCoefficients (LogMetallicityXi (), m_RCoefficients);
95- CalculateLCoefficients (LogMetallicityXi (), m_LCoefficients);
94+ CalculateRCoefficients (LogMetallicityXiHurley (), m_RCoefficients);
95+ CalculateLCoefficients (LogMetallicityXiHurley (), m_LCoefficients);
9696
97- CalculateMassCutoffs (m_Metallicity, LogMetallicityXi (), m_MassCutoffs);
97+ CalculateMassCutoffs (m_Metallicity, LogMetallicityXiHurley (), m_MassCutoffs);
9898
9999 CalculateAnCoefficients (m_AnCoefficients, m_LConstants, m_RConstants, m_GammaConstants);
100100 CalculateBnCoefficients (m_BnCoefficients);
@@ -506,7 +506,7 @@ void BaseStar::CalculateAnCoefficients(DBL_VECTOR &p_AnCoefficients,
506506#define GammaConstants (x ) p_GammaConstants[static_cast <int >(GAMMA_CONSTANTS::x)] // for convenience and readability - undefined at end of function
507507
508508 double Z = m_Metallicity;
509- double xi = LogMetallicityXi ();
509+ double xi = LogMetallicityXiHurley ();
510510 double sigma = LogMetallicitySigma ();
511511
512512 // pow() is slow - use multiplication
@@ -606,7 +606,7 @@ void BaseStar::CalculateBnCoefficients(DBL_VECTOR &p_BnCoefficients) {
606606
607607
608608 double Z = m_Metallicity;
609- double xi = LogMetallicityXi ();
609+ double xi = LogMetallicityXiHurley ();
610610 double sigma = LogMetallicitySigma ();
611611 double rho = LogMetallicityRho ();
612612
@@ -853,8 +853,8 @@ void BaseStar::CalculateMassCutoffs(const double p_Metallicity, const double p_L
853853 massCutoffs (MHook) = 1.0185 + (0.16015 * p_LogMetallicityXi) + (0.0892 * xi_2); // MHook - Hurley et al. 2000, eq 1
854854 massCutoffs (MHeF) = 1.995 + (0.25 * p_LogMetallicityXi) + (0.087 * xi_2); // MHeF - Hurley et al. 2000, eq 2
855855
856- double top = 13.048 * PPOW ((p_Metallicity / ZSOL ), 0.06 );
857- double bottom = 1.0 + (0.0012 * PPOW ((ZSOL / p_Metallicity), 1.27 ));
856+ double top = 13.048 * PPOW ((p_Metallicity / ZSOL_HURLEY ), 0.06 );
857+ double bottom = 1.0 + (0.0012 * PPOW ((ZSOL_HURLEY / p_Metallicity), 1.27 ));
858858 massCutoffs (MFGB) = top / bottom; // MFGB - Hurley et al. 2000, eq 3
859859
860860 massCutoffs (MCHE) = 100.0 ; // MCHE - Mandel/Butler - CHE calculation
@@ -879,7 +879,7 @@ void BaseStar::CalculateMassCutoffs(const double p_Metallicity, const double p_L
879879double BaseStar::CalculateGBRadiusXExponent () const {
880880
881881 // pow()is slow - use multiplication
882- double xi = LogMetallicityXi ();
882+ double xi = LogMetallicityXiHurley ();
883883 double xi_2 = xi * xi;
884884 double xi_3 = xi_2 * xi;
885885 double xi_4 = xi_2 * xi_2;
@@ -1557,7 +1557,7 @@ double BaseStar::CalculateMassLossRateNieuwenhuijzenDeJager() const {
15571557
15581558 if (utils::Compare (m_Luminosity, NJ_MINIMUM_LUMINOSITY) > 0 ) { // check for minimum luminosity
15591559 double smoothTaper = min (1.0 , (m_Luminosity - 4000.0 ) / 500.0 ); // smooth taper between no mass loss and mass loss
1560- rate = std::sqrt ((m_Metallicity / ZSOL )) * smoothTaper * 9.6E-15 * PPOW (m_Radius, 0.81 ) * PPOW (m_Luminosity, 1.24 ) * PPOW (m_Mass, 0.16 );
1560+ rate = std::sqrt ((m_Metallicity / ZSOL_HURLEY )) * smoothTaper * 9.6E-15 * PPOW (m_Radius, 0.81 ) * PPOW (m_Luminosity, 1.24 ) * PPOW (m_Mass, 0.16 );
15611561 } else {
15621562 rate = 0.0 ;
15631563 }
@@ -1803,7 +1803,7 @@ double BaseStar::CalculateMassLossRateWolfRayetZDependent(const double p_Mu) con
18031803 // TW - Haven't seen StarTrack but I think H&K gives the original equation and V&dK gives the Z dependence
18041804 double rate = 0.0 ;
18051805 if (utils::Compare (p_Mu, 1.0 ) < 0 ) {
1806- rate = 1.0E-13 * PPOW (m_Luminosity, 1.5 ) * PPOW (m_Metallicity / ZSOL , 0.86 ) * (1.0 - p_Mu);
1806+ rate = 1.0E-13 * PPOW (m_Luminosity, 1.5 ) * PPOW (m_Metallicity / ZSOL_ANDERS , 0.86 ) * (1.0 - p_Mu);
18071807 }
18081808 return rate;
18091809}
@@ -1827,14 +1827,14 @@ double BaseStar::CalculateMassLossRateOBVink2001() const {
18271827 double teff = m_Temperature * TSOL;
18281828
18291829 if (utils::Compare (teff, VINK_MASS_LOSS_MINIMUM_TEMP) >= 0 && utils::Compare (teff, VINK_MASS_LOSS_BISTABILITY_TEMP) <= 0 ) {
1830- double v = 1.3 ; // v_inf/v_esc
1831- v = v * PPOW (m_Metallicity / ZSOL , OPTIONS->ScaleTerminalWindVelocityWithMetallicityPower ()); // Scale Vinf with metallicity
1830+ double v = 1.3 ; // v_inf/v_esc
1831+ v = v * PPOW (m_Metallicity / ZSOL_ANDERS , OPTIONS->ScaleTerminalWindVelocityWithMetallicityPower ()); // Scale Vinf with metallicity
18321832
18331833 double logMdotOB = -6.688 +
18341834 (2.210 * log10 (m_Luminosity / 1.0E5 )) -
18351835 (1.339 * log10 (m_Mass / 30.0 )) -
18361836 (1.601 * log10 (v / 2.0 )) +
1837- (0.85 * LogMetallicityXi ()) +
1837+ (0.85 * LogMetallicityXiAnders ()) +
18381838 (1.07 * log10 (teff / 20000.0 ));
18391839
18401840 rate = PPOW (10.0 , logMdotOB);
@@ -1843,14 +1843,14 @@ double BaseStar::CalculateMassLossRateOBVink2001() const {
18431843 else if (utils::Compare (teff, VINK_MASS_LOSS_BISTABILITY_TEMP) > 0 ) {
18441844 SHOW_WARN_IF (utils::Compare (teff, VINK_MASS_LOSS_MAXIMUM_TEMP) > 0 , ERROR::HIGH_TEFF_WINDS); // show warning if winds being used outside comfort zone
18451845
1846- double v = 2.6 ; // v_inf/v_esc
1847- v = v * PPOW (m_Metallicity / ZSOL , OPTIONS->ScaleTerminalWindVelocityWithMetallicityPower ()); // Scale Vinf with metallicity
1846+ double v = 2.6 ; // v_inf/v_esc
1847+ v = v * PPOW (m_Metallicity / ZSOL_ANDERS , OPTIONS->ScaleTerminalWindVelocityWithMetallicityPower ()); // Scale Vinf with metallicity
18481848
18491849 double logMdotOB = -6.697 +
18501850 (2.194 * log10 (m_Luminosity / 1.0E5 )) -
18511851 (1.313 * log10 (m_Mass / 30.0 )) -
18521852 (1.226 * log10 (v / 2.0 )) +
1853- (0.85 * LogMetallicityXi ()) +
1853+ (0.85 * LogMetallicityXiAnders ()) +
18541854 (0.933 * log10 (teff / 40000.0 )) -
18551855 (10.92 * log10 (teff / 40000.0 ) * log10 (teff/40000.0 ));
18561856
@@ -1885,7 +1885,7 @@ double BaseStar::CalculateMassLossRateOBVinkSander2021() const {
18851885
18861886 double teff = m_Temperature * TSOL;
18871887 double Gamma = EDDINGTON_PARAMETER_FACTOR * m_Luminosity / m_Mass;
1888- double charrho = -14.94 + (3.1857 * Gamma) + (zExp * LogMetallicityXi ());
1888+ double charrho = -14.94 + (3.1857 * Gamma) + (zExp * LogMetallicityXiAnders ());
18891889 double T2 = ( 61.2 + (2.59 * charrho) ) * 1000.0 ; // typically around 25000.0, higher jump first as in Vink python recipe
18901890 double T1 = ( 100.0 + (6.0 * charrho) ) * 1000.0 ; // typically around 20000.0, has similar behavior when fixed
18911891
@@ -1901,7 +1901,7 @@ double BaseStar::CalculateMassLossRateOBVinkSander2021() const {
19011901 (2.210 * logL5) -
19021902 (1.339 * logM30) -
19031903 (1.601 * log10 (V / 2.0 )) +
1904- (zExp2001 * LogMetallicityXi ()) +
1904+ (zExp2001 * LogMetallicityXiAnders ()) +
19051905 (1.07 * logT20);
19061906
19071907 rate = PPOW (10.0 , logMdotOB);
@@ -1914,7 +1914,7 @@ double BaseStar::CalculateMassLossRateOBVinkSander2021() const {
19141914 (2.210 * logL5) -
19151915 (1.339 * logM30) -
19161916 (1.601 * log10 (V / 2.0 )) +
1917- (zExp2001 * LogMetallicityXi ()) +
1917+ (zExp2001 * LogMetallicityXiAnders ()) +
19181918 (1.07 * logT20);
19191919
19201920 rate = PPOW (10.0 , logMdotOB);
@@ -1927,7 +1927,7 @@ double BaseStar::CalculateMassLossRateOBVinkSander2021() const {
19271927 (2.194 * logL5) -
19281928 (1.313 * logM30) -
19291929 (1.226 * log10 (V / 2.0 )) +
1930- (zExp * LogMetallicityXi ()) +
1930+ (zExp * LogMetallicityXiAnders ()) +
19311931 (0.933 * logT40) -
19321932 (10.92 * logT40 * logT40);
19331933
@@ -1952,8 +1952,8 @@ double BaseStar::CalculateMassLossRateOBVinkSander2021() const {
19521952 * @return Mass loss rate for hot OB stars in Msol yr^-1
19531953 */
19541954double BaseStar::CalculateMassLossRateOBKrticka2018 () const {
1955-
1956- double logMdot = -5.70 + 0.50 * LogMetallicityXi () + (1.61 - 0.12 * LogMetallicityXi ()) * log10 (m_Luminosity / 1.0E6 );
1955+
1956+ double logMdot = -5.70 + 0.50 * LogMetallicityXiAsplund () + (1.61 - 0.12 * LogMetallicityXiAsplund ()) * log10 (m_Luminosity / 1.0E6 );
19571957
19581958 return PPOW (10.0 , logMdot);
19591959}
@@ -2299,7 +2299,7 @@ double BaseStar::CalculateMassLossRateWolfRayetSanderVink2020(const double p_Mu)
22992299 if (utils::Compare (p_Mu, 1.0 ) < 0 ) {
23002300
23012301 double logL = log10 (m_Luminosity);
2302- double logZ = LogMetallicityXi ();
2302+ double logZ = LogMetallicityXiAnders ();
23032303
23042304 // Calculate alpha, L0 and Mdot10
23052305 double alpha = 0.32 * logZ + 1.4 ; // Equation 18 in Sander & Vink 2020
@@ -2367,7 +2367,7 @@ double BaseStar::CalculateMassLossRateWolfRayetTemperatureCorrectionSander2023(c
23672367 */
23682368double BaseStar::CalculateMassLossRateHeliumStarVink2017 () const {
23692369
2370- double logMdot = -13.3 + (1.36 * log10 (m_Luminosity)) + (0.61 * LogMetallicityXi ()); // Vink 2017 Eq. 1.
2370+ double logMdot = -13.3 + (1.36 * log10 (m_Luminosity)) + (0.61 * LogMetallicityXiAnders ()); // Vink 2017 Eq. 1.
23712371
23722372 return PPOW (10.0 , logMdot);
23732373}
0 commit comments