Repository navigation
|
Hello, I'm writing a thesis on solar structure based on one particular article (Schüsser & Rempel 2005) and I'd like to reproduce their results. It would be very useful for me to use MESA EOS in PT mode as that simplifies many of my caluclations significantly. however it seems like this way was abandoned and I'm not savvy enough in fortran or thermodynamics yet to revive it. Can you help me make this module run in PT mode? |
Replies: 3 comments 3 replies
|
Follow up question: eos DT returns derivatives alongsite the resutls, eos_def names them d_dlnd and d_dlnT. When I run eos in PT mode, do these same arrays now hold (∂/∂lnP)_T and (∂/∂lnT)_P respectively? |
|
Not quite, but the routines should return enough information for you to construct what you need in terms of derivatives. In the code block where the public Lines 292 to 307 in bb123bb This shows that you still have the usual vectors of derivatives such as d_dlnRho_const_T, and you also have a couple of additional derivative quantities dlnRho_dlnPgas_const_T and dlnRho_dlnT_const_Pgas, which you can use to construct (∂/∂lnP)_T and (∂/∂lnT)_P via the chain rule.
|
eosPT_get still exists in the code
mesa/eos/public/eos_lib.f90
Line 259 in bb123bb