Cloudy
Spectral Synthesis Code for Astrophysics
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
stellar_grid Struct Reference
Collaboration diagram for stellar_grid:

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

Detailed Description

store all the relevant information on an atmosphere file

Constructor & Destructor Documentation

stellar_grid::stellar_grid ( )
inline

References AS_OPTIONAL, ioIN, MDIM, MNAM, names, NULL, and scheme.

stellar_grid::~stellar_grid ( )
inline

References ioIN, and NULL.

Member Data Documentation

map<string,int> stellar_grid::caution

cautions generated by the interpolation routine

Referenced by InterpolateModel().

multi_arr<realnum,2> stellar_grid::CloudyFlux

array for holding the rebinned SEDs from the grid

Referenced by InterpolateModel(), InterpolateModelCoStar(), and lgReadAtmosphereTail().

double stellar_grid::convert_flux
double stellar_grid::convert_wavl

helper variables for reading the ascii atmosphere files

Referenced by lgReadAtmosphereHead(), and lgReadAtmosphereTail().

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
FILE* stellar_grid::ioIN
vector<long> stellar_grid::jhi
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
bool stellar_grid::lgFreqY
bool stellar_grid::lgIsTeffLoggGrid

if true, more relaxed rules for matching log(g) will be used

Referenced by CheckVal(), FillJ(), and InitGrid().

char stellar_grid::names[MDIM][MNAM+1]

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
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
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().


The documentation for this struct was generated from the following file: