cloudy
trunk
|
#include "cddefines.h"
#include "taulines.h"
#include "radius.h"
#include "save.h"
#include "mole.h"
#include "mole_priv.h"
#include "generic_state.h"
#include "iterations.h"
#include "dense.h"
#include "prt.h"
Go to the source code of this file.
Data Structures | |
class | Field |
class | RateCmp |
Functions | |
STATIC void | SaveSpeciesLines (FILE *ioPUN, const vector< genericState > &speciesList) |
STATIC void | SaveSpeciesOne (const vector< genericState > &SpeciesList, double(*job)(const genericState &), bool lgZonal, const char *chFmt, FILE *ioPUN) |
STATIC void | SaveSpeciesHeader (const vector< genericState > &SpeciesList, const char *chJob, bool lgZonal, FILE *ioPUN, size_t maxLevels) |
void | SaveSpecies (FILE *ioPUN, long int ipPun) |
STATIC void | PrintShortZero (FILE *ioPUN, const char *chFmt, double arg) |
STATIC void | SaveAllSpeciesLabelsLevels (FILE *ioPUN, const vector< genericState > &speciesList) |
void | SaveSpeciesOptDep (const long int ipPun, const string &speciesLabel) |
STATIC void | doHeader (FILE *punit, const Field &f) |
STATIC void | doData (FILE *punit, const Field &f) |
STATIC bool | isCatalystReactant (const mole_reaction &rate, int i) |
STATIC bool | isCatalystProduct (const mole_reaction &rate, int i) |
STATIC bool | isDestroyed (const mole_reaction &rate, int i) |
STATIC bool | isCreated (const mole_reaction &rate, int i) |
void | mole_save (FILE *punit, const char speciesname[], const char args[], bool lgHeader, bool lgData, bool lgCoef, double depth) |
void | mole_dominant_rates (const vector< const molecule * > &debug_list, FILE *ioOut, bool lgPrintReagents, size_t NPRINT, double fprint) |
void | mole_print_species_reactions (molecule *speciesToPrint) |
Variables | |
const bool | lgRowPerZone = true |
Definition at line 503 of file save_species.cpp.
References DEBUG_ENTRY, Field::fmt, fprintf(), and Field::value().
Referenced by mole_save().
Definition at line 498 of file save_species.cpp.
References DEBUG_ENTRY, fprintf(), and Field::label.
Referenced by mole_save().
|
inline |
Definition at line 513 of file save_species.cpp.
References mole_reaction::pvector.
Referenced by isCreated(), and mole_save().
|
inline |
Definition at line 509 of file save_species.cpp.
References mole_reaction::rvector.
Referenced by isDestroyed(), and mole_save().
|
inline |
Definition at line 521 of file save_species.cpp.
References isCatalystProduct(), and mole_reaction::pvector_excit.
Referenced by mole_save().
|
inline |
Definition at line 517 of file save_species.cpp.
References isCatalystReactant(), and mole_reaction::rvector_excit.
Referenced by mole_save().
void mole_dominant_rates | ( | const vector< const molecule * > & | debug_list, |
FILE * | ioOut, | ||
bool | lgPrintReagents, | ||
size_t | NPRINT, | ||
double | fprint | ||
) |
Definition at line 612 of file save_species.cpp.
References fprintf(), mole_reaction::index, molecule::index, mole, mole_reaction::nproducts, mole_reaction::nreactants, mole_reaction::products, mole_reaction::pvector, mole_priv::reactab, mole_reaction::reactants, t_mole_local::reaction_rks, mole_reaction::rvector, and t_mole_local::species.
Referenced by ConvBase(), and SaveDo().
void mole_print_species_reactions | ( | molecule * | speciesToPrint | ) |
Definition at line 746 of file save_species.cpp.
References fprintf(), mole_reaction::index, molecule::index, ioQQQ, mole_reaction::label, molecule::label, mole, mole_reaction::nproducts, mole_reaction::nreactants, mole_reaction::products, mole_reaction::pvector, mole_priv::reactab, mole_reaction::reactants, t_mole_local::reaction_rks, mole_reaction::rvector, and t_mole_local::species.
Referenced by lgElemsConserved(), and mole_system_error().
void mole_save | ( | FILE * | punit, |
const char | speciesname[], | ||
const char | args[], | ||
bool | lgHeader, | ||
bool | lgData, | ||
bool | lgCoef, | ||
double | depth | ||
) |
Definition at line 527 of file save_species.cpp.
References DEBUG_ENTRY, doData(), doHeader(), findspecies(), fprintf(), mole_reaction::index, molecule::index, isCatalystProduct(), isCatalystReactant(), isCreated(), isDestroyed(), mole_reaction::label, mole, mole_reaction::nproducts, mole_reaction::nreactants, null_mole, mole_reaction::products, mole_priv::reactab, mole_reaction::reactants, t_mole_local::reaction_rks, and t_mole_local::species.
Referenced by ConvBase(), and SaveDo().
STATIC void PrintShortZero | ( | FILE * | ioPUN, |
const char * | chFmt, | ||
double | arg | ||
) |
Definition at line 160 of file save_species.cpp.
References DEBUG_ENTRY, and fprintf().
Referenced by SaveSpeciesOne().
STATIC void SaveAllSpeciesLabelsLevels | ( | FILE * | ioPUN, |
const vector< genericState > & | speciesList | ||
) |
SaveAllSpeciesLabelsLevels – generate output of all species labels & levels
Definition at line 261 of file save_species.cpp.
References chemical_to_spectral(), fprintf(), and null_molezone.
void SaveSpecies | ( | FILE * | ioPUN, |
long int | ipPun | ||
) |
SaveSpecies generate output for the save species command
ioPUN | io unit for save |
ipPun | arrayin save array |
Definition at line 35 of file save_species.cpp.
References ASSERT, cdEXIT, t_save::chSaveArgs, t_save::chSaveSpecies, column(), DEBUG_ENTRY, density(), depart(), energy(), EXIT_FAILURE, fprintf(), ioQQQ, ipPun, levels(), molezone::levels, t_save::lgSaveHeader(), t_mole_global::list, matchGeneric(), MAX2, mole, mole_global, null_molezone, save, t_save::SaveHeaderDone(), SaveSpeciesHeader(), SaveSpeciesLines(), SaveSpeciesOne(), qList::size(), t_mole_local::species, and TotalInsanity().
Referenced by SaveDo().
STATIC void SaveSpeciesHeader | ( | const vector< genericState > & | SpeciesList, |
const char * | chJob, | ||
bool | lgZonal, | ||
FILE * | ioPUN, | ||
size_t | maxLevels | ||
) |
Definition at line 173 of file save_species.cpp.
References DEBUG_ENTRY, and fprintf().
Referenced by SaveSpecies().
STATIC void SaveSpeciesLines | ( | FILE * | ioPUN, |
const vector< genericState > & | speciesList | ||
) |
Definition at line 289 of file save_species.cpp.
References chemical_to_spectral(), dense, fprintf(), ipNCOLLIDER, t_dense::lgElmtOn, t_save::lgSaveDataGf, t_save::lgSaveDataRates, t_save::lgSaveDataWn, null_molezone, prt_wl(), save, and SaveAllSpeciesLabelsLevels().
Referenced by SaveSpecies().
STATIC void SaveSpeciesOne | ( | const vector< genericState > & | SpeciesList, |
double(*)(const genericState &) | job, | ||
bool | lgZonal, | ||
const char * | chFmt, | ||
FILE * | ioPUN | ||
) |
Definition at line 216 of file save_species.cpp.
References DEBUG_ENTRY, t_radius::depth_mid_zone, fprintf(), PrintShortZero(), and radius.
Referenced by SaveSpecies().
void SaveSpeciesOptDep | ( | const long int | ipPun, |
const string & | speciesLabel | ||
) |
SaveSpeciesOptDep – generate output for 'save species optical depth'
ipPun | array index in save array |
speciesLabel | label to acquire species |
Definition at line 441 of file save_species.cpp.
References DEBUG_ENTRY, fprintf(), getSpecies(), ioQQQ, SaveParams::ipPnunit, iterations, genericState::label(), t_iterations::lgLastIt, t_save::lgSaveHeader(), molezone::lines, t_save::params, save, t_save::SaveHeaderDone(), and genericState::sp.
Referenced by SaveDo().
const bool lgRowPerZone = true |
Definition at line 171 of file save_species.cpp.