[Mesa-users] Adding a new thermal particle

Josiah Schwab jwschwab at ucsc.edu
Wed Oct 16 10:52:10 EDT 2019


Hi Jeremy,

> Is there any test suite or inlist I can look at to help me learn how to use
> other_EOS?

You can see other_physics_hooks for an example of things setting up.
There's also some information along with the hooks in star/other

The my_eosDT_get routine in the other_physics_hooks calls the MESA EOS,
so it is not a physical example of modifying things.

To learn about what is in the res array (and hence what results you're
expected to provide) see eos/public/eos_def.f90.

You will also need to provide the partial derivatives w.r.t. rho and T
of these quantities.  The composition derivatives (abar, zbar) are
unset/unused, so no need to provide those.

Hope that helps,
Josiah


More information about the Mesa-users mailing list