-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
History value "Lnuc" is confusing (and maybe subtracting photodisintegrations twice) #754
Comments
Hello, thanks for raising this! To clarify: log_Lnuc = log(LH + LHe + LZ), and does not include photodisintegrations, hence the photodisintegrations are subtracted. There does not appear to be any double counting as You are correct that when I think you've also found a documentation bug for Perhaps this motivates providing a non-logarithmic |
you can also use the following to compute it yourself
|
If mesa/star/defaults/history_columns.list Line 239 in ea1ca9b
If you want to add a non-logarithmic value it should be |
"! total thermal power from all burning, excluding photodisintegrations " "lg_Lnuc (with lg) represents the same thing as power_nuc_burn, so adding it would only make things confusing, I think." "If you want to add a non-logarithmic value it should be Lnuc (=power_nuc_burn - photodisintegrations), since that is the one that can go negative." |
It appears that
|
Thanks for having a look! Your PR clears up the confusion. |
We recently found a situation where
log_Lnuc
in the history file went to -99 (meaning the non-log value is negative (?)), despite ongoing burning. A different quantity,power_nuc_burn
, stays positive.Looking through the code, it is a bit confusing what these quantities should mean. Here's the column descriptions:
mesa/star/defaults/history_columns.list
Lines 239 to 243 in ea1ca9b
My reading of these is that
log_power_nuc_burn
andlog_Lnuc
should be the same. Both are total burning power excluding photodisintegrations. But the actual definition oflog_Lnuc
is:mesa/star/private/history.f90
Lines 2228 to 2230 in ea1ca9b
If
power_nuc_burn
already excludes photodisintegrations, then this subtraction removes it an extra time (which could explain the -99 we were finding).Then we go to the definition of
power_nuc_burn
:mesa/star/private/report.f90
Lines 95 to 102 in ea1ca9b
It seems to simply be
Finally, adding to the confusion, there's this "ghost" history value (not listed in
history_columns.list
):mesa/star/private/history.f90
Lines 2860 to 2861 in ea1ca9b
Notice this lg_Lnuc instead of log. This one does not subtract the photodisintegrations.
The text was updated successfully, but these errors were encountered: