[Mesa-users] Derivatives of specific heat capacity
Bill Paxton
paxton at kitp.ucsb.edu
Fri Mar 29 13:54:24 EDT 2019
> On Mar 29, 2019, at 9:36 AM, Andrew Bunting via Mesa-users <mesa-users at lists.mesastar.org> wrote:
>
> Hello,
>
> I am looking to perturb the specific heat capacity at constant pressure, c_{p}, particularly looking at the surface of the star where c_{p} changes over a short scale and there may be things like ionisation to be worried about. Is it possible to get the partial derivatives of the specific heat capacity at constant pressure from MESA?
>
> Ideally I'd like d(c_{p})/dT at constant p and d(c_{p})/dp at constant T, but these are second derivatives of s. A note in the mesa-user archives on a thread from Tue Nov 29 13:37:46 EST 2016 suggests that this would be difficult because it requires a third derivative of the free energy, which seems to be an issue.
>
> Is this still the case? Is there any way around it?
>
> Very many thanks,
> Andrew Bunting
> _______________________________________________
> mesa-users at lists.mesastar.org <mailto:mesa-users at lists.mesastar.org>
> https://lists.mesastar.org/mailman/listinfo/mesa-users <https://lists.mesastar.org/mailman/listinfo/mesa-users>
when you set Pgas_flag true in mesa/star, you switch to (lnPgas,lnT) in place of (lnRho,lnT) as eos basic variables and as star solver variables.
the eos still returns partials wrt (lnRho,lnT) as before, but it also returns dlnRho_dlnPgas_const_T and dlnRho_dlnT_const_Pgas.
in mesa/star we calculate the complicated partials wrt the usual (lnRho,lnT), and then convert the final results before storing in the solver matrix.
there is some extra work to get things like partials wrt constant P from partials wrt constant Pgas. left as exercise for the reader. ;)
cheers,
b
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.mesastar.org/pipermail/mesa-users/attachments/20190329/51a11994/attachment.html>
More information about the Mesa-users
mailing list