mole_co_etc.cpp File Reference

#include "cddefines.h"
#include "physconst.h"
#include "mole.h"
#include "mole_co_priv.h"
#include "hmi.h"
#include "rfield.h"
#include "dense.h"
#include "ionbal.h"
#include "grainvar.h"
#include "timesc.h"
#include <string.h>
#include <ctype.h>

Include dependency graph for mole_co_etc.cpp:

Go to the source code of this file.

Enumerations

enum  spectype { MOLECULE, OTHER }
enum  molstate { ACTIVE, PASSIVE }

Functions

static void newelement (const char label[], int ipion, int priority)
static struct moleculenewspecies (const char label[7], enum spectype type, enum molstate state, float *location, double frac0)
static struct chem_element_sfindelement (const char buf[])
static int isactive (data_u *dat)
static int ispassive (data_u *dat)
static int isCOnet (data_u *dat)
void CO_Init (void)
struct moleculefindspecies (const char buf[])
struct COmole_rate_sCO_findrate_s (const char buf[])
double CO_findrk (const char buf[])
double CO_findrate (const char buf[])
void CO_update_species_cache (void)
double CO_sink_rate (const char species[7])
void CO_update_rks (void)
double CO_dissoc_rate (const char species[7])
double CO_source_rate (const char species[7])
void CO_punch_mol (FILE *punit, const char species[], char header[], double depth)
void CO_zero (void)

Variables

struct chem_element_s ** chem_element
struct chem_element_selement_list [LIMELM]
int32 * ipiv
float * tot_ion
struct mole_priv_s mole_priv
struct molecule null_mole


Enumeration Type Documentation

enum molstate

Enumerator:
ACTIVE 
PASSIVE 

Definition at line 22 of file mole_co_etc.cpp.

enum spectype

Enumerator:
MOLECULE 
OTHER 

Definition at line 21 of file mole_co_etc.cpp.


Function Documentation

double CO_dissoc_rate ( const char  species[7]  ) 

double CO_findrate ( const char  buf[]  ) 

Definition at line 571 of file mole_co_etc.cpp.

References CO_findrate_s(), DEBUG_ENTRY, DEBUG_EXIT, molecule::hevmol, COmole_rate_s::nrates, COmole_rate_s::rate_species, and COmole_rate_s::rk.

Referenced by CO_solve(), CoolOxyg(), and lines_lv1_li_ne().

Here is the call graph for this function:

struct COmole_rate_s* CO_findrate_s ( const char  buf[]  )  [read]

Definition at line 538 of file mole_co_etc.cpp.

References DEBUG_ENTRY, DEBUG_EXIT, lookup(), mole_priv, data_u::p, and mole_priv_s::reactab.

Referenced by CO_drive(), CO_findrate(), and CO_findrk().

Here is the call graph for this function:

double CO_findrk ( const char  buf[]  ) 

Definition at line 553 of file mole_co_etc.cpp.

References ASSERT, CO_findrate_s(), DEBUG_ENTRY, DEBUG_EXIT, isnan, and COmole_rate_s::rk.

Referenced by hmole_step(), IonIron(), IonMagne(), and PunchDo().

Here is the call graph for this function:

void CO_Init ( void   ) 

void CO_punch_mol ( FILE *  punit,
const char  species[],
char  header[],
double  depth 
)

double CO_sink_rate ( const char  species[7]  ) 

double CO_source_rate ( const char  species[7]  ) 

void CO_update_rks ( void   ) 

CO_update_rks update rate coefficients, only temp part

Definition at line 680 of file mole_co_etc.cpp.

References COmole_rate_s::a, coreactions, DEBUG_ENTRY, DEBUG_EXIT, COmole_rate_s::fun, t_coreactions::list, t_coreactions::n, and COmole_rate_s::rk.

Referenced by CO_drive(), and ConvBase().

void CO_update_species_cache ( void   ) 

void CO_zero ( void   ) 

CO_zero allocate + initialize workspace

Definition at line 853 of file mole_co_etc.cpp.

References t_timesc::AgeCOMoleDest, cdEXIT(), COmole, DEBUG_ENTRY, DEBUG_EXIT, molecule::hevcol, molecule::hevmol, ioQQQ, lgFirstCall, MALLOC, mole, t_mole::num_comole_calc, t_mole::num_comole_tot, timesc, and molecule::xMoleFracMax.

Referenced by cloudy(), and CO_drive().

Here is the call graph for this function:

static struct chem_element_s * findelement ( const char  buf[]  )  [static, read]

Definition at line 522 of file mole_co_etc.cpp.

References DEBUG_ENTRY, DEBUG_EXIT, mole_priv_s::elemtab, lookup(), mole_priv, and data_u::p.

Referenced by newspecies().

Here is the call graph for this function:

struct molecule* findspecies ( const char  buf[]  )  [read]

static int isactive ( data_u dat  )  [static]

Definition at line 486 of file mole_co_etc.cpp.

References molecule::active, DEBUG_ENTRY, DEBUG_EXIT, and data_u::p.

Referenced by CO_Init().

static int isCOnet ( data_u dat  )  [static]

Definition at line 501 of file mole_co_etc.cpp.

References data_u::p.

Referenced by CO_Init().

static int ispassive ( data_u dat  )  [static]

Definition at line 497 of file mole_co_etc.cpp.

References data_u::p.

Referenced by CO_Init().

static void newelement ( const char  label[],
int  ipion,
int  priority 
) [static]

static struct molecule * newspecies ( const char  label[7],
enum spectype  type,
enum molstate  state,
float *  location,
double  frac0 
) [static, read]


Variable Documentation

Definition at line 33 of file mole_co_etc.cpp.

Referenced by CO_solve(), and lgMolecAver().

Definition at line 36 of file mole_co_etc.cpp.

int32* ipiv

Definition at line 41 of file mole_co_etc.cpp.

Referenced by CO_Init(), findspecies(), and newreact().

float* tot_ion

Definition at line 38 of file mole_co_etc.cpp.

Referenced by CO_Init(), and CO_solve().


Generated for cloudy by doxygen 1.5.9