[mesa-users] How to Querry for initial abundances?

Aaron Dotter aaron.dotter at gmail.com
Tue Apr 23 16:26:20 EDT 2013


Hi Ehsan,

At the start of a run, the composition adjustments are done in

subroutine do_star_job_controls_after

Which lives in star/job/ run_star_support.f.  The next extras routine to be
called after this, but before the evolution starts, is extras_startup.

My suggestion is to access s% xa(:,k) from extras_startup.  Any k should
work so long as you have a uniform composition.  You can define your own
initial xa array in run_star_extras that can be used later in your routines.

Aaron


On Wednesday, April 24, 2013, Ehsan Moravveji wrote:

> Hello all,
> I would like to have access to the initial abundances of h1 and he4 when
>    set_uniform_initial_composition = .false.
> but instead, a pre-defined set of species are used, say
>    initial_zfracs = 6
>
> for such a case, in my routines, when I make "use" of
>         subroutine blah_blah
>         use run_star_support, only: initial_h1, initial_he4
>         ....
>         end subroutine
>
> it only returns the default value of -1.00.
> Can anybody help?
>
> --
> Kind regards
>
> Ehsan Moravveji
> http://moravveji.webs.com/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.mesastar.org/pipermail/mesa-users/attachments/20130424/9edcfc12/attachment.html>


More information about the Mesa-users mailing list