Skip to content
Snippets Groups Projects
Commit 361fe63c authored by gm0027's avatar gm0027
Browse files

made newstar->k2 use MOMENT_OF_INERTIA

parent 60ada3b7
No related branches found
No related tags found
No related merge requests found
...@@ -75,6 +75,7 @@ ...@@ -75,6 +75,7 @@
X(K2, NOTHING) \ X(K2, NOTHING) \
X(TIDAL_E2, NOTHING) \ X(TIDAL_E2, NOTHING) \
X(TIDAL_E_FOR_LAMBDA, NOTHING) \ X(TIDAL_E_FOR_LAMBDA, NOTHING) \
X(MOMENT_OF_INERTIA_FACTOR, NOTHING) \
X(TIMESCALE_KELVIN_HELMHOLTZ, NOTHING) \ X(TIMESCALE_KELVIN_HELMHOLTZ, NOTHING) \
X(TIMESCALE_DYNAMICAL, NOTHING) \ X(TIMESCALE_DYNAMICAL, NOTHING) \
X(TIMESCALE_NUCLEAR, NOTHING) \ X(TIMESCALE_NUCLEAR, NOTHING) \
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
X(MS,"MS/grid_ZZ_chebyshev_withE.dat",&MINT_load_MS_grid,TRUE) \ X(MS,"MS/grid_ZZ_chebyshev_withE.dat",&MINT_load_MS_grid,TRUE) \
X(HG,NULL,NULL,FALSE) \ X(HG,NULL,NULL,FALSE) \
X(GB,NULL,NULL,FALSE) \ X(GB,NULL,NULL,FALSE) \
X(CHeB,"CHeB/grid_ZZ_chebyshev_withE.dat",&MINT_load_CHeB_grid,FALSE) \ X(CHeB,NULL, NULL, FALSE) \
X(EAGB,NULL,NULL,FALSE) \ X(EAGB,NULL,NULL,FALSE) \
X(TPAGB,NULL,NULL,FALSE) \ X(TPAGB,NULL,NULL,FALSE) \
X(HeMS,NULL,NULL,FALSE) \ X(HeMS,NULL,NULL,FALSE) \
......
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
X(K2) \ X(K2) \
X(TIDAL_E2) \ X(TIDAL_E2) \
X(TIDAL_E_FOR_LAMBDA) \ X(TIDAL_E_FOR_LAMBDA) \
X(MOMENT_OF_INERTIA_FACTOR) \
X(TIMESCALE_KELVIN_HELMHOLTZ) \ X(TIMESCALE_KELVIN_HELMHOLTZ) \
X(TIMESCALE_DYNAMICAL) \ X(TIMESCALE_DYNAMICAL) \
X(TIMESCALE_NUCLEAR) \ X(TIMESCALE_NUCLEAR) \
......
...@@ -282,8 +282,13 @@ Stellar_type MINT_stellar_structure_CHeB(struct stardata_t * RESTRICT const star ...@@ -282,8 +282,13 @@ Stellar_type MINT_stellar_structure_CHeB(struct stardata_t * RESTRICT const star
newstar->age, newstar->age,
newstar->epoch); newstar->epoch);
newstar->k2 = get_data(MINT_CHeB_K2); newstar->k2 = get_data(MINT_CHeB_K2);
/*
* The line above should be replaced with
* newstar->k2 = get_data(MINT_CHeB_MOMENT_OF_INERTIA_FACTOR);
* once that quantity is available in CHeB grids
* The K2 above is MESA's and not I/(MR^2)
*/
newstar->E2 = newstar->E2 =
available[MINT_CHeB_TIDAL_E2] ? available[MINT_CHeB_TIDAL_E2] ?
get_data(MINT_CHeB_TIDAL_E2) : get_data(MINT_CHeB_TIDAL_E2) :
......
...@@ -293,7 +293,11 @@ Stellar_type MINT_stellar_structure_MS(struct stardata_t * RESTRICT const starda ...@@ -293,7 +293,11 @@ Stellar_type MINT_stellar_structure_MS(struct stardata_t * RESTRICT const starda
newstar->starnum, newstar->starnum,
stardata->model.dt); stardata->model.dt);
newstar->k2 = get_data(MINT_MS_K2); newstar->k2 = get_data(MINT_MS_MOMENT_OF_INERTIA_FACTOR);
if(vb)printf("Moment of inertia factor k2=I/(MR^2) : star = %d, k22 = %g\n",
newstar->starnum,
stardata->k2);
newstar->E2 = newstar->E2 =
available[MINT_MS_TIDAL_E2] ? available[MINT_MS_TIDAL_E2] ?
get_data(MINT_MS_TIDAL_E2) : get_data(MINT_MS_TIDAL_E2) :
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment