From: Dennis S. <den...@sy...> - 2017-05-31 21:29:53
|
You can also have a look at the mesastar.org and click Add-ons. There is one example of changing G in fact. Dennis/ On 1/06/2017 6:43, Earl Bellinger wrote: > 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 <rjf...@as...> 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 <nsa...@gm...> 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: ben...@as... >>> 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 >>> mes...@li... >>> 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 >> mes...@li... >> 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 > mes...@li... > https://lists.sourceforge.net/lists/listinfo/mesa-users > |