[mesa-users] MESA opacity tables

Dave Spiegel dddave at gmail.com
Wed Mar 11 15:22:24 EDT 2015


You can write a wrapper in Fortran and then call it from Python with f2py.

On Wed, Mar 11, 2015 at 3:18 PM, Jason Wright <astrowright at gmail.com> wrote:

> Thanks for all of that!  That helps a lot.
>
> On Wed, Mar 11, 2015 at 1:02 PM, Bill Paxton <paxton at kitp.ucsb.edu> wrote:
>
>> If you decide to spare your class the experience of directly accessing
>> the tables, you might just use the mesa/kap library instead.
>
>
> I still haven't figured out how to do this myself.  We are using a variety
> of languages (IDL, Python) and I haven't found a good source of
> documentation on how to call and manipulate the stand-alone modules from
> other programs that aren't written in F90.  So for now, we're letting star
> output examples of ZAMS stars and comparing their structure to our "toy"
> models using the recipes in Kippenhahn and Weigert.
>
> For instance, the net module requires initialization, and I haven't
> figured out how to make the initialization persist across multiple calls to
> net from IDL (when my external call completes, the process dies and the
> initialization in RAM disappears).
>
> If there is a good source of information on how to call these modules I
> would be eager to read it!
>
> --
>                                                 -
> ---------------
> Jason T Wright
> Assistant Professor of Astronomy
> 525 Davey Lab
> The Pennsylvania State University
> University Park, PA 16802
> http://exoplanets.org
> http://astro.psu.edu/~jtwright/
>
>
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming The Go Parallel Website,
> sponsored
> by Intel and developed in partnership with Slashdot Media, is your hub for
> all
> things parallel software development, from weekly thought leadership blogs
> to
> news, videos, case studies, tutorials and more. Take a look and join the
> conversation now. http://goparallel.sourceforge.net/
> _______________________________________________
> mesa-users mailing list
> mesa-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mesa-users
>
>


-- 
Dave Spiegel, Ph.D.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.mesastar.org/pipermail/mesa-users/attachments/20150311/104bc38a/attachment.html>


More information about the Mesa-users mailing list