Cloudy
Spectral Synthesis Code for Astrophysics
Loading...
Searching...
No Matches
hextra.h
Go to the documentation of this file.
1
/* This file is part of Cloudy and is copyright (C)1978-2025 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
24
realnum
cryden
,
25
crpowr
,
26
crtemp
;
27
29
bool
lg_CR_B_equipartition
;
30
32
double
cr_energydensity
;
33
35
realnum
cryden_ov_background
;
36
38
realnum
background_density
;
39
realnum
background_rate
;
40
42
realnum
TurbHeat
,
43
45
TurbHeatSave
;
46
49
bool
lgHextraDepth
;
51
realnum
turrad
,
53
turback
;
54
57
bool
lgHextraDensity
;
58
60
realnum
HextraScaleDensity
;
61
64
bool
lgHextraSS
;
65
67
realnum
HextraSSalpha
;
68
70
double
HextraSS_M
;
71
73
realnum
HextraSSradius
;
74
76
bool
lgTurbHeatVaryTime
;
77
79
realnum
totneu
;
81
bool
lgNeutrnHeatOn
;
83
realnum
frcneu
;
85
realnum
effneu
;
87
double
CrsSecNeutron
;
88
89
t_hextra
()
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_ */
realnum
float realnum
Definition
cddefines.h:127
module::module
module()
Definition
module.h:29
t_warnings
Definition
warnings.h:11
hextra
t_hextra hextra
Definition
hextra.cpp:5
module.h
t_hextra
Definition
hextra.h:15
t_hextra::crtemp
realnum crtemp
Definition
hextra.h:26
t_hextra::crpowr
realnum crpowr
Definition
hextra.h:25
t_hextra::TurbHeat
realnum TurbHeat
Definition
hextra.h:42
t_hextra::effneu
realnum effneu
Definition
hextra.h:85
t_hextra::TurbHeatSave
realnum TurbHeatSave
Definition
hextra.h:45
t_hextra::CrsSecNeutron
double CrsSecNeutron
Definition
hextra.h:87
t_hextra::lgHextraSS
bool lgHextraSS
Definition
hextra.h:64
t_hextra::zero
void zero()
Definition
hextra.cpp:7
t_hextra::turback
realnum turback
Definition
hextra.h:53
t_hextra::background_rate
realnum background_rate
Definition
hextra.h:39
t_hextra::chName
const char * chName() const
Definition
hextra.h:16
t_hextra::cryden
realnum cryden
Definition
hextra.h:24
t_hextra::frcneu
realnum frcneu
Definition
hextra.h:83
t_hextra::totneu
realnum totneu
Definition
hextra.h:79
t_hextra::HextraSSradius
realnum HextraSSradius
Definition
hextra.h:73
t_hextra::lgHextraDensity
bool lgHextraDensity
Definition
hextra.h:57
t_hextra::lg_CR_B_equipartition
bool lg_CR_B_equipartition
Definition
hextra.h:29
t_hextra::comment
void comment(t_warnings &)
Definition
hextra.h:21
t_hextra::HextraSSalpha
realnum HextraSSalpha
Definition
hextra.h:67
t_hextra::cryden_ov_background
realnum cryden_ov_background
Definition
hextra.h:35
t_hextra::cr_energydensity
double cr_energydensity
Definition
hextra.h:32
t_hextra::HextraScaleDensity
realnum HextraScaleDensity
Definition
hextra.h:60
t_hextra::background_density
realnum background_density
Definition
hextra.h:38
t_hextra::HextraSS_M
double HextraSS_M
Definition
hextra.h:70
t_hextra::lgNeutrnHeatOn
bool lgNeutrnHeatOn
Definition
hextra.h:81
t_hextra::turrad
realnum turrad
Definition
hextra.h:51
t_hextra::t_hextra
t_hextra()
Definition
hextra.h:89
t_hextra::lgTurbHeatVaryTime
bool lgTurbHeatVaryTime
Definition
hextra.h:76
t_hextra::lgHextraDepth
bool lgHextraDepth
Definition
hextra.h:49
source
hextra.h
Generated by
1.13.2