|
| YRECEvolution () |
| Default constructor, use load_state to get a working interpolator. More...
|
|
| YRECEvolution (const std::string &model_directory, double smooth_radius=-2.0, double smooth_conv_inertia=0, double smooth_rad_inertia=2.0, double smooth_rad_mass=2.0, double smooth_core_env_boundary=3.5, int radius_nodes=-1000, int conv_inertia_nodes=-1000, int rad_inertia_nodes=-1000, int rad_mass_nodes=-1000, int core_env_boundary_nodes=-5000) |
| Creates a stellar evolution interpolator based on evolution tracks computed with YREC. More...
|
|
|
std::list< double > | mass_list |
| The masses of the available tracks. More...
|
|
std::list< std::valarray< double > > | ages |
| The ages in each track. More...
|
|
std::list< std::valarray< double > > | radii |
| The stellar radii in each track. More...
|
|
std::list< std::valarray< double > > | luminosities |
| The luminosities in each track. More...
|
|
std::list< std::valarray< double > > | rad_masses |
| The masses of the core in each track. More...
|
|
std::list< std::valarray< double > > | core_boundaries |
| The core-envelope boundary radius in each track. More...
|
|
std::list< std::valarray< double > > | conv_inertias |
| The moments of inertia of the convective envelope. More...
|
|
std::list< std::valarray< double > > | rad_inertias |
| The moments of inertia of the radiative zone of the star. More...
|
|
A stellar evolution interpolator based on the YREC tracks.
It relies on 10 tracks, all at solar metallicitity and none of them going past 10Gyr stellar age. The masses of the tracks are (in \(M_\odot\)): 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 1.05, 1.1, 1.15, and 1.2.
Definition at line 148 of file YRECIO.h.
YRECEvolution::YRECEvolution |
( |
const std::string & |
model_directory, |
|
|
double |
smooth_radius = -2.0 , |
|
|
double |
smooth_conv_inertia = 0 , |
|
|
double |
smooth_rad_inertia = 2.0 , |
|
|
double |
smooth_rad_mass = 2.0 , |
|
|
double |
smooth_core_env_boundary = 3.5 , |
|
|
int |
radius_nodes = -1000 , |
|
|
int |
conv_inertia_nodes = -1000 , |
|
|
int |
rad_inertia_nodes = -1000 , |
|
|
int |
rad_mass_nodes = -1000 , |
|
|
int |
core_env_boundary_nodes = -5000 |
|
) |
| |
Creates a stellar evolution interpolator based on evolution tracks computed with YREC.
- Parameters
-
model_directory | The directory containing the YREC evolution tracks |
smooth_radius | How much to smooth the radius of the star when fitting. |
smooth_conv_inertia | How much to smooth the moment of inertia of the convective zone when fitting. |
smooth_rad_inertia | How much to smooth the moment of inertia of the radiative zone of the star when fitting. |
smooth_rad_mass | How much to smooth the mass in the radiative zone when fitting. |
smooth_core_env_boundary | How much to smooth the radius in the radiative zone when fitting. |
radius_nodes | How many nodes to use when smoothing the stellar radius (ignored if smooth_conv_inertia is NaN - no smoothing). |
Negative values result in using min(-radius_nodes, number of tabulated ages for each track).
- Parameters
-
conv_inertia_nodes | How many nodes to use when smoothing the moment of inertia of the convective zone (ignored if smooth_conv_inertia is NaN - no smoothing). |
Negative values result in using min(-conv_inertia_nodes, number of tabulated ages for each track).
- Parameters
-
rad_inertia_nodes | How many nodes to use when smoothing the moment of inertia of the radiative zone (ignored if smooth_rad_inertia is NaN - no smoothing). |
Negative values result in using min(-rad_inertia_nodes, number of tabulated ages for each track).
- Parameters
-
rad_mass_nodes | How many nodes to use when smoothing the mass of the radiative zone (ignored if smooth_rad_mass is NaN - no smoothing). |
Negative values result in using min(-rad_mass_nodes, number of tabulated ages for each track).
- Parameters
-
core_env_boundary_nodes | How many nodes to use when smoothing the radius of the radiative zone (ignored if smooth_core_env_boundary is NaN - no smoothing). |
Negative values result in using min(-core_env_boundary_nodes, number of tabulated ages for each track).
Definition at line 226 of file YRECIO.cpp.