[mesa-users] dynamo effect on stellar str
Bill Paxton
paxton at kitp.ucsb.edu
Fri Jul 29 00:20:51 EDT 2016
Just to clarify my previous response -- if possible, make your additions to mesa as "hook" routines in your private run_star_extras rather than changing code in star/private/files. Treat the star/private files as read-only. If you hit a place where you think you really must change something, let me know and perhaps we can take care of it by adding another "hook" routine so that the only change to the private mesa star routines will be to call an exterior routine that you define separately from the main star code. If you produce something that way, it can later be integrated into the standard star code. Until that point you can work on it privately.
cheers,
Bill
On Jul 28, 2016, at 9:10 PM, Valery Pipin wrote:
> Great! I will try to modify that code for my own needs.
> Thanks!
>>
>> On Jul 28, 2016, at 7:31 PM, Valery Pipin wrote:
>>
>>> The test suite contains example for 15M star with dynamo. I don't
>>> understand where parameters of the magnetic field are defined?
>>
>> the only magnetic field currently in mesa/star comes from the Spruit dynamo code.
>>
>> these 2 vectors are set as part of the set_rotation_mixing_info routine in star/private/rotation_mix_info.f90
>>
>> real(dp), pointer :: dynamo_B_r(:) ! magnetic field (Gauss)
>> real(dp), pointer :: dynamo_B_phi(:) ! magnetic field (Gauss)
>>
>>
>> Add these to your profile_columns.list
>>
>> dynamo_log_B_r
>> dynamo_log_B_phi
>>
>> -b
>>
>
More information about the Mesa-users
mailing list