cloudy  trunk
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
mole.h
Go to the documentation of this file.
1 /* This file is part of Cloudy and is copyright (C)1978-2008 by Gary J. Ferland and
2  * others. For conditions of distribution and use see copyright notice in license.txt */
3 
4 #ifndef _MOLE_H_
5 #define _MOLE_H_
6 
7 /* mole.h */
8 
10 extern void CO_drive(void);
11 
13 extern void CO_zero(void);
14 
16 extern void CO_create_react(void);
17 
19 extern void CO_Init(void);
21 extern void CO_update_rks( void );
22 
23 extern void CO_update_species_cache(void);
24 
25 extern double CO_sink_rate(const char chSpecies[]);
26 
27 extern double CO_source_rate(const char chSpecies[]);
28 
29 extern double CO_dissoc_rate(const char chSpecies[]);
30 
31 struct COmole_rate_s *CO_findrate_s(const char buf[]);
32 
33 extern double CO_findrk(const char buf[]);
34 
35 extern double CO_findrate(const char buf[]);
36 
69 extern struct molecule null_mole;
70 
71 EXTERN struct t_co {
72 
76  codfrc,
78  codtot;
79 
81  double COCoolBigFrac;
82 
85 
87  bool lgNoCOMole;
88 
90  bool lgCODoCalc;
91 
96  realnum
100  hydro_source[8];
101 
108 
112 
114  bool lgH2Ozer;
115 
118 
120 
125 
130 
135 
136  double h2lim;
137 
139 
141  double comole_eden;
142 
143 # if 0
144 
145  bool lgElem_in_CO_chem[LIMELM];
146 # endif
147 
148 
150 
153  double H_CH_C_H_H;
154  double H_OH_O_H_H ;
155  double H_H2O_OH_H_H;
156  double H_COP_CO_HP;
157  double H_CH_C_H2;
158  double H_CHP_CP_H2;
159  double H_CH2_CH_H2;
161  double H_OH_O_H2;
162  double H_H2O_OH_H2;
166  double HP_CH_CHP_H;
169  double HP_O2_O2P_H;
170  double HP_OH_OHP_H;
179  double H2_OP_OHP_H;
181  double H2_C_CH_H;
182  double H2_CP_CHP_H;
183  double H2_CH_CH2_H;
184  double H2_OH_H2O_H;
185  double H2_O_OH_H;
186  double H2_CH_C_H2_H;
187  double H2_OH_O_H2_H;
189  double H2_O2_O_O_H2;
190  double H2_O2_OH_OH;
195  double H2P_C_CHP_H;
196  double H2P_CH_CH2P_H;
201  double H2P_O_OHP_H;
208  double H3P_C_CHP_H2;
214  double H3P_O_OHP_H2;
217  double H2s_CH_CH2_H;
218  double H2s_O_OH_H;
219  double H2s_OH_H2O_H;
220  double H2s_C_CH_H;
221  double H2s_CP_CHP_H;
222  double H_CH3_CH2_H2;
225  double H2_CH2_CH3_H;
226  double H2_CH3_CH4_H;
239  double H_HNC_HCN_H;
242  double H2s_OP_OHP_H;
243 
245  C_OH_CO_H_1,
249  O_CH_CO_H_1,
256  O_OH_O2_H_1,
267  H_C_CH_nu,
268  H_CP_CHP_nu,
269  H_OH_H2O_nu,
274  H2_C_CH2_nu,
284  crnu_CH_C_H,
287  crnu_OH_O_H,
289  nu_CH_C_H,
290  nu_CHP_CP_H,
291  nu_CH2_CH_H,
295  nu_H2O_OH_H,
296  nu_OH_O_H,
297  nu_OHP_O_HP,
298  nu_SiH_Si_H,
299  e_CHP_C_H,
300  e_CH2P_CH_H,
301  e_CH2P_C_H_H,
302  e_CH2P_C_H2,
304  e_CH3P_CH2_H,
306  e_CH3P_CH_H2,
307  e_H2OP_OH_H,
308  e_H2OP_O_H_H,
309  e_H2OP_O_H2,
310  e_H3OP_H2O_H,
312  e_H3OP_OH_H2,
314  e_HCOP_CO_H,
315  e_OHP_O_H,
320  H2_CH_CH3_nu,
325  nu_CH3_CH2_H,
326  nu_CH3_CH_H2,
327  nu_CH4_CH3_H,
329  nu_CH4_CH_H2,
334  e_CH5P_CH4_H,
335  e_CH4P_CH3_H,
337  H2_N_NH_H ,
338  H2_NH_NH2_H ,
339  H2_NH2_NH3_H ,
340  H2_CN_HCN_H ,
342  HP_HS_SP_H2,
343  H_HSP_SP_H2 ,
344  H2P_N_NHP_H ,
345  H2_NP_NHP_H ,
346  H2_NHP_N_H3P ,
347  H2P_NH_NH2P_H ,
348  H2_NHP_NH2P_H ,
349  H2_NH2P_NH3P_H ,
351  H2P_CN_HCNP_H ,
352  H2_CNP_HCNP_H ,
353  H2P_NO_HNOP_H ,
354  H2_SP_HSP_H ,
355  H2_CSP_HCSP_H ,
361  H3P_S_HSP_H2 ,
364  HP_NH_NHP_H ,
365  HP_NH2_NH2P_H ,
366  HP_NH3_NH3P_H ,
367  H_CNP_CN_HP ,
368  HP_HCN_HCNP_H ,
369  H_HCNP_HCN_HP ,
370  H_N2P_N2_HP ,
371  HP_NO_NOP_H ,
372  HP_HS_HSP_H ,
373  HP_SiN_SiNP_H ,
374  HP_CS_CSP_H ,
375  HP_NS_NSP_H ,
376  HP_SO_SOP_H ,
377  HP_OCS_OCSP_H ,
378  HP_S2_S2P_H ,
379  H2P_NH_NHP_H2 ,
382  H2P_CN_CNP_H2 ,
384  H2P_NO_NOP_H2 ,
385  H2_ClP_HClP_H ,
390  HP_C2_C2P_H,
391  H2_S_HS_H,
397  HP_C3H_C3HP_H ,
398  HP_C3H_C3P_H2 ,
408  HP_C3_C3P_H ,
409  HP_C2H_C2HP_H,
410  H2P_C2_C2HP_H ,
413  H2_C2P_C2HP_H ,
416 } co;
417 
418 EXTERN struct t_mole {
419 
420 
423 
427 
431 
434 
437 
441 
443  bool lgH2_LTE;
444 
447 
451 
454 
456  bool lgH2_NOISE ,
459 
465 
469 
472 
476 
479  double **source , **sink;
480 
482  realnum ***xMoleChTrRate;/***[LIMELM][LIMELM+1][LIMELM+1];*/
483  double **amat, /* [NUM_COMOLE_CALC][NUM_COMOLE_CALC], */
484  *b, /* [NUM_COMOLE_CALC], */
485  **c; /* [NUM_COMOLE_TOT][NUM_COMOLE_CALC + 1]; */
486 } mole;
487 
488 enum {CHARS_SPECIES=7};
489 /* Structure containing molecule data, initially only CO */
490 EXTERN struct molecule {
491  int nElem[LIMELM];
494  int nElec;
495  int Excit;
496  bool lgGas_Phase;
497  int n_nuclei;
499  realnum hev_reinit; /* this save first valid solution from previous iteration */
504  /* realnum HevMolSav; ** the particle densities in first zone where CO computed,
505  * in last iteration */
511  int active;
512  int index;
513 } **COmole;
514 
515 
516 extern struct molecule *findspecies(const char buf[]);
517 
518 extern void CO_punch_mol(FILE *punit, const char chSpecies[],
519  char header[], double depth);
520 
521 #endif /* _MOLE_H_ */

Generated for cloudy by doxygen 1.8.4