Planetary Orbital Evolution due to Tides
Orbital evolution of two objects experiencing tides
CInterface.cpp File Reference

The definitions of the functions declared in CInterface.h. More...

#include "CInterface.h"
+ Include dependency graph for CInterface.cpp:

Go to the source code of this file.

Functions

MESAInterpolatorcreate_interpolator (const char *mesa_dir, double *smoothing, int *nodes, bool *vs_log_age, bool *log_quantity, unsigned num_threads)
 Create an interpolator from a directory containing MESA tracks. More...
 
void destroy_interpolator (MESAInterpolator *interpolator)
 Destroy a previously created interpolator. More...
 
const EvolvingStellarQuantitycreate_quantity (const MESAInterpolator *interpolator, int quantityID, double mass, double feh)
 Create a single quantity interpolation for a given star. More...
 
void destroy_quantity (EvolvingStellarQuantity *quantity)
 Destroy a previously created evolving stellar quantity. More...
 
double evaluate_quantity (const EvolvingStellarQuantity *quantity, double age)
 Evaluate a stellar quantity at a given age. More...
 
void evaluate_quantity_array (const EvolvingStellarQuantity *quantity, double *age, unsigned nvalues, double *result)
 Evaluate a stellar quantity at an array of ages. More...
 
void differentiate_quantity (const EvolvingStellarQuantity *quantity, double age, double *result)
 Calculate the zeroth, first and second derivatives of a quantity. More...
 
void differentiate_quantity_array (const EvolvingStellarQuantity *quantity, double *age, unsigned nvalues, double *result)
 Calculate the derivatives of a quantity at an array of ages. More...
 
double quantity_min_age (const EvolvingStellarQuantity *quantity)
 Return the minimum age for which the quantity is defined. More...
 
double quantity_max_age (const EvolvingStellarQuantity *quantity)
 Return the maximum age for which the quantity is defined. More...
 
void quantity_continuous_range (const EvolvingStellarQuantity *quantity, double age, double *range_min, double *range_max)
 Return the range of ages surrounding a given age over which a quantity is guaranteed continuous. More...
 
void save_interpolator (MESAInterpolator *interpolator, const char *filename)
 Save the state of an interpolator for faster creation. More...
 
MESAInterpolatorload_interpolator (const char *filename)
 Load a previously saved interpolator state (faster than creating it). More...
 
double default_smoothing (int quantityID)
 Return the default smoothing argument used for the given quantity. More...
 
int default_nodes (int quantityID)
 Return the default number of interpolation nodes used for the given quantity. More...
 
bool default_vs_log_age (int quantityID)
 Return whether by default the given quantity is interpolated vs. log(age). More...
 
bool default_log_quantity (int quantityID)
 Return whether by default the log(given quantity) is interpolated vs. the quantity itself. More...
 
double metallicity_from_feh (double feh)
 Alias for StellarEvolution::metallicity_from_feh() More...
 
double feh_from_metallicity (double metallicity)
 Alias for StellarEvolution::feh_from_metallicity() More...
 
double feh_from_z (double z)
 Calculate [Fe/H] given Z (metal mass fraction) for a star. More...
 
double z_from_feh (double feh)
 Calculate Z (metal mass fraction) given [Fe/H] for a star. More...
 

Variables

const int RADIUS = StellarEvolution::RADIUS
 Identifier for the stellar radius as an interpolation quantity. More...
 
const int ICONV = StellarEvolution::ICONV
 Identifier for the convective zone moment of inertia as an interpolation quantity. More...
 
const int LUM = StellarEvolution::LUM
 Identifier for the stellar luminosity as an interpolation quantity. More...
 
const int IRAD = StellarEvolution::IRAD
 Identifier for the radiative zone moment of inertia as an interpolation quantity. More...
 
const int MRAD = StellarEvolution::MRAD
 Identifier for the radiative zone mass of inertia as an interpolation quantity. More...
 
const int RRAD = StellarEvolution::RRAD
 Identifier for the convective-radiative boundary as an interpolation quantity. More...
 
const int NUM_QUANTITIES = StellarEvolution::NUM_QUANTITIES
 The number of interpolation quantities currentyl supported. More...
 

Detailed Description

The definitions of the functions declared in CInterface.h.

Definition in file CInterface.cpp.