SCALE-RM
Functions/Subroutines | Variables
scale_atmos_phy_rd_common Module Reference

module atmosphere / physics / radiation / common More...

Functions/Subroutines

subroutine, public atmos_phy_rd_calc_heating (KA, KS, KE, IA, IS, IE, JA, JS, JE, flux_rad, DENS, TEMP, CVtot, FZ, RHOH, TEMP_t)
 Calc heating rate. More...
 

Variables

integer, parameter, public i_up = 1
 
integer, parameter, public i_dn = 2
 
integer, parameter, public i_lw = 1
 
integer, parameter, public i_sw = 2
 

Detailed Description

module atmosphere / physics / radiation / common

Description
Common module for Radiation
Author
Team SCALE

Function/Subroutine Documentation

◆ atmos_phy_rd_calc_heating()

subroutine, public scale_atmos_phy_rd_common::atmos_phy_rd_calc_heating ( integer, intent(in)  KA,
integer, intent(in)  KS,
integer, intent(in)  KE,
integer, intent(in)  IA,
integer, intent(in)  IS,
integer, intent(in)  IE,
integer, intent(in)  JA,
integer, intent(in)  JS,
integer, intent(in)  JE,
real(rp), dimension(ka,ia,ja,2,2), intent(in)  flux_rad,
real(rp), dimension (ka,ia,ja), intent(in)  DENS,
real(rp), dimension (ka,ia,ja), intent(in)  TEMP,
real(rp), dimension (ka,ia,ja), intent(in)  CVtot,
real(rp), dimension (0:ka,ia,ja), intent(in)  FZ,
real(rp), dimension(ka,ia,ja), intent(out)  RHOH,
real(rp), dimension(ka,ia,ja,3), intent(out), optional  TEMP_t 
)

Calc heating rate.

Definition at line 60 of file scale_atmos_phy_rd_common.F90.

60  implicit none
61  integer, intent(in) :: KA, KS, KE
62  integer, intent(in) :: IA, IS, IE
63  integer, intent(in) :: JA, JS, JE
64 
65  real(RP), intent(in) :: flux_rad(KA,IA,JA,2,2)
66  real(RP), intent(in) :: DENS (KA,IA,JA)
67  real(RP), intent(in) :: TEMP (KA,IA,JA)
68  real(RP), intent(in) :: CVtot (KA,IA,JA)
69  real(RP), intent(in) :: FZ (0:KA,IA,JA)
70 
71  real(RP), intent(out) :: RHOH(KA,IA,JA)
72 
73  real(RP), intent(out), optional :: TEMP_t(KA,IA,JA,3)
74 
75  real(RP) :: RHOH_LW, RHOH_SW
76 
77  integer :: k, i, j
78  !---------------------------------------------------------------------------
79 
80  !$omp parallel do default(none) OMP_SCHEDULE_ collapse(2) &
81  !$omp private(i,j,k, &
82  !$omp RHOH_LW,RHOH_SW) &
83  !$omp shared(RHOH,TEMP_t,flux_rad,DENS,CVtot,FZ, &
84  !$omp KS,KE,IS,IE,JS,JE)
85  do j = js, je
86  do i = is, ie
87  do k = ks, ke
88 
89  rhoh_lw = ( ( flux_rad(k,i,j,i_lw,i_dn) - flux_rad(k-1,i,j,i_lw,i_dn) ) &
90  - ( flux_rad(k,i,j,i_lw,i_up) - flux_rad(k-1,i,j,i_lw,i_up) ) &
91  ) / ( fz(k,i,j) - fz(k-1,i,j) )
92 
93  rhoh_sw = ( ( flux_rad(k,i,j,i_sw,i_dn) - flux_rad(k-1,i,j,i_sw,i_dn) ) &
94  - ( flux_rad(k,i,j,i_sw,i_up) - flux_rad(k-1,i,j,i_sw,i_up) ) &
95  ) / ( fz(k,i,j) - fz(k-1,i,j) )
96 
97  rhoh(k,i,j) = rhoh_lw + rhoh_sw
98 
99  temp_t(k,i,j,i_lw) = rhoh_lw / dens(k,i,j) / cvtot(k,i,j) * 86400.0_rp ! [K/day]
100  temp_t(k,i,j,i_sw) = rhoh_sw / dens(k,i,j) / cvtot(k,i,j) * 86400.0_rp ! [K/day]
101 
102  temp_t(k,i,j,3) = temp_t(k,i,j,i_lw) + temp_t(k,i,j,i_sw)
103  enddo
104  enddo
105  enddo
106 
107  return

References i_dn, i_lw, i_sw, and i_up.

Referenced by mod_atmos_phy_rd_driver::atmos_phy_rd_driver_calc_tendency().

Here is the caller graph for this function:

Variable Documentation

◆ i_up

integer, parameter, public scale_atmos_phy_rd_common::i_up = 1

◆ i_dn

integer, parameter, public scale_atmos_phy_rd_common::i_dn = 2

◆ i_lw

integer, parameter, public scale_atmos_phy_rd_common::i_lw = 1

◆ i_sw

integer, parameter, public scale_atmos_phy_rd_common::i_sw = 2
scale_atmos_phy_rd_common::i_dn
integer, parameter, public i_dn
Definition: scale_atmos_phy_rd_common.F90:35
scale_atmos_phy_rd_common::i_lw
integer, parameter, public i_lw
Definition: scale_atmos_phy_rd_common.F90:37
scale_atmos_phy_rd_common::i_up
integer, parameter, public i_up
Definition: scale_atmos_phy_rd_common.F90:34
scale_atmos_phy_rd_common::i_sw
integer, parameter, public i_sw
Definition: scale_atmos_phy_rd_common.F90:38