11 #define BUILDING_LIBRARY 16 Evolution::Evolution(
const std::string &filename,
17 const std::vector<Columns> &format,
18 const std::vector<double> &smoothing,
19 const std::vector<int> &nodes)
21 std::ifstream track(filename.c_str(), std::ios_base::in);
23 for(
size_t i=0; i<format.size(); ++i) {
24 std::cerr <<
"Initial column_numbers[" << format[i] <<
"]=" << i
26 column_numbers[format[i]]=i;
28 std::valarray< std::list<double> >
29 quantities=parse_columns(track, column_numbers,
false);
32 std::valarray<double>(1.0, 1),
33 std::list< std::valarray<double> >(
37 std::list< std::valarray<double> >(
41 std::list< std::valarray<double> >(
45 std::list< std::valarray<double> >(
49 std::list< std::valarray<double> >(
53 std::list< std::valarray<double> >(
70 (column_numbers[
LSTAR]==-1 ?
71 std::list< std::valarray<double> >() :
72 std::list< std::valarray<double> >(1,
77 (column_numbers[MRAD]==-1
79 : std::numeric_limits<double>::max()),
LIB_LOCAL std::valarray< double > list_to_valarray(const std::list< double > &inlist)
Creates a valarray containing the values in the given list.
Defines the class which implements a custom single track stellar evolution.
The number of different input quantities supported.
Moment of inertia of the radiative zone of the star (low mass stars only) in .
AGE
The derivative w.r.t. age, excluding the dependence through the body's radius and the moments of iner...
Moment of inertia of the convective zone of the star (low mass stars only) in .
Luminosity of the star in .
Radius of the stellar core in (low mass stars only).
Mass of the stellar core in (low mass stars only).