[Mesa-users] Problems implementig a new EOS

Warrick Ball W.H.Ball at bham.ac.uk
Tue Feb 8 13:40:18 UTC 2022


Hi Nuno,

I've been following the function calls for `other_eosPT` in r12778 and it looks like `other_eosPT` will be called if you set both `use_other_eos` in `&controls` and

     change_lnPgas_flag = .true.
     change_initial_lnPgas_flag = .true.
     new_lnPgas_flag = .true.

in `&star_job`.  Have you tried something like that?  Did it work?  If it produced and error, what was the error?

Cheers,
Warrick


____________

Warrick Ball
Postdoc, School of Physics and Astronomy
University of Birmingham, Edgbaston, Birmingham B15 2TT
W.H.Ball at bham.ac.uk
+44 (0)121 414 4552


On Fri, 4 Feb 2022, mesa-users at lists.mesastar.org wrote:

> Dear Mesa users,
>
> I am working with mesa-r12778, and I have a problem regarding the 
> implementation of an alternative set of tables for the EOS. Specifically, I’m 
> trying to implement a routine that I have that uses Pressure and Temperature 
> as input variables. Therefore I was looking mainly at the hook “other_eos” 
> and “other_eosPT”.
> However, I have the feeling that MESA prefers to use the Density and T as 
> input variables and uses the subroutines with eosDT.
> I have already searched in the code for a way to switch MESA to use the eosPT 
> instead of eosDT, but I haven't found anything that does that.
>
> Now I was wondering if my intuition is correct, and, in case, if it would be 
> possible to use eosPT instead.
>
>
>
> Best Regards,
> Nuno
> _______________________________________________
> mesa-users at lists.mesastar.org
> https://lists.mesastar.org/mailman/listinfo/mesa-users
>
>


More information about the Mesa-users mailing list