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 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.

26  type(model_state_type), target, intent(inout) :: current_state
27 
28  von_karman_constant=options_get_real(current_state%options_database, "von_karman_constant")
29  z0=options_get_real(current_state%options_database, "z0")
30  z0th=options_get_real(current_state%options_database, "z0th")
31  alphah=options_get_real(current_state%options_database, "alphah")
32  betam=options_get_real(current_state%options_database, "betam")
33  betah=options_get_real(current_state%options_database, "betah")
34  gammam=options_get_real(current_state%options_database, "gammam")
35  gammah=options_get_real(current_state%options_database, "gammah")
36  pi=options_get_real(current_state%options_database, "pi")
37  cp=options_get_real(current_state%options_database, "cp")
38  rlvap=options_get_real(current_state%options_database, "rlvap")
39  r=options_get_real(current_state%options_database, "r")
40  g=options_get_real(current_state%options_database, "G")
41  convective_limit=options_get_real(current_state%options_database, "convective_limit")
42  ratio_mol_wts=options_get_real(current_state%options_database, "ratio_mol_wts")
43  rlargep=options_get_real(current_state%options_database, "rlargep")
44 
45  rlvap_over_cp=rlvap/cp
46  r_over_cp=r/cp
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.

◆ pi

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

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

◆ 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.