cloudy trunk
Loading...
Searching...
No Matches
stars.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  process_counter

Macros

#define MDIM   4
#define MNAM   6

Enumerations

enum  IntMode {
  IM_ILLEGAL_MODE =-1 , IM_RECT_GRID , IM_COSTAR_TEFF_MODID , IM_COSTAR_TEFF_LOGG ,
  IM_COSTAR_MZAMS_AGE , IM_COSTAR_AGE_MZAMS
}
enum  tl_grid { TL_OBSTAR , TL_BSTAR , TL_OSTAR }
enum  sb_mode { SB_TOTAL , SB_STELLAR , SB_NEBULAR }

Functions

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 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)
long RauchInterpolatePG1159 (double val[], long *nval, long *ndim, bool lgList, double *Tlow, double *Thigh)
long RauchInterpolateCOWD (double val[], long *nval, long *ndim, bool lgList, double *Tlow, double *Thigh)
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)
bool StarburstInitialize (const char chInName[], const char chOutName[], sb_mode mode)
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)

Macro Definition Documentation

◆ MDIM

#define MDIM   4

This is the largest number of dimensions that the grid can have

Definition at line 9 of file stars.h.

Referenced by InitGrid(), lgCompileAtmosphere(), lgCompileAtmosphereCoStar(), lgValidBinFile(), ParseTable(), and SetLimits().

◆ MNAM

#define MNAM   6

This is the maximum length a dimension label may have [e.g., Teff, log(g)]

Definition at line 12 of file stars.h.

Referenced by InitGrid(), lgCompileAtmosphere(), lgCompileAtmosphereCoStar(), and lgValidBinFile().

Enumeration Type Documentation

◆ IntMode

enum IntMode

interpolation mode; usually IM_RECT_GRID, but for CoStar models 4 other options exist; each name gives the first and second parameter used in the interpolation

Enumerator
IM_ILLEGAL_MODE 
IM_RECT_GRID 
IM_COSTAR_TEFF_MODID 
IM_COSTAR_TEFF_LOGG 
IM_COSTAR_MZAMS_AGE 
IM_COSTAR_AGE_MZAMS 

Definition at line 16 of file stars.h.

◆ sb_mode

enum sb_mode
Enumerator
SB_TOTAL 
SB_STELLAR 
SB_NEBULAR 

Definition at line 25 of file stars.h.

◆ tl_grid

enum tl_grid
Enumerator
TL_OBSTAR 
TL_BSTAR 
TL_OSTAR 

Definition at line 21 of file stars.h.

Function Documentation

◆ AtlasCompile()

int AtlasCompile ( process_counter & pc)

AtlasCompile rebin Kurucz stellar models to match energy grid of code

Definition at line 394 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:

◆ AtlasInterpolate()

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 515 of file stars.cpp.

References AS_DATA_OPTIONAL, CheckVal(), DEBUG_ENTRY, FreeGrid(), grid, InitGrid(), InterpolateRectGrid(), and rfield.

Referenced by ParseTable().

Here is the call graph for this function:

◆ AtmospheresAvail()

void AtmospheresAvail ( void )

List all the available TABLE STAR <grid> commands by checking installed *.mod files

Definition at line 202 of file stars.cpp.

References AS_DATA_ONLY_TRY, DEBUG_ENTRY, ioQQQ, and lgValidBinFile().

Referenced by ParseTable().

Here is the call graph for this function:

◆ CoStarCompile()

int CoStarCompile ( process_counter & pc)

CoStarCompile rebin costar stellar models to match energy grid of code

Definition at line 586 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:

◆ CoStarInterpolate()

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 623 of file stars.cpp.

References AS_DATA_OPTIONAL, cdEXIT, CheckVal(), CoStarListModels(), DEBUG_ENTRY, EXIT_SUCCESS, FreeGrid(), grid, InitGrid(), InitGridCoStar(), InterpolateGridCoStar(), and rfield.

Referenced by ParseTable().

Here is the call graph for this function:

◆ GridCompile()

bool GridCompile ( const char * InName)

GridCompile rebin user supplied stellar models to match energy grid of code

Definition at line 693 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:

◆ GridInterpolate()

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 738 of file stars.cpp.

References AS_DATA_OPTIONAL, CheckVal(), DEBUG_ENTRY, FreeGrid(), grid, InitGrid(), InterpolateRectGrid(), and rfield.

Referenced by ParseTable().

Here is the call graph for this function:

◆ Kurucz79Compile()

int Kurucz79Compile ( process_counter & pc)

Kurucz79Compile rebin Kurucz79 stellar models to match energy grid of code

Definition at line 778 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:

◆ Kurucz79Interpolate()

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 799 of file stars.cpp.

References AS_DATA_OPTIONAL, CheckVal(), DEBUG_ENTRY, FreeGrid(), grid, InitGrid(), InterpolateRectGrid(), and rfield.

Referenced by ParseTable().

Here is the call graph for this function:

◆ MihalasCompile()

int MihalasCompile ( process_counter & pc)

MihalasCompile rebin Mihalas stellar models to match energy grid of code

Definition at line 829 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:

◆ MihalasInterpolate()

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 849 of file stars.cpp.

References AS_DATA_OPTIONAL, CheckVal(), DEBUG_ENTRY, FreeGrid(), grid, InitGrid(), InterpolateRectGrid(), and rfield.

Referenced by ParseTable().

Here is the call graph for this function:

◆ RauchCompile()

int RauchCompile ( process_counter & pc)

RauchCompile create ascii and mod files for Rauch atmospheres return 0 if success, 1 if failure

Definition at line 879 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, RauchInitializeSub(), and RauchReadMPP().

Referenced by ParseCompile().

Here is the call graph for this function:

◆ RauchInterpolateCOWD()

long RauchInterpolateCOWD ( double val[],
long * nval,
long * ndim,
bool lgList,
double * Tlow,
double * Thigh )

RauchInterpolateCOWD get one of the Rauch C/O white dwarf model atmospheres

Definition at line 1171 of file stars.cpp.

References AS_DATA_OPTIONAL, CheckVal(), DEBUG_ENTRY, FreeGrid(), grid, InitGrid(), InterpolateRectGrid(), and rfield.

Referenced by ParseTable().

Here is the call graph for this function:

◆ RauchInterpolateHCa()

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 1073 of file stars.cpp.

References AS_DATA_OPTIONAL, CheckVal(), DEBUG_ENTRY, FreeGrid(), grid, InitGrid(), InterpolateRectGrid(), and rfield.

Referenced by ParseTable().

Here is the call graph for this function:

◆ RauchInterpolateHelium()

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 1231 of file stars.cpp.

References AS_DATA_OPTIONAL, CheckVal(), DEBUG_ENTRY, FreeGrid(), grid, InitGrid(), InterpolateRectGrid(), and rfield.

Referenced by ParseTable().

Here is the call graph for this function:

◆ RauchInterpolateHNi()

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 1107 of file stars.cpp.

References AS_DATA_OPTIONAL, CheckVal(), DEBUG_ENTRY, FreeGrid(), grid, InitGrid(), InterpolateRectGrid(), and rfield.

Referenced by ParseTable().

Here is the call graph for this function:

◆ RauchInterpolateHpHe()

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 1261 of file stars.cpp.

References AS_DATA_OPTIONAL, CheckVal(), DEBUG_ENTRY, FreeGrid(), grid, InitGrid(), InterpolateRectGrid(), and rfield.

Referenced by ParseTable().

Here is the call graph for this function:

◆ RauchInterpolateHydr()

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 1201 of file stars.cpp.

References AS_DATA_OPTIONAL, CheckVal(), DEBUG_ENTRY, FreeGrid(), grid, InitGrid(), InterpolateRectGrid(), and rfield.

Referenced by ParseTable().

Here is the call graph for this function:

◆ RauchInterpolatePG1159()

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 1141 of file stars.cpp.

References AS_DATA_OPTIONAL, CheckVal(), DEBUG_ENTRY, FreeGrid(), grid, InitGrid(), InterpolateRectGrid(), and rfield.

Referenced by ParseTable().

Here is the call graph for this function:

◆ StarburstCompile()

bool StarburstCompile ( process_counter & pc)

StarburstCompile, rebin Starburst99 model output to match energy grid of code

Definition at line 1494 of file stars.cpp.

References AS_LOCAL_ONLY_TRY, DEBUG_ENTRY, ioQQQ, lgCompileAtmosphere(), lgFileReadable(), lgValidAsciiFile(), lgValidBinFile(), SB_TOTAL, and StarburstInitialize().

Referenced by ParseCompile().

Here is the call graph for this function:

◆ StarburstInitialize()

bool StarburstInitialize ( const char chInName[],
const char chOutName[],
sb_mode mode )

Create .ascii file out of Starburst99 output

Definition at line 1291 of file stars.cpp.

References AS_LOCAL_ONLY, ASSERT, DEBUG_ENTRY, fp_equal(), FREE_CHECK, FREE_SAFE, INPUT_LINE_LENGTH, ioQQQ, MALLOC, MNTS, NSB99, open_data(), read_whole_line(), REALLOC, SB_NEBULAR, SB_STELLAR, SB_TOTAL, TotalInsanity(), and VERSION_ASCII.

Referenced by ParseCompile(), and StarburstCompile().

Here is the call graph for this function:

◆ TlustyCompile()

int TlustyCompile ( process_counter & pc)

TlustyCompile rebin Tlusty OSTAR2002 stellar models to match energy grid of code

Definition at line 1518 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:

◆ TlustyInterpolate()

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 1590 of file stars.cpp.

References AS_DATA_OPTIONAL, CheckVal(), DEBUG_ENTRY, FreeGrid(), grid, InitGrid(), InterpolateRectGrid(), rfield, TL_BSTAR, TL_OBSTAR, TL_OSTAR, and TotalInsanity().

Referenced by ParseTable().

Here is the call graph for this function:

◆ WernerCompile()

int WernerCompile ( process_counter & pc)

WernerCompile rebin Werner stellar atmospheres to match cloudy energy grid

Definition at line 1653 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:

◆ WernerInterpolate()

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 1708 of file stars.cpp.

References AS_DATA_OPTIONAL, CheckVal(), DEBUG_ENTRY, FreeGrid(), grid, InitGrid(), InterpolateRectGrid(), and rfield.

Referenced by ParseTable().

Here is the call graph for this function:

◆ WMBASICCompile()

int WMBASICCompile ( process_counter & pc)

WMBASICCompile rebin WMBASIC stellar models to match energy grid of code

Definition at line 1764 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:

◆ WMBASICInterpolate()

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 1788 of file stars.cpp.

References AS_DATA_OPTIONAL, CheckVal(), DEBUG_ENTRY, FreeGrid(), grid, InitGrid(), InterpolateRectGrid(), and rfield.

Referenced by ParseTable().

Here is the call graph for this function: