Cloudy
Spectral Synthesis Code for Astrophysics
Loading...
Searching...
No Matches
save_species.cpp File Reference
#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"
Include dependency graph for save_species.cpp:

Classes

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
 

Function Documentation

◆ doData()

STATIC void doData ( FILE * punit,
const Field & f )

References DEBUG_ENTRY, Field::fmt, fprintf(), STATIC, and Field::value().

Referenced by mole_save().

Here is the call graph for this function:

◆ doHeader()

STATIC void doHeader ( FILE * punit,
const Field & f )

References DEBUG_ENTRY, fprintf(), Field::label, and STATIC.

Referenced by mole_save().

Here is the call graph for this function:

◆ isCatalystProduct()

STATIC bool isCatalystProduct ( const mole_reaction & rate,
int i )
inline

References NULL, mole_reaction::pvector, and STATIC.

Referenced by isCreated(), and mole_save().

◆ isCatalystReactant()

STATIC bool isCatalystReactant ( const mole_reaction & rate,
int i )
inline

References NULL, mole_reaction::rvector, and STATIC.

Referenced by isDestroyed(), and mole_save().

◆ isCreated()

STATIC bool isCreated ( const mole_reaction & rate,
int i )
inline

References isCatalystProduct(), NULL, mole_reaction::pvector_excit, and STATIC.

Referenced by mole_save().

Here is the call graph for this function:

◆ isDestroyed()

STATIC bool isDestroyed ( const mole_reaction & rate,
int i )
inline

References isCatalystReactant(), NULL, mole_reaction::rvector_excit, and STATIC.

Referenced by mole_save().

Here is the call graph for this function:

◆ mole_dominant_rates()

void mole_dominant_rates ( const vector< const molecule * > & debug_list,
FILE * ioOut,
bool lgPrintReagents,
size_t NPRINT,
double fprint )

◆ mole_print_species_reactions()

◆ mole_save()

void mole_save ( FILE * punit,
const char speciesname[],
const char args[],
bool lgHeader,
bool lgData,
bool lgCoef,
double depth )

◆ PrintShortZero()

STATIC void PrintShortZero ( FILE * ioPUN,
const char * chFmt,
double arg )

References DEBUG_ENTRY, fprintf(), and STATIC.

Referenced by SaveSpeciesOne().

Here is the call graph for this function:

◆ SaveAllSpeciesLabelsLevels()

STATIC void SaveAllSpeciesLabelsLevels ( FILE * ioPUN,
const vector< genericState > & speciesList )

SaveAllSpeciesLabelsLevels – generate output of all species labels & levels

References chemical_to_spectral(), fprintf(), NULL, null_molezone, and STATIC.

Referenced by SaveSpeciesLines().

Here is the call graph for this function:

◆ SaveSpecies()

void SaveSpecies ( FILE * ioPUN,
long int ipPun )

SaveSpecies generate output for the save species command

Parameters
ioPUNio unit for save
ipPunarrayin save array

References ASSERT, cdEXIT, column(), DEBUG_ENTRY, density(), depart(), energy(), EXIT_FAILURE, fprintf(), ioQQQ, ipPun, levels(), molezone::levels, matchGeneric(), MAX2, mole, mole_global, NULL, null_molezone, save, SaveSpeciesHeader(), SaveSpeciesLines(), SaveSpeciesOne(), qList::size(), and TotalInsanity().

Referenced by SaveDo().

Here is the call graph for this function:

◆ SaveSpeciesHeader()

STATIC void SaveSpeciesHeader ( const vector< genericState > & SpeciesList,
const char * chJob,
bool lgZonal,
FILE * ioPUN,
size_t maxLevels )

References DEBUG_ENTRY, fprintf(), lgRowPerZone, and STATIC.

Referenced by SaveSpecies().

Here is the call graph for this function:

◆ SaveSpeciesLines()

STATIC void SaveSpeciesLines ( FILE * ioPUN,
const vector< genericState > & speciesList )

References chemical_to_spectral(), dense, fprintf(), ipNCOLLIDER, NULL, null_molezone, save, SaveAllSpeciesLabelsLevels(), and STATIC.

Referenced by SaveSpecies().

Here is the call graph for this function:

◆ SaveSpeciesOne()

STATIC void SaveSpeciesOne ( const vector< genericState > & SpeciesList,
double(* job )(const genericState &),
bool lgZonal,
const char * chFmt,
FILE * ioPUN )

References DEBUG_ENTRY, fprintf(), lgRowPerZone, PrintShortZero(), radius, and STATIC.

Referenced by SaveSpecies().

Here is the call graph for this function:

◆ SaveSpeciesOptDep()

void SaveSpeciesOptDep ( const long int ipPun,
const string & speciesLabel )

SaveSpeciesOptDep – generate output for 'save species optical depth'

Parameters
ipPunarray index in save array
speciesLabellabel to acquire species

References DEBUG_ENTRY, fprintf(), getSpeciesGeneric(), ioQQQ, ipPun, iterations, NULL, and save.

Referenced by SaveDo().

Here is the call graph for this function:

Variable Documentation

◆ lgRowPerZone

const bool lgRowPerZone = true