MONC
Functions/Subroutines | Variables
science_constants_mod Module Reference

Scientific constant values used throughout simulations. Each has a default value and this can be overridden by the configuration supplied by the user. More...

Functions/Subroutines

subroutine, public initialise_science_constants (current_state)
 Initialises the scientific constants to read in any values that are overridden in the configuration. More...
 

Variables

real(kind=default_precision), public smallp =1.0e-14
 
real(kind=default_precision), public von_karman_constant
 
real(kind=default_precision), public z0
 
real(kind=default_precision), public z0th
 
real(kind=default_precision), public alphah
 
real(kind=default_precision), public betam
 
real(kind=default_precision), public betah
 
real(kind=default_precision), public gammam
 
real(kind=default_precision), public gammah
 
real(kind=default_precision), public pi
 
real(kind=default_precision) surface_vapour_mixing_ratio
 
real(kind=default_precision), public cp
 
real(kind=default_precision), public rlvap
 
real(kind=default_precision), public rlvap_over_cp
 
real(kind=default_precision), public r
 
real(kind=default_precision), public r_over_cp
 
real(kind=default_precision), public g
 
real(kind=default_precision), public convective_limit
 
real(kind=default_precision), public ratio_mol_wts
 
real(kind=default_precision), public rlargep
 
real(kind=default_precision), public qlcrit
 
real(kind=default_precision), public mprog_min =1.e-8
 
real(kind=default_precision), public seconds_in_a_day =86400.0
 

Detailed Description

Scientific constant values used throughout simulations. Each has a default value and this can be overridden by the configuration supplied by the user.

Function/Subroutine Documentation

◆ initialise_science_constants()

subroutine, public science_constants_mod::initialise_science_constants ( type(model_state_type), intent(inout), target  current_state)

Initialises the scientific constants to read in any values that are overridden in the configuration.

Parameters
current_stateThe current model state

Definition at line 26 of file scienceconstants.F90.

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 
46  rlvap_over_cp=rlvap/cp
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 
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ alphah

real(kind=default_precision), public science_constants_mod::alphah

Definition at line 13 of file scienceconstants.F90.

◆ betah

real(kind=default_precision), public science_constants_mod::betah

Definition at line 13 of file scienceconstants.F90.

◆ betam

real(kind=default_precision), public science_constants_mod::betam

Definition at line 13 of file scienceconstants.F90.

◆ convective_limit

real(kind=default_precision), public science_constants_mod::convective_limit

Definition at line 13 of file scienceconstants.F90.

◆ cp

real(kind=default_precision), public science_constants_mod::cp

Definition at line 13 of file scienceconstants.F90.

◆ g

real(kind=default_precision), public science_constants_mod::g

Definition at line 13 of file scienceconstants.F90.

◆ gammah

real(kind=default_precision), public science_constants_mod::gammah

Definition at line 13 of file scienceconstants.F90.

◆ gammam

real(kind=default_precision), public science_constants_mod::gammam

Definition at line 13 of file scienceconstants.F90.

◆ mprog_min

real(kind=default_precision), public science_constants_mod::mprog_min =1.e-8

Definition at line 13 of file scienceconstants.F90.

◆ pi

real(kind=default_precision), public science_constants_mod::pi

Definition at line 13 of file scienceconstants.F90.

◆ qlcrit

real(kind=default_precision), public science_constants_mod::qlcrit

Definition at line 13 of file scienceconstants.F90.

◆ r

real(kind=default_precision), public science_constants_mod::r

Definition at line 13 of file scienceconstants.F90.

◆ r_over_cp

real(kind=default_precision), public science_constants_mod::r_over_cp

Definition at line 13 of file scienceconstants.F90.

◆ ratio_mol_wts

real(kind=default_precision), public science_constants_mod::ratio_mol_wts

Definition at line 13 of file scienceconstants.F90.

◆ rlargep

real(kind=default_precision), public science_constants_mod::rlargep

Definition at line 13 of file scienceconstants.F90.

◆ rlvap

real(kind=default_precision), public science_constants_mod::rlvap

Definition at line 13 of file scienceconstants.F90.

◆ rlvap_over_cp

real(kind=default_precision), public science_constants_mod::rlvap_over_cp

Definition at line 13 of file scienceconstants.F90.

◆ seconds_in_a_day

real(kind=default_precision), public science_constants_mod::seconds_in_a_day =86400.0

Definition at line 17 of file scienceconstants.F90.

17  real(kind=default_precision) :: seconds_in_a_day=86400.0

◆ smallp

real(kind=default_precision), public science_constants_mod::smallp =1.0e-14

Definition at line 13 of file scienceconstants.F90.

13  real(kind=default_precision) :: smallp=1.0e-14, von_karman_constant, z0, z0th, alphah, betam, betah, &
14  gammam, gammah, pi, surface_vapour_mixing_ratio, cp , rlvap, rlvap_over_cp, r, r_over_cp, g,&
15  convective_limit, ratio_mol_wts, rlargep, qlcrit, mprog_min=1.e-8

◆ surface_vapour_mixing_ratio

real(kind=default_precision) science_constants_mod::surface_vapour_mixing_ratio
private

Definition at line 13 of file scienceconstants.F90.

◆ von_karman_constant

real(kind=default_precision), public science_constants_mod::von_karman_constant

Definition at line 13 of file scienceconstants.F90.

◆ z0

real(kind=default_precision), public science_constants_mod::z0

Definition at line 13 of file scienceconstants.F90.

◆ z0th

real(kind=default_precision), public science_constants_mod::z0th

Definition at line 13 of file scienceconstants.F90.

science_constants_mod::cp
real(kind=default_precision), public cp
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