/home66/gary/public_html/cloudy/c10_branch/source/stars.cpp File Reference

#include "cddefines.h"
#include "physconst.h"
#include "optimize.h"
#include "continuum.h"
#include "called.h"
#include "rfield.h"
#include "thirdparty.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 vector< mpp > &, long, long, long, const double[], int)
STATIC void RauchReadMPP (vector< mpp > &, vector< mpp > &, vector< mpp > &, vector< mpp > &, vector< mpp > &, vector< mpp > &)
void getdataline (fstream &, string &)
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, vector< realnum > &, IntStage)
STATIC void InterpolateModelCoStar (const stellar_grid *, const double[], double[], const long[], const long[], long[], long, long, vector< realnum > &)
STATIC void GetBins (const stellar_grid *, vector< Energy > &)
STATIC void GetModel (const stellar_grid *, long, vector< 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[], bool, 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 vector< Energy > &, const vector< 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 = 201009021L
static const long int VERSION_RAUCH_MPP = 20090324

Define Documentation

#define DEBUGPRT   0

Definition at line 35 of file stars.cpp.

#define FREE_CHECK ( PTR   )     { ASSERT( PTR != NULL ); free( PTR ); PTR = NULL; }

Definition at line 37 of file stars.cpp.

#define FREE_SAFE ( PTR   )     { if( PTR != NULL ) free( PTR ); PTR = NULL; }

Definition at line 38 of file stars.cpp.


Enumeration Type Documentation

enum IntStage
Enumerator:
IS_UNDEFINED 
IS_FIRST 
IS_SECOND 

Definition at line 46 of file stars.cpp.


Function Documentation

int AtlasCompile ( process_counter pc  ) 

AtlasCompile rebin Kurucz stellar models to match energy grid of code

Definition at line 392 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 513 of file stars.cpp.

References AS_DATA_OPTIONAL, CheckVal(), stellar_grid::command, DEBUG_ENTRY, FreeGrid(), grid, stellar_grid::ident, InitGrid(), InterpolateRectGrid(), stellar_grid::name, t_rfield::nupper, rfield, and stellar_grid::scheme.

Referenced by ParseTable().

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 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:

STATIC void CheckVal ( const stellar_grid grid,
double  val[],
long *  nval,
long *  ndim 
)
int CoStarCompile ( process_counter pc  ) 

CoStarCompile rebin costar stellar models to match energy grid of code

Definition at line 584 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 621 of file stars.cpp.

References AS_DATA_OPTIONAL, cdEXIT, CheckVal(), stellar_grid::command, CoStarListModels(), DEBUG_ENTRY, FreeGrid(), grid, stellar_grid::ident, stellar_grid::imode, InitGrid(), InitGridCoStar(), InterpolateGridCoStar(), stellar_grid::name, t_rfield::nupper, rfield, and stellar_grid::scheme.

Referenced by ParseTable().

Here is the call graph for this function:

STATIC void CoStarListModels ( const stellar_grid grid  ) 

Definition at line 2308 of file stars.cpp.

References DEBUG_ENTRY, molecule::index, ioQQQ, JIndex(), stellar_grid::jval, MAX2, stellar_grid::nTracks, mpp::par, pow(), stellar_grid::telg, and stellar_grid::trackLen.

Referenced by CoStarInterpolate().

Here is the call graph for this function:

STATIC void FillJ ( const stellar_grid grid,
long  index[],
double  val[],
long  nd,
bool  lgList 
)
STATIC void FindHCoStar ( const stellar_grid grid,
long  track,
double  par2,
long  off,
realnum ValTr,
long *  indloTr,
long *  indhiTr 
)

Definition at line 2185 of file stars.cpp.

References DEBUG_ENTRY, molecule::index, JIndex(), stellar_grid::jval, mpp::par, stellar_grid::telg, and stellar_grid::trackLen.

Referenced by InterpolateGridCoStar().

Here is the call graph for this function:

STATIC void FindIndex ( const double  xval[],
long  NVAL,
double  x,
long *  ind1,
long *  ind2,
bool *  lgInvalid 
)

Definition at line 4180 of file stars.cpp.

References ASSERT, cdEXIT, DEBUG_ENTRY, fp_equal(), ioQQQ, and ShowMe().

Referenced by InitIndexArrays(), and InterpolateRectGrid().

Here is the call graph for this function:

STATIC void FindVCoStar ( const stellar_grid grid,
double  par1,
realnum ValTr,
long  useTr[] 
)
STATIC void FreeGrid ( stellar_grid grid  ) 
STATIC void GetBins ( const stellar_grid grid,
vector< Energy > &  ener 
)
void getdataline ( fstream &  ioDATA,
string &  line 
) [inline]

Definition at line 2663 of file stars.cpp.

Referenced by RauchReadMPP().

STATIC void GetModel ( const stellar_grid grid,
long  ind,
vector< realnum > &  flux,
bool  lgTalk,
bool  lgTakeLog 
)
bool GridCompile ( const char *  InName  ) 

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

Definition at line 691 of file stars.cpp.

References AS_LOCAL_ONLY, ASSERT, stellar_grid::command, DEBUG_ENTRY, FreeGrid(), grid, stellar_grid::ident, InitGrid(), ioQQQ, lgCompileAtmosphere(), stellar_grid::name, stellar_grid::names, stellar_grid::scheme, 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 736 of file stars.cpp.

References AS_DATA_OPTIONAL, CheckVal(), stellar_grid::command, DEBUG_ENTRY, FreeGrid(), grid, stellar_grid::ident, InitGrid(), InterpolateRectGrid(), stellar_grid::name, t_rfield::nupper, rfield, and stellar_grid::scheme.

Referenced by ParseTable().

Here is the call graph for this function:

STATIC void InitGrid ( stellar_grid grid,
bool  lgList 
)
STATIC void InitGridCoStar ( stellar_grid grid  ) 
STATIC void InitIndexArrays ( stellar_grid grid,
bool  lgList 
)
STATIC void InterpolateGridCoStar ( const stellar_grid grid,
const double  val[],
double *  val0_lo,
double *  val0_hi 
)
STATIC void InterpolateModel ( const stellar_grid grid,
const double  val[],
double  aval[],
const long  indlo[],
const long  indhi[],
long  index[],
long  nd,
vector< realnum > &  flux1,
IntStage  stage 
)
STATIC void InterpolateModelCoStar ( const stellar_grid grid,
const double  val[],
double  aval[],
const long  indlo[],
const long  indhi[],
long  index[],
long  nd,
long  off,
vector< realnum > &  flux1 
)

Definition at line 3596 of file stars.cpp.

References ASSERT, DEBUG_ENTRY, FREE_CHECK, GetModel(), ioQQQ, lgTAKELOG, lgVERBOSE, MALLOC, stellar_grid::npar, t_rfield::nupper, mpp::par, rfield, and stellar_grid::telg.

Referenced by InterpolateGridCoStar().

Here is the call graph for this function:

STATIC void InterpolateRectGrid ( const stellar_grid grid,
const double  val[],
double *  Tlow,
double *  Thigh 
)
STATIC long JIndex ( const stellar_grid grid,
const long  index[] 
)
int Kurucz79Compile ( process_counter pc  ) 

Kurucz79Compile rebin Kurucz79 stellar models to match energy grid of code

Definition at line 776 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 797 of file stars.cpp.

References AS_DATA_OPTIONAL, CheckVal(), stellar_grid::command, DEBUG_ENTRY, FreeGrid(), grid, stellar_grid::ident, InitGrid(), InterpolateRectGrid(), stellar_grid::name, t_rfield::nupper, rfield, and stellar_grid::scheme.

Referenced by ParseTable().

Here is the call graph for this function:

STATIC bool lgCompileAtmosphere ( const char  chFNameIn[],
const char  chFNameOut[],
const realnum  Edges[],
long  nedges,
process_counter pc 
)
STATIC bool lgCompileAtmosphereCoStar ( const char  chFNameIn[],
const char  chFNameOut[],
const realnum  Edges[],
long  nedges,
process_counter pc 
)
STATIC bool lgFileReadable ( const char *  chFnam,
process_counter pc,
access_scheme  scheme 
)
STATIC bool lgValidAsciiFile ( const char *  ascName,
access_scheme  scheme 
)

Definition at line 3216 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 *  binName,
process_counter pc,
access_scheme  scheme 
)
STATIC bool lgValidModel ( const vector< Energy > &  anu,
const vector< realnum > &  flux,
double  Teff,
double  toler 
)

Definition at line 4321 of file stars.cpp.

References ASSERT, DEBUG_ENTRY, FR1RYD, ioQQQ, t_rfield::nupper, pow(), rfield, and STEFAN_BOLTZ.

Referenced by InterpolateGridCoStar(), InterpolateRectGrid(), and ValidateGrid().

Here is the call graph for this function:

int MihalasCompile ( process_counter pc  ) 

MihalasCompile rebin Mihalas stellar models to match energy grid of code

Definition at line 827 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 847 of file stars.cpp.

References AS_DATA_OPTIONAL, CheckVal(), stellar_grid::command, DEBUG_ENTRY, FreeGrid(), grid, stellar_grid::ident, InitGrid(), InterpolateRectGrid(), stellar_grid::name, t_rfield::nupper, rfield, and stellar_grid::scheme.

Referenced by ParseTable().

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 877 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:

STATIC int RauchInitializeSub ( const char  chFName[],
const char  chSuff[],
const vector< mpp > &  telg,
long  nmods,
long  n,
long  ngrids,
const double  par2[],
int  format 
)

Definition at line 2352 of file stars.cpp.

References AS_LOCAL_ONLY, cdEXIT, DEBUG_ENTRY, fp_equal(), 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 1069 of file stars.cpp.

References AS_DATA_OPTIONAL, CheckVal(), stellar_grid::command, DEBUG_ENTRY, FreeGrid(), grid, stellar_grid::ident, InitGrid(), InterpolateRectGrid(), stellar_grid::name, t_rfield::nupper, rfield, and stellar_grid::scheme.

Referenced by ParseTable().

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

References AS_DATA_OPTIONAL, CheckVal(), stellar_grid::command, DEBUG_ENTRY, FreeGrid(), grid, stellar_grid::ident, InitGrid(), InterpolateRectGrid(), stellar_grid::name, t_rfield::nupper, rfield, and stellar_grid::scheme.

Referenced by ParseTable().

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

References AS_DATA_OPTIONAL, CheckVal(), stellar_grid::command, DEBUG_ENTRY, FreeGrid(), grid, stellar_grid::ident, InitGrid(), InterpolateRectGrid(), stellar_grid::name, t_rfield::nupper, rfield, and stellar_grid::scheme.

Referenced by ParseTable().

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

References AS_DATA_OPTIONAL, CheckVal(), stellar_grid::command, DEBUG_ENTRY, FreeGrid(), grid, stellar_grid::ident, InitGrid(), InterpolateRectGrid(), stellar_grid::name, t_rfield::nupper, rfield, and stellar_grid::scheme.

Referenced by ParseTable().

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

References AS_DATA_OPTIONAL, CheckVal(), stellar_grid::command, DEBUG_ENTRY, FreeGrid(), grid, stellar_grid::ident, InitGrid(), InterpolateRectGrid(), stellar_grid::name, t_rfield::nupper, rfield, and stellar_grid::scheme.

Referenced by ParseTable().

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

References AS_DATA_OPTIONAL, CheckVal(), stellar_grid::command, DEBUG_ENTRY, FreeGrid(), grid, stellar_grid::ident, InitGrid(), InterpolateRectGrid(), stellar_grid::name, t_rfield::nupper, rfield, and stellar_grid::scheme.

Referenced by ParseTable().

Here is the call graph for this function:

STATIC void RauchReadMPP ( vector< mpp > &  telg1,
vector< mpp > &  telg2,
vector< mpp > &  telg3,
vector< mpp > &  telg4,
vector< mpp > &  telg5,
vector< mpp > &  telg6 
)

Definition at line 2565 of file stars.cpp.

References ASSERT, cdEXIT, DEBUG_ENTRY, getdataline(), ioQQQ, mode_r, open_data(), and VERSION_RAUCH_MPP.

Referenced by RauchCompile().

Here is the call graph for this function:

STATIC void RebinAtmosphere ( long  nCont,
const realnum  StarEner[],
const realnum  StarFlux[],
realnum  CloudyFlux[],
long  nEdge,
const realnum  AbsorbEdge[] 
)

Definition at line 4351 of file stars.cpp.

References t_rfield::anu, ASSERT, DEBUG_ENTRY, FREE_CHECK, FREE_SAFE, 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  array[],
long  nArr,
realnum  val 
)

Definition at line 4583 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  BinLow,
realnum  BinHigh,
const realnum  StarEner[],
const realnum  StarFlux[],
const realnum  StarPower[],
long  nCont 
)

Definition at line 4472 of file stars.cpp.

References ASSERT, DEBUG_ENTRY, MIN2, pow(), RebinFind(), x1, and x2.

Referenced by RebinAtmosphere().

Here is the call graph for this function:

STATIC void SearchModel ( const mpp  telg[],
bool  lgIsTeffLoggGrid,
long  nmods,
const double  val[],
long  ndim,
long *  index_low,
long *  index_high 
)

Definition at line 4111 of file stars.cpp.

References DEBUG_ENTRY, fp_equal(), and mpp::par.

Referenced by FillJ().

Here is the call graph for this function:

STATIC void SetLimits ( const stellar_grid grid,
double  val,
const long  indlo[],
const long  indhi[],
const long  useTr[],
const realnum  ValTr[],
double *  loLim,
double *  hiLim 
)
STATIC void SetLimitsSub ( const stellar_grid grid,
double  val,
const long  indlo[],
const long  indhi[],
long  index[],
long  nd,
double *  loLim,
double *  hiLim 
)

Definition at line 3871 of file stars.cpp.

References ASSERT, DEBUG_ENTRY, stellar_grid::jhi, JIndex(), stellar_grid::jlo, MAX2, MIN2, stellar_grid::nval, and stellar_grid::val.

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 1450 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 1257 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(), pow(), 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 1474 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 1546 of file stars.cpp.

References AS_DATA_OPTIONAL, CheckVal(), stellar_grid::command, DEBUG_ENTRY, FreeGrid(), grid, stellar_grid::ident, InitGrid(), InterpolateRectGrid(), stellar_grid::name, t_rfield::nupper, rfield, stellar_grid::scheme, TL_BSTAR, TL_OBSTAR, TL_OSTAR, and TotalInsanity().

Referenced by ParseTable().

Here is the call graph for this function:

STATIC void ValidateGrid ( const stellar_grid grid,
double  toler 
)
int WernerCompile ( process_counter pc  ) 

WernerCompile rebin Werner stellar atmospheres to match cloudy energy grid

Definition at line 1609 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 1664 of file stars.cpp.

References AS_DATA_OPTIONAL, CheckVal(), stellar_grid::command, DEBUG_ENTRY, FreeGrid(), grid, stellar_grid::ident, InitGrid(), InterpolateRectGrid(), stellar_grid::name, t_rfield::nupper, rfield, and stellar_grid::scheme.

Referenced by ParseTable().

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

References AS_DATA_OPTIONAL, CheckVal(), stellar_grid::command, DEBUG_ENTRY, FreeGrid(), grid, stellar_grid::ident, InitGrid(), InterpolateRectGrid(), stellar_grid::name, t_rfield::nupper, rfield, and stellar_grid::scheme.

Referenced by ParseTable().

Here is the call graph for this function:


Variable Documentation

const bool lgLINEAR = false [static]

Definition at line 43 of file stars.cpp.

Referenced by ValidateGrid().

const bool lgSILENT = false [static]

Definition at line 40 of file stars.cpp.

Referenced by ValidateGrid().

const bool lgTAKELOG = true [static]

Definition at line 44 of file stars.cpp.

Referenced by InterpolateModel(), and InterpolateModelCoStar().

const bool lgVERBOSE = true [static]

Definition at line 41 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 17 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 22 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 30 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 24 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 32 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 28 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 26 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 20 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 15 of file stars.cpp.

Referenced by StarburstInitialize().

const long int VERSION_ASCII = 20060612L [static]
const long int VERSION_BIN = 201009021L [static]
const long int VERSION_RAUCH_MPP = 20090324 [static]

Definition at line 199 of file stars.cpp.

Referenced by RauchReadMPP().

 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 15 Nov 2012 for cloudy by  doxygen 1.6.1