Cloudy
Spectral Synthesis Code for Astrophysics
Loading...
Searching...
No Matches
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::stellar_grid ( )
inline

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

◆ ~stellar_grid()

stellar_grid::~stellar_grid ( )
inline

References ioIN, and NULL.

Member Data Documentation

◆ caution

map<string,int> stellar_grid::caution

cautions generated by the interpolation routine

◆ CloudyFlux

multi_arr<realnum,2> stellar_grid::CloudyFlux

array for holding the rebinned SEDs from the grid

◆ convert_flux

double stellar_grid::convert_flux

◆ convert_wavl

double stellar_grid::convert_wavl

helper variables for reading the ascii atmosphere files

◆ ident

string stellar_grid::ident

the identifier for this grid used in the Cloudy output, this must be exactly 12 characters long

◆ imode

IntMode stellar_grid::imode

which interpolation mode is requested

◆ index_list

vector<long> stellar_grid::index_list

the list of SEDs from the grid needed for the interpolation

◆ index_list2

vector<long> stellar_grid::index_list2

◆ ioIN

FILE* stellar_grid::ioIN

the file handle for this file

Referenced by stellar_grid(), and ~stellar_grid().

◆ jhi

vector<long> stellar_grid::jhi

◆ jlo

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

◆ jval

vector<long> stellar_grid::jval

jval will hold indices into the CoStar grid: jval(nModels,nTracks)

◆ lgFreqX

bool stellar_grid::lgFreqX

◆ lgFreqY

bool stellar_grid::lgFreqY

◆ lgIsTeffLoggGrid

bool stellar_grid::lgIsTeffLoggGrid

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

◆ name

string stellar_grid::name

the name of the atmosphere file (without filename extension)

◆ names

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

this array will hold the designations for each dimension of the grid

Referenced by stellar_grid().

◆ nBlocksize

uint32 stellar_grid::nBlocksize

the size of each model block in bytes

◆ ndim

int32 stellar_grid::ndim

the number of dimensions in the grid

◆ ngrid

int32 stellar_grid::ngrid

the number of grid points per model, should equal rfield.nflux_with_check

◆ nmods

int32 stellar_grid::nmods

the number of stellar atmosphere models in this file

◆ nOffset

uint32 stellar_grid::nOffset

the offset to the first data block (the anu grid)

◆ npar

int32 stellar_grid::npar

the number of parameters for each model; npar >= ndim

◆ nTracks

long stellar_grid::nTracks

this is the number of CoStar tracks

◆ nval

vector<long> stellar_grid::nval

nval[n] is the number of unique values in val[n][*]

◆ pos_list

vector<long> stellar_grid::pos_list

the list of indices into the ascii file where each SED starts

◆ scheme

access_scheme stellar_grid::scheme

where should we search for the atmosphere file

Referenced by stellar_grid().

◆ telg

vector<mpp> stellar_grid::telg

these are the model parameters in the same sequence they are stored in the ascii file

◆ trackLen

vector<long> stellar_grid::trackLen

this array holds the length of each CoStar track

◆ val

multi_arr<double,2> stellar_grid::val

these are the unique values for each of the model parameters


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