stellar_grid Struct Reference

Collaboration diagram for stellar_grid:
[legend]

Data Fields

string name
bool lgIsTeffLoggGrid
access_scheme scheme
FILE * ioIN
const char * ident
const char * command
IntMode imode
int32 ndim
int32 npar
int32 nmods
int32 ngrid
uint32 nOffset
uint32 nBlocksize
mpptelg
double ** val
long * nval
long * jlo
long * jhi
char names [MDIM][MNAM+1]
long * trackLen
long nTracks
long * jval

Detailed Description

Todo:
  • check rebinning of Tlusty models

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

- check all Edges arrays...

- update Doxygen documentation

store all the relevant information on a binary atmosphere file

Definition at line 95 of file stars.cpp.


Field Documentation

const char* stellar_grid::command
const char* stellar_grid::ident

which interpolation mode is requested

Definition at line 111 of file stars.cpp.

Referenced by CoStarInterpolate(), InitGrid(), InterpolateGridCoStar(), and SetLimits().

the file handle for this file

Definition at line 104 of file stars.cpp.

Referenced by FreeGrid(), GetBins(), GetModel(), InitGrid(), and lgValidBinFile().

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

Referenced by FillJ(), FreeGrid(), InitGridCoStar(), InitIndexArrays(), InterpolateModel(), and SetLimitsSub().

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

Definition at line 147 of file stars.cpp.

Referenced by CoStarListModels(), FindHCoStar(), FreeGrid(), InitGrid(), InitGridCoStar(), InterpolateGridCoStar(), and SetLimits().

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

Definition at line 100 of file stars.cpp.

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

Definition at line 141 of file stars.cpp.

Referenced by FillJ(), GetModel(), GridCompile(), InitGrid(), InitIndexArrays(), InterpolateModel(), InterpolateRectGrid(), and ValidateGrid().

the size of each model block in bytes

Definition at line 123 of file stars.cpp.

Referenced by GetBins(), GetModel(), InitGrid(), InterpolateRectGrid(), and lgValidBinFile().

the number of dimensions in the grid

Definition at line 113 of file stars.cpp.

Referenced by CheckVal(), FillJ(), FreeGrid(), InitGrid(), InitGridCoStar(), InitIndexArrays(), InterpolateModel(), InterpolateRectGrid(), JIndex(), lgValidBinFile(), and SetLimits().

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

Definition at line 119 of file stars.cpp.

Referenced by InitGrid(), and lgValidBinFile().

the number of stellar atmosphere models in this file

Definition at line 117 of file stars.cpp.

Referenced by FillJ(), InitGrid(), InitGridCoStar(), InitIndexArrays(), InterpolateGridCoStar(), lgValidBinFile(), and ValidateGrid().

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

Definition at line 121 of file stars.cpp.

Referenced by GetBins(), GetModel(), InitGrid(), and lgValidBinFile().

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

Definition at line 115 of file stars.cpp.

Referenced by GetModel(), InitGrid(), InterpolateModel(), InterpolateModelCoStar(), InterpolateRectGrid(), lgValidBinFile(), and ValidateGrid().

this is the number of CoStar tracks

Definition at line 145 of file stars.cpp.

Referenced by CoStarListModels(), FindVCoStar(), InitGrid(), InitGridCoStar(), InterpolateGridCoStar(), and SetLimits().

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

Definition at line 130 of file stars.cpp.

Referenced by CheckVal(), FillJ(), FreeGrid(), InitGrid(), InitGridCoStar(), InitIndexArrays(), InterpolateRectGrid(), JIndex(), and SetLimitsSub().

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

Definition at line 126 of file stars.cpp.

Referenced by CoStarListModels(), FillJ(), FindHCoStar(), FreeGrid(), GetModel(), InitGrid(), InitGridCoStar(), InitIndexArrays(), InterpolateGridCoStar(), InterpolateModel(), InterpolateModelCoStar(), SetLimits(), and ValidateGrid().

this array holds the length of each CoStar track

Definition at line 143 of file stars.cpp.

Referenced by CoStarListModels(), FindHCoStar(), FreeGrid(), InitGrid(), InitGridCoStar(), InterpolateGridCoStar(), and SetLimits().

these are the unique values for each of the model parameters

Definition at line 128 of file stars.cpp.

Referenced by CheckVal(), FillJ(), FreeGrid(), InitGrid(), InitIndexArrays(), InterpolateModel(), InterpolateRectGrid(), and SetLimitsSub().


The documentation for this struct was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 15 Nov 2012 for cloudy by  doxygen 1.6.1