galhabit¶
Contents
galhabit.c¶
Subroutines that simulate the galactic habitat of a stellar system.
- Author
Russell Deitrick (deitrr)
- Date
July 7 2015
Functions
-
void ReadGalacDensity(BODY *body, CONTROL *control, FILES *files, OPTIONS *options, SYSTEM *system, int iFile)¶
-
void ReadRForm(BODY *body, CONTROL *control, FILES *files, OPTIONS *options, SYSTEM *system, int iFile)¶
-
void ReadStarScaleL(BODY *body, CONTROL *control, FILES *files, OPTIONS *options, SYSTEM *system, int iFile)¶
-
void ReadTMigration(BODY *body, CONTROL *control, FILES *files, OPTIONS *options, SYSTEM *system, int iFile)¶
-
void ReadRadialMigr(BODY *body, CONTROL *control, FILES *files, OPTIONS *options, SYSTEM *system, int iFile)¶
-
void ReadGasDensity(BODY *body, CONTROL *control, FILES *files, OPTIONS *options, SYSTEM *system, int iFile)¶
-
void ReadDMDensity(BODY *body, CONTROL *control, FILES *files, OPTIONS *options, SYSTEM *system, int iFile)¶
-
void ReadRandSeed(BODY *body, CONTROL *control, FILES *files, OPTIONS *options, SYSTEM *system, int iFile)¶
-
void ReadEncounterRad(BODY *body, CONTROL *control, FILES *files, OPTIONS *options, SYSTEM *system, int iFile)¶
-
void ReadStellarEnc(BODY *body, CONTROL *control, FILES *files, OPTIONS *options, SYSTEM *system, int iFile)¶
-
void ReadOutputEnc(BODY *body, CONTROL *control, FILES *files, OPTIONS *options, SYSTEM *system, int iFile)¶
-
void ReadTimeEvolVelDisp(BODY *body, CONTROL *control, FILES *files, OPTIONS *options, SYSTEM *system, int iFile)¶
-
void ReadHostBinary(BODY *body, CONTROL *control, FILES *files, OPTIONS *options, SYSTEM *system, int iFile)¶
-
void ReadGalacTides(BODY *body, CONTROL *control, FILES *files, OPTIONS *options, SYSTEM *system, int iFile)¶
-
void ReadHostBinSemi(BODY *body, CONTROL *control, FILES *files, OPTIONS *options, SYSTEM *system, int iFile)¶
-
void ReadMinStellarApproach(BODY *body, CONTROL *control, FILES *files, OPTIONS *options, SYSTEM *system, int iFile)¶
-
void ReadHostBinEcc(BODY *body, CONTROL *control, FILES *files, OPTIONS *options, SYSTEM *system, int iFile)¶
-
void ReadHostBinArgP(BODY *body, CONTROL *control, FILES *files, OPTIONS *options, SYSTEM *system, int iFile)¶
-
void ReadHostBinLongA(BODY *body, CONTROL *control, FILES *files, OPTIONS *options, SYSTEM *system, int iFile)¶
-
void ReadHostBinInc(BODY *body, CONTROL *control, FILES *files, OPTIONS *options, SYSTEM *system, int iFile)¶
-
void ReadHostBinMass1(BODY *body, CONTROL *control, FILES *files, OPTIONS *options, SYSTEM *system, int iFile)¶
-
void InitializeOptionsGalHabit(OPTIONS *options, fnReadOption fnRead[])¶
-
void ReadOptionsGalHabit(BODY *body, CONTROL *control, FILES *files, OPTIONS *options, SYSTEM *system, fnReadOption fnRead[], int iBody)¶
-
void VerifyTidesBinary(BODY *body, CONTROL *control, OPTIONS *options, char cFile[], int iBody, int iVerbose)¶
-
void AssignGalHabitDerivatives(BODY *body, EVOLVE *evolve, UPDATE *update, fnUpdateVariable ***fnUpdate, int iBody)¶
-
void NullGalHabitDerivatives(BODY *body, EVOLVE *evolve, UPDATE *update, fnUpdateVariable ***fnUpdate, int iBody)¶
-
void VerifyGalHabit(BODY *body, CONTROL *control, FILES *files, OPTIONS *options, OUTPUT *output, SYSTEM *system, UPDATE *update, int iBody, int iModule)¶
-
void FinalizeUpdateEccXGalHabit(BODY *body, UPDATE *update, int *iEqn, int iVar, int iBody, int iFoo)¶
-
void FinalizeUpdateEccYGalHabit(BODY *body, UPDATE *update, int *iEqn, int iVar, int iBody, int iFoo)¶
-
void FinalizeUpdateEccZGalHabit(BODY *body, UPDATE *update, int *iEqn, int iVar, int iBody, int iFoo)¶
-
void FinalizeUpdateAngMXGalHabit(BODY *body, UPDATE *update, int *iEqn, int iVar, int iBody, int iFoo)¶
-
void FinalizeUpdateAngMYGalHabit(BODY *body, UPDATE *update, int *iEqn, int iVar, int iBody, int iFoo)¶
-
void FinalizeUpdateAngMZGalHabit(BODY *body, UPDATE *update, int *iEqn, int iVar, int iBody, int iFoo)¶
-
int HaltDisrupt(BODY *body, EVOLVE *evolve, HALT *halt, IO *io, UPDATE *update, fnUpdateVariable ***fnUpdate, int iBody)¶
-
int HaltBadImpulse(BODY *body, EVOLVE *evolve, HALT *halt, IO *io, UPDATE *update, fnUpdateVariable ***fnUpdate, int iBody)¶
-
void WriteBodyPeriQ(BODY *body, CONTROL *control, OUTPUT *output, SYSTEM *system, UNITS *units, UPDATE *update, int iBody, double *dTmp, char cUnit[])¶
-
void WriteBodyEccX(BODY *body, CONTROL *control, OUTPUT *output, SYSTEM *system, UNITS *units, UPDATE *update, int iBody, double *dTmp, char cUnit[])¶
-
void WriteBodyEccY(BODY *body, CONTROL *control, OUTPUT *output, SYSTEM *system, UNITS *units, UPDATE *update, int iBody, double *dTmp, char cUnit[])¶
-
void WriteBodyEccZ(BODY *body, CONTROL *control, OUTPUT *output, SYSTEM *system, UNITS *units, UPDATE *update, int iBody, double *dTmp, char cUnit[])¶
-
void WriteBodyAngMX(BODY *body, CONTROL *control, OUTPUT *output, SYSTEM *system, UNITS *units, UPDATE *update, int iBody, double *dTmp, char cUnit[])¶
-
void WriteBodyAngMY(BODY *body, CONTROL *control, OUTPUT *output, SYSTEM *system, UNITS *units, UPDATE *update, int iBody, double *dTmp, char cUnit[])¶
-
void WriteBodyAngMZ(BODY *body, CONTROL *control, OUTPUT *output, SYSTEM *system, UNITS *units, UPDATE *update, int iBody, double *dTmp, char cUnit[])¶
-
void WriteNEncounters(BODY *body, CONTROL *control, OUTPUT *output, SYSTEM *system, UNITS *units, UPDATE *update, int iBody, double *dTmp, char cUnit[])¶
-
void WriteNBadImpulse(BODY *body, CONTROL *control, OUTPUT *output, SYSTEM *system, UNITS *units, UPDATE *update, int iBody, double *dTmp, char cUnit[])¶
-
void WriteFVelDisp(BODY *body, CONTROL *control, OUTPUT *output, SYSTEM *system, UNITS *units, UPDATE *update, int iBody, double *dTmp, char cUnit[])¶
-
void WriteDEccDtGalHTidal(BODY *body, CONTROL *control, OUTPUT *output, SYSTEM *system, UNITS *units, UPDATE *update, int iBody, double *dTmp, char cUnit[])¶
-
void WriteDIncDtGalHTidal(BODY *body, CONTROL *control, OUTPUT *output, SYSTEM *system, UNITS *units, UPDATE *update, int iBody, double *dTmp, char cUnit[])¶
-
void WriteDLongADtGalHTidal(BODY *body, CONTROL *control, OUTPUT *output, SYSTEM *system, UNITS *units, UPDATE *update, int iBody, double *dTmp, char cUnit[])¶
-
void WriteDArgPDtGalHTidal(BODY *body, CONTROL *control, OUTPUT *output, SYSTEM *system, UNITS *units, UPDATE *update, int iBody, double *dTmp, char cUnit[])¶
-
void InitializeOutputGalHabit(OUTPUT *output, fnWriteOutput fnWrite[])¶
-
void LogGalHabit(BODY *body, CONTROL *control, OUTPUT *output, SYSTEM *system, UPDATE *update, fnWriteOutput fnWrite[], FILE *fp)¶
-
void LogBodyGalHabit(BODY *body, CONTROL *control, OUTPUT *output, SYSTEM *system, UPDATE *update, fnWriteOutput fnWrite[], FILE *fp, int iBody)¶
-
void ForceBehaviorGalHabit(BODY *body, MODULE *module, EVOLVE *evolve, IO *io, SYSTEM *system, UPDATE *update, fnUpdateVariable ***fnUpdate, int iBody, int iModule)¶
-
double fndRandom_double()¶
-
int fniRandom_int(int n)¶
-
double fndNsMinus6to15(double dMagV)¶
-
double fndMag2mass(double dMagV)¶
-
double fndNearbyStarDist(double dMagV)¶
-
double fndDexDla(double dEccY)¶
-
double fndDeyDla(double dEccX)¶
-
double fndDezDap(double dArgP, double dEcc, double dInc)¶
galhabit.h¶
Subroutines that simulate the galactic habitat of a stellar system.
- Author
Russell Deitrick (deitrr)
- Date
July 7 2015
Defines
-
OPTSTARTGALHABIT¶
-
OPTENDGALHABIT¶
-
OPT_GALACDENSITY¶
-
OPT_RANDSEED¶
-
OPT_ENCOUNTERRAD¶
-
OPT_RFORM¶
-
OPT_TMIGRATION¶
-
OPT_RADIALMIGR¶
-
OPT_GASDENSITY¶
-
OPT_DMDENSITY¶
-
OPT_STARSCALEL¶
-
OPT_STELLARENC¶
-
OPT_TIMEEVOLVELDISP¶
-
OPT_OUTPUTENC¶
-
OPT_PERIQ¶
-
OPT_HOSTBINARY¶
-
OPT_HOSTBINSEMI¶
-
OPT_HOSTBINECC¶
-
OPT_HOSTBININC¶
-
OPT_HOSTBINARGP¶
-
OPT_HOSTBINLONGA¶
-
OPT_HOSTBINMASS1¶
-
OPT_MINSTELLARAPPROACH¶
-
OPT_GALACTIDES¶
-
OUTSTARTGALHABIT¶
-
OUTENDGALHABIT¶
-
OUTBODYSTARTGALHABIT¶
-
OUT_PERIQ¶
-
OUT_NENCOUNTERS¶
-
OUT_FVELDISP¶
-
OUT_ECCX¶
-
OUT_ECCY¶
-
OUT_ECCZ¶
-
OUT_ANGMX¶
-
OUT_ANGMY¶
-
OUT_ANGMZ¶
-
OUT_NBADIMPULSE¶
-
OUT_DECCDTGALHTIDAL¶
-
OUT_DINCDTGALHTIDAL¶
-
OUT_DLONGADTGALHTIDAL¶
-
OUT_DARGPDTGALHTIDAL¶