cooling_struct.h 2.07 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*******************************************************************************
 * This file is part of SWIFT.
 * Copyright (c) 2016 Matthieu Schaller (matthieu.schaller@durham.ac.uk)
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published
 * by the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 ******************************************************************************/
#ifndef SWIFT_COOLING_STRUCT_NONE_H
#define SWIFT_COOLING_STRUCT_NONE_H

22
23
24
/* include grackle */
#include <grackle.h>

25
26
27
28
29
30
31
32
33
34
/**
 * @file src/cooling/none/cooling_struct.h
 * @brief Empty infrastructure for the cases without cooling function
 */

/**
 * @brief Properties of the cooling function.
 */
struct cooling_function_data {

35
  /* Filename of the Cloudy Table */
36
  char cloudy_table[200];
37
38

  /* Enable/Disable UV backgroud */
39
  int uv_background;
40
41

  /* Redshift to use for the UV backgroud (-1 to use cosmological one) */
42
  double redshift;
43
44

  /* Density Threshold for the shielding */
45
46
47
48
49
  double density_self_shielding;

  /* unit system */
  code_units units;

lhausamm's avatar
lhausamm committed
50
51
  /* grackle chemistry data */
  chemistry_data chemistry;
52
53
54
};

/**
lhausamm's avatar
lhausamm committed
55
56
57
 * @brief Properties of the cooling stored in the extra particle data
 *
 * theses data are not processed during the SPH density/force.
58
59
60
61
62
63
64
 */
struct cooling_xpart_data {

  /*! Energy radiated away by this particle since the start of the run */
  float radiated_energy;
};

lhausamm's avatar
lhausamm committed
65
66
67
68
69
70
71
72
73
/**
 * @brief Properties of the cooling stored in the particle data
 */
struct cooling_part_data {

  /*! Quick example */
  float He_density;
};

74
#endif /* SWIFT_COOLING_STRUCT_NONE_H */