-
Notifications
You must be signed in to change notification settings - Fork 1
/
c2ray_parameters.f90
74 lines (59 loc) · 2.42 KB
/
c2ray_parameters.f90
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
!>
!! \brief This module contains parameters specific for C2-Ray
!!
!! Module for Capreole / C2-Ray (f90)
!!
!! \b Author: Garrelt Mellema
!!
!! Note: this file contains parameters for different versions
!! of C2-Ray (dimensions, single/multiple sources), so
!! not all parameters will be used.
module c2ray_parameters
! This module collects parameters needed by C2-Ray
use precision
use astroconstants
implicit none
save
!> Which fraction of the cells can be left unconverged in order
!! to improve performance (used in rad_evolve3d)
real(kind=dp),parameter :: convergence_fraction=1.5e-5
! Set to true to let C2-Ray not change the temperature
! set interactively in mat_ini
!logical,parameter :: isothermal=.true.
!> A really small number
real(kind=dp),parameter :: epsilon=1e-40_dp
!> Convergence criterion for per source calculation (evolve0d)
real(kind=dp),parameter :: convergence1=1.0e-3
!> Convergence criterion for global calculation (evolve0d)
real(kind=dp),parameter :: convergence2=1.0e-2
!> Parameters for nominal SED
real(kind=dp),parameter :: teff_nominal=0.0
real(kind=dp),parameter :: s_star_nominal=1e48_dp
!real(kind=dp),parameter :: s_star_nominal=1e50_dp
!> Subgrid clumping\n
!! 1: constant clumping (with clumping_factor)\n
!! 2: 3.5Mpc PM, WMAP1 clumping\n
!! 3: 3.5Mpc PM, WMAP3 clumping\n
!! 4: 1 Mpc P3M
integer,parameter :: type_of_clumping=3
!> Clumping factor if constant
real,parameter :: clumping_factor=1.0
! Cosmological cooling
! Set in cosmology module!!
!logical,parameter :: cosmological=.true.
!> Thermal: minimum temperature
real(kind=dp),parameter :: minitemp=1.0 ! minimum temperature
!> Thermal: fraction of the cooling time step below which no iteration is done
real(kind=dp),parameter :: relative_denergy=0.1
!
!> Source properties: Photon per atom for high mass sources
real,parameter :: phot_per_atom1=250.0
!> Source properties: Photon per atom for low mass sources
real,parameter :: phot_per_atom2=250.0
!> Source properties: Life time of sources (if set at compile time)
real,parameter :: lifetime=20e6*YEAR
!> Source properties: Lower limit neutral fraction for suppression criterion
real,parameter :: StillNeutral=0.9 ! lower limit of neutral criterium
!> Source properties: Upper limit for low mass sources (not used)
real,parameter :: LowMassLimit=1e9 ! in solar masses
end module c2ray_parameters