[mesa-users] Total Energy Integral

Bill Paxton paxton at kitp.ucsb.edu
Wed Mar 11 00:31:35 EDT 2015


On Mar 10, 2015, at 4:43 PM, Michael Medford wrote:

> It seems to me that my volume_term (4*pi*r^2*rho*dr) will always be equal to dm(k) instead of dm_bar(k), since it only uses values that are defined as at the center of each cell. (I checked and indeed the volume_term very nearly equals dm(k).

I missed this 1st time.  dm = rho * cell_volume, cell_volume /= 4*pi*r^2*dr.  try again on that one.

-b




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.mesastar.org/pipermail/mesa-users/attachments/20150310/824527b9/attachment.html>


More information about the Mesa-users mailing list