[mesa-users] About eos and kap module

Josiah Schwab jwschwab at berkeley.edu
Tue Sep 1 10:25:40 EDT 2015


Hi DanDan,

The answers to both these questions are contained in the sample_eos.f
code.  You need to read the code and try and understand it.  There's no
way around that.  It is only 233 lines, so that's doable a few hours.

Here are some questions to think about while you read it.

> Could you tell me which function can i call in order to get gamma1 and
> gamm3 parameter from T and Rho input?

What does the comment on line 84 mean?

  ! the indices for the results are defined in eos_def.f

How is the code retrieving the results to display?  What sorts of
things are in eos/public/eos_def.f?

> And i still find there are eosDE,eosDT,eosPT,eosQT, could you tell me
> the difference of them?

There is a call to eos_DT on line 85.  What does the preceding comment
say?  There is a call to eos_PT on line 109.  How does this look
different than the call to eos_DT?

Best,
Josiah

P.S. Line numbers are from r7624.




More information about the Mesa-users mailing list