[mesa-users] How to make mesa write output at specific ages?

pritesh ranadive astroprit at gmail.com
Fri Feb 5 00:53:18 EST 2016


Thank you all, for the detailed reply.

- Pritesh
  Astronomy Olympiad Cell
  HBCSE - TIFR.

On Fri, Feb 5, 2016 at 3:03 AM, Bill Paxton <paxton at kitp.ucsb.edu> wrote:

> This plot from the 1st mesa instrument paper depended on getting
> information at particular ages.
>
> The mesa/star/test_suite case cool_brown_dwarf has run_star_extras setup
> to do this.   Look at the extras_check_model routine.
>
> If you'd like to save a profile at a particular age,
> call star_write_profile_info from run_star_extras -- you can provide a
> filename for the saved profile.
>
> Cheers,
> Bill
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> On Feb 4, 2016, at 1:22 PM, Robert Farmer wrote:
>
> Hi
>  If you look in
> http://mesa.sourceforge.net/controls_defaults.html#controls_for_output
> then you'll see controls for history_interval and profile_interval which
> determine how often mesa writes out data based on model numbers. So you
> could set the output to be every step (history files this is fine for, but
> don't do it for your profile files as you'll fill your hard drive up!),
> then after the run just find the nearest model number(s) to your target
> age(s) and read off the data. You could get fancy and interpolate between
> two model numbers.
>
> The other option would be to do it via a run_stars_extra code see
> http://mesa.sourceforge.net/run_star_extras.html#toc-1-4 for an example
> of how to determine when to output data.
>
> Rob
>
>
>
> On Fri, Feb 5, 2016 at 12:56 AM, Earl Bellinger <bellinger at mps.mpg.de>
> wrote:
>
>> I put an accidental slash in that sed command, it should read:
>>
>>     sed -i.bak "s/max_age = 4.57e9/max_age = 13.8e9/g" inlist_1.0
>>
>>
>> Earl Bellinger
>> Stellar Ages & Galactic Evolution Group
>> Max-Planck-Institut für Sonnensystemforschung
>>
>> On Thu, Feb 4, 2016 at 2:55 PM, Earl Bellinger <bellinger at mps.mpg.de>
>> wrote:
>>
>>> Hi Pritesh,
>>>
>>> The MESA controls inlist has the option
>>>
>>>     max_age
>>>
>>> which you can set, for example, to the age of the sun:
>>>
>>>     max_age = 4.57e9
>>>
>>> If you want to output multiple ages, you can write a bash script that
>>> will run the script until the desired age, then sed out that age and put in
>>> the new one, run until the next desired age, etc. It might look something
>>> like:
>>>
>>> mk
>>> rn
>>> sed -i.bak "s/\max_age = 4.57e9/max_age = 13.8e9/g" inlist_1.0
>>> rn
>>>
>>> which will run until the age of the sun, then change the max age to the
>>> age of the universe, and then rerun until then.
>>>
>>> There are also controls for the timestepping, for example you can change
>>> max_years_for_timestep.
>>>
>>> Good luck!
>>>
>>>
>>> Earl Bellinger
>>> Stellar Ages & Galactic Evolution Group
>>> Max-Planck-Institut für Sonnensystemforschung
>>>
>>> On Thu, Feb 4, 2016 at 12:03 PM, pritesh ranadive <astroprit at gmail.com>
>>> wrote:
>>>
>>>> Hi I am Pritesh, I am new to mesa, I wish to write the mesa output at
>>>> specific ages during the evolution of the star.
>>>> How do I do this? Is there a direct control in the mesa defaults for
>>>> this?
>>>>
>>>> - Pritesh
>>>>   Astronomy Olympiad Cell
>>>>   HBCSE - TIFR.
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Site24x7 APM Insight: Get Deep Visibility into Application Performance
>>>> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
>>>> Monitor end-to-end web transactions and take corrective actions now
>>>> Troubleshoot faster and improve end-user experience. Signup Now!
>>>> http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
>>>> _______________________________________________
>>>> mesa-users mailing list
>>>> mesa-users at lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/mesa-users
>>>>
>>>>
>>>
>>
>>
>> ------------------------------------------------------------------------------
>> Site24x7 APM Insight: Get Deep Visibility into Application Performance
>> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
>> Monitor end-to-end web transactions and take corrective actions now
>> Troubleshoot faster and improve end-user experience. Signup Now!
>> http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
>> _______________________________________________
>> mesa-users mailing list
>> mesa-users at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/mesa-users
>>
>>
>
> ------------------------------------------------------------------------------
> Site24x7 APM Insight: Get Deep Visibility into Application Performance
> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
> Monitor end-to-end web transactions and take corrective actions now
> Troubleshoot faster and improve end-user experience. Signup Now!
>
> http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140_______________________________________________
> mesa-users mailing list
> mesa-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mesa-users
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.mesastar.org/pipermail/mesa-users/attachments/20160205/975b1f63/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fig18.tiff
Type: image/tiff
Size: 122770 bytes
Desc: not available
URL: <https://lists.mesastar.org/pipermail/mesa-users/attachments/20160205/975b1f63/attachment.tiff>


More information about the Mesa-users mailing list