Class | saturate_nha1992 |
In: |
saturate/saturate_nha1992.f90
|
Note that Japanese and English are described in parallel.
Nakajima et al. (1992) �§ç����������飽å���¸æ��� $ p^{*} $ ���¢ã����以ä���� ������, 飽å��æ¯�湿ã�����³é���æ¯�湿ã��¸©åº�¾®�����¤ã��ç®��ºã���¾ã��.
Saturation specific humidity and temperature derivative of it are calculated with a folloing formula for saturation watar vapor pressure $ p^{*} $ in Nakajima et al. (1992).
\[
p^{*} (T) = p_0^{*} \exp \left( - \frac{l}{RT} \right).
\]
������, $ T $ ��¸©åº�, $ R $ ������æ°�ä½�å®��°ã�§ã��. $ R $ �����³æ��� $ l $ , æ°´è�¸æ�飽å���²ç������ $ p_0^{*} $ ��»¥ä¸�����������������¾ã��.
where $ T $ is temperature, $ R $ is the gas constant. $ R $ and latent heat $ l $ , constant for the water vapor saturation curve $ p_0^{*} $ are as follows.
飽å��æ°´è�¸æ��§ã����飽å��æ¯�æ¹� $ q^{*} $ ��æ±�����������, 以ä�����������¾ã��.
Saturation specific humidity $ q^{*} $ is calculated from saturation watar vapor pressure as follows.
\[
q^{*} (T, p) = \varepsilon \frac{p^{*} (T)}{p}
\]
������ $ varepsilon $ ����çµ�������¤§æ°�����å��閴�, $ p $ ����§ã�§ã��.
where $ varepsilon $ is molecular weight ratio of water vapor to air, $ p $ is air pressure.
å¾��£ã��, 飽å��æ¯�æ¹�, 飽å��æ¯�湿ã��¸©åº������æ±�����å¼��»¥ä¸��������� �����¾ã��.
Therefore, saturation specific humidity and temperature derivative of it are calculated as follows.
\[
q^{*} (T, p) = \varepsilon \frac{p_0^{*}}{p} \exp \left( - \frac{l}{RT} \right), \] \[ \DP{q^{*} (T, p)}{T} = \varepsilon \frac{p_0^{*}}{p} \frac{l}{RT^2} \exp \left( - \frac{l}{RT} \right) = q^{*} \frac{l}{RT^2}
\]
CalcQVapSat : | 飽��湿��� |
CalcDQVapSatDTemp : | 飽å��æ¯�湿ã��¸©åº�¾®�����ç®� |
———— : | ———— |
CalcQVapSat : | Calculate saturation specific humidity |
CalcDQVapSatDTemp : | Calculate temperature derivative of saturation specific humidity |
Subroutine : |
saturate_nha1992 �¢ã�¸ã�¥ã�¼ã������������è¡����¾ã��.
"saturate_nha1992" module is initialized.
subroutine SaturateInit ! ! saturate_nha1992 �¢ã�¸ã�¥ã�¼ã������������è¡����¾ã��. ! ! ! "saturate_nha1992" module is initialized. ! ! �¢ã�¸ã�¥ã�¼ã����� ; 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 ! ��å�����ä½� ! Character handling ! use dc_string, only: StoA ! ���¹ã�������¼ã�¿å�ºå�� ! History data output ! use gtool_historyauto, only: HistoryAutoAddVariable ! 宣è��� ; 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 /saturate_nha1992_nml/ ! ! �����������¤ã���¤ã��������������ç¶� "saturate_nha1992#SaturateInit" ! ���½ã�¼ã�¹ã�³ã�¼ã�������§ã������. ! ! Refer to source codes in the initialization procedure ! "saturate_nha1992#SaturateInit" for the default values. ! ! å®�è¡��� ; Executable statement ! if ( saturate_nha1992_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 = saturate_nha1992_nml, & ! (out) !!$ & iostat = iostat_nml ) ! (out) !!$ close( unit_nml ) !!$ !!$ call NmlutilMsg( iostat_nml, module_name ) ! (in) !!$ end if ! �°å� ; Print ! call MessageNotify( 'M', module_name, '----- Initialization Messages -----' ) call MessageNotify( 'M', module_name, '-- version = %c', c1 = trim(version) ) saturate_nha1992_inited = .true. end subroutine SaturateInit
Variable : | |||
saturate_nha1992_inited = .false. : | logical, save, public
|
Function : | |||
xyz_DQVapSatDTemp(size(xyz_Temp,1), size(xyz_Temp,2), size(xyz_Temp,3)) : | real(DP)
| ||
xyz_Temp(:,:,:) : | real(DP), intent(in)
| ||
xyz_QVapSat(:,:,:) : | real(DP), intent(in)
|
æ¸�º¦ Temp �����æ¯�æ¹� QVapSat ������, 飽å��æ¯�湿ã��¸©åº�¾®�� DQVapSatDTemp ��æ±����¾ã��.
Calculate temperature derivative of saturation specific humidity DQVapSatDTemp using temperature Temp and saturation specific humidity QVapSat.
function xyz_CalcDQVapSatDTempOnLiq( xyz_Temp, xyz_QVapSat ) result( xyz_DQVapSatDTemp ) ! ! æ¸�º¦ *Temp* �����æ¯�æ¹� *QVapSat* ������, ! 飽å��æ¯�湿ã��¸©åº�¾®�� *DQVapSatDTemp* ��æ±����¾ã��. ! ! Calculate temperature derivative of saturation specific humidity ! *DQVapSatDTemp* using ! temperature *Temp* and saturation specific humidity *QVapSat*. ! ! �¢ã�¸ã�¥ã�¼ã����� ; USE statements ! ! �����»æ�°å¦å®��°è¨å®� ! Physical and mathematical constants settings ! use constants0, only: GasRUniv ! $ R^{*} $ [J K-1 mol-1]. ! ����æ°�ä½�å®���. Universal gas constant ! 宣è��� ; Declaration statements ! implicit none real(DP), intent(in):: xyz_Temp (:,:,:) ! $ T $ . æ¸�º¦. Temperature real(DP), intent(in):: xyz_QVapSat(:,:,:) ! $ q^{*} $ . 飽å��æ¯�æ¹�. Saturation specific humidity real(DP):: xyz_DQVapSatDTemp(size(xyz_Temp,1), size(xyz_Temp,2), size(xyz_Temp,3)) ! $ \DP{q^{*}}{T} $ . 飽å��æ¯�湿ã��¸©åº�¾®��. ! Temperature derivative of saturation specific humidity. ! ä½�æ¥å��� ! Work variables ! ! å®�è¡��� ; Executable statement ! if ( .not. saturate_nha1992_inited ) then call MessageNotify( 'E', module_name, 'This module has not been initialized.' ) end if ! 飽å��æ¯�湿ã��¸©åº�¾®�����ç®� ! Calculate temperature derivative of saturation specific humidity ! xyz_DQVapSatDTemp = xyz_QVapSat * LatHeat / ( GasRUniv * xyz_Temp**2 ) end function xyz_CalcDQVapSatDTempOnLiq
Function : | |||
xyz_DQVapSatDTemp(size(xyz_Temp,1), size(xyz_Temp,2), size(xyz_Temp,3)) : | real(DP)
| ||
xyz_Temp(:,:,:) : | real(DP), intent(in)
| ||
xyz_QVapSat(:,:,:) : | real(DP), intent(in)
|
æ¸�º¦ Temp �����æ¯�æ¹� QVapSat ������, 飽å��æ¯�湿ã��¸©åº�¾®�� DQVapSatDTemp ��æ±����¾ã��.
Calculate temperature derivative of saturation specific humidity DQVapSatDTemp using temperature Temp and saturation specific humidity QVapSat.
function xyz_CalcDQVapSatDTempOnSol( xyz_Temp, xyz_QVapSat ) result( xyz_DQVapSatDTemp ) ! ! æ¸�º¦ *Temp* �����æ¯�æ¹� *QVapSat* ������, ! 飽å��æ¯�湿ã��¸©åº�¾®�� *DQVapSatDTemp* ��æ±����¾ã��. ! ! Calculate temperature derivative of saturation specific humidity ! *DQVapSatDTemp* using ! temperature *Temp* and saturation specific humidity *QVapSat*. ! ! �¢ã�¸ã�¥ã�¼ã����� ; USE statements ! ! 宣è��� ; Declaration statements ! implicit none real(DP), intent(in):: xyz_Temp (:,:,:) ! $ T $ . æ¸�º¦. Temperature real(DP), intent(in):: xyz_QVapSat(:,:,:) ! $ q^{*} $ . 飽å��æ¯�æ¹�. Saturation specific humidity real(DP):: xyz_DQVapSatDTemp(size(xyz_Temp,1), size(xyz_Temp,2), size(xyz_Temp,3)) ! $ \DP{q^{*}}{T} $ . 飽å��æ¯�湿ã��¸©åº�¾®��. ! Temperature derivative of saturation specific humidity. ! ä½�æ¥å��� ! Work variables ! ! å®�è¡��� ; Executable statement ! if ( .not. saturate_nha1992_inited ) then call MessageNotify( 'E', module_name, 'This module has not been initialized.' ) end if ! 飽å��æ¯�湿ã��¸©åº�¾®�����ç®� ! Calculate temperature derivative of saturation specific humidity ! xyz_DQVapSatDTemp = xyz_CalcDQVapSatDTempOnLiq( xyz_Temp, xyz_QVapSat ) end function xyz_CalcDQVapSatDTempOnSol
Function : | |||
xyz_QVapSat(size(xyz_Temp,1), size(xyz_Temp,2), size(xyz_Temp,3)) : | real(DP)
| ||
xyz_Temp(:,:,:) : | real(DP), intent(in)
| ||
xyz_Press(:,:,:) : | real(DP), intent(in)
|
æ¸�º¦ Temp ����� Press ������, 飽å��æ¯�æ¹� QVapSat ��æ±����¾ã��.
Calculate saturation specific humidity QVapSat using temperature Temp and air pressure Press.
function xyz_CalcQVapSatOnLiq( xyz_Temp, xyz_Press ) result( xyz_QVapSat ) ! ! æ¸�º¦ *Temp* ����� *Press* ������, ! 飽å��æ¯�æ¹� *QVapSat* ��æ±����¾ã��. ! ! Calculate saturation specific humidity *QVapSat* using ! temperature *Temp* and air pressure *Press*. ! ! �¢ã�¸ã�¥ã�¼ã����� ; USE statements ! ! �����»æ�°å¦å®��°è¨å®� ! Physical and mathematical constants settings ! use constants0, only: GasRUniv ! $ R^{*} $ [J K-1 mol-1]. ! ����æ°�ä½�å®���. Universal gas constant ! ����å®��°è¨å®� ! Physical constants settings ! use constants, only: EpsV ! $ \epsilon_v $ . ! æ°´è�¸æ���å��閴�. ! Molecular weight of water vapor ! 宣è��� ; Declaration statements ! implicit none real(DP), intent(in):: xyz_Temp (:,:,:) ! $ T $ . æ¸�º¦. Temperature real(DP), intent(in):: xyz_Press(:,:,:) ! $ p $ . æ°���. Air pressure real(DP):: xyz_QVapSat(size(xyz_Temp,1), size(xyz_Temp,2), size(xyz_Temp,3)) ! $ q^{*} $ . 飽å��æ¯�æ¹�. Saturation specific humidity ! ä½�æ¥å��� ! Work variables ! ! å®�è¡��� ; Executable statement ! if ( .not. saturate_nha1992_inited ) then call MessageNotify( 'E', module_name, 'This module has not been initialized.' ) end if ! 飽å��æ¯�湿ã���ç®� ! Calculate saturation specific humidity ! xyz_QVapSat = EpsV * ( P0 / xyz_Press ) * exp ( - LatHeat / ( GasRUniv * xyz_Temp ) ) end function xyz_CalcQVapSatOnLiq
Function : | |||
xyz_QVapSat(size(xyz_Temp,1), size(xyz_Temp,2), size(xyz_Temp,3)) : | real(DP)
| ||
xyz_Temp(:,:,:) : | real(DP), intent(in)
| ||
xyz_Press(:,:,:) : | real(DP), intent(in)
|
æ¸�º¦ Temp ����� Press ������, 飽å��æ¯�æ¹� QVapSat ��æ±����¾ã��.
Calculate saturation specific humidity QVapSat using temperature Temp and air pressure Press.
function xyz_CalcQVapSatOnSol( xyz_Temp, xyz_Press ) result( xyz_QVapSat ) ! ! æ¸�º¦ *Temp* ����� *Press* ������, ! 飽å��æ¯�æ¹� *QVapSat* ��æ±����¾ã��. ! ! Calculate saturation specific humidity *QVapSat* using ! temperature *Temp* and air pressure *Press*. ! ! �¢ã�¸ã�¥ã�¼ã����� ; USE statements ! ! 宣è��� ; Declaration statements ! implicit none real(DP), intent(in):: xyz_Temp (:,:,:) ! $ T $ . æ¸�º¦. Temperature real(DP), intent(in):: xyz_Press(:,:,:) ! $ p $ . æ°���. Air pressure real(DP):: xyz_QVapSat(size(xyz_Temp,1), size(xyz_Temp,2), size(xyz_Temp,3)) ! $ q^{*} $ . 飽å��æ¯�æ¹�. Saturation specific humidity ! ä½�æ¥å��� ! Work variables ! ! å®�è¡��� ; Executable statement ! if ( .not. saturate_nha1992_inited ) then call MessageNotify( 'E', module_name, 'This module has not been initialized.' ) end if ! 飽å��æ¯�湿ã���ç®� ! Calculate saturation specific humidity ! xyz_QVapSat = xyz_CalcQVapSatOnLiq( xyz_Temp, xyz_Press ) end function xyz_CalcQVapSatOnSol
Constant : | |||
LatHeat = 43655_DP : | real(DP), parameter
|
Constant : | |||
P0 = 1.4e+11_DP : | real(DP), parameter
|
Constant : | |||
module_name = ‘saturate_nha1992‘ : | character(*), parameter
|
Constant : | |||
version = ’$Name: $’ // ’$Id: saturate_nha1992.f90,v 1.9 2015/01/29 12:07:16 yot Exp $’ : | character(*), parameter
|