[mesa-users] tracking stellar moment of inertia
Richard Townsend
townsend at astro.wisc.edu
Mon Nov 4 15:44:30 EST 2013
On Nov 4, 2013, at 2:38 PM, Josiah Schwab <jwschwab at berkeley.edu> wrote:
>
> Hi Brian,
>
>> 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?
>
> The moment of inertia of a spherical shell is not s%dm(i)*s%rmid(i)**2.
> Unless you are correcting for that somewhere outside of the code snippet
> you included, that is likely the source of the apparent discrepancy.
>
More specifically, for a shell of mass m exending from r1 to r2,
I = 2m*(r2^5-r1^5)/(r2^3-r1^3)/5
For r2 -> r1, this tends to
I = 2m*r1**2/3
cheers,
Rich
> Best,
> Josiah
>
> ------------------------------------------------------------------------------
> Android is increasing in popularity, but the open development platform that
> developers love is also attractive to malware creators. Download this white
> paper to learn more about secure code signing practices that can help keep
> Android apps secure.
> http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk
> _______________________________________________
> 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