Cloudy
Spectral Synthesis Code for Astrophysics
|
Public Member Functions | |
stellar_grid () | |
~stellar_grid () | |
Public Attributes | |
string | name |
bool | lgIsTeffLoggGrid |
access_scheme | scheme |
FILE * | ioIN |
string | ident |
IntMode | imode |
int32 | ndim |
int32 | npar |
int32 | nmods |
int32 | ngrid |
uint32 | nOffset |
uint32 | nBlocksize |
vector< long > | pos_list |
vector< mpp > | telg |
multi_arr< double, 2 > | val |
vector< long > | nval |
vector< long > | jlo |
vector< long > | jhi |
char | names [MDIM][MNAM+1] |
vector< long > | trackLen |
long | nTracks |
vector< long > | jval |
double | convert_wavl |
double | convert_flux |
bool | lgFreqX |
bool | lgFreqY |
map< string, int > | caution |
vector< long > | index_list |
vector< long > | index_list2 |
multi_arr< realnum, 2 > | CloudyFlux |
store all the relevant information on an atmosphere file
|
inline |
map<string,int> stellar_grid::caution |
cautions generated by the interpolation routine
Referenced by InterpolateModel().
array for holding the rebinned SEDs from the grid
Referenced by InterpolateModel(), InterpolateModelCoStar(), and lgReadAtmosphereTail().
double stellar_grid::convert_flux |
Referenced by lgReadAtmosphereHead(), and lgReadAtmosphereTail().
double stellar_grid::convert_wavl |
helper variables for reading the ascii atmosphere files
Referenced by lgReadAtmosphereHead(), and lgReadAtmosphereTail().
string stellar_grid::ident |
the identifier for this grid used in the Cloudy output, this must be exactly 12 characters long
Referenced by AtlasInterpolate(), CoStarInterpolate(), EchoModel(), GridInterpolate(), HaardtMadauInterpolate(), KhaireSrianandInterpolate(), Kurucz79Interpolate(), MihalasInterpolate(), RauchInterpolateCOWD(), RauchInterpolateHCa(), RauchInterpolateHelium(), RauchInterpolateHNi(), RauchInterpolateHpHe(), RauchInterpolateHydr(), RauchInterpolatePG1159(), TlustyInterpolate(), WernerInterpolate(), and WMBASICInterpolate().
IntMode stellar_grid::imode |
which interpolation mode is requested
Referenced by CoStarInterpolate(), InitGrid(), InterpolateGridCoStar(), and SetLimits().
vector<long> stellar_grid::index_list |
the list of SEDs from the grid needed for the interpolation
Referenced by InterpolateGridCoStar(), and InterpolateModel().
vector<long> stellar_grid::index_list2 |
Referenced by InterpolateGridCoStar(), InterpolateModel(), and InterpolateModelCoStar().
FILE* stellar_grid::ioIN |
the file handle for this file
Referenced by InitGrid(), lgCompileAtmosphere(), lgReadAtmosphereHead(), lgReadAtmosphereTail(), stellar_grid(), and ~stellar_grid().
vector<long> stellar_grid::jhi |
Referenced by FillJ(), InitGridCoStar(), InitIndexArrays(), InterpolateModel(), and SetLimitsSub().
vector<long> stellar_grid::jlo |
jlo/jhi will hold indices into the ascii file: jlo/jhi(i,...,n) will point to the model with parameters val[0][i],...,val[ndim-1][n], or its closest approximation in log(g) in case the model doesn't exist and lgIsTeffLoggGrid is true. jlo will hold the model with the highest log(g) <= than requested jhi will hold the model with the lowest log(g) >= than requested in case no suitable model could be found either array will hold -2
Referenced by FillJ(), InitGridCoStar(), InitIndexArrays(), InterpolateModel(), and SetLimitsSub().
vector<long> stellar_grid::jval |
jval will hold indices into the CoStar grid: jval(nModels,nTracks)
Referenced by CoStarListModels(), FindHCoStar(), InitGridCoStar(), InterpolateGridCoStar(), and SetLimits().
bool stellar_grid::lgFreqX |
Referenced by lgReadAtmosphereHead(), and lgReadAtmosphereTail().
bool stellar_grid::lgFreqY |
Referenced by lgReadAtmosphereHead(), and lgReadAtmosphereTail().
bool stellar_grid::lgIsTeffLoggGrid |
if true, more relaxed rules for matching log(g) will be used
Referenced by CheckVal(), FillJ(), and InitGrid().
string stellar_grid::name |
the name of the atmosphere file (without filename extension)
Referenced by AtlasInterpolate(), CoStarInterpolate(), GridInterpolate(), HaardtMadauInterpolate(), InitGrid(), KhaireSrianandInterpolate(), Kurucz79Interpolate(), lgCompileAtmosphere(), lgReadAtmosphereHead(), MihalasInterpolate(), RauchInterpolateCOWD(), RauchInterpolateHCa(), RauchInterpolateHelium(), RauchInterpolateHNi(), RauchInterpolateHpHe(), RauchInterpolateHydr(), RauchInterpolatePG1159(), TlustyInterpolate(), WernerInterpolate(), and WMBASICInterpolate().
this array will hold the designations for each dimension of the grid
Referenced by EchoModel(), FillJ(), InitGrid(), InitIndexArrays(), InterpolateModel(), InterpolateRectGrid(), lgReadAtmosphereHead(), lgReadAtmosphereTail(), and stellar_grid().
uint32 stellar_grid::nBlocksize |
the size of each model block in bytes
int32 stellar_grid::ndim |
the number of dimensions in the grid
Referenced by CheckVal(), FillJ(), InitGrid(), InitGridCoStar(), InitIndexArrays(), InterpolateModel(), InterpolateRectGrid(), JIndex(), lgReadAtmosphereHead(), and SetLimits().
int32 stellar_grid::ngrid |
the number of grid points per model, should equal rfield.nflux_with_check
Referenced by lgReadAtmosphereHead(), and lgReadAtmosphereTail().
int32 stellar_grid::nmods |
the number of stellar atmosphere models in this file
Referenced by FillJ(), InitGrid(), InitGridCoStar(), InitIndexArrays(), InterpolateGridCoStar(), lgReadAtmosphereHead(), and lgReadAtmosphereTail().
uint32 stellar_grid::nOffset |
the offset to the first data block (the anu grid)
int32 stellar_grid::npar |
the number of parameters for each model; npar >= ndim
Referenced by EchoModel(), InterpolateModel(), InterpolateModelCoStar(), InterpolateRectGrid(), lgReadAtmosphereHead(), and lgReadAtmosphereTail().
long stellar_grid::nTracks |
this is the number of CoStar tracks
Referenced by CoStarListModels(), FindVCoStar(), InitGrid(), InitGridCoStar(), InterpolateGridCoStar(), and SetLimits().
vector<long> stellar_grid::nval |
nval[n] is the number of unique values in val[n][*]
Referenced by CheckVal(), FillJ(), InitGrid(), InitIndexArrays(), InterpolateRectGrid(), JIndex(), and SetLimitsSub().
vector<long> stellar_grid::pos_list |
the list of indices into the ascii file where each SED starts
Referenced by InitGrid(), and lgReadAtmosphereTail().
access_scheme stellar_grid::scheme |
where should we search for the atmosphere file
Referenced by HaardtMadauInterpolate(), InitGrid(), KhaireSrianandInterpolate(), and stellar_grid().
vector<mpp> stellar_grid::telg |
these are the model parameters in the same sequence they are stored in the ascii file
Referenced by CoStarListModels(), EchoModel(), FillJ(), FindHCoStar(), InitGridCoStar(), InitIndexArrays(), InterpolateGridCoStar(), InterpolateModel(), InterpolateModelCoStar(), lgReadAtmosphereHead(), lgReadAtmosphereTail(), and SetLimits().
vector<long> stellar_grid::trackLen |
this array holds the length of each CoStar track
Referenced by CoStarListModels(), FindHCoStar(), InitGridCoStar(), InterpolateGridCoStar(), and SetLimits().
multi_arr<double,2> stellar_grid::val |
these are the unique values for each of the model parameters
Referenced by CheckVal(), FillJ(), InitGrid(), InitIndexArrays(), InterpolateModel(), InterpolateRectGrid(), and SetLimitsSub().