Class constants
In: setup/constants.f90

����å®��°è¨­å®�

Physical constants settings

Note that Japanese and English are described in parallel.

����å®��°ã��¨­å®������³ä�管ã��è¡����¾ã��. �����������¤ã���°ç��大æ����³å������¤ã��設å����������¾ã��. ���������¤ã�� NAMELIST å¤��°ç¾¤ constants_nml �����£ã����´ã���������� ���½ã�§ã��.

Physical constants are set and stored. By default, values on atmosphere of earth are set. These values can be changed by NAMELIST group name "constants_nml".

References

WMO technical regulations, No. 49, Vol. I General Meteorological Standards and Recommended Practices, www.wmo.int/pages/prog/www/WIS/Publications/49%20%28Technical%20Regulations%29/49%20-%20Volume%20I/49_I_E.pdf#page=61

Procedures List

ConstantsInit :����å®��°ã��¨­å®�
———— :————
ConstantsInit :Settings of physical constants

NAMELIST

NAMELIST#constants_nml

Methods

Included Modules

dc_types namelist_util dc_iounit dc_message constants0

Public Instance methods

Subroutine :

constants �¢ã�¸ã�¥ã�¼ã������������è¡����¾ã��. NAMELIST#constants_nml ����¿è¾¼�¿ã��������ç¶����§è�����¾ã��.

"constants" module is initialized. NAMELIST#constants_nml is loaded in this procedure.

This procedure input/output NAMELIST#constants_nml .

[Source]

  subroutine ConstantsInit
    !
    ! constants �¢ã�¸ã�¥ã�¼ã������������è¡����¾ã��. 
    ! NAMELIST#constants_nml ����¿è¾¼�¿ã��������ç¶����§è�����¾ã��. 
    !
    ! "constants" module is initialized. 
    ! NAMELIST#constants_nml is loaded in this procedure. 
    !

    ! �¢ã�¸ã�¥ã�¼ã����� ; USE statements
    !

    ! NAMELIST ���¡ã�¤ã���¥å�����¢ã�������¼ã���£ã������
    ! Utilities for NAMELIST file input
    !
    use namelist_util, only: namelist_filename, NmlutilMsg

    ! ���¡ã�¤ã���¥å�ºå��è£���
    ! File I/O support
    !
    use dc_iounit, only: FileOpen

    ! ç¨��¥å�������¡ã��
    ! Kind type parameter
    !
    use dc_types, only: STDOUT ! æ¨�æº��ºå�����ç½����. Unit number of standard output

    ! �¡ã���»ã�¼ã�¸å�ºå��
    ! Message output
    !
    use dc_message, only: MessageNotify

    ! �����»æ�°å­¦å®��°è¨­å®�
    ! Physical and mathematical constants settings
    !
    use constants0, only: PI, GasRUniv

    ! 宣�� ; Declaration statements
    !
    implicit none

    integer:: unit_nml        ! NAMELIST ���¡ã�¤ã�����¼ã���³ç���ç½����. 
                              ! Unit number for NAMELIST file open
    integer:: iostat_nml      ! NAMELIST 読ã�¿è¾¼�¿æ���� IOSTAT. 
                              ! IOSTAT of NAMELIST read

    ! NAMELIST å¤��°ç¾¤
    ! NAMELIST group name
    !
    namelist /constants_nml/ RPlanet, Omega, Grav, MolWtDry, CpDry, MolWtWet, CpWet, LatentHeat, LatentHeatFusion
          !
          ! �����������¤ã���¤ã��������������ç¶� "constants#ConstantsInit" 
          ! ���½ã�¼ã�¹ã�³ã�¼ã�������§ã������. 
          !
          ! Refer to source codes in the initialization procedure
          ! "constants#ConstantsInit" for the default values. 
          !

    ! ���� ; Executable statement
    !

    if ( constants_inited ) return

    ! �����������¤ã��¨­å®�
    ! Default values settings
    !
    RPlanet          = 6.371e6_DP
    Omega            = 2.0_DP * PI / ( 60.0_DP * 60.0_DP * 23.9345_DP )

!    Grav             = 9.8_DP    ! old value
    Grav             = 9.80665_DP
                       ! standard acceleration of gravity (m s-2)
                       ! WMO technical regulations (see above)

    CpDry            = 1004.6_DP

!    MolWtDry         = 28.964e-3_DP    ! old value
    MolWtDry         = 28.9644e-3_DP
                       ! WMO technical regulations (see above)

    CpWet            = 1810.0_DP

!    MolWtWet         = 18.01528e-3_DP    ! old value
    MolWtWet         = 18.0153e-3_DP
                       ! WMO technical regulations (see above)

    LatentHeat       = 2.5e6_DP 
    LatentHeatFusion = 334.0e3_DP

    ! NAMELIST �������¥å��
    ! Input from NAMELIST
    !
    if ( trim(namelist_filename) /= '' ) then
      call FileOpen( unit_nml, namelist_filename, mode = 'r' ) ! (in)

      rewind( unit_nml )
      read( unit_nml, nml = constants_nml, iostat = iostat_nml )   ! (out)
      close( unit_nml )

      call NmlutilMsg( iostat_nml, module_name ) ! (in)
      if ( iostat_nml == 0 ) write( STDOUT, nml = constants_nml )
    end if

    GasRDry          = GasRUniv / MolWtDry
    GasRWet          = GasRUniv / MolWtWet
    EpsV             = MolWtWet / MolWtDry


    ! �°å� ; Print
    !
    call MessageNotify( 'M', module_name, '----- Initialization Messages -----' )
    call MessageNotify( 'M', module_name, '  RPlanet          = %f', d = (/ RPlanet          /) )
    call MessageNotify( 'M', module_name, '  Omega            = %f', d = (/ Omega            /) )
    call MessageNotify( 'M', module_name, '  Grav             = %f', d = (/ Grav             /) )

    call MessageNotify( 'M', module_name, '  CpDry            = %f', d = (/ CpDry            /) )
    call MessageNotify( 'M', module_name, '  MolWtDry         = %f', d = (/ MolWtDry         /) )

    call MessageNotify( 'M', module_name, '  CpWet            = %f', d = (/ CpWet            /) )
    call MessageNotify( 'M', module_name, '  MolWtWet         = %f', d = (/ MolWtWet         /) )
    call MessageNotify( 'M', module_name, '  LatentHeat       = %f', d = (/ LatentHeat       /) )
    call MessageNotify( 'M', module_name, '  LatentHeatFusion = %f', d = (/ LatentHeatFusion /) )

    call MessageNotify( 'M', module_name, '  GasRDry          = %f', d = (/ GasRDry          /) )
    call MessageNotify( 'M', module_name, '  GasRWet          = %f', d = (/ GasRWet          /) )
    call MessageNotify( 'M', module_name, '  EpsV             = %f', d = (/ EpsV             /) )
    call MessageNotify( 'M', module_name, '  FKarm            = %f', d = (/ FKarm            /) )
    call MessageNotify( 'M', module_name, '-- version = %c', c1 = trim(version) )

    constants_inited = .true.

  end subroutine ConstantsInit
CpDry
Variable :
CpDry :real(DP), save, public
: $ C_p $ [J kg-1 K-1]. ä¹¾ç�¥å¤§æ°�����§æ���. Specific heat of air at constant pressure
CpWet
Variable :
CpWet :real(DP), save, public
: $ C_v $ [J kg-1 K-1] . ��çµ���������§æ���. Specific heat of condensible elements at constant pressure
EpsV
Variable :
EpsV :real(DP), save, public
: $ epsilon_v $ . æ°´è�¸æ���å­��閴�. Molecular weight of water vapor
FKarm
Constant :
FKarm = 0.4_DP :real(DP), parameter, public
: $ k $ . �������³å���. Karman constant
GasRDry
Variable :
GasRDry :real(DP), save, public
: $ R $ [J kg-1 K-1]. 乾�大��������. Gas constant of air
GasRWet
Variable :
GasRWet :real(DP), save, public
: $ R_v $ [J kg-1 K-1]. ��������������. Gas constant of condensible elements EpsV will be removed.
Grav
Variable :
Grav :real(DP), save, public
: $ g $ [m s-2]. ���������. Gravitational acceleration
LatentHeat
Variable :
LatentHeat :real(DP), save, public
: $ L $ [J kg-1] . ��������. Latent heat of condensation
LatentHeatFusion
Variable :
LatentHeatFusion :real(DP), save, public
: $ L $ [J kg-1] . ��解����. Latent heat of fusion
MolWtDry
Variable :
MolWtDry :real(DP), save, public
: $ M $ [kg mol-1]. ä¹¾ç�¥å¤§æ°���¹³����å­���. Mean molecular weight of dry air
MolWtWet
Variable :
MolWtWet :real(DP), save, public
: $ M_v $ [kg mol-1]. ��çµ�������¹³����å­���. Mean molecular weight of condensible elements
Omega
Variable :
Omega :real(DP), save, public
: $ Omega $ [s-1]. ��転���. Angular velocity
RPlanet
Variable :
RPlanet :real(DP), save, public
: $ a $ [m]. �������. Radius of planet

Private Instance methods

constants_inited
Variable :
constants_inited = .false. :logical, save
: ����設������. Initialization flag
module_name
Constant :
module_name = ‘constants :character(*), parameter
: �¢ã�¸ã�¥ã�¼ã������ç§�. Module name
version
Constant :
version = ’$Name: $’ // ’$Id: constants.f90,v 1.11 2014/05/07 09:39:21 murashin Exp $’ :character(*), parameter
: �¢ã�¸ã�¥ã�¼ã�������¼ã�¸ã�§ã�� Module version