[mesa-users] tracking stellar moment of inertia

Brian Jackson bjackson at dtm.ciw.edu
Mon Nov 4 14:27:21 EST 2013


Thanks for this response. Unfortunately, I don't have the expertise to
make use of it: I don't know enough about stellar evolution to use the
luminosity values to judge when the main sequence has begun, and I'm
trying to generate a grid of models so I can't babysit each run. I
really just need the moment of inertia.

I've tried calculating the moment of inertia directly from the model
itself by inserting the following lines into the run_star_extras.f
file (along with the code to make Irot_tot and Irot_comp print to the
history.data file):

         Irot_comp = 0.
         Irot_tot = 0.

         do i = s% nz - 1, 1, -1
            Irot_tot = Irot_tot + s%i_rot(i)*s%dm(i)
            Irot_comp = Irot_comp + s%dm(i)*s%rmid(i)**2
         end do

However, doing this produces values that disagree (at about 50%).

Any suggestions?

Thanks,
Brian

On Sun, Nov 3, 2013 at 12:27 PM, Ehsan Moravveji <e.moravveji at gmail.com> wrote:
> Hello Brian
>
> To have rotating tracks during the pre-MS evolution, you must let the model
> relax a little bit, and set into the contraction phase; to set it up, you
> may refer to this part in star_job.defaults:
>
>
>       ! you might want to start a run at pre-ms but only turn on rotation
> when near zams
>       ! rather than force you to stop the run near zams, change the inlist,
> and restart,
>       ! the following will turn on rotation automatically.
>       ! the working definition of "near zams" is L_nuc_burn_total/L_phot >=
> Lnuc_div_L_upper_limit
>       ! Lnuc_div_L_upper_limit is in star controls part of inlist.
>
>       ! the following apply when rotation is off and model satisfies the
> "near zams" test
>       ! each turns on rotation and sets a step limit
>
>          set_near_zams_omega_steps = -1 ! only applies if > 0
>             ! set_omega_step_limit = model_number +
> set_near_zams_omega_steps - 1
>
>          set_near_zams_omega_div_omega_crit_steps = -1 ! only applies if > 0
>             ! set_omega_div_omega_crit_step_limit =
>             !      model_number + set_near_zams_omega_div_omega_crit_steps -
> 1
>
>          set_near_zams_surface_rotation_v_steps = -1 ! only applies if > 0
>             ! set_surf_rotation_v_step_limit =
>             !      model_number + set_surf_rotation_v_step_limit - 1
>
>
> Play around with Lnuc_div_L_upper_limit variable in &controls, and discover
> the limit you are satisfied with it.
>
> I hope this helps.
> Cheers.
> Ehsan.
>
>
>
> On Nov 3, 2013, at 6:18 PM, Brian Jackson wrote:
>
> <inlist>
>
>




More information about the Mesa-users mailing list