Cloudy
Spectral Synthesis Code for Astrophysics
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
cosmology.h
Go to the documentation of this file.
1 /* This file is part of Cloudy and is copyright (C)1978-2022 by Gary J. Ferland and
2  * others. For conditions of distribution and use see copyright notice in license.txt */
3 
4 #ifndef COSMOLOGY_H_
5 #define COSMOLOGY_H_
6 
10 #define CMB_TEMP 2.725
11 
16 
21 
23 struct t_cosmology {
24 
28 
34 
37 
39 
40  bool lgDo;
41 
43  {
44  redshift_current = 0.f;
45  redshift_start = 0.f;
46  redshift_step = 0.f;
47  omega_baryon = 0.04592f;
48  omega_rad = 8.23e-5f;
49  omega_lambda = 0.7299177f;
50  omega_matter = 0.27f;
51  omega_k = 0.f;
52  /* the Hubble parameter in 100 km/s/Mpc */
53  h = 0.71f;
54  /* the Hubble parameter in km/s/Mpc */
55  H_0 = 100.f*h;
56  lgDo = false;
57  }
58 };
59 extern t_cosmology cosmology;
60 
61 
62 #endif /* COSMOLOGY_H_ */
realnum h
Definition: cosmology.h:35
Definition: cosmology.h:23
realnum GetDensity(realnum z)
Definition: cosmology.cpp:28
realnum GetHubbleFactor(realnum z)
Definition: cosmology.cpp:10
realnum redshift_step
Definition: cosmology.h:27
realnum redshift_start
Definition: cosmology.h:26
bool lgDo
Definition: cosmology.h:40
realnum H_0
Definition: cosmology.h:36
realnum redshift_current
Definition: cosmology.h:25
t_cosmology()
Definition: cosmology.h:42
realnum f_He
Definition: cosmology.h:38
float realnum
Definition: cddefines.h:127
realnum omega_baryon
Definition: cosmology.h:29
realnum omega_lambda
Definition: cosmology.h:31
realnum omega_k
Definition: cosmology.h:33
realnum omega_rad
Definition: cosmology.h:30
realnum omega_matter
Definition: cosmology.h:32
t_cosmology cosmology
Definition: cosmology.cpp:8