cloudy
trunk
|
#include "cddefines.h"
#include "continuum.h"
#include "trace.h"
#include "save.h"
#include "radius.h"
#include "generic_state.h"
#include "mole.h"
#include "species.h"
#include "lines.h"
#include "lines_service.h"
Go to the source code of this file.
Data Structures | |
class | band_cont |
class | pseudo_cont |
class | bands_file |
class | species_bands |
Enumerations | |
enum | intenType { UNSET = 0, INWARD = 1, OUTWARD = 2, TOTAL = 3 } |
Functions | |
STATIC string | getIntenTypeStr (const int ipContType) |
void | getSpecies (const string &speciesLabel, genericState &species) |
STATIC void | getPseudoIndex (const string &speciesLabel, vector< pseudo_cont >::iterator &this_it) |
STATIC long | getAdjPseudoIndex (const string &speciesLabel) |
STATIC void | getPseudoWlRange (const string &speciesLabel, double &wlLo, double &wlHi, long &nBins) |
STATIC void | PseudoContCreate (long ips) |
void | SpeciesPseudoContCreate () |
void | SpeciesPseudoContAccum () |
STATIC long | resolveSpecType (const char *saveSpec) |
void | SaveSpeciesPseudoCont (const long ipPun, const string &speciesLabel) |
STATIC void | findBandsFile (const string &filename, vector< bands_file >::iterator &this_it) |
STATIC void | addBandsFile (const string &filename) |
STATIC void | getSpecBandsIndex (const string &speciesLabel, const string &fileBands, vector< species_bands >::iterator &this_it) |
void | SpeciesBandsCreate () |
void | SpeciesBandsAccum () |
void | SaveSpeciesBands (const long ipPun, const string &speciesLabel, const string &fileBands) |
Variables | |
t_pseudo_cont | pseudoContDef |
static vector< pseudo_cont > | PseudoCont |
static vector< bands_file > | Bands |
static vector< species_bands > | SpecBands |
enum intenType |
Enumerator | |
---|---|
UNSET | |
INWARD | |
OUTWARD | |
TOTAL |
Definition at line 20 of file species_pseudo_cont.cpp.
STATIC void addBandsFile | ( | const string & | filename | ) |
Definition at line 708 of file species_pseudo_cont.cpp.
References Bands, DEBUG_ENTRY, findBandsFile(), bands_file::load(), and bands_file::setup().
Referenced by SpeciesBandsCreate().
STATIC void findBandsFile | ( | const string & | filename, |
vector< bands_file >::iterator & | this_it | ||
) |
Definition at line 691 of file species_pseudo_cont.cpp.
References Bands, and DEBUG_ENTRY.
Referenced by addBandsFile(), and SpeciesBandsCreate().
STATIC long getAdjPseudoIndex | ( | const string & | speciesLabel | ) |
Definition at line 294 of file species_pseudo_cont.cpp.
References DEBUG_ENTRY, save, and t_save::setPseudoCont.
Referenced by getPseudoWlRange().
STATIC string getIntenTypeStr | ( | const int | ipContType | ) |
Definition at line 28 of file species_pseudo_cont.cpp.
References DEBUG_ENTRY, INWARD, OUTWARD, TOTAL, TotalInsanity(), and UNSET.
Referenced by SaveSpeciesPseudoCont().
STATIC void getPseudoIndex | ( | const string & | speciesLabel, |
vector< pseudo_cont >::iterator & | this_it | ||
) |
Definition at line 273 of file species_pseudo_cont.cpp.
References DEBUG_ENTRY, and PseudoCont.
Referenced by SaveSpeciesPseudoCont().
STATIC void getPseudoWlRange | ( | const string & | speciesLabel, |
double & | wlLo, | ||
double & | wlHi, | ||
long & | nBins | ||
) |
Definition at line 314 of file species_pseudo_cont.cpp.
References DEBUG_ENTRY, getAdjPseudoIndex(), t_pseudo_cont::nBins, save, t_save::setPseudoCont, t_pseudo_cont::wlHi, and t_pseudo_cont::wlLo.
Referenced by PseudoContCreate().
STATIC void getSpecBandsIndex | ( | const string & | speciesLabel, |
const string & | fileBands, | ||
vector< species_bands >::iterator & | this_it | ||
) |
Definition at line 866 of file species_pseudo_cont.cpp.
References DEBUG_ENTRY, and SpecBands.
Referenced by SaveSpeciesBands().
void getSpecies | ( | const string & | speciesLabel, |
genericState & | species | ||
) |
getSpecies – acquire the species matching the input string
speciesLabel | input species string |
species | output reference to requested species |
Definition at line 47 of file species_pseudo_cont.cpp.
References cdEXIT, DEBUG_ENTRY, EXIT_FAILURE, fprintf(), ioQQQ, and matchGeneric().
Referenced by SaveSpeciesOptDep(), pseudo_cont::setup(), and species_bands::setup().
STATIC void PseudoContCreate | ( | long | ips | ) |
Definition at line 337 of file species_pseudo_cont.cpp.
References t_save::contSaveSpeciesLabel, DEBUG_ENTRY, getPseudoWlRange(), PseudoCont, and save.
Referenced by SpeciesPseudoContCreate().
STATIC long resolveSpecType | ( | const char * | saveSpec | ) |
Definition at line 386 of file species_pseudo_cont.cpp.
References DEBUG_ENTRY, INWARD, OUTWARD, TOTAL, and UNSET.
Referenced by SaveSpeciesPseudoCont().
void SaveSpeciesBands | ( | const long | ipPun, |
const string & | speciesLabel, | ||
const string & | fileBands | ||
) |
SaveSpeciesBands - save species bands emission
ipPun | save file index |
speciesLabel | species emission to be stored |
fileBands | file that holds the bands' definitions |
Definition at line 930 of file species_pseudo_cont.cpp.
References ASSERT, cdEXIT, t_radius::Conv2PrtInten, DEBUG_ENTRY, EXIT_FAILURE, t_LineSave::findline(), fprintf(), getSpecBandsIndex(), ioQQQ, SaveParams::ipPnunit, t_save::lgSaveHeader(), t_LineSave::lines, LineSave, t_save::params, radius, save, t_save::SaveHeaderDone(), and SpecBands.
Referenced by SaveDo().
void SaveSpeciesPseudoCont | ( | const long | ipPun, |
const string & | speciesLabel | ||
) |
SaveSpeciesPseudoCont - save species pseudo-continuum
ipPun | save file index |
speciesLabel | species emission to be stored |
Definition at line 406 of file species_pseudo_cont.cpp.
References cdEXIT, t_save::chSaveArgs, DEBUG_ENTRY, EXIT_FAILURE, fprintf(), getIntenTypeStr(), getPseudoIndex(), INWARD, ioQQQ, SaveParams::ipPnunit, t_save::lgSaveHeader(), OUTWARD, t_save::params, PseudoCont, t_save::punarg, resolveSpecType(), save, t_save::SaveHeaderDone(), TOTAL, and TotalInsanity().
Referenced by SaveDo().
void SpeciesBandsAccum | ( | ) |
SpeciesBandsAccum - accumulate emission in species bands
Definition at line 915 of file species_pseudo_cont.cpp.
References DEBUG_ENTRY, and SpecBands.
Referenced by lines().
void SpeciesBandsCreate | ( | ) |
SpeciesBandsCreate - initialize requested species bands files
Definition at line 887 of file species_pseudo_cont.cpp.
References addBandsFile(), DEBUG_ENTRY, findBandsFile(), save, species_bands::setup(), t_save::specBands, and SpecBands.
Referenced by InitSimPostparse().
void SpeciesPseudoContAccum | ( | ) |
SpeciesPseudoContAccum - accumulate pseudo-continua
Definition at line 370 of file species_pseudo_cont.cpp.
References DEBUG_ENTRY, t_radius::dVeffAper, t_LineSave::ipass, LineSave, nzone, PseudoCont, and radius.
Referenced by lines().
void SpeciesPseudoContCreate | ( | ) |
SpeciesPseudoContCreate - initialize requested pseudo-continua
Definition at line 353 of file species_pseudo_cont.cpp.
References t_save::contSaveSpeciesLabel, DEBUG_ENTRY, PseudoCont, PseudoContCreate(), and save.
Referenced by InitSimPostparse().
|
static |
Definition at line 689 of file species_pseudo_cont.cpp.
Referenced by addBandsFile(), and findBandsFile().
|
static |
Definition at line 271 of file species_pseudo_cont.cpp.
Referenced by getPseudoIndex(), PseudoContCreate(), SaveSpeciesPseudoCont(), SpeciesPseudoContAccum(), and SpeciesPseudoContCreate().
t_pseudo_cont pseudoContDef |
Definition at line 17 of file species_pseudo_cont.cpp.
Referenced by InitDefaultsPreparse().
|
static |
Definition at line 864 of file species_pseudo_cont.cpp.
Referenced by getSpecBandsIndex(), SaveSpeciesBands(), SpeciesBandsAccum(), and SpeciesBandsCreate().