Class saturate_co2_p81
In: saturate/saturate_co2_p81.f90

CO2 condensation temperature (Pollack et al., 1981)

Note that Japanese and English are described in parallel.

References

  • Pollack, J. B., C. B. Leovy, P. W. Greiman, and Y. Mintz, 1981: A Martian general circulation experiment with large topography, J. Atmos. Sci., 38, 3--29.

Procedures List

!$ ! DryConvAdjust :乾燥対流調節
!$ ! ———— :————
!$ ! DryConvAdjust :Dry convective adjustment

NAMELIST

NAMELIST#major_comp_saturate_nml

Methods

Included Modules

dc_types namelist_util dc_message dc_string

Public Instance methods

Subroutine :

saturate_co2_p81 モジュールの初期化を行います. NAMELIST#saturate_co2_p81_nml の読み込みはこの手続きで行われます.

"saturate_co2_p81" module is initialized. "NAMELIST#saturate_co2_p81_nml" is loaded in this procedure.

[Source]

  subroutine SaturateCO2P81Init
    !
    ! saturate_co2_p81 モジュールの初期化を行います. 
    ! NAMELIST#saturate_co2_p81_nml の読み込みはこの手続きで行われます. 
    !
    ! "saturate_co2_p81" module is initialized. 
    ! "NAMELIST#saturate_co2_p81_nml" is loaded in this procedure. 
    !

    ! モジュール引用 ; USE statements
    !

!!$    ! NAMELIST ファイル入力に関するユーティリティ
!!$    ! Utilities for NAMELIST file input
!!$    !
!!$    use namelist_util, only: namelist_filename, NmlutilMsg, NmlutilAryValid
!!$
!!$    ! ファイル入出力補助
!!$    ! File I/O support
!!$    !
!!$    use dc_iounit, only: FileOpen
!!$
!!$    ! 種別型パラメタ
!!$    ! Kind type parameter
!!$    !
!!$    use dc_types, only: STDOUT ! 標準出力の装置番号. Unit number of standard output

    ! 文字列操作
    ! Character handling
    !
    use dc_string, only: StoA


    ! 宣言文 ; 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 /major_comp_saturate_nml/ &
!!$      & FlagUse

          ! デフォルト値については初期化手続 "major_comp_saturate#MajorCompSaturateInit" 
          ! のソースコードを参照のこと. 
          !
          ! Refer to source codes in the initialization procedure
          ! "major_comp_saturate#MajorCompSaturateInit" for the default values. 
          !

    ! 実行文 ; Executable statement
    !

    if ( saturate_co2_p81_inited ) return


    ! デフォルト値の設定
    ! Default values settings
    !


    ! NAMELIST の読み込み
    ! NAMELIST is input
    !
!!$    if ( trim(namelist_filename) /= '' ) then
!!$      call FileOpen( unit_nml, &          ! (out)
!!$        & namelist_filename, mode = 'r' ) ! (in)
!!$
!!$      rewind( unit_nml )
!!$      read( unit_nml,                    &  ! (in)
!!$        & nml = major_comp_saturate_nml, &  ! (out)
!!$        & iostat = iostat_nml )             ! (out)
!!$      close( unit_nml )
!!$
!!$      call NmlutilMsg( iostat_nml, module_name ) ! (in)
!!$!      if ( iostat_nml == 0 ) write( STDOUT, nml = cumulus_adjust_nml )
!!$    end if


    ! 印字 ; Print
    !
    call MessageNotify( 'M', module_name, '----- Initialization Messages -----' )
    call MessageNotify( 'M', module_name, '-- version = %c', c1 = trim(version) )


    saturate_co2_p81_inited = .true.

  end subroutine SaturateCO2P81Init
saturate_co2_p81_inited
Variable :
saturate_co2_p81_inited = .false. :logical, save, public
: 初期設定フラグ. Initialization flag
Function :
xyz_DPressSatDT(size(xyz_Temp,1), size(xyz_Temp,2), size(xyz_Temp,3)) :real(DP)
: Derivative of Condensation temperature with temperature
xyz_Temp(:,:,:) :real(DP), intent(in )
: $ T $ . Air temperature

CO2 相変化

CO2 phase change

[Source]

  function xyz_SaturateCO2P81DPressSatDT( xyz_Temp ) result( xyz_DPressSatDT )
    !
    ! CO2 相変化
    !
    ! CO2 phase change
    !

    ! モジュール引用 ; USE statements
    !


    ! 宣言文 ; Declaration statements
    !
    implicit none

    real(DP), intent(in ):: xyz_Temp (:,:,:)
                              ! $ T $ . 
                              ! Air temperature
    real(DP) :: xyz_DPressSatDT(size(xyz_Temp,1), size(xyz_Temp,2), size(xyz_Temp,3))
                              !
                              ! Derivative of Condensation temperature with temperature

    ! 作業変数
    ! Work variables
    !

    ! 実行文 ; Executable statement
    !


    ! 初期化
    ! Initialization
    !
    if ( .not. saturate_co2_p81_inited ) then
      call MessageNotify( 'E', module_name, 'This module has not been initialized.' )
    end if

    ! CO2 condensation temperature (Pollack et al., 1981)

    xyz_DPressSatDT = xyz_SaturateCO2P81PressSat( xyz_Temp ) / ConstAlpha


  end function xyz_SaturateCO2P81DPressSatDT
Function :
xyz_Press(size(xyz_Temp,1), size(xyz_Temp,2), size(xyz_Temp,3)) :real(DP)
: Saturation pressure
xyz_Temp(:,:,:) :real(DP), intent(in )
: $ T $ . Air temperature

CO2 相変化

CO2 phase change

[Source]

  function xyz_SaturateCO2P81PressSat( xyz_Temp ) result( xyz_Press )
    !
    ! CO2 相変化
    !
    ! CO2 phase change
    !

    ! モジュール引用 ; USE statements
    !


    ! 宣言文 ; Declaration statements
    !
    implicit none

    real(DP), intent(in ):: xyz_Temp (:,:,:)
                              ! $ T $ . 
                              ! Air temperature
    real(DP) :: xyz_Press(size(xyz_Temp,1), size(xyz_Temp,2), size(xyz_Temp,3))
                              !
                              ! Saturation pressure

    ! 作業変数
    ! Work variables
    !

    ! 実行文 ; Executable statement
    !


    ! 初期化
    ! Initialization
    !
    if ( .not. saturate_co2_p81_inited ) then
      call MessageNotify( 'E', module_name, 'This module has not been initialized.' )
    end if

    ! CO2 condensation temperature (Pollack et al., 1981)

    xyz_Press = 1.0_DP / ConstBeta * exp( ( xyz_Temp - ConstTemp0 ) / ConstAlpha )


  end function xyz_SaturateCO2P81PressSat
Function :
xyz_TempCond(size(xyz_Press,1), size(xyz_Press,2), size(xyz_Press,3)) :real(DP)
: Condensation temperature
xyz_Press(:,:,:) :real(DP), intent(in )
: $ p $ . 気圧 (整数レベル). Air pressure (full level)

CO2 相変化

CO2 phase change

[Source]

  function xyz_SaturateCO2P81TempCond( xyz_Press ) result( xyz_TempCond )
    !
    ! CO2 相変化
    !
    ! CO2 phase change
    !

    ! モジュール引用 ; USE statements
    !


    ! 宣言文 ; Declaration statements
    !
    implicit none

    real(DP), intent(in ):: xyz_Press   (:,:,:)
                              ! $ p $ . 気圧 (整数レベル). 
                              ! Air pressure (full level)
    real(DP) :: xyz_TempCond(size(xyz_Press,1), size(xyz_Press,2), size(xyz_Press,3))
                              !
                              ! Condensation temperature

    ! 作業変数
    ! Work variables
    !

    ! 実行文 ; Executable statement
    !


    ! 初期化
    ! Initialization
    !
    if ( .not. saturate_co2_p81_inited ) then
      call MessageNotify( 'E', module_name, 'This module has not been initialized.' )
    end if

    ! CO2 condensation temperature (Pollack et al., 1981)

!!$    xyz_TempCond = 149.2_DP + 6.48_DP * log( 0.135_DP * xyz_Press * 1.0e-2_DP )
    xyz_TempCond = ConstTemp0 + ConstAlpha * log( ConstBeta * xyz_Press )


  end function xyz_SaturateCO2P81TempCond

Private Instance methods

ConstAlpha
Constant :
ConstAlpha = 6.48_DP :real(DP), parameter
ConstBeta
Constant :
ConstBeta = 0.135e-2_DP :real(DP), parameter
ConstTemp0
Constant :
ConstTemp0 = 149.2_DP :real(DP), parameter
module_name
Constant :
module_name = ‘saturate_co2_p81 :character(*), parameter
: モジュールの名称. Module name
version
Constant :
version = ’$Name: $’ // ’$Id: saturate_co2_p81.f90,v 1.2 2014/05/07 09:39:21 murashin Exp $’ :character(*), parameter
: モジュールのバージョン Module version