approx21: fix he4 dydt spurious a2#1000
Conversation
|
i'm not sure i agree with this. first, i think you are referring to the right hand side, the ODEs themselves. what seems to be missing is then the original line is correct. i'll look deeper at it later today. |
|
i compared 26.4.1 with mine. the reaction being modeled is 14N(a,y)18F(e+ nu)18O(a,g)22Ne, important for being the first time a star goes neutron rich and for being a key source of neutrino emission. approx21 doesn't know about 18F, 18O, or 22Ne. it models this conversion as 14N + 1.5 * a -> 20Ne. in mine, i put this reaction under a cno banner in mesa, this reaction was moved to be under the heavy ion reactions banner but in doing so the original a1 + a2 above was not reduced to just a1 so i now agree this is a bug in mesa. its been double adding the ppchain reaction 3He(a,g)4He. i also agree it probably has a small impact, likely producing a little ne20 before its time. good catch! |
|
glad to see you worked it out and came around :) |
There was a small bug in the derivative for he4 in approx21.
a2 = y(ihe3) * y(ihe4) * rate(irhe3ag)is added twice on accident. This is just a derivative, so at most it would mildly affect convergence on the pre-ms when there is he3 available? Otherwise I think this is a relatively inconsequential bug.