cloudy  trunk
h2.cpp
Go to the documentation of this file.
1 /* This file is part of Cloudy and is copyright (C)1978-2013 by Gary J. Ferland and
2  * others. For conditions of distribution and use see copyright notice in license.txt */
3 #include "cddefines.h"
4 #include "h2.h"
5 #include "h2_priv.h"
6 #include "hmi.h"
7 
8 vector<diatomics*> diatoms;
9 
10 diatomics h2("h2", 4100., &hmi.H2_total, Yan_H2_CS);
11 diatomics hd("hd", 4100., &hmi.HD_total, Yan_H2_CS);
12 
13 void diatoms_init( void )
14 {
15  DEBUG_ENTRY( "diatoms_init()" );
16 
17  diatoms.clear();
18  diatoms.push_back( &h2 );
19  diatoms.push_back( &hd );
20 
21  // H
22  h2.coll_source[0].magic = 110416;
23  h2.coll_source[0].filename = "coll_rates_H_07.dat";
24  // He
25  h2.coll_source[1].magic = 110416;
26  h2.coll_source[1].filename = "coll_rates_He_ORNL.dat";
27  // H2 ortho
28  h2.coll_source[2].magic = 110416;
29  h2.coll_source[2].filename = "coll_rates_H2ortho_ORNL.dat";
30  // H2 para
31  h2.coll_source[3].magic = 110416;
32  h2.coll_source[3].filename = "coll_rates_H2para_ORNL.dat";
33  // proton
34  h2.coll_source[4].magic = 110416;
35  h2.coll_source[4].filename = "coll_rates_Hp.dat";
36 
37  // H
38  hd.coll_source[0].magic = 110416;
39  hd.coll_source[0].filename = "coll_rates_H_07.dat";
40  // He
41  hd.coll_source[1].magic = 110416;
42  hd.coll_source[1].filename = "coll_rates_He_LeBourlot.dat";
43  // H2 ortho
44  hd.coll_source[2].magic = 110416;
45  hd.coll_source[2].filename = "coll_rates_H2ortho_LeBourlot.dat";
46  // H2 para
47  hd.coll_source[3].magic = 110416;
48  hd.coll_source[3].filename = "coll_rates_H2para_LeBourlot.dat";
49  // proton
50  hd.coll_source[4].magic = 110416;
51  hd.coll_source[4].filename = "coll_rates_Hp.dat";
52 
53  return;
54 }
55 
t_coll_source::magic
long magic
Definition: h2_priv.h:60
h2
diatomics h2("h2", 4100., &hmi.H2_total, Yan_H2_CS)
Yan_H2_CS
double Yan_H2_CS(double energy_ryd)
Definition: mole_h2_etc.cpp:326
diatoms
vector< diatomics * > diatoms
Definition: h2.cpp:8
diatomics::coll_source
t_coll_source coll_source[N_X_COLLIDER]
Definition: h2_priv.h:316
t_hmi::H2_total
double H2_total
Definition: hmi.h:16
diatomics
Definition: h2_priv.h:65
cddefines.h
hmi.h
h2_priv.h
hmi
t_hmi hmi
Definition: hmi.cpp:5
t_coll_source::filename
string filename
Definition: h2_priv.h:62
diatoms_init
void diatoms_init(void)
Definition: h2.cpp:13
hd
diatomics hd("hd", 4100., &hmi.HD_total, Yan_H2_CS)
h2.h
t_hmi::HD_total
double HD_total
Definition: hmi.h:18
DEBUG_ENTRY
#define DEBUG_ENTRY(funcname)
Definition: cddefines.h:684