flare

Contents

flare.c

Subroutines that control the output of XUV flares.

Author

Rory Barnes (RoryBarnes)

Date

Mar 25 2016

Functions

void BodyCopyFlare(BODY *dest, BODY *src, int foo, int iNumBodies, int iBody)
void ReadFlareEnergyBin(BODY *body, CONTROL *control, FILES *files, OPTIONS *options, SYSTEM *system, int iFile)
void ReadFlareFFD(BODY *body, CONTROL *control, FILES *files, OPTIONS *options, SYSTEM *system, int iFile)
void ReadFlareBandPass(BODY *body, CONTROL *control, FILES *files, OPTIONS *options, SYSTEM *system, int iFile)
void ReadFlareMinEnergy(BODY *body, CONTROL *control, FILES *files, OPTIONS *options, SYSTEM *system, int iFile)
void ReadFlareMaxEnergy(BODY *body, CONTROL *control, FILES *files, OPTIONS *options, SYSTEM *system, int iFile)
void ReadFlareYInt(BODY *body, CONTROL *control, FILES *files, OPTIONS *options, SYSTEM *system, int iFile)
void ReadFlareSlope(BODY *body, CONTROL *control, FILES *files, OPTIONS *options, SYSTEM *system, int iFile)
void ReadLXUVFlareConst(BODY *body, CONTROL *control, FILES *files, OPTIONS *options, SYSTEM *system, int iFile)
void InitializeOptionsFlare(OPTIONS *options, fnReadOption fnRead[])
void ReadOptionsFlare(BODY *body, CONTROL *control, FILES *files, OPTIONS *options, SYSTEM *system, fnReadOption fnRead[], int iBody)
void PropsAuxFlare(BODY *body, EVOLVE *evolve, IO *io, UPDATE *update, int iBody)
void VerifyFlareFFD(BODY *body, CONTROL *control, OPTIONS *options, UPDATE *update, double dAge, int iBody)
void VerifyLXUVFlare(BODY *body, OPTIONS *options, UPDATE *update, int iBody)
void AssignFlareDerivatives(BODY *body, EVOLVE *evolve, UPDATE *update, fnUpdateVariable ***fnUpdate, int iBody)
void NullFlareDerivatives(BODY *body, EVOLVE *evolve, UPDATE *update, fnUpdateVariable ***fnUpdate, int iBody)
void VerifyFlare(BODY *body, CONTROL *control, FILES *files, OPTIONS *options, OUTPUT *output, SYSTEM *system, UPDATE *update, int iBody, int iModule)
void fnForceBehaviorFlare(BODY *body, MODULE *module, EVOLVE *evolve, IO *io, SYSTEM *system, UPDATE *update, fnUpdateVariable ***fnUpdate, int iBody, int iModule)
void InitializeBodyFlare(BODY *body, CONTROL *control, UPDATE *update, int iBody, int iModule)
void InitializeModuleFlare(CONTROL *control, MODULE *module)
void InitializeUpdateFlare(BODY *body, UPDATE *update, int iBody)
void FinalizeUpdateLXUVFlare(BODY *body, UPDATE *update, int *iEqn, int iVar, int iBody, int iFoo)
void CountHaltsFlare(HALT *halt, int *iNumHalts)
void VerifyHaltFlare(BODY *body, CONTROL *control, OPTIONS *options, int iBody, int *iHalt)
void WriteLXUVFlare(BODY *body, CONTROL *control, OUTPUT *output, SYSTEM *system, UNITS *units, UPDATE *update, int iBody, double *dTmp, char **cUnit)
void WriteFlareFreq1(BODY *body, CONTROL *control, OUTPUT *output, SYSTEM *system, UNITS *units, UPDATE *update, int iBody, double *dTmp, char **cUnit)
void WriteFlareFreq2(BODY *body, CONTROL *control, OUTPUT *output, SYSTEM *system, UNITS *units, UPDATE *update, int iBody, double *dTmp, char **cUnit)
void WriteFlareFreq3(BODY *body, CONTROL *control, OUTPUT *output, SYSTEM *system, UNITS *units, UPDATE *update, int iBody, double *dTmp, char **cUnit)
void WriteFlareFreq4(BODY *body, CONTROL *control, OUTPUT *output, SYSTEM *system, UNITS *units, UPDATE *update, int iBody, double *dTmp, char **cUnit)
void WriteFlareFreqMin(BODY *body, CONTROL *control, OUTPUT *output, SYSTEM *system, UNITS *units, UPDATE *update, int iBody, double *dTmp, char **cUnit)
void WriteFlareFreqMid(BODY *body, CONTROL *control, OUTPUT *output, SYSTEM *system, UNITS *units, UPDATE *update, int iBody, double *dTmp, char **cUnit)
void WriteFlareFreqMax(BODY *body, CONTROL *control, OUTPUT *output, SYSTEM *system, UNITS *units, UPDATE *update, int iBody, double *dTmp, char **cUnit)
void WriteFlareEnergy1(BODY *body, CONTROL *control, OUTPUT *output, SYSTEM *system, UNITS *units, UPDATE *update, int iBody, double *dTmp, char **cUnit)
void WriteFlareEnergy2(BODY *body, CONTROL *control, OUTPUT *output, SYSTEM *system, UNITS *units, UPDATE *update, int iBody, double *dTmp, char **cUnit)
void WriteFlareEnergy3(BODY *body, CONTROL *control, OUTPUT *output, SYSTEM *system, UNITS *units, UPDATE *update, int iBody, double *dTmp, char **cUnit)
void WriteFlareEnergy4(BODY *body, CONTROL *control, OUTPUT *output, SYSTEM *system, UNITS *units, UPDATE *update, int iBody, double *dTmp, char **cUnit)
void WriteFlareEnergyMin(BODY *body, CONTROL *control, OUTPUT *output, SYSTEM *system, UNITS *units, UPDATE *update, int iBody, double *dTmp, char **cUnit)
void WriteFlareEnergyMid(BODY *body, CONTROL *control, OUTPUT *output, SYSTEM *system, UNITS *units, UPDATE *update, int iBody, double *dTmp, char **cUnit)
void WriteFlareEnergyMax(BODY *body, CONTROL *control, OUTPUT *output, SYSTEM *system, UNITS *units, UPDATE *update, int iBody, double *dTmp, char **cUnit)
void InitializeOutputFlare(OUTPUT *output, fnWriteOutput fnWrite[])
void LogOptionsFlare(CONTROL *control, FILE *fp)
void LogFlare(BODY *body, CONTROL *control, OUTPUT *output, SYSTEM *system, UPDATE *update, fnWriteOutput fnWrite[], FILE *fp)
void LogBodyFlare(BODY *body, CONTROL *control, OUTPUT *output, SYSTEM *system, UPDATE *update, fnWriteOutput fnWrite[], FILE *fp, int iBody)
void AddModuleFlare(CONTROL *control, MODULE *module, int iBody, int iModule)
double fdBandPassXUV(BODY *body, int iBody, double dInputEnergy)
double fdBandPassKepler(BODY *body, int iBody, double dInputEnergy)
double fdDavenport(double dA1, double dA2, double dA3, double dStarAge, double dStarMass)
double fdFFD(BODY *body, int iBody, double dLogEnergy, double dFlareSlope, double dFlareYInt)
double fdEnergyJoulesXUV(double dLogEnergyXUV)
double fdLXUVFlare(BODY *body, double dDeltaTime, int iBody)

flare.h

Subroutines that control the output of XUV flares.

Author

Rory Barnes (RoryBarnes)

Date

Mar 25 2016

Defines

MINMASSFLARE
MAXMASSFLARE
FLARE_FFD_DAVENPORT
FLARE_FFD_LACY
FLARE_FFD_NONE
FLARE_KEPLER
FLARE_UV
FLARE_GOES
FLARE_SXR
FLARE_TESS_UV
FLARE_BOLOMETRIC
FLARE_SLOPE_SEC
FLARE_SLOPE_DAY
FLARE_SLOPE_HOUR
FLARE_SLOPE_MINUTE
OPTSTARTFLARE
OPTENDFLARE
OPT_FLAREYINT
OPT_FLARESLOPE
OPT_FLAREMINENERGY
OPT_FLAREMAXENERGY
OPT_FLAREFFD
OPT_FLARESLOPEUNITS
OPT_FLAREENERGYBIN
OPT_FLAREBANDPASS
OPT_LXUVFLARECONST
OUTSTARTFLARE
OUTENDFLARE
OUT_LXUVFLARE
OUT_FLAREFREQ1
OUT_FLAREFREQ2
OUT_FLAREFREQ3
OUT_FLAREFREQ4
OUT_FLAREFREQMIN
OUT_FLAREFREQMID
OUT_FLAREFREQMAX
OUT_FLAREENERGY1
OUT_FLAREENERGY2
OUT_FLAREENERGY3
OUT_FLAREENERGY4
OUT_FLAREENERGYMIN
OUT_FLAREENERGYMID
OUT_FLAREENERGYMAX