Cholla 3.0.1-dev
Cholla - Massively parallel hydro on GPUs
Loading...
Searching...
No Matches
cool_grackle.h
1#ifdef COOLING_GRACKLE
2
3 #ifndef INIT_GRACKLE_H
4 #define INIT_GRACKLE_H
5
6 #include "../global/global.h"
7
8extern "C" {
9 #include <grackle.h>
10}
11
12class Cool_GK
13{
14 public:
15 code_units units;
16 chemistry_data *data;
17
18 Real dens_conv;
19 Real energy_conv;
20
21 Real dens_to_CGS;
22 Real vel_to_CGS;
23 Real energy_to_CGS;
24
25 Real gamma;
26
27 Real temperature_units;
28
29 #ifdef OUTPUT_TEMPERATURE
30 Real *temperature;
31 #endif
32
33 Real tiny_number;
34
35 Real scale_factor_UVB_on;
36
37 // Struct for storing grackle field data
38 grackle_field_data fields;
39 int field_size;
40
41 Cool_GK(void);
42
43 void Initialize(struct Parameters *P, Cosmology &Cosmo);
44
45 void Free_Memory();
46 // void Do_Cooling_Step( Real dt );
47
48 Real Get_Mean_Molecular_Weight(int cell_id);
49};
50
51 #endif
52#endif
Definition global.h:217