Class | rad_CL1996 |
In: |
radiation/rad_CL1996.f90
|
Note that Japanese and English are described in parallel.
短波放射モデル.
This is a model of short wave radiation.
Chou, M.-D., and K.-T. Lee, Parameterizations for the absorption of solar radiation by water vapor and ozone, J. Atmos. Sci., 53, 1203-1208, 1996.
!$ ! RadiationFluxDennouAGCM : | 放射フラックスの計算 |
!$ ! RadiationDTempDt : | 放射フラックスによる温度変化の計算 |
!$ ! RadiationFluxOutput : | 放射フラックスの出力 |
!$ ! RadiationFinalize : | 終了処理 (モジュール内部の変数の割り付け解除) |
!$ ! ———— : | ———— |
!$ ! RadiationFluxDennouAGCM : | Calculate radiation flux |
!$ ! RadiationDTempDt : | Calculate temperature tendency with radiation flux |
!$ ! RadiationFluxOutput : | Output radiation fluxes |
!$ ! RadiationFinalize : | Termination (deallocate variables in this module) |
!$ ! NAMELIST#radiation_DennouAGCM_nml
Subroutine : | |
iband : | integer , intent(in ) |
ikdfbin : | integer , intent(in ) |
KDFAbsCoef : | real(DP), intent(out) |
KDFWeight : | real(DP), intent(out) |
subroutine RadCL1996IRH2OKDFParams( iband, ikdfbin, KDFAbsCoef, KDFWeight ) ! USE statements ! integer , intent(in ):: iband integer , intent(in ):: ikdfbin real(DP), intent(out):: KDFAbsCoef real(DP), intent(out):: KDFWeight ! ! Work variables ! integer :: l integer :: m ! 初期化確認 ! Initialization check ! if ( .not. rad_cl1996_inited ) then call MessageNotify( 'E', module_name, 'This module has not been initialized.' ) end if l = iband m = ikdfbin KDFAbsCoef = a_IRH2Okdfk (m) KDFWeight = aa_IRH2Okdfdgi(m,l) end subroutine RadCL1996IRH2OKDFParams
Subroutine : | |
nbin : | integer, intent(out) |
subroutine RadCL1996IRH2ONumKDFBin( nbin ) integer, intent(out) :: nbin ! 初期化確認 ! Initialization check ! if ( .not. rad_cl1996_inited ) then call MessageNotify( 'E', module_name, 'This module has not been initialized.' ) end if nbin = nkdf end subroutine RadCL1996IRH2ONumKDFBin
Subroutine : |
subroutine RadCL1996Init !!$ ! NAMELIST ファイル入力に関するユーティリティ !!$ ! Utilities for NAMELIST file input !!$ ! !!$ use namelist_util, only: NmlutilMsg !!$ ! ファイル入出力補助 !!$ ! File I/O support !!$ ! !!$ use dc_iounit, only: FileOpen !!$ ! ヒストリデータ出力 !!$ ! History data output !!$ ! !!$ use gtool_historyauto, only: HistoryAutoAddVariable !!$ integer:: unit_nml ! NAMELIST ファイルオープン用装置番号. !!$ ! Unit number for NAMELIST file open !!$ integer:: iostat_nml ! NAMELIST 読み込み時の IOSTAT. !!$ ! IOSTAT of NAMELIST read !!$ ! NAMELIST 変数群 !!$ ! NAMELIST group name !!$ ! !!$ namelist /rad_CL1996_nml/ !& !!$ & ShortAtmosAlbedo !!$ ! !!$ ! デフォルト値については初期化手続 "rad_CL1996#RadCL1996Init" !!$ ! のソースコードを参照のこと. !!$ ! !!$ ! Refer to source codes in the initialization procedure !!$ ! "rad_LH74#RadLH74Init" for the default values. !!$ ! if ( rad_cl1996_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 = rad_CL1996_nml, & ! (out) !!$ & iostat = iostat_nml ) ! (out) !!$ close( unit_nml ) !!$ !!$ call NmlutilMsg( iostat_nml, module_name ) ! (in) !!$ end if ! Unit is changed of k from g-1 cm2 to kg-1 m2. ! a_IRH2Okdfk = a_IRH2Okdfk * 1.0d3 * 1.0d-4 ! Convert unit of O3 absorption coefficient from (cm-atm)^{-1} to (kg m-2)^{-1} ! In order to convert unit from cm-1 atm-1 to m2 kg-1, multiply by ! 1.0d2 / 101325.0d0 * 8.31432d0 / ( 48.0d-3 ) * 273.15d0. ! a_UVVISO3AbsCoef = a_UVVISO3AbsCoef * 1.0d2 / 101325.0d0 * 8.31432d0 / ( 48.0d-3 ) * 273.15d0 ! Convert unit of Rayleigh scattering coefficient from (mb)^{-1} to (kg m-2)^{-1} ! memo: ! 1 mbar = 1e2 Pa ! 1e-2 mbar = 1 Pa ! ! In order to convert unit from (mb)^{-1} to (kg m-2)^{-1}, scattering ! coefficient is multiplied by 1.0d-1 * g, where g is the gravitational ! acceleration. In the old version of the code, a variable Grav in constants ! module is used for gravitational acceleration, as is shown in a line below. ! However, this variable is replaced with a constant value 9.8_DP. ! This is because the value of Grav may be changed to a value which is ! different from the Earth's value. (Of course, the scattering coefficient ! in unit of (kg m-2)^{-1} is independent on gravitational acceleration.) ! !!$ a_UVVISRayScatCoef = a_UVVISRayScatCoef * 1.0d-2 * Grav a_UVVISRayScatCoef = a_UVVISRayScatCoef * 1.0d-2 * 9.8_DP ! 印字 ; Print ! call MessageNotify( 'M', module_name, '----- Initialization Messages -----' ) !!$ call MessageNotify( 'M', module_name, 'ShortAtmosAlbedo = %f', d = (/ ShortAtmosAlbedo /) ) call MessageNotify( 'M', module_name, '-- version = %c', c1 = trim(version) ) rad_cl1996_inited = .true. end subroutine RadCL1996Init
Subroutine : | |
nbands1 : | integer, intent(out) |
nbands2 : | integer, intent(out) |
subroutine RadCL1996NumBands( nbands1, nbands2 ) integer, intent(out) :: nbands1 integer, intent(out) :: nbands2 ! 初期化確認 ! Initialization check ! if ( .not. rad_cl1996_inited ) then call MessageNotify( 'E', module_name, 'This module has not been initialized.' ) end if nbands1 = nband1 nbands2 = nband2 end subroutine RadCL1996NumBands
Subroutine : | |
xyz_Temp(0:imax-1, 1:jmax, 1:kmax) : | real(DP), intent(in ) |
xyz_DelH2OVapMass(0:imax-1, 1:jmax, 1:kmax) : | real(DP), intent(in ) |
xyz_Press(0:imax-1, 1:jmax, 1:kmax) : | real(DP), intent(in ) |
xyz_DelH2OVapMassScaled(0:imax-1, 1:jmax, 1:kmax) : | real(DP), intent(out) |
subroutine RadCL1996ScaleH2OVapMass( xyz_Temp, xyz_DelH2OVapMass, xyz_Press, xyz_DelH2OVapMassScaled ) ! USE statements ! real(DP), intent(in ):: xyz_Temp (0:imax-1, 1:jmax, 1:kmax) real(DP), intent(in ):: xyz_DelH2OVapMass (0:imax-1, 1:jmax, 1:kmax) real(DP), intent(in ):: xyz_Press (0:imax-1, 1:jmax, 1:kmax) real(DP), intent(out):: xyz_DelH2OVapMassScaled(0:imax-1, 1:jmax, 1:kmax) ! ! Work variables ! real(DP), parameter :: H2OScaleIndex = 0.8_DP real(DP), parameter :: RefPress = 300.0d2 real(DP), parameter :: RefTemp = 240.0d0 ! 初期化確認 ! Initialization check ! if ( .not. rad_cl1996_inited ) then call MessageNotify( 'E', module_name, 'This module has not been initialized.' ) end if xyz_DelH2OVapMassScaled = ( xyz_Press / RefPress )**H2OScaleIndex * exp( 0.00135_DP * ( xyz_Temp - RefTemp ) ) * xyz_DelH2OVapMass end subroutine RadCL1996ScaleH2OVapMass
Subroutine : | |
iband : | integer , intent(in ) |
UVVISFracSolarFlux : | real(DP), intent(out) |
UVVISO3AbsCoef : | real(DP), intent(out) |
UVVISRayScatCoef : | real(DP), intent(out) |
subroutine RadCL1996UVVISParams( iband, UVVISFracSolarFlux, UVVISO3AbsCoef, UVVISRayScatCoef ) ! USE statements ! integer , intent(in ):: iband real(DP), intent(out):: UVVISFracSolarFlux real(DP), intent(out):: UVVISO3AbsCoef real(DP), intent(out):: UVVISRayScatCoef ! ! Work variables ! integer :: l ! 初期化確認 ! Initialization check ! if ( .not. rad_cl1996_inited ) then call MessageNotify( 'E', module_name, 'This module has not been initialized.' ) end if l = iband UVVISFracSolarFlux = a_UVVIFracSolarFlux(l) UVVISO3AbsCoef = a_UVVISO3AbsCoef (l) UVVISRayScatCoef = a_UVVISRayScatCoef (l) end subroutine RadCL1996UVVISParams
Variable : | |||
aa_IRH2Okdfdgi(1:nkdf,nband1+1:nband1+nband2) : | real(DP), save
|
Constant : | |||
version = ’$Name: dcpam5-20120226 $’ // ’$Id: rad_CL1996.f90,v 1.4 2011-06-19 11:12:42 yot Exp $’ : | character(*), parameter
|