MONC
scienceconstants.F90
Go to the documentation of this file.
1 
6  use state_mod, only : model_state_type
7  implicit none
8 
9 #ifndef TEST_MODE
10  private
11 #endif
12 
16 
17  real(kind=default_precision) :: seconds_in_a_day=86400.0
21 
22 contains
23 
26  subroutine initialise_science_constants(current_state)
27  type(model_state_type), target, intent(inout) :: current_state
28 
29  von_karman_constant=options_get_real(current_state%options_database, "von_karman_constant")
30  z0=options_get_real(current_state%options_database, "z0")
31  z0th=options_get_real(current_state%options_database, "z0th")
32  alphah=options_get_real(current_state%options_database, "alphah")
33  betam=options_get_real(current_state%options_database, "betam")
34  betah=options_get_real(current_state%options_database, "betah")
35  gammam=options_get_real(current_state%options_database, "gammam")
36  gammah=options_get_real(current_state%options_database, "gammah")
37  pi=options_get_real(current_state%options_database, "pi")
38  cp=options_get_real(current_state%options_database, "cp")
39  rlvap=options_get_real(current_state%options_database, "rlvap")
40  r=options_get_real(current_state%options_database, "r")
41  g=options_get_real(current_state%options_database, "G")
42  convective_limit=options_get_real(current_state%options_database, "convective_limit")
43  ratio_mol_wts=options_get_real(current_state%options_database, "ratio_mol_wts")
44  rlargep=options_get_real(current_state%options_database, "rlargep")
45 
47  r_over_cp=r/cp
48 
49  qlcrit=options_get_real(current_state%options_database, "qlcrit")
50  ! AH - qlcrit is used in diagnostics, mprog_min is used in radar reflect
51  ! these should be combined so that mprog_min is used (consistent with
52  ! the UM and makes more sense)
53  !mprog_min=1.e-8
54 
55  end subroutine initialise_science_constants
56 end module science_constants_mod
science_constants_mod::surface_vapour_mixing_ratio
real(kind=default_precision) surface_vapour_mixing_ratio
Definition: scienceconstants.F90:13
science_constants_mod::rlargep
real(kind=default_precision), public rlargep
Definition: scienceconstants.F90:13
science_constants_mod::r_over_cp
real(kind=default_precision), public r_over_cp
Definition: scienceconstants.F90:13
science_constants_mod::gammam
real(kind=default_precision), public gammam
Definition: scienceconstants.F90:13
science_constants_mod::cp
real(kind=default_precision), public cp
Definition: scienceconstants.F90:13
science_constants_mod::qlcrit
real(kind=default_precision), public qlcrit
Definition: scienceconstants.F90:13
science_constants_mod::rlvap
real(kind=default_precision), public rlvap
Definition: scienceconstants.F90:13
optionsdatabase_mod::options_get_string
character(len=string_length) function, public options_get_string(options_database, key, index)
Retrieves a string value from the database that matches the provided key.
Definition: optionsdatabase.F90:280
science_constants_mod::seconds_in_a_day
real(kind=default_precision), public seconds_in_a_day
Definition: scienceconstants.F90:17
science_constants_mod::initialise_science_constants
subroutine, public initialise_science_constants(current_state)
Initialises the scientific constants to read in any values that are overridden in the configuration.
Definition: scienceconstants.F90:27
science_constants_mod
Scientific constant values used throughout simulations. Each has a default value and this can be over...
Definition: scienceconstants.F90:3
science_constants_mod::r
real(kind=default_precision), public r
Definition: scienceconstants.F90:13
science_constants_mod::smallp
real(kind=default_precision), public smallp
Definition: scienceconstants.F90:13
science_constants_mod::ratio_mol_wts
real(kind=default_precision), public ratio_mol_wts
Definition: scienceconstants.F90:13
state_mod::model_state_type
The ModelState which represents the current state of a run.
Definition: state.F90:39
science_constants_mod::betah
real(kind=default_precision), public betah
Definition: scienceconstants.F90:13
science_constants_mod::betam
real(kind=default_precision), public betam
Definition: scienceconstants.F90:13
science_constants_mod::convective_limit
real(kind=default_precision), public convective_limit
Definition: scienceconstants.F90:13
datadefn_mod
Contains common definitions for the data and datatypes used by MONC.
Definition: datadefn.F90:2
science_constants_mod::z0th
real(kind=default_precision), public z0th
Definition: scienceconstants.F90:13
science_constants_mod::alphah
real(kind=default_precision), public alphah
Definition: scienceconstants.F90:13
science_constants_mod::mprog_min
real(kind=default_precision), public mprog_min
Definition: scienceconstants.F90:13
science_constants_mod::z0
real(kind=default_precision), public z0
Definition: scienceconstants.F90:13
science_constants_mod::von_karman_constant
real(kind=default_precision), public von_karman_constant
Definition: scienceconstants.F90:13
optionsdatabase_mod
Manages the options database. Contains administration functions and deduce runtime options from the c...
Definition: optionsdatabase.F90:7
science_constants_mod::pi
real(kind=default_precision), public pi
Definition: scienceconstants.F90:13
science_constants_mod::gammah
real(kind=default_precision), public gammah
Definition: scienceconstants.F90:13
optionsdatabase_mod::options_get_real
real(kind=default_precision) function, public options_get_real(options_database, key, index)
Retrieves a real value from the database that matches the provided key.
Definition: optionsdatabase.F90:91
datadefn_mod::default_precision
integer, parameter, public default_precision
MPI communication type which we use for the prognostic and calculation data.
Definition: datadefn.F90:17
state_mod
The model state which represents the current state of a run.
Definition: state.F90:2
science_constants_mod::rlvap_over_cp
real(kind=default_precision), public rlvap_over_cp
Definition: scienceconstants.F90:13
science_constants_mod::g
real(kind=default_precision), public g
Definition: scienceconstants.F90:13