Cloudy
Spectral Synthesis Code for Astrophysics
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
hextra.h
Go to the documentation of this file.
1 /* This file is part of Cloudy and is copyright (C)1978-2023 by Gary J. Ferland and
2  * others. For conditions of distribution and use see copyright notice in license.txt */
3 
4 #ifndef HEXTRA_H_
5 #define HEXTRA_H_
6 
7 /* hextra.h */
8 
9 #include "module.h"
10 
13 #define CR_EDEN_GAL_BACK_EV_CMM3 1.8
14 
15 struct t_hextra : public module {
16  const char *chName() const
17  {
18  return "hextra";
19  }
20  void zero();
21  void comment(t_warnings&) {}
22 
25  crpowr,
26  crtemp;
27 
30 
33 
36 
40 
43 
46 
53  turback;
54 
58 
61 
64  bool lgHextraSS;
65 
68 
70  double HextraSS_M;
71 
74 
77 
87  double CrsSecNeutron;
88 
90  {
91  /* default cosmic ray background */
92  /* >>chng 99 jun 24, slight change to value
93  * quoted by
94  * >>refer cosmic ray ionization rate McKee, C.M., 1999, astro-ph 9901370
95  * this will produce a total
96  * secondary ionization rate of 2.5e-17 s^-1, as tested in
97  * test suite cosmicray.in. If each ionization produces 2.4 eV of heat,
98  * the background heating rate should be 9.6e-29 * n*/
99  /* >>chng 04 jan 26, update cosmic ray ionization rate for H0 to
100  * >>refer cosmic ray ionization Williams, J.P., Bergin, E.A., Caselli, P.,
101  * >>refercon Myers, P.C., & Plume, R. 1998, ApJ, 503, 689,
102  * H0 ionization rate of 2.5e-17 s-1 and a H2 ionization rate twice this
103  * >>chng 04 mar 15, comment said 2.5e-17 which is correct, but code produce 8e-17,
104  * fix back to correct value
105  */
106  /* NB - the rate is derived from the density. these two are related by the secondary
107  * ionization efficiency problem. background_rate is only here to provide the relationship
108  * for predominantly neutral gas. the background_density is the real rate.
109  hextra.background_density = 1.99e-9f;*/
110  /* >>chng 05 apr 16, to get proper ionization rate in ism_set_cr_rate, where
111  * H is forced to be fully atomic, no molecules, density from 1.99 to 2.15 */
112  /* >>chng 12 apr 05, update to
113  * >>refer cosmic ray ionization Indriolo, N., Geballe, T., Oka, T., & McCall, B.J. 2007, ApJ, 671, 1736
114  */
115  background_density = 2.15e-9f*7.9f;
116  background_rate = 2.5e-17f*7.9f;
117  }
118 };
119 extern t_hextra hextra;
120 
121 #endif /* HEXTRA_H_ */
Definition: warnings.h:11
void zero()
Definition: hextra.cpp:7
t_hextra()
Definition: hextra.h:89
realnum turrad
Definition: hextra.h:51
realnum turback
Definition: hextra.h:51
realnum crtemp
Definition: hextra.h:24
realnum HextraSSradius
Definition: hextra.h:73
bool lgNeutrnHeatOn
Definition: hextra.h:81
bool lg_CR_B_equipartition
Definition: hextra.h:29
realnum effneu
Definition: hextra.h:85
realnum TurbHeatSave
Definition: hextra.h:42
realnum frcneu
Definition: hextra.h:83
t_hextra hextra
Definition: hextra.cpp:5
double CrsSecNeutron
Definition: hextra.h:87
realnum background_rate
Definition: hextra.h:39
realnum crpowr
Definition: hextra.h:24
realnum TurbHeat
Definition: hextra.h:42
double cr_energydensity
Definition: hextra.h:32
float realnum
Definition: cddefines.h:127
realnum HextraScaleDensity
Definition: hextra.h:60
bool lgTurbHeatVaryTime
Definition: hextra.h:76
realnum cryden_ov_background
Definition: hextra.h:35
realnum cryden
Definition: hextra.h:24
realnum totneu
Definition: hextra.h:79
bool lgHextraSS
Definition: hextra.h:64
double HextraSS_M
Definition: hextra.h:70
const char * chName() const
Definition: hextra.h:16
bool lgHextraDensity
Definition: hextra.h:57
void comment(t_warnings &)
Definition: hextra.h:21
realnum HextraSSalpha
Definition: hextra.h:67
realnum background_density
Definition: hextra.h:38
Definition: module.h:26
Definition: hextra.h:15
bool lgHextraDepth
Definition: hextra.h:49