Program Listing for File MakeStar.cpp

Return to documentation for file (/home/kpenev/projects/git/poet/poet_src/unit_tests/shared/MakeStar.cpp)

#include "MakeStar.h"

Star::InterpolatedEvolutionStar *make_const_lag_star(
    const StellarEvolution::Interpolator &evolution,
    double wind_strength,
    double wind_sat_freq,
    double coupling_timescale,
    double phase_lag
)
{
    Star::InterpolatedEvolutionStar *star = (
        new Star::InterpolatedEvolutionStar(1.0,//mass
                                            0.0,//feh
                                            wind_strength,
                                            wind_sat_freq,
                                            coupling_timescale,
                                            evolution)
    );
    star->envelope().setup(std::vector<double>(),//Wtide breaks
                           std::vector<double>(),//W* breaks
                           std::vector<double>(1, 0.0),//Wtide pow.
                           std::vector<double>(1, 0.0),//W* pow.
                           phase_lag);
    return star;
}