CLASSpp Manual
Cosmology reference and developer manual
Loading...
Searching...
No Matches
background.h
Go to the documentation of this file.
1
3#ifndef __BACKGROUND__
4#define __BACKGROUND__
5
6#include <memory>
7#include <vector>
8
9#include "arrays.h"
10#include "common.h"
11#include "parser.h"
12#include "quadrature.h"
13
14class NonColdDarkMatter;
15class DarkRadiation;
16
19enum equation_of_state { CLP, EDE, PhenoAxion, PEDE };
20
36enum class ClosureSpecies { None, Lambda, Fluid, ScalarField };
37
38struct background {
51
52 double T_cmb = 2.7255;
54 double h = 0.67556;
56 double H0 =
57 h * 1.e5 /
58 _c_;
60 double Omega0_g =
61 Omega0gFromTcmb(T_cmb,
62 h);
64 double Omega0_b = 0.022032 /
65 (h * h);
67 // Per-species Omega0_* fields removed: each species owns its density
68 // through its constructor (queryable via species->GetOmega0()). Only
69 // photons (Omega0_g), baryons (Omega0_b), and curvature (Omega0_k) live
70 // on pba.
71
72 // Fluid physics params (fluid_equation_of_state, w0_fld, wa_fld, cs2_fld,
73 // Omega_EDE) live on FluidSpecies; PPF-only params (use_ppf, c_gamma_over_c_fld)
74 // live on PpfFluid — see FluidSpecies::CreateAll for the parser and
75 // species/fluid.h / species/ppf_fluid.h for the accessors.
76
77 // DCDM physics params (Gamma_dcdm, Omega_ini_dcdm) live on DCDMSpecies — see
78 // DCDM_DR_Species::CreateAll for the parser and species/dcdm.h for the
79 // accessors used by cross-module readers.
80 // IDR physics params (T_idr, l_max_idr) live on IDRSpecies — see
81 // IDM_DR_IDR_Species::CreateAll for the parser and species/idr.h for the
82 // accessors used by cross-module readers.
83
84 double Omega0_k = 0.;
89
90 double K = 0.;
91 int sgnK = 0;
94
95 ClosureSpecies closure_species = ClosureSpecies::None;
96
102
103 short short_info = 0;
104 short normal_info = 0;
105 short long_info = 0;
107 short inter_normal =
108 0;
109 short inter_closeby =
110 0;
113
117
118 unsigned int number_of_threads = 0U;
119
120 short background_verbose =
121 0;
124};
125
131
132#define _h_BIG_ 1.5
133#define _h_SMALL_ 0.3
134#define _omegab_BIG_ 0.039
135#define _omegab_SMALL_ 0.005
138
144
145#define _SCALE_BACK_ \
146 0.1
151
152#endif
equation_of_state
Definition background.h:19
ClosureSpecies
Definition background.h:36
#define _c_
Definition constants.h:38
double Omega0gFromTcmb(double T_cmb, double h)
Definition constants.h:56