[mesa-users] Changes to the gravitational constant
Earl Bellinger
bellinger at mps.mpg.de
Wed May 31 16:43:23 EDT 2017
For a guide on writing a custom run_stars_extras.f, here are my notes
in case they are useful on Josiah Schwab's MESA Summer School 2016
tutorial:
https://research-engine.appspot.com/5791865672564736/wiki/page/Extending_MESA
Best regards,
Earl Bellinger
---
www.earlbellinger.com
Department of Astronomy, Yale University
Stellar Ages & Galactic Evolution Group, Max Planck Institute
On Wed, May 31, 2017 at 1:26 PM, Robert Farmer <rjfarmer at asu.edu> wrote:
>
> Hi
>
> You need to set the s%cgrav(1:s%nz) array with the value of the gravitational constant you want.
>
> Have a look in the $MESA_DIR/star/other/other_cgrav.f90 file for how to hook up an other_ routine for changing the cgrav value
>
> Rob
>
>
>
> On Wed, May 31, 2017 at 10:16 AM, Nsamba Benard <nsambabenard2net at gmail.com> wrote:
>>
>> Hello,
>>
>> We are trying to make some changes on the gravitational constant so that it varies with a parameter say radius.
>>
>> say. Gnew = Go(1 + constant*radius)
>>
>> I am supposed to do this in the run_star_extras but not sure how to do it. Can someone help me how to incorporate this.
>>
>> Thank you.
>>
>> Cheers,
>> Benard
>> ----------------------------------------------------------------------------------------------------------
>> Benard Nsamba
>> PhD student Centro de Astrofisica
>> Universidade do Porto
>> Rua das Estrelas
>> Tel: +351 920 404 108 4150-762 Porto, Portugal
>> E-mail: benard.nsamba at astro.up.pt
>> Skype: benardnsamba
>>
>> ------------------------------------------------------------------------------
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>> _______________________________________________
>> mesa-users mailing list
>> mesa-users at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/mesa-users
>>
>
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> mesa-users mailing list
> mesa-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mesa-users
>
More information about the Mesa-users
mailing list