cloudy trunk
Loading...
Searching...
No Matches
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
8vector<diatomics*> diatoms;
9
10diatomics h2("h2", 4100., &hmi.H2_total, Yan_H2_CS);
11diatomics hd("hd", 4100., &hmi.HD_total, Yan_H2_CS);
12
13void 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
#define DEBUG_ENTRY(funcname)
Definition cddefines.h:684
diatomics hd("hd", 4100., &hmi.HD_total, Yan_H2_CS)
void diatoms_init(void)
Definition h2.cpp:13
vector< diatomics * > diatoms
Definition h2.cpp:8
diatomics h2("h2", 4100., &hmi.H2_total, Yan_H2_CS)
double Yan_H2_CS(double energy_ryd)
t_hmi hmi
Definition hmi.cpp:5