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 "../Evolve/CInterface.h"
+ Include dependency graph for CInterface.cpp:

Go to the source code of this file.

Functions

CPlanet * create_planet (double mass, double radius)
 Create a planet to use in a evolution calculation. More...
 
void destroy_planet (CPlanet *planet)
 Destroy a planet previously allocated using create_planet. More...
 
LIB_PUBLIC void set_planet_dissipation (CPlanet *planet, unsigned num_tidal_frequency_breaks, unsigned num_spin_frequency_breaks, double *tidal_frequency_breaks, double *spin_frequency_breaks, double *tidal_frequency_powers, double *spin_frequency_powers, double reference_phase_lag, double inertial_mode_enhancement, double inertial_mode_sharpness)
 Set the dissipative properties of the planet. More...
 

Detailed Description

The definitions of the functions declared in CInterface.h.

Definition in file CInterface.cpp.

Function Documentation

◆ create_planet()

CPlanet* create_planet ( double  mass,
double  radius 
)

Create a planet to use in a evolution calculation.

The result must be de-allocated by the caller.

Parameters
massThe mass of the planet to create.
radiusThe radius of the planet to create.

Definition at line 12 of file CInterface.cpp.

◆ destroy_planet()

void destroy_planet ( CPlanet *  planet)

Destroy a planet previously allocated using create_planet.

Definition at line 19 of file CInterface.cpp.

◆ set_planet_dissipation()

LIB_PUBLIC void set_planet_dissipation ( CPlanet *  planet,
unsigned  num_tidal_frequency_breaks,
unsigned  num_spin_frequency_breaks,
double *  tidal_frequency_breaks,
double *  spin_frequency_breaks,
double *  tidal_frequency_powers,
double *  spin_frequency_powers,
double  reference_phase_lag,
double  inertial_mode_enhancement,
double  inertial_mode_sharpness 
)

Set the dissipative properties of the planet.

Parameters
planetThe star to set the dissipation for.
num_tidal_frequency_breaksSee same name argument to set_zone_dissipation()
num_spin_frequency_breaksSee same name argument to set_zone_dissipation()
tidal_frequency_breaksSee same name argument to set_zone_dissipation()
spin_frequency_breaksSee same name argument to set_zone_dissipation()
tidal_frequency_powersSee same name argument to set_zone_dissipation()
spin_frequency_powersSee same name argument to set_zone_dissipation()
reference_phase_lagSee same name argument to set_zone_dissipation()
inertial_mode_enhancementSee same name argument to set_zone_dissipation()
inertial_mode_sharpnessSee same name argument to set_zone_dissipation()

Definition at line 24 of file CInterface.cpp.