The FARGO_THORIN code developer's guide
|
Contains the functions that set up the planetary system configuration. More...
#include "fargo.h"
Go to the source code of this file.
Functions | |
int | FindNumberOfPlanets (char *filename) |
PlanetarySystem * | AllocPlanetSystem (int nb) |
void | FreePlanetary (PlanetarySystem *sys) |
PlanetarySystem * | InitPlanetarySystem (char *filename) |
void | ListPlanets (PlanetarySystem *sys) |
real | GetPsysInfo (PlanetarySystem *sys, boolean action) |
The original function was modified to handle 3D inclined orbits. More... | |
real | GetPsysInfoFromRsim (struct reb_simulation *rsim, boolean action) |
An analogue of the GetPsysInfo() function; here a rebound simulation structure is used as a call argument. More... | |
void | RotatePsys (struct reb_simulation *rsim, real angle) |
Synchronises the planetary system with the frame. More... | |
Variables | |
static real | Xplanet |
static real | Yplanet |
boolean | GuidingCenter |
Contains the functions that set up the planetary system configuration.
In addition, the last two functions allow to track the first planet (number 0) of the planetary system, in order to perform a calculation in the frame corotating either with this planet or with its guiding-center.
Definition in file Psys.c.
PlanetarySystem* AllocPlanetSystem | ( | int | nb | ) |
Definition at line 40 of file Psys.c.
References planetary_system::acc, planetary_system::ax, planetary_system::ay, planetary_system::az, planetary_system::FeelDisk, planetary_system::FeelOthers, planetary_system::mass, prs_exit(), planetary_system::vx, planetary_system::vy, planetary_system::vz, planetary_system::x, planetary_system::y, YES, and planetary_system::z.
Referenced by InitPlanetarySystem().
int FindNumberOfPlanets | ( | char * | filename | ) |
Definition at line 21 of file Psys.c.
References prs_exit().
Referenced by InitPlanetarySystem().
void FreePlanetary | ( | PlanetarySystem * | sys | ) |
real GetPsysInfo | ( | PlanetarySystem * | sys, |
boolean | action | ||
) |
PlanetarySystem* InitPlanetarySystem | ( | char * | filename | ) |
Definition at line 117 of file Psys.c.
References planetary_system::acc, AllocPlanetSystem(), CPU_Master, ECCENTRICITY, planetary_system::FeelDisk, planetary_system::FeelOthers, FindNumberOfPlanets(), planetary_system::mass, planetary_system::nb, NO, planetary_system::vx, planetary_system::vy, planetary_system::x, planetary_system::y, and YES.
void ListPlanets | ( | PlanetarySystem * | sys | ) |
Definition at line 155 of file Psys.c.
References CPU_Master, planetary_system::nb, and YES.
void RotatePsys | ( | struct reb_simulation * | rsim, |
real | angle | ||
) |
boolean GuidingCenter |
Definition at line 29 of file Interpret.c.
Referenced by GetPsysInfo(), GetPsysInfoFromRsim(), and ReadVariables().
|
static |
Definition at line 17 of file Psys.c.
Referenced by GetPsysInfo(), and GetPsysInfoFromRsim().
|
static |
Definition at line 17 of file Psys.c.
Referenced by GetPsysInfo(), and GetPsysInfoFromRsim().