00001 /* This file is part of Cloudy and is copyright (C)1978-2013 by Gary J. Ferland and 00002 * others. For conditions of distribution and use see copyright notice in license.txt */ 00003 #include "cddefines.h" 00004 #include "h2.h" 00005 #include "h2_priv.h" 00006 #include "hmi.h" 00007 00008 vector<diatomics*> diatoms; 00009 00010 diatomics h2("h2", 4100., &hmi.H2_total, Yan_H2_CS); 00011 diatomics hd("hd", 4100., &hmi.HD_total, Yan_H2_CS); 00012 00013 void diatoms_init( void ) 00014 { 00015 DEBUG_ENTRY( "diatoms_init()" ); 00016 00017 diatoms.clear(); 00018 diatoms.push_back( &h2 ); 00019 diatoms.push_back( &hd ); 00020 00021 // H 00022 h2.coll_source[0].magic = 110416; 00023 h2.coll_source[0].filename = "coll_rates_H_07.dat"; 00024 // He 00025 h2.coll_source[1].magic = 110416; 00026 h2.coll_source[1].filename = "coll_rates_He_ORNL.dat"; 00027 // H2 ortho 00028 h2.coll_source[2].magic = 110416; 00029 h2.coll_source[2].filename = "coll_rates_H2ortho_ORNL.dat"; 00030 // H2 para 00031 h2.coll_source[3].magic = 110416; 00032 h2.coll_source[3].filename = "coll_rates_H2para_ORNL.dat"; 00033 // proton 00034 h2.coll_source[4].magic = 110416; 00035 h2.coll_source[4].filename = "coll_rates_Hp.dat"; 00036 00037 // H 00038 hd.coll_source[0].magic = 110416; 00039 hd.coll_source[0].filename = "coll_rates_H_07.dat"; 00040 // He 00041 hd.coll_source[1].magic = 110416; 00042 hd.coll_source[1].filename = "coll_rates_He_LeBourlot.dat"; 00043 // H2 ortho 00044 hd.coll_source[2].magic = 110416; 00045 hd.coll_source[2].filename = "coll_rates_H2ortho_LeBourlot.dat"; 00046 // H2 para 00047 hd.coll_source[3].magic = 110416; 00048 hd.coll_source[3].filename = "coll_rates_H2para_LeBourlot.dat"; 00049 // proton 00050 hd.coll_source[4].magic = 110416; 00051 hd.coll_source[4].filename = "coll_rates_Hp.dat"; 00052 00053 return; 00054 } 00055