#include "cddefines.h"
#include "physconst.h"
#include "optimize.h"
#include "continuum.h"
#include "called.h"
#include "rfield.h"
#include "stars.h"
Include dependency graph for stars.cpp:
Go to the source code of this file.
Data Structures | |
struct | mpp |
struct | stellar_grid |
Defines | |
#define | DEBUGPRT 0 |
#define | FREE_CHECK(PTR) { ASSERT( PTR != NULL ); free( PTR ); PTR = NULL; } |
#define | FREE_SAFE(PTR) { if( PTR != NULL ) free( PTR ); PTR = NULL; } |
Enumerations | |
enum | IntStage { IS_UNDEFINED, IS_FIRST, IS_SECOND } |
Functions | |
STATIC bool | lgCompileAtmosphereCoStar (const char[], const char[], const realnum[], long, process_counter &) |
STATIC void | InterpolateGridCoStar (const stellar_grid *, const double[], double *, double *) |
STATIC void | FindHCoStar (const stellar_grid *, long, double, long, realnum *, long *, long *) |
STATIC void | FindVCoStar (const stellar_grid *, double, realnum *, long[]) |
STATIC void | CoStarListModels (const stellar_grid *) |
STATIC int | RauchInitializeSub (const char[], const char[], const mpp[], long, long, long, const double[], int) |
STATIC bool | lgCompileAtmosphere (const char[], const char[], const realnum[], long, process_counter &) |
STATIC void | InitGrid (stellar_grid *, bool) |
STATIC bool | lgValidBinFile (const char *, process_counter &, access_scheme) |
STATIC bool | lgValidAsciiFile (const char *, access_scheme) |
STATIC void | InitGridCoStar (stellar_grid *) |
STATIC void | CheckVal (const stellar_grid *, double[], long *, long *) |
STATIC void | InterpolateRectGrid (const stellar_grid *, const double[], double *, double *) |
STATIC void | FreeGrid (stellar_grid *) |
STATIC void | InterpolateModel (const stellar_grid *, const double[], double[], const long[], const long[], long[], long, realnum[], IntStage) |
STATIC void | InterpolateModelCoStar (const stellar_grid *, const double[], double[], const long[], const long[], long[], long, long, realnum[]) |
STATIC void | GetModel (const stellar_grid *, long, realnum[], bool, bool) |
STATIC void | SetLimits (const stellar_grid *, double, const long[], const long[], const long[], const realnum[], double *, double *) |
STATIC void | SetLimitsSub (const stellar_grid *, double, const long[], const long[], long[], long, double *, double *) |
STATIC void | InitIndexArrays (stellar_grid *, bool) |
STATIC void | FillJ (const stellar_grid *, long[], double[], long, bool) |
STATIC long | JIndex (const stellar_grid *, const long[]) |
STATIC void | SearchModel (const mpp[], long, const double[], long, long *, long *) |
STATIC void | FindIndex (const double[], long, double, long *, long *, bool *) |
STATIC bool | lgFileReadable (const char *, process_counter &, access_scheme) |
STATIC void | ValidateGrid (const stellar_grid *, double) |
STATIC bool | lgValidModel (const realnum[], const realnum[], double, double) |
STATIC void | RebinAtmosphere (long, const realnum[], const realnum[], realnum[], long, const realnum[]) |
STATIC realnum | RebinSingleCell (realnum, realnum, const realnum[], const realnum[], const realnum[], long) |
STATIC long | RebinFind (const realnum[], long, realnum) |
void | AtmospheresAvail (void) |
int | AtlasCompile (process_counter &pc) |
long | AtlasInterpolate (double val[], long *nval, long *ndim, const char *chMetalicity, const char *chODFNew, bool lgList, double *Tlow, double *Thigh) |
int | CoStarCompile (process_counter &pc) |
long | CoStarInterpolate (double val[], long *nval, long *ndim, IntMode imode, bool lgHalo, bool lgList, double *val0_lo, double *val0_hi) |
bool | GridCompile (const char *InName) |
long | GridInterpolate (double val[], long *nval, long *ndim, const char *FileName, bool lgList, double *Tlow, double *Thigh) |
int | Kurucz79Compile (process_counter &pc) |
long | Kurucz79Interpolate (double val[], long *nval, long *ndim, bool lgList, double *Tlow, double *Thigh) |
int | MihalasCompile (process_counter &pc) |
long | MihalasInterpolate (double val[], long *nval, long *ndim, bool lgList, double *Tlow, double *Thigh) |
int | RauchCompile (process_counter &pc) |
long | RauchInterpolateHCa (double val[], long *nval, long *ndim, bool lgHalo, bool lgList, double *Tlow, double *Thigh) |
long | RauchInterpolateHNi (double val[], long *nval, long *ndim, bool lgHalo, bool lgList, double *Tlow, double *Thigh) |
long | RauchInterpolatePG1159 (double val[], long *nval, long *ndim, bool lgList, double *Tlow, double *Thigh) |
long | RauchInterpolateHydr (double val[], long *nval, long *ndim, bool lgList, double *Tlow, double *Thigh) |
long | RauchInterpolateHelium (double val[], long *nval, long *ndim, bool lgList, double *Tlow, double *Thigh) |
long | RauchInterpolateHpHe (double val[], long *nval, long *ndim, bool lgList, double *Tlow, double *Thigh) |
bool | StarburstInitialize (const char chInName[], const char chOutName[]) |
bool | StarburstCompile (process_counter &pc) |
int | TlustyCompile (process_counter &pc) |
long | TlustyInterpolate (double val[], long *nval, long *ndim, tl_grid tlg, const char *chMetalicity, bool lgList, double *Tlow, double *Thigh) |
int | WernerCompile (process_counter &pc) |
long | WernerInterpolate (double val[], long *nval, long *ndim, bool lgList, double *Tlow, double *Thigh) |
int | WMBASICCompile (process_counter &pc) |
long | WMBASICInterpolate (double val[], long *nval, long *ndim, bool lgList, double *Tlow, double *Thigh) |
Variables | |
static const int | NSB99 = 1250 |
static const int | MNTS = 200 |
static const int | NRAUCH = 19951 |
static const int | NMODS_HCA = 66 |
static const int | NMODS_HNI = 51 |
static const int | NMODS_PG1159 = 71 |
static const int | NMODS_HYDR = 100 |
static const int | NMODS_HELIUM = 81 |
static const int | NMODS_HpHE = 117 |
static const bool | lgSILENT = false |
static const bool | lgVERBOSE = true |
static const bool | lgLINEAR = false |
static const bool | lgTAKELOG = true |
static const long int | VERSION_ASCII = 20060612L |
static const long int | VERSION_BIN = 20060612L |
#define FREE_CHECK | ( | PTR | ) | { ASSERT( PTR != NULL ); free( PTR ); PTR = NULL; } |
#define FREE_SAFE | ( | PTR | ) | { if( PTR != NULL ) free( PTR ); PTR = NULL; } |
int AtlasCompile | ( | process_counter & | pc | ) |
AtlasCompile rebin Kurucz stellar models to match energy grid of code
Definition at line 362 of file stars.cpp.
References AS_LOCAL_ONLY_TRY, DEBUG_ENTRY, ioQQQ, lgCompileAtmosphere(), lgFileReadable(), lgValidBinFile(), and RYDLAM.
Referenced by ParseCompile().
Here is the call graph for this function:
long AtlasInterpolate | ( | double | val[], | |
long * | nval, | |||
long * | ndim, | |||
const char * | chMetalicity, | |||
const char * | chODFNew, | |||
bool | lgList, | |||
double * | Tlow, | |||
double * | Thigh | |||
) |
AtlasInterpolate interpolate on atlas model atmospheres, by K Volk
Definition at line 483 of file stars.cpp.
References AS_DATA_OPTIONAL, CheckVal(), DEBUG_ENTRY, FreeGrid(), grid, InitGrid(), InterpolateRectGrid(), t_rfield::nupper, and rfield.
Here is the call graph for this function:
void AtmospheresAvail | ( | void | ) |
List all the available TABLE STAR <grid> commands by checking installed *.mod files
Definition at line 190 of file stars.cpp.
References AS_DATA_ONLY_TRY, DEBUG_ENTRY, ioQQQ, and lgValidBinFile().
Here is the call graph for this function:
STATIC void CheckVal | ( | const stellar_grid * | , | |
double | [], | |||
long * | , | |||
long * | ||||
) |
Definition at line 3207 of file stars.cpp.
References cdEXIT, DEBUG_ENTRY, grid, and ioQQQ.
Referenced by AtlasInterpolate(), CoStarInterpolate(), GridInterpolate(), Kurucz79Interpolate(), MihalasInterpolate(), RauchInterpolateHCa(), RauchInterpolateHelium(), RauchInterpolateHNi(), RauchInterpolateHpHe(), RauchInterpolateHydr(), RauchInterpolatePG1159(), TlustyInterpolate(), WernerInterpolate(), and WMBASICInterpolate().
int CoStarCompile | ( | process_counter & | pc | ) |
CoStarCompile rebin costar stellar models to match energy grid of code
Definition at line 554 of file stars.cpp.
References AS_LOCAL_ONLY_TRY, DEBUG_ENTRY, ioQQQ, lgCompileAtmosphereCoStar(), lgFileReadable(), lgValidBinFile(), and RYDLAM.
Referenced by ParseCompile().
Here is the call graph for this function:
long CoStarInterpolate | ( | double | val[], | |
long * | nval, | |||
long * | ndim, | |||
IntMode | imode, | |||
bool | lgHalo, | |||
bool | lgList, | |||
double * | val0_lo, | |||
double * | val0_hi | |||
) |
CoStarInterpolate read in and interpolate on Werner grid of PN atmospheres, by K Volk
Definition at line 591 of file stars.cpp.
References AS_DATA_OPTIONAL, cdEXIT, CheckVal(), CoStarListModels(), DEBUG_ENTRY, FreeGrid(), grid, InitGrid(), InitGridCoStar(), InterpolateGridCoStar(), t_rfield::nupper, and rfield.
Here is the call graph for this function:
STATIC void CoStarListModels | ( | const stellar_grid * | ) |
Definition at line 2372 of file stars.cpp.
References DEBUG_ENTRY, grid, ioQQQ, JIndex(), and MAX2.
Referenced by CoStarInterpolate().
Here is the call graph for this function:
STATIC void FillJ | ( | const stellar_grid * | , | |
long | [], | |||
double | [], | |||
long | , | |||
bool | ||||
) |
Definition at line 3909 of file stars.cpp.
References DEBUG_ENTRY, grid, ioQQQ, JIndex(), MIN2, and SearchModel().
Here is the call graph for this function:
STATIC void FindHCoStar | ( | const stellar_grid * | , | |
long | , | |||
double | , | |||
long | , | |||
realnum * | , | |||
long * | , | |||
long * | ||||
) |
Definition at line 2249 of file stars.cpp.
References DEBUG_ENTRY, grid, and JIndex().
Here is the call graph for this function:
STATIC void FindIndex | ( | const | double[], | |
long | , | |||
double | , | |||
long * | , | |||
long * | , | |||
bool * | ||||
) |
Definition at line 4073 of file stars.cpp.
References ASSERT, cdEXIT, DEBUG_ENTRY, and ShowMe().
Referenced by InitIndexArrays(), and InterpolateRectGrid().
Here is the call graph for this function:
STATIC void FindVCoStar | ( | const stellar_grid * | , | |
double | , | |||
realnum * | , | |||
long | [] | |||
) |
Definition at line 2307 of file stars.cpp.
References continuum, DEBUG_ENTRY, grid, and t_continuum::lgCoStarInterpolationCaution.
STATIC void FreeGrid | ( | stellar_grid * | ) |
Definition at line 3346 of file stars.cpp.
References DEBUG_ENTRY, FREE_CHECK, FREE_SAFE, and grid.
Referenced by AtlasInterpolate(), CoStarInterpolate(), GridCompile(), GridInterpolate(), Kurucz79Interpolate(), MihalasInterpolate(), RauchInterpolateHCa(), RauchInterpolateHelium(), RauchInterpolateHNi(), RauchInterpolateHpHe(), RauchInterpolateHydr(), RauchInterpolatePG1159(), TlustyInterpolate(), WernerInterpolate(), and WMBASICInterpolate().
STATIC void GetModel | ( | const stellar_grid * | , | |
long | , | |||
realnum | [], | |||
bool | , | |||
bool | ||||
) |
Definition at line 3588 of file stars.cpp.
References ASSERT, called, cdEXIT, DEBUG_ENTRY, grid, ioQQQ, t_called::lgTalk, MAX2, t_rfield::nupper, PrintEfmt(), and rfield.
Referenced by InterpolateGridCoStar(), InterpolateModel(), InterpolateModelCoStar(), InterpolateRectGrid(), and ValidateGrid().
Here is the call graph for this function:
bool GridCompile | ( | const char * | InName | ) |
GridCompile rebin user supplied stellar models to match energy grid of code
Definition at line 661 of file stars.cpp.
References AS_LOCAL_ONLY, ASSERT, DEBUG_ENTRY, FreeGrid(), grid, InitGrid(), ioQQQ, lgCompileAtmosphere(), and ValidateGrid().
Referenced by ParseCompile().
Here is the call graph for this function:
long GridInterpolate | ( | double | val[], | |
long * | nval, | |||
long * | ndim, | |||
const char * | FileName, | |||
bool | lgList, | |||
double * | Tlow, | |||
double * | Thigh | |||
) |
GridInterpolate read in and interpolate on user supplied grid of atmospheres
Definition at line 702 of file stars.cpp.
References AS_DATA_OPTIONAL, CheckVal(), DEBUG_ENTRY, FreeGrid(), grid, InitGrid(), InterpolateRectGrid(), t_rfield::nupper, and rfield.
Here is the call graph for this function:
STATIC void InitGrid | ( | stellar_grid * | , | |
bool | ||||
) |
Definition at line 2957 of file stars.cpp.
References ASSERT, cdEXIT, DEBUG_ENTRY, grid, ioQQQ, MALLOC, MDIM, MNAM, t_rfield::nupper, open_data(), rfield, and VERSION_BIN.
Referenced by AtlasInterpolate(), CoStarInterpolate(), GridCompile(), GridInterpolate(), Kurucz79Interpolate(), MihalasInterpolate(), RauchInterpolateHCa(), RauchInterpolateHelium(), RauchInterpolateHNi(), RauchInterpolateHpHe(), RauchInterpolateHydr(), RauchInterpolatePG1159(), TlustyInterpolate(), WernerInterpolate(), and WMBASICInterpolate().
Here is the call graph for this function:
STATIC void InitGridCoStar | ( | stellar_grid * | ) |
Definition at line 3155 of file stars.cpp.
References ASSERT, CALLOC, DEBUG_ENTRY, FREE_CHECK, grid, and JIndex().
Referenced by CoStarInterpolate().
Here is the call graph for this function:
STATIC void InitIndexArrays | ( | stellar_grid * | , | |
bool | ||||
) |
Definition at line 3838 of file stars.cpp.
References ASSERT, DEBUG_ENTRY, FindIndex(), and grid.
Here is the call graph for this function:
STATIC void InterpolateGridCoStar | ( | const stellar_grid * | , | |
const | double[], | |||
double * | , | |||
double * | ||||
) |
Definition at line 2087 of file stars.cpp.
References ASSERT, cdEXIT, DEBUG_ENTRY, GetModel(), grid, IM_COSTAR_AGE_MZAMS, IM_COSTAR_MZAMS_AGE, IM_COSTAR_TEFF_LOGG, IM_COSTAR_TEFF_MODID, ioQQQ, JIndex(), t_rfield::lgContMalloc, lgLINEAR, lgSILENT, MALLOC, t_rfield::nspec, rfield, t_rfield::tNuRyd, and ValidateGrid().
Referenced by CoStarInterpolate().
Here is the call graph for this function:
STATIC void InterpolateModel | ( | const stellar_grid * | , | |
const | double[], | |||
double | [], | |||
const | long[], | |||
const | long[], | |||
long | [], | |||
long | , | |||
realnum | [], | |||
IntStage | ||||
) |
Definition at line 3367 of file stars.cpp.
References called, cdEXIT, DEBUG_ENTRY, GetModel(), grid, ioQQQ, IS_FIRST, IS_SECOND, JIndex(), lgTAKELOG, t_called::lgTalk, lgVERBOSE, and TotalInsanity().
Here is the call graph for this function:
STATIC void InterpolateModelCoStar | ( | const stellar_grid * | , | |
const | double[], | |||
double | [], | |||
const | long[], | |||
const | long[], | |||
long | [], | |||
long | , | |||
long | , | |||
realnum | [] | |||
) |
Definition at line 3514 of file stars.cpp.
References ASSERT, DEBUG_ENTRY, FREE_CHECK, GetModel(), grid, ioQQQ, lgTAKELOG, lgVERBOSE, MALLOC, t_rfield::nupper, and rfield.
Here is the call graph for this function:
STATIC void InterpolateRectGrid | ( | const stellar_grid * | , | |
const | double[], | |||
double * | , | |||
double * | ||||
) |
Definition at line 3236 of file stars.cpp.
References ASSERT, cdEXIT, DEBUG_ENTRY, FindIndex(), GetModel(), grid, ioQQQ, t_rfield::lgContMalloc, lgLINEAR, lgSILENT, MALLOC, t_rfield::nspec, t_rfield::nupper, rfield, t_rfield::tNuRyd, and ValidateGrid().
Referenced by AtlasInterpolate(), GridInterpolate(), Kurucz79Interpolate(), MihalasInterpolate(), RauchInterpolateHCa(), RauchInterpolateHelium(), RauchInterpolateHNi(), RauchInterpolateHpHe(), RauchInterpolateHydr(), RauchInterpolatePG1159(), TlustyInterpolate(), WernerInterpolate(), and WMBASICInterpolate().
Here is the call graph for this function:
STATIC long JIndex | ( | const stellar_grid * | , | |
const | long[] | |||
) |
Definition at line 3990 of file stars.cpp.
References DEBUG_ENTRY, and grid.
Referenced by CoStarListModels(), FillJ(), FindHCoStar(), InitGridCoStar(), InterpolateGridCoStar(), InterpolateModel(), SetLimits(), and SetLimitsSub().
int Kurucz79Compile | ( | process_counter & | pc | ) |
Kurucz79Compile rebin Kurucz79 stellar models to match energy grid of code
Definition at line 742 of file stars.cpp.
References AS_LOCAL_ONLY_TRY, DEBUG_ENTRY, ioQQQ, lgCompileAtmosphere(), lgFileReadable(), and lgValidBinFile().
Referenced by ParseCompile().
Here is the call graph for this function:
long Kurucz79Interpolate | ( | double | val[], | |
long * | nval, | |||
long * | ndim, | |||
bool | lgList, | |||
double * | Tlow, | |||
double * | Thigh | |||
) |
Kurucz79Interpolate read in and interpolate on Kurucz 1979 grid of atmospheres
Definition at line 763 of file stars.cpp.
References AS_DATA_OPTIONAL, CheckVal(), DEBUG_ENTRY, FreeGrid(), grid, InitGrid(), InterpolateRectGrid(), t_rfield::nupper, and rfield.
Here is the call graph for this function:
STATIC bool lgCompileAtmosphere | ( | const | char[], | |
const | char[], | |||
const | realnum[], | |||
long | , | |||
process_counter & | ||||
) |
Definition at line 2631 of file stars.cpp.
References t_rfield::AnuOrg, AS_LOCAL_ONLY, ASSERT, CALLOC, DEBUG_ENTRY, FR1RYD, FREE_CHECK, FREE_SAFE, ioQQQ, MALLOC, MDIM, MNAM, process_counter::nFail, process_counter::nOK, t_rfield::nupper, open_data(), POW2, RebinAtmosphere(), rfield, RYDLAM, SPEEDLIGHT, VERSION_ASCII, and VERSION_BIN.
Referenced by AtlasCompile(), GridCompile(), Kurucz79Compile(), MihalasCompile(), RauchCompile(), StarburstCompile(), TlustyCompile(), WernerCompile(), and WMBASICCompile().
Here is the call graph for this function:
STATIC bool lgCompileAtmosphereCoStar | ( | const | char[], | |
const | char[], | |||
const | realnum[], | |||
long | , | |||
process_counter & | ||||
) |
Definition at line 1848 of file stars.cpp.
References t_rfield::AnuOrg, AS_LOCAL_ONLY, ASSERT, CALLOC, mpp::chGrid, DEBUG_ENTRY, FREE_CHECK, FREE_SAFE, INPUT_LINE_LENGTH, ioQQQ, MALLOC, MDIM, MNAM, process_counter::nFail, process_counter::nOK, t_rfield::nupper, open_data(), mpp::par, PI, read_whole_line(), RebinAtmosphere(), rfield, RYDLAM, and VERSION_BIN.
Referenced by CoStarCompile().
Here is the call graph for this function:
STATIC bool lgFileReadable | ( | const char * | , | |
process_counter & | , | |||
access_scheme | ||||
) |
Definition at line 4150 of file stars.cpp.
References DEBUG_ENTRY, process_counter::nFound, and open_data().
Referenced by AtlasCompile(), CoStarCompile(), Kurucz79Compile(), MihalasCompile(), RauchCompile(), StarburstCompile(), TlustyCompile(), WernerCompile(), and WMBASICCompile().
Here is the call graph for this function:
STATIC bool lgValidAsciiFile | ( | const char * | , | |
access_scheme | ||||
) |
Definition at line 3132 of file stars.cpp.
References DEBUG_ENTRY, open_data(), and VERSION_ASCII.
Referenced by RauchCompile(), and StarburstCompile().
Here is the call graph for this function:
STATIC bool lgValidBinFile | ( | const char * | , | |
process_counter & | , | |||
access_scheme | ||||
) |
Definition at line 3076 of file stars.cpp.
References DEBUG_ENTRY, grid, MDIM, MNAM, process_counter::notProcessed, open_data(), and VERSION_BIN.
Referenced by AtlasCompile(), AtmospheresAvail(), CoStarCompile(), Kurucz79Compile(), MihalasCompile(), RauchCompile(), StarburstCompile(), TlustyCompile(), WernerCompile(), and WMBASICCompile().
Here is the call graph for this function:
STATIC bool lgValidModel | ( | const | realnum[], | |
const | realnum[], | |||
double | , | |||
double | ||||
) |
Definition at line 4220 of file stars.cpp.
References ASSERT, DEBUG_ENTRY, FR1RYD, t_rfield::nupper, rfield, and STEFAN_BOLTZ.
Referenced by ValidateGrid().
int MihalasCompile | ( | process_counter & | pc | ) |
MihalasCompile rebin Mihalas stellar models to match energy grid of code
Definition at line 793 of file stars.cpp.
References AS_LOCAL_ONLY_TRY, DEBUG_ENTRY, ioQQQ, lgCompileAtmosphere(), lgFileReadable(), and lgValidBinFile().
Referenced by ParseCompile().
Here is the call graph for this function:
long MihalasInterpolate | ( | double | val[], | |
long * | nval, | |||
long * | ndim, | |||
bool | lgList, | |||
double * | Tlow, | |||
double * | Thigh | |||
) |
MihalasInterpolate read in and interpolate on Mihalas grid of atmospheres
Definition at line 813 of file stars.cpp.
References AS_DATA_OPTIONAL, CheckVal(), DEBUG_ENTRY, FreeGrid(), grid, InitGrid(), InterpolateRectGrid(), t_rfield::nupper, and rfield.
Here is the call graph for this function:
int RauchCompile | ( | process_counter & | pc | ) |
RauchCompile create ascii and mod files for Rauch atmospheres return 0 if success, 1 if failure
Definition at line 843 of file stars.cpp.
References AS_LOCAL_ONLY_TRY, DEBUG_ENTRY, ioQQQ, lgCompileAtmosphere(), lgFileReadable(), lgValidAsciiFile(), lgValidBinFile(), NMODS_HCA, NMODS_HELIUM, NMODS_HNI, NMODS_HpHE, NMODS_HYDR, NMODS_PG1159, and RauchInitializeSub().
Referenced by ParseCompile().
Here is the call graph for this function:
STATIC int RauchInitializeSub | ( | const | char[], | |
const | char[], | |||
const | mpp[], | |||
long | , | |||
long | , | |||
long | , | |||
const | double[], | |||
int | ||||
) |
Definition at line 2416 of file stars.cpp.
References AS_LOCAL_ONLY, cdEXIT, DEBUG_ENTRY, FREE_CHECK, INPUT_LINE_LENGTH, ioQQQ, MALLOC, NRAUCH, open_data(), PI, read_whole_line(), ShowMe(), VERSION_ASCII, and wl.
Referenced by RauchCompile().
Here is the call graph for this function:
long RauchInterpolateHCa | ( | double | val[], | |
long * | nval, | |||
long * | ndim, | |||
bool | lgHalo, | |||
bool | lgList, | |||
double * | Tlow, | |||
double * | Thigh | |||
) |
RauchInterpolateHCa get one of the Rauch H-Ca model atmospheres, originally by K. Volk
Definition at line 1165 of file stars.cpp.
References AS_DATA_OPTIONAL, CheckVal(), DEBUG_ENTRY, FreeGrid(), grid, InitGrid(), InterpolateRectGrid(), t_rfield::nupper, and rfield.
Here is the call graph for this function:
long RauchInterpolateHelium | ( | double | val[], | |
long * | nval, | |||
long * | ndim, | |||
bool | lgList, | |||
double * | Tlow, | |||
double * | Thigh | |||
) |
RauchInterpolateHelium get one of the Rauch pure helium model atmospheres
Definition at line 1293 of file stars.cpp.
References AS_DATA_OPTIONAL, CheckVal(), DEBUG_ENTRY, FreeGrid(), grid, InitGrid(), InterpolateRectGrid(), t_rfield::nupper, and rfield.
Here is the call graph for this function:
long RauchInterpolateHNi | ( | double | val[], | |
long * | nval, | |||
long * | ndim, | |||
bool | lgHalo, | |||
bool | lgList, | |||
double * | Tlow, | |||
double * | Thigh | |||
) |
RauchInterpolateHNi get one of the Rauch H-Ni model atmospheres
Definition at line 1199 of file stars.cpp.
References AS_DATA_OPTIONAL, CheckVal(), DEBUG_ENTRY, FreeGrid(), grid, InitGrid(), InterpolateRectGrid(), t_rfield::nupper, and rfield.
Here is the call graph for this function:
long RauchInterpolateHpHe | ( | double | val[], | |
long * | nval, | |||
long * | ndim, | |||
bool | lgList, | |||
double * | Tlow, | |||
double * | Thigh | |||
) |
RauchInterpolateHpHe get one of the Rauch hydrogen plus helium model atmospheres
Definition at line 1323 of file stars.cpp.
References AS_DATA_OPTIONAL, CheckVal(), DEBUG_ENTRY, FreeGrid(), grid, InitGrid(), InterpolateRectGrid(), t_rfield::nupper, and rfield.
Here is the call graph for this function:
long RauchInterpolateHydr | ( | double | val[], | |
long * | nval, | |||
long * | ndim, | |||
bool | lgList, | |||
double * | Tlow, | |||
double * | Thigh | |||
) |
RauchInterpolateHydr get one of the Rauch pure hydrogen model atmospheres
Definition at line 1263 of file stars.cpp.
References AS_DATA_OPTIONAL, CheckVal(), DEBUG_ENTRY, FreeGrid(), grid, InitGrid(), InterpolateRectGrid(), t_rfield::nupper, and rfield.
Here is the call graph for this function:
long RauchInterpolatePG1159 | ( | double | val[], | |
long * | nval, | |||
long * | ndim, | |||
bool | lgList, | |||
double * | Tlow, | |||
double * | Thigh | |||
) |
RauchInterpolatePG1159 get one of the Rauch PG1159 model atmospheres
Definition at line 1233 of file stars.cpp.
References AS_DATA_OPTIONAL, CheckVal(), DEBUG_ENTRY, FreeGrid(), grid, InitGrid(), InterpolateRectGrid(), t_rfield::nupper, and rfield.
Here is the call graph for this function:
STATIC void RebinAtmosphere | ( | long | , | |
const | realnum[], | |||
const | realnum[], | |||
realnum | [], | |||
long | , | |||
const | realnum[] | |||
) |
Definition at line 4250 of file stars.cpp.
References t_rfield::anu, ASSERT, DEBUG_ENTRY, MALLOC, t_rfield::nupper, POW3, RebinFind(), RebinSingleCell(), and rfield.
Referenced by lgCompileAtmosphere(), and lgCompileAtmosphereCoStar().
Here is the call graph for this function:
STATIC long RebinFind | ( | const | realnum[], | |
long | , | |||
realnum | ||||
) |
Definition at line 4482 of file stars.cpp.
References ASSERT, DEBUG_ENTRY, and sign3().
Referenced by RebinAtmosphere(), and RebinSingleCell().
Here is the call graph for this function:
STATIC realnum RebinSingleCell | ( | realnum | , | |
realnum | , | |||
const | realnum[], | |||
const | realnum[], | |||
const | realnum[], | |||
long | ||||
) |
Definition at line 4371 of file stars.cpp.
References ASSERT, DEBUG_ENTRY, MIN2, RebinFind(), x1, and x2.
Referenced by RebinAtmosphere().
Here is the call graph for this function:
STATIC void SearchModel | ( | const | mpp[], | |
long | , | |||
const | double[], | |||
long | , | |||
long * | , | |||
long * | ||||
) |
Definition at line 4007 of file stars.cpp.
References DEBUG_ENTRY, and mpp::par.
Referenced by FillJ().
STATIC void SetLimits | ( | const stellar_grid * | , | |
double | , | |||
const | long[], | |||
const | long[], | |||
const | long[], | |||
const | realnum[], | |||
double * | , | |||
double * | ||||
) |
Definition at line 3664 of file stars.cpp.
References ASSERT, cdEXIT, DEBUG_ENTRY, grid, IM_COSTAR_AGE_MZAMS, IM_COSTAR_MZAMS_AGE, IM_COSTAR_TEFF_LOGG, IM_COSTAR_TEFF_MODID, IM_RECT_GRID, ioQQQ, JIndex(), t_optimize::lgVarOn, MAX2, MDIM, MIN2, optimize, and SetLimitsSub().
Here is the call graph for this function:
STATIC void SetLimitsSub | ( | const stellar_grid * | , | |
double | , | |||
const | long[], | |||
const | long[], | |||
long | [], | |||
long | , | |||
double * | , | |||
double * | ||||
) |
Definition at line 3760 of file stars.cpp.
References DEBUG_ENTRY, grid, and JIndex().
Referenced by SetLimits().
Here is the call graph for this function:
bool StarburstCompile | ( | process_counter & | pc | ) |
StarburstCompile, rebin Starburst99 model output to match energy grid of code
Definition at line 1546 of file stars.cpp.
References AS_LOCAL_ONLY_TRY, DEBUG_ENTRY, ioQQQ, lgCompileAtmosphere(), lgFileReadable(), lgValidAsciiFile(), lgValidBinFile(), and StarburstInitialize().
Referenced by ParseCompile().
Here is the call graph for this function:
bool StarburstInitialize | ( | const char | chInName[], | |
const char | chOutName[] | |||
) |
Create .ascii file out of Starburst99 output
Definition at line 1353 of file stars.cpp.
References AS_LOCAL_ONLY, ASSERT, DEBUG_ENTRY, FREE_CHECK, FREE_SAFE, INPUT_LINE_LENGTH, ioQQQ, MALLOC, MNTS, NSB99, open_data(), read_whole_line(), REALLOC, and VERSION_ASCII.
Referenced by ParseCompile(), and StarburstCompile().
Here is the call graph for this function:
int TlustyCompile | ( | process_counter & | pc | ) |
TlustyCompile rebin Tlusty OSTAR2002 stellar models to match energy grid of code
Definition at line 1567 of file stars.cpp.
References AS_LOCAL_ONLY_TRY, DEBUG_ENTRY, ioQQQ, lgCompileAtmosphere(), lgFileReadable(), and lgValidBinFile().
Referenced by ParseCompile().
Here is the call graph for this function:
long TlustyInterpolate | ( | double | val[], | |
long * | nval, | |||
long * | ndim, | |||
tl_grid | tlg, | |||
const char * | chMetalicity, | |||
bool | lgList, | |||
double * | Tlow, | |||
double * | Thigh | |||
) |
TlustyInterpolate get one of the Tlusty OSTAR2002 model atmospheres
Definition at line 1623 of file stars.cpp.
References AS_DATA_OPTIONAL, CheckVal(), DEBUG_ENTRY, FreeGrid(), grid, InitGrid(), InterpolateRectGrid(), t_rfield::nupper, rfield, TL_BSTAR, TL_OSTAR, and TotalInsanity().
Here is the call graph for this function:
STATIC void ValidateGrid | ( | const stellar_grid * | , | |
double | ||||
) |
Definition at line 4170 of file stars.cpp.
References DEBUG_ENTRY, FREE_CHECK, GetModel(), grid, lgLINEAR, lgSILENT, lgValidModel(), MALLOC, t_rfield::nupper, and rfield.
Referenced by GridCompile(), InterpolateGridCoStar(), and InterpolateRectGrid().
Here is the call graph for this function:
int WernerCompile | ( | process_counter & | pc | ) |
WernerCompile rebin Werner stellar atmospheres to match cloudy energy grid
Definition at line 1682 of file stars.cpp.
References AS_LOCAL_ONLY_TRY, DEBUG_ENTRY, ioQQQ, lgCompileAtmosphere(), lgFileReadable(), and lgValidBinFile().
Referenced by ParseCompile().
Here is the call graph for this function:
long WernerInterpolate | ( | double | val[], | |
long * | nval, | |||
long * | ndim, | |||
bool | lgList, | |||
double * | Tlow, | |||
double * | Thigh | |||
) |
WernerInterpolate read in and interpolate on Werner grid of PN atmospheres, by K Volk
Definition at line 1737 of file stars.cpp.
References AS_DATA_OPTIONAL, CheckVal(), DEBUG_ENTRY, FreeGrid(), grid, InitGrid(), InterpolateRectGrid(), t_rfield::nupper, and rfield.
Here is the call graph for this function:
int WMBASICCompile | ( | process_counter & | pc | ) |
WMBASICCompile rebin WMBASIC stellar models to match energy grid of code
Definition at line 1793 of file stars.cpp.
References AS_LOCAL_ONLY_TRY, DEBUG_ENTRY, ioQQQ, lgCompileAtmosphere(), lgFileReadable(), and lgValidBinFile().
Referenced by ParseCompile().
Here is the call graph for this function:
long WMBASICInterpolate | ( | double | val[], | |
long * | nval, | |||
long * | ndim, | |||
bool | lgList, | |||
double * | Tlow, | |||
double * | Thigh | |||
) |
WMBASICInterpolate read in and interpolate on WMBASIC grid of hot star atmospheres
Definition at line 1817 of file stars.cpp.
References AS_DATA_OPTIONAL, CheckVal(), DEBUG_ENTRY, FreeGrid(), grid, InitGrid(), InterpolateRectGrid(), t_rfield::nupper, and rfield.
Here is the call graph for this function:
const bool lgLINEAR = false [static] |
Definition at line 42 of file stars.cpp.
Referenced by InterpolateGridCoStar(), InterpolateRectGrid(), and ValidateGrid().
const bool lgSILENT = false [static] |
Definition at line 39 of file stars.cpp.
Referenced by InterpolateGridCoStar(), InterpolateRectGrid(), and ValidateGrid().
const bool lgTAKELOG = true [static] |
Definition at line 43 of file stars.cpp.
Referenced by InterpolateModel(), and InterpolateModelCoStar().
const bool lgVERBOSE = true [static] |
Definition at line 40 of file stars.cpp.
Referenced by InterpolateModel(), and InterpolateModelCoStar().
const int MNTS = 200 [static] |
maximum number of separate time steps in a Starburst99 model
Definition at line 16 of file stars.cpp.
Referenced by StarburstInitialize().
const int NMODS_HCA = 66 [static] |
The number of models in the original Rauch H-Ca set (first version May 1998, current May 2001)
Definition at line 21 of file stars.cpp.
Referenced by RauchCompile().
const int NMODS_HELIUM = 81 [static] |
The number of models in the Rauch Helium only set, Jun 2004
Definition at line 29 of file stars.cpp.
Referenced by RauchCompile().
const int NMODS_HNI = 51 [static] |
The number of models in the new Rauch H-Ni set, Nov 2002
Definition at line 23 of file stars.cpp.
Referenced by RauchCompile().
const int NMODS_HpHE = 117 [static] |
The number of models in the Rauch H+He set, Aug 2004
Definition at line 31 of file stars.cpp.
Referenced by RauchCompile().
const int NMODS_HYDR = 100 [static] |
The number of models in the Rauch Hydrogen only set, Feb 2003
Definition at line 27 of file stars.cpp.
Referenced by RauchCompile().
const int NMODS_PG1159 = 71 [static] |
The number of models in the new Rauch PG1159 set, Jan 2006
Definition at line 25 of file stars.cpp.
Referenced by RauchCompile().
const int NRAUCH = 19951 [static] |
this is the number of points in each of the stellar continua
Definition at line 19 of file stars.cpp.
Referenced by RauchInitializeSub().
const int NSB99 = 1250 [static] |
this is the initial assumed size of the Starburst grid, may be increased during execution if needed
Definition at line 14 of file stars.cpp.
Referenced by StarburstInitialize().
const long int VERSION_ASCII = 20060612L [static] |
Definition at line 181 of file stars.cpp.
Referenced by lgCompileAtmosphere(), lgValidAsciiFile(), RauchInitializeSub(), and StarburstInitialize().
const long int VERSION_BIN = 20060612L [static] |
Definition at line 186 of file stars.cpp.
Referenced by InitGrid(), lgCompileAtmosphere(), lgCompileAtmosphereCoStar(), and lgValidBinFile().