cloudy
trunk
|
Public Member Functions | |
stellar_grid () | |
~stellar_grid () | |
Data Fields | |
string | name |
bool | lgIsTeffLoggGrid |
access_scheme | scheme |
FILE * | ioIN |
string | ident |
string | command |
IntMode | imode |
int32 | ndim |
int32 | npar |
int32 | nmods |
int32 | ngrid |
uint32 | nOffset |
uint32 | nBlocksize |
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 |
bool | lgASCII |
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 |
- why was it necessary to change stars_tlusty.in? (change from r43 to r50?)
- check all interpolation modes of CoStar
- compare models with original code, dump atmospheres!
store all the relevant information on a binary atmosphere file
|
inline |
map<string,int> stellar_grid::caution |
cautions generated by the interpolation routine
Definition at line 157 of file stars.cpp.
Referenced by InterpolateModel().
array for holding the rebinned SEDs from the grid
Definition at line 161 of file stars.cpp.
Referenced by InterpolateGridCoStar(), InterpolateModel(), InterpolateModelCoStar(), lgCompileAtmosphere(), and lgReadAtmosphereTail().
string stellar_grid::command |
the Cloudy command to recompile the binary atmosphere file
Definition at line 110 of file stars.cpp.
Referenced by AtlasInterpolate(), CoStarInterpolate(), GridCompile(), GridInterpolate(), InitGridBin(), Kurucz79Interpolate(), MihalasInterpolate(), RauchInterpolateCOWD(), RauchInterpolateHCa(), RauchInterpolateHelium(), RauchInterpolateHNi(), RauchInterpolateHpHe(), RauchInterpolateHydr(), RauchInterpolatePG1159(), TlustyInterpolate(), ValidateMesh(), WernerInterpolate(), and WMBASICInterpolate().
double stellar_grid::convert_flux |
Definition at line 153 of file stars.cpp.
Referenced by lgReadAtmosphereHead(), and lgReadAtmosphereTail().
double stellar_grid::convert_wavl |
helper variables for reading the ascii atmosphere files
Definition at line 152 of file stars.cpp.
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
Definition at line 108 of file stars.cpp.
Referenced by AtlasInterpolate(), CoStarInterpolate(), GetBins(), GetModel(), GridCompile(), GridInterpolate(), HaardtMadauInterpolate(), Kurucz79Interpolate(), MihalasInterpolate(), RauchInterpolateCOWD(), RauchInterpolateHCa(), RauchInterpolateHelium(), RauchInterpolateHNi(), RauchInterpolateHpHe(), RauchInterpolateHydr(), RauchInterpolatePG1159(), TlustyInterpolate(), WernerInterpolate(), and WMBASICInterpolate().
IntMode stellar_grid::imode |
which interpolation mode is requested
Definition at line 112 of file stars.cpp.
Referenced by CoStarInterpolate(), InitGrid(), InterpolateGridCoStar(), and SetLimits().
vector<long> stellar_grid::index_list |
the list of SEDs from the grid needed for the interpolation
Definition at line 159 of file stars.cpp.
Referenced by InterpolateGridCoStar(), and InterpolateModel().
vector<long> stellar_grid::index_list2 |
Definition at line 159 of file stars.cpp.
Referenced by InterpolateGridCoStar(), InterpolateModel(), and InterpolateModelCoStar().
FILE* stellar_grid::ioIN |
the file handle for this file
Definition at line 105 of file stars.cpp.
Referenced by GetBins(), GetModel(), InitGrid(), InitGridBin(), lgCompileAtmosphere(), lgReadAtmosphereHead(), lgReadAtmosphereTail(), lgValidBinFile(), stellar_grid(), and ~stellar_grid().
vector<long> stellar_grid::jhi |
Definition at line 140 of file stars.cpp.
Referenced by FillJ(), InitGridCoStar(), InitIndexArrays(), InterpolateModel(), and SetLimitsSub().
vector<long> stellar_grid::jlo |
jlo/jhi will hold indices into the binary model 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
Definition at line 139 of file stars.cpp.
Referenced by FillJ(), InitGridCoStar(), InitIndexArrays(), InterpolateModel(), and SetLimitsSub().
vector<long> stellar_grid::jval |
jval will hold indices into the CoStar grid: jval(nModels,nTracks)
Definition at line 148 of file stars.cpp.
Referenced by CoStarListModels(), FindHCoStar(), InitGridCoStar(), InterpolateGridCoStar(), and SetLimits().
bool stellar_grid::lgASCII |
set to true if we read directly from the ascii file
Definition at line 150 of file stars.cpp.
Referenced by GetModel(), InitGrid(), InterpolateGridCoStar(), InterpolateModel(), and InterpolateRectGrid().
bool stellar_grid::lgFreqX |
Definition at line 154 of file stars.cpp.
Referenced by lgReadAtmosphereHead(), and lgReadAtmosphereTail().
bool stellar_grid::lgFreqY |
Definition at line 155 of file stars.cpp.
Referenced by lgReadAtmosphereHead(), and lgReadAtmosphereTail().
bool stellar_grid::lgIsTeffLoggGrid |
if true, more relaxed rules for matching log(g) will be used
Definition at line 101 of file stars.cpp.
Referenced by CheckVal(), FillJ(), and InitGrid().
string stellar_grid::name |
the name of the atmosphere file
Definition at line 99 of file stars.cpp.
Referenced by AtlasInterpolate(), CoStarInterpolate(), GridCompile(), GridInterpolate(), HaardtMadauInterpolate(), InitGrid(), Kurucz79Interpolate(), lgCompileAtmosphere(), lgReadAtmosphereHead(), lgValidBinFile(), MihalasInterpolate(), RauchInterpolateCOWD(), RauchInterpolateHCa(), RauchInterpolateHelium(), RauchInterpolateHNi(), RauchInterpolateHpHe(), RauchInterpolateHydr(), RauchInterpolatePG1159(), TlustyInterpolate(), WernerInterpolate(), and WMBASICInterpolate().
this array will hold the designations for each dimension of the grid
Definition at line 142 of file stars.cpp.
Referenced by FillJ(), GetModel(), GridCompile(), InitGrid(), InitGridBin(), InitIndexArrays(), InterpolateModel(), InterpolateRectGrid(), lgCompileAtmosphere(), lgReadAtmosphereHead(), lgReadAtmosphereTail(), stellar_grid(), and ValidateGrid().
uint32 stellar_grid::nBlocksize |
the size of each model block in bytes
Definition at line 124 of file stars.cpp.
Referenced by GetBins(), GetModel(), InitGridBin(), InterpolateRectGrid(), and lgValidBinFile().
int32 stellar_grid::ndim |
the number of dimensions in the grid
Definition at line 114 of file stars.cpp.
Referenced by CheckVal(), FillJ(), InitGrid(), InitGridBin(), InitGridCoStar(), InitIndexArrays(), InterpolateModel(), InterpolateRectGrid(), JIndex(), lgCompileAtmosphere(), lgReadAtmosphereHead(), lgValidBinFile(), and SetLimits().
int32 stellar_grid::ngrid |
the number of grid points per model, should equal rfield.nflux_with_check
Definition at line 120 of file stars.cpp.
Referenced by InitGridBin(), lgReadAtmosphereHead(), lgReadAtmosphereTail(), and lgValidBinFile().
int32 stellar_grid::nmods |
the number of stellar atmosphere models in this file
Definition at line 118 of file stars.cpp.
Referenced by FillJ(), InitGrid(), InitGridBin(), InitGridCoStar(), InitIndexArrays(), InterpolateGridCoStar(), lgCompileAtmosphere(), lgReadAtmosphereHead(), lgReadAtmosphereTail(), lgValidBinFile(), and ValidateGrid().
uint32 stellar_grid::nOffset |
the offset to the first data block (the anu grid)
Definition at line 122 of file stars.cpp.
Referenced by GetBins(), GetModel(), InitGridBin(), and lgValidBinFile().
int32 stellar_grid::npar |
the number of parameters for each model; npar >= ndim
Definition at line 116 of file stars.cpp.
Referenced by GetModel(), InitGridBin(), InterpolateModel(), InterpolateModelCoStar(), InterpolateRectGrid(), lgCompileAtmosphere(), lgReadAtmosphereHead(), lgReadAtmosphereTail(), lgValidBinFile(), and ValidateGrid().
long stellar_grid::nTracks |
this is the number of CoStar tracks
Definition at line 146 of file stars.cpp.
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][*]
Definition at line 131 of file stars.cpp.
Referenced by CheckVal(), FillJ(), InitGrid(), InitIndexArrays(), InterpolateRectGrid(), JIndex(), and SetLimitsSub().
access_scheme stellar_grid::scheme |
where should we search for the binary atmosphere file
Definition at line 103 of file stars.cpp.
Referenced by AtlasInterpolate(), CoStarInterpolate(), GridCompile(), GridInterpolate(), HaardtMadauInterpolate(), InitGrid(), Kurucz79Interpolate(), MihalasInterpolate(), RauchInterpolateCOWD(), RauchInterpolateHCa(), RauchInterpolateHelium(), RauchInterpolateHNi(), RauchInterpolateHpHe(), RauchInterpolateHydr(), RauchInterpolatePG1159(), TlustyInterpolate(), WernerInterpolate(), and WMBASICInterpolate().
vector<mpp> stellar_grid::telg |
these are the model parameters in the same sequence they are stored in the binary file
Definition at line 127 of file stars.cpp.
Referenced by CoStarListModels(), FillJ(), FindHCoStar(), GetModel(), InitGridBin(), InitGridCoStar(), InitIndexArrays(), InterpolateGridCoStar(), InterpolateModel(), InterpolateModelCoStar(), lgCompileAtmosphere(), lgReadAtmosphereHead(), lgReadAtmosphereTail(), SetLimits(), and ValidateGrid().
vector<long> stellar_grid::trackLen |
this array holds the length of each CoStar track
Definition at line 144 of file stars.cpp.
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
Definition at line 129 of file stars.cpp.
Referenced by CheckVal(), FillJ(), InitGrid(), InitIndexArrays(), InterpolateModel(), InterpolateRectGrid(), and SetLimitsSub().