SCALE-RM
scale_atmos_phy_mp_dry.F90
Go to the documentation of this file.
1 !-------------------------------------------------------------------------------
14 !-------------------------------------------------------------------------------
16  !-----------------------------------------------------------------------------
17  !
18  !++ used modules
19  !
20  use scale_precision
21  use scale_stdio
22  use scale_prof
24 
26  !-----------------------------------------------------------------------------
27  implicit none
28  private
29  !-----------------------------------------------------------------------------
30  !
31  !++ Public procedure
32  !
33  public :: atmos_phy_mp_dry_setup
34  public :: atmos_phy_mp_dry
35 
39 
40  !-----------------------------------------------------------------------------
41  !
42  !++ Public parameters & variables
43  !
44  real(RP), public, target :: atmos_phy_mp_dens(mp_qa) ! hydrometeor density [kg/m3]=[g/L]
45 
46  !-----------------------------------------------------------------------------
47  !
48  !++ Private procedure
49  !
50  !-----------------------------------------------------------------------------
51  !
52  !++ Private parameters & variables
53  !
54  !-----------------------------------------------------------------------------
55 contains
56  !-----------------------------------------------------------------------------
58  subroutine atmos_phy_mp_dry_setup( MP_TYPE )
59  use scale_process, only: &
61  implicit none
62 
63  character(len=*), intent(in) :: MP_TYPE
64  !---------------------------------------------------------------------------
65 
66  if( io_l ) write(io_fid_log,*)
67  if( io_l ) write(io_fid_log,*) '++++++ Module[Cloud Microphysics] / Categ[ATMOS PHYSICS] / Origin[SCALElib]'
68  if( io_l ) write(io_fid_log,*) '*** dummy process (dry Atmosphere)'
69 
70  if ( mp_type /= 'DRY' ) then
71  write(*,*) 'xxx ATMOS_PHY_MP_TYPE is not DRY. Check!'
72  call prc_mpistop
73  endif
74 
75  atmos_phy_mp_dens(:) = 0.0_rp
76 
77  return
78  end subroutine atmos_phy_mp_dry_setup
79 
80  !-----------------------------------------------------------------------------
82  subroutine atmos_phy_mp_dry( &
83  DENS, &
84  MOMZ, &
85  MOMX, &
86  MOMY, &
87  RHOT, &
88  QTRC, &
89  CCN , &
90  EVAPORATE, &
91  SFLX_rain, &
92  SFLX_snow )
94  use scale_tracer, only: &
95  qad => qa
96  implicit none
97 
98  real(RP), intent(inout) :: DENS(ka,ia,ja)
99  real(RP), intent(inout) :: MOMZ(ka,ia,ja)
100  real(RP), intent(inout) :: MOMX(ka,ia,ja)
101  real(RP), intent(inout) :: MOMY(ka,ia,ja)
102  real(RP), intent(inout) :: RHOT(ka,ia,ja)
103  real(RP), intent(inout) :: QTRC(ka,ia,ja,qad)
104  real(RP), intent(in) :: CCN(ka,ia,ja)
105  real(RP), intent(out) :: EVAPORATE(ka,ia,ja)
106  real(RP), intent(out) :: SFLX_rain(ia,ja)
107  real(RP), intent(out) :: SFLX_snow(ia,ja)
108  !---------------------------------------------------------------------------
109 
110  if( io_l ) write(io_fid_log,*) '*** Physics step: Cloud microphysics(dummy)'
111 
112  evaporate(:,:,:) = 0.0_rp
113  sflx_rain(:,:) = 0.0_rp
114  sflx_snow(:,:) = 0.0_rp
115 
116  return
117  end subroutine atmos_phy_mp_dry
118 
119  !-----------------------------------------------------------------------------
121  subroutine atmos_phy_mp_dry_cloudfraction( &
122  cldfrac, &
123  QTRC )
125  use scale_tracer, only: &
126  qad => qa
127  implicit none
128 
129  real(RP), intent(out) :: cldfrac(ka,ia,ja)
130  real(RP), intent(in) :: QTRC (ka,ia,ja,qad)
131  !---------------------------------------------------------------------------
132 
133  cldfrac(:,:,:) = 0.0_rp ! dummy
134 
135  return
136  end subroutine atmos_phy_mp_dry_cloudfraction
137 
138  !-----------------------------------------------------------------------------
141  Re, &
142  QTRC0, &
143  DENS0, &
144  TEMP0 )
146  use scale_tracer, only: &
147  qad => qa, &
148  mp_qad => mp_qa
149  implicit none
150 
151  real(RP), intent(out) :: Re (ka,ia,ja,mp_qad) ! effective radius [cm]
152  real(RP), intent(in) :: QTRC0(ka,ia,ja,qad) ! tracer mass concentration [kg/kg]
153  real(RP), intent(in) :: DENS0(ka,ia,ja) ! density [kg/m3]
154  real(RP), intent(in) :: TEMP0(ka,ia,ja) ! temperature [K]
155 
156  real(RP), parameter :: um2cm = 100.0_rp
157  !---------------------------------------------------------------------------
158 
159  re(:,:,:,:) = 8.e-6_rp * um2cm ! dummy
160 
161  return
162  end subroutine atmos_phy_mp_dry_effectiveradius
163  !-----------------------------------------------------------------------------
165  subroutine atmos_phy_mp_dry_mixingratio( &
166  Qe, &
167  QTRC0 )
169  use scale_tracer, only: &
170  qad => qa, &
171  mp_qad => mp_qa
172  implicit none
173 
174  real(RP), intent(out) :: Qe (ka,ia,ja,mp_qad) ! mixing ratio of each cateory [kg/kg]
175  real(RP), intent(in) :: QTRC0(ka,ia,ja,qad) ! tracer mass concentration [kg/kg]
176 
177  integer :: ihydro
178  !---------------------------------------------------------------------------
179 
180  do ihydro = 1, mp_qa
181  qe(:,:,:,ihydro) = 8.e-6_rp ! dummy
182  enddo
183 
184  return
185 
186  end subroutine atmos_phy_mp_dry_mixingratio
187  !-----------------------------------------------------------------------------
188 
189 end module scale_atmos_phy_mp_dry
subroutine, public prc_mpistop
Abort MPI.
logical, public io_l
output log or not? (this process)
Definition: scale_stdio.F90:59
module TRACER / dry
module STDIO
Definition: scale_stdio.F90:12
integer, public qa
subroutine, public atmos_phy_mp_dry(DENS, MOMZ, MOMX, MOMY, RHOT, QTRC, CCN, EVAPORATE, SFLX_rain, SFLX_snow)
Cloud Microphysics.
subroutine, public atmos_phy_mp_dry_setup(MP_TYPE)
Setup.
module grid index
module TRACER
integer, public ia
of x whole cells (local, with HALO)
module ATMOSPHERE / Physics Cloud Microphysics
integer, public mp_qa
integer, public ka
of z whole cells (local, with HALO)
real(rp), dimension(mp_qa), target, public atmos_phy_mp_dens
module PROCESS
module profiler
Definition: scale_prof.F90:10
subroutine, public atmos_phy_mp_dry_cloudfraction(cldfrac, QTRC)
Calculate Cloud Fraction.
module PRECISION
integer, public io_fid_log
Log file ID.
Definition: scale_stdio.F90:56
subroutine, public atmos_phy_mp_dry_mixingratio(Qe, QTRC0)
Calculate mixing ratio of each category.
integer, public ja
of y whole cells (local, with HALO)
subroutine, public atmos_phy_mp_dry_effectiveradius(Re, QTRC0, DENS0, TEMP0)
Calculate Effective Radius.