cloudy
trunk
Main Page
Related Pages
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
source
mole_co_priv.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_CO_PRIV_H_
5
#define _MOLE_CO_PRIV_H_
6
7
/* mole_co_priv.h */
8
9
#include "
hash.h
"
10
11
extern
struct
mole_priv_s
{
12
hashtab
*
spectab
, *
reactab
, *
elemtab
;
13
}
mole_priv
;
14
15
EXTERN
struct
t_coreactions
{
16
struct
COmole_rate_s
**
list
;
17
long
int
n
;
18
}
coreactions
;
19
20
#define MAXREACTANTS 3
21
#define MAXPRODUCTS 4
22
23
/* Structure containing reaction data */
24
struct
COmole_rate_s
{
25
int
index
;
26
char
*
label
;
27
int
nreactants
,
nrates
,
nproducts
,
photon
;
28
struct
molecule
*
reactants
[
MAXREACTANTS
];
29
struct
molecule
*
rate_species
[
MAXREACTANTS
];
30
struct
molecule
*
products
[
MAXPRODUCTS
];
31
double
rk
,
reduced_mass
,
a
,
b
,
c
;
32
double (*
fun
)(
struct
COmole_rate_s
*rate);
33
};
34
35
enum
{
CHARS_ELEMENT
=3};
36
extern
struct
chem_element_s
{
37
int
ipCl
;
/* Index of element in external arrays */
38
int
39
ipMl
,
/* Index of atomic species in molecule arrays */
40
ipMlP
,
41
ipZ
;
/* Index of + ions in molecule arrays */
42
char
chName
[3];
/* Chemical symbols for elements */
43
} **
chem_element
;
44
45
extern
int32 *
ipiv
;
46
extern
realnum
*
tot_ion
;
49
extern
void
CO_step
(
void
);
54
extern
void
CO_solve
(
55
bool
*lgNegPop,
56
bool
*lgZerPop );
57
58
#endif
/* _MOLE_CO_PRIV_H_ */
Generated for cloudy by
1.8.3.1