[mesa-users] Adding an energy term
Josiah Schwab
jwschwab at berkeley.edu
Mon May 19 11:23:33 EDT 2014
Hi Liron,
> Also, I was wondering whether it is possible to add a pressure term to the
> code. I tried going through the eos module for ideas, but got completely
> lost in the code..
There is an other_eos hook (star/other/other_eos.f) that operates in a
similar manner to the other_energy hook that you've already been
exploring. That's probably the place to start.
You could have your routine first call the normal MESA eos, and then
adjust those results to account for your additional pressure term.
Hope that helps,
Josiah
More information about the Mesa-users
mailing list