SCALE-RM
Functions/Subroutines
mod_atmos_phy_ae_driver Module Reference

module ATMOSPHERE / Physics Aerosol Microphysics More...

Functions/Subroutines

subroutine, public atmos_phy_ae_driver_tracer_setup
 Setup. More...
 
subroutine, public atmos_phy_ae_driver_setup
 Setup. More...
 
subroutine, public atmos_phy_ae_driver_adjustment
 adjustment More...
 
subroutine, public atmos_phy_ae_driver_calc_tendency (update_flag)
 Driver. More...
 

Detailed Description

module ATMOSPHERE / Physics Aerosol Microphysics

Description
Aerosol Microphysics driver
Author
Team SCALE
NAMELIST
  • No namelist group
History Output
namedescriptionunitvariable
CCN cloud condensation nucrei num/cc CCN*1.E-6_RP
CN condensation nucrei num/cc CN *1.E-6_RP

Function/Subroutine Documentation

◆ atmos_phy_ae_driver_tracer_setup()

subroutine, public mod_atmos_phy_ae_driver::atmos_phy_ae_driver_tracer_setup ( )

Setup.

Definition at line 50 of file mod_atmos_phy_ae_driver.F90.

References scale_atmos_phy_ae_kajino13::atmos_phy_ae_kajino13_desc, scale_atmos_phy_ae_kajino13::atmos_phy_ae_kajino13_name, scale_atmos_phy_ae_kajino13::atmos_phy_ae_kajino13_tracer_setup(), scale_atmos_phy_ae_kajino13::atmos_phy_ae_kajino13_unit, mod_atmos_admin::atmos_phy_ae_type, mod_atmos_admin::atmos_sw_phy_ae, scale_prc::prc_abort(), mod_atmos_phy_ae_vars::qa_ae, mod_atmos_phy_ae_vars::qe_ae, mod_atmos_phy_ae_vars::qs_ae, and scale_tracer::tracer_regist().

Referenced by mod_atmos_driver::atmos_driver_tracer_setup().

50  use mod_atmos_admin, only: &
53  use scale_tracer, only: &
55  use scale_atmos_phy_ae_kajino13, only: &
60  use scale_prc, only: &
61  prc_abort
62  use mod_atmos_phy_ae_vars, only: &
63  qa_ae, &
64  qs_ae, &
65  qe_ae
66  implicit none
67 
68  log_newline
69  log_info("ATMOS_PHY_AE_driver_tracer_setup",*) 'Setup'
70 
71  if ( atmos_sw_phy_ae ) then
72  select case ( atmos_phy_ae_type )
73  case ( 'OFF', 'NONE' )
74  log_info("ATMOS_PHY_AE_driver_tracer_setup",*) 'this component is never called.'
75  case ( 'KAJINO13' )
77 
78  call tracer_regist( qs_ae, & ! [OUT]
79  qa_ae, & ! [IN]
80  atmos_phy_ae_kajino13_name(:), & ! [IN]
81  atmos_phy_ae_kajino13_desc(:), & ! [IN]
82  atmos_phy_ae_kajino13_unit(:) ) ! [IN]
83  case default
84  log_error("ATMOS_PHY_AE_driver_tracer_setup",*) 'invalid aerosol type(', atmos_phy_ae_type, '). CHECK!'
85  call prc_abort
86  end select
87 
88  qe_ae = qs_ae + qa_ae - 1
89 
90  else
91  qa_ae = 0
92  qs_ae = -1
93  qe_ae = -2
94  end if
95 
96  return
module ATMOS admin
character(len=h_short), dimension(:), allocatable, public atmos_phy_ae_kajino13_name
subroutine, public atmos_phy_ae_kajino13_tracer_setup(QA_AE)
Tracer setup.
character(len=h_mid), dimension(:), allocatable, public atmos_phy_ae_kajino13_desc
logical, public atmos_sw_phy_ae
character(len=h_short), public atmos_phy_ae_type
character(len=h_short), dimension(:), allocatable, public atmos_phy_ae_kajino13_unit
module TRACER
module PROCESS
Definition: scale_prc.F90:11
subroutine, public prc_abort
Abort Process.
Definition: scale_prc.F90:338
module atmosphere / physics / aerosol / Kajino13
subroutine, public tracer_regist(QS, NQ, NAME, DESC, UNIT, CV, CP, R, ADVC, MASS)
Regist tracer.
module ATMOSPHERE / Physics Aerosol Microphysics
Here is the call graph for this function:
Here is the caller graph for this function:

◆ atmos_phy_ae_driver_setup()

subroutine, public mod_atmos_phy_ae_driver::atmos_phy_ae_driver_setup ( )

Setup.

Definition at line 102 of file mod_atmos_phy_ae_driver.F90.

References scale_atmos_phy_ae_kajino13::atmos_phy_ae_kajino13_setup(), mod_atmos_admin::atmos_phy_ae_type, mod_atmos_admin::atmos_sw_phy_ae, and scale_prc::prc_abort().

Referenced by mod_atmos_driver::atmos_driver_setup().

102  use mod_atmos_admin, only: &
105  use scale_atmos_phy_ae_kajino13, only: &
107  use scale_prc, only: &
108  prc_abort
109  implicit none
110  !---------------------------------------------------------------------------
111 
112  log_newline
113  log_info("ATMOS_PHY_AE_driver_setup",*) 'Setup'
114 
115  if ( atmos_sw_phy_ae ) then
116 
117  select case ( atmos_phy_ae_type )
118  case ( 'KAJINO13' )
120  case default
121  log_error("ATMOS_PHY_AE_driver_setup",*) 'invalid aerosol type(', atmos_phy_ae_type, '). CHECK!'
122  call prc_abort
123  end select
124 
125  endif
126 
127  return
module ATMOS admin
logical, public atmos_sw_phy_ae
character(len=h_short), public atmos_phy_ae_type
module PROCESS
Definition: scale_prc.F90:11
subroutine, public atmos_phy_ae_kajino13_setup
Setup.
subroutine, public prc_abort
Abort Process.
Definition: scale_prc.F90:338
module atmosphere / physics / aerosol / Kajino13
Here is the call graph for this function:
Here is the caller graph for this function:

◆ atmos_phy_ae_driver_adjustment()

subroutine, public mod_atmos_phy_ae_driver::atmos_phy_ae_driver_adjustment ( )

adjustment

Definition at line 133 of file mod_atmos_phy_ae_driver.F90.

References scale_atmos_phy_ae_kajino13::atmos_phy_ae_kajino13_negative_fixer(), mod_atmos_admin::atmos_phy_ae_type, mod_atmos_admin::atmos_sw_phy_ae, scale_atmos_grid_cartesc_index::ia, scale_atmos_grid_cartesc_index::ieb, scale_atmos_grid_cartesc_index::isb, scale_atmos_grid_cartesc_index::ja, scale_atmos_grid_cartesc_index::jeb, scale_atmos_grid_cartesc_index::jsb, scale_atmos_grid_cartesc_index::ka, scale_atmos_grid_cartesc_index::ke, scale_atmos_grid_cartesc_index::ks, mod_atmos_phy_ae_vars::qa_ae, mod_atmos_phy_ae_vars::qe_ae, mod_atmos_phy_ae_vars::qs_ae, and mod_atmos_vars::qtrc.

Referenced by mod_atmos_driver::atmos_driver_update().

133  use mod_atmos_vars, only: &
134  qtrc
135  use mod_atmos_phy_ae_vars, only: &
136  qa_ae, &
137  qs_ae, &
138  qe_ae
139  use mod_atmos_admin, only: &
142  use scale_atmos_phy_ae_kajino13, only: &
144  implicit none
145 
146  if ( atmos_sw_phy_ae ) then
147  select case ( atmos_phy_ae_type )
148  case ( 'KAJINO13' )
149  call atmos_phy_ae_kajino13_negative_fixer( ka, ks, ke, ia, isb, ieb, ja, jsb, jeb, qa_ae, &
150  qtrc(:,:,:,qs_ae:qe_ae) ) ! [INOUT]
151 
152  end select
153 
154  end if
155 
156  return
module ATMOS admin
module ATMOSPHERIC Variables
logical, public atmos_sw_phy_ae
character(len=h_short), public atmos_phy_ae_type
subroutine, public atmos_phy_ae_kajino13_negative_fixer(KA, KS, KE, IA, IS, IE, JA, JS, JE, QA_AE, QTRC)
module atmosphere / physics / aerosol / Kajino13
module ATMOSPHERE / Physics Aerosol Microphysics
real(rp), dimension(:,:,:,:), allocatable, target, public qtrc
Here is the call graph for this function:
Here is the caller graph for this function:

◆ atmos_phy_ae_driver_calc_tendency()

subroutine, public mod_atmos_phy_ae_driver::atmos_phy_ae_driver_calc_tendency ( logical, intent(in)  update_flag)

Driver.

Definition at line 162 of file mod_atmos_phy_ae_driver.F90.

References scale_atmos_grid_cartesc_real::atmos_grid_cartesc_real_totvol, scale_atmos_grid_cartesc_real::atmos_grid_cartesc_real_vol, mod_atmos_phy_ae_vars::atmos_phy_ae_ccn, mod_atmos_phy_ae_vars::atmos_phy_ae_ccn_t, mod_atmos_phy_ae_vars::atmos_phy_ae_emit, scale_atmos_phy_ae_kajino13::atmos_phy_ae_kajino13_tendency(), mod_atmos_phy_ae_vars::atmos_phy_ae_rhoq_t, mod_atmos_admin::atmos_phy_ae_type, mod_atmos_phy_mp_vars::atmos_phy_mp_evaporate, mod_atmos_vars::dens, mod_atmos_vars::dens_av, scale_atmos_grid_cartesc_index::ia, scale_atmos_grid_cartesc_index::ie, scale_atmos_grid_cartesc_index::is, scale_atmos_grid_cartesc_index::ja, scale_atmos_grid_cartesc_index::je, scale_atmos_grid_cartesc_index::js, scale_atmos_grid_cartesc_index::ka, scale_atmos_grid_cartesc_index::ke, scale_atmos_grid_cartesc_index::ks, scale_prc::prc_abort(), mod_atmos_vars::pres, mod_atmos_phy_ae_vars::qa_ae, mod_atmos_vars::qdry, mod_atmos_phy_ae_vars::qe_ae, mod_atmos_phy_ae_vars::qs_ae, mod_atmos_vars::qtrc, mod_atmos_vars::qtrc_av, mod_atmos_vars::qv, mod_atmos_vars::rhoq_tp, scale_statistics::statistics_checktotal, mod_atmos_vars::temp, scale_time::time_dtsec_atmos_phy_ae, and scale_tracer::tracer_name.

Referenced by mod_atmos_driver::atmos_driver_calc_tendency().

162  use scale_tracer, only: &
164  use scale_prc, only: &
165  prc_abort
166  use scale_time, only: &
167  dt_ae => time_dtsec_atmos_phy_ae
168  use scale_statistics, only: &
170  statistics_total
171  use scale_atmos_grid_cartesc_real, only: &
174  use scale_file_history, only: &
175  file_history_in
176  use mod_atmos_vars, only: &
177  dens => dens_av, &
178  qtrc => qtrc_av, &
179  qdry, &
180  pres, &
181  temp, &
182  qv, &
183  rhoq_t => rhoq_tp
184  use mod_atmos_phy_ae_vars, only: &
185  qa_ae, &
186  qs_ae, &
187  qe_ae, &
188  rhoq_t_ae => atmos_phy_ae_rhoq_t, &
189  ccn => atmos_phy_ae_ccn, &
190  ccn_t => atmos_phy_ae_ccn_t, &
191  ae_emit => atmos_phy_ae_emit
192  use mod_atmos_phy_mp_vars, only: &
193  evaporate => atmos_phy_mp_evaporate
194  use mod_atmos_admin, only: &
196  use scale_atmos_phy_ae_kajino13, only: &
198  implicit none
199 
200  logical, intent(in) :: update_flag
201 
202  real(RP) :: cn(ka,ia,ja)
203  real(RP) :: nreg(ka,ia,ja)
204 
205  integer :: k, i, j, iq
206  !---------------------------------------------------------------------------
207 
208  if ( update_flag ) then
209 
210 !OCL XFILL
211  ccn(:,:,:) = 0.0_rp ! reset
212 !OCL XFILL
213  rhoq_t_ae(:,:,:,:) = 0.0_rp ! reset
214 
215  do j = js, je
216  do i = is, ie
217  do k = ks, ke
218  nreg(k,i,j) = evaporate(k,i,j) * dt_ae
219  enddo
220  enddo
221  enddo
222 
223  select case ( atmos_phy_ae_type )
224  case ( 'KAJINO13' )
225  call atmos_phy_ae_kajino13_tendency( ka, ks, ke, ia, is, ie, ja, js, je, qa_ae, &
226  temp(:,:,:), & ! [IN]
227  pres(:,:,:), & ! [IN]
228  qdry(:,:,:), & ! [IN]
229  nreg(:,:,:), & ! [IN]
230  dens(:,:,:), & ! [IN]
231  qv(:,:,:), & ! [IN]
232  qtrc(:,:,:,qs_ae:qe_ae), & ! [IN]
233  ae_emit(:,:,:,qs_ae:qe_ae), & ! [IN]
234  dt_ae, & ! [IN]
235  rhoq_t_ae(:,:,:,qs_ae:qe_ae), & ! [OUT]
236  cn(:,:,:), & ! [OUT]
237  ccn(:,:,:) ) ! [OUT]
238  end select
239 
240  ccn_t(:,:,:) = ccn(:,:,:) / dt_ae
241 
242  call file_history_in( cn(:,:,:)*1.e-6_rp, 'CN', 'condensation nucrei', 'num/cc' )
243  call file_history_in( ccn(:,:,:)*1.e-6_rp, 'CCN', 'cloud condensation nucrei', 'num/cc' )
244 
245  endif
246 
247  do iq = qs_ae, qe_ae
248  !$omp parallel do private(i,j,k) OMP_SCHEDULE_
249  do j = js, je
250  do i = is, ie
251  do k = ks, ke
252  rhoq_t(k,i,j,iq) = rhoq_t(k,i,j,iq) + rhoq_t_ae(k,i,j,iq)
253  enddo
254  enddo
255  enddo
256  enddo
257 
258  if ( statistics_checktotal ) then
259  do iq = qs_ae, qe_ae
260  call statistics_total( ka, ks, ke, ia, is, ie, ja, js, je, &
261  rhoq_t_ae(:,:,:,iq), trim(tracer_name(iq))//'_t_AE', &
264  enddo
265  endif
266 
267  return
module ATMOS admin
real(rp), dimension(:,:,:), allocatable, target, public qdry
module Atmosphere / Physics Cloud Microphysics
module ATMOSPHERIC Variables
real(rp), dimension(:,:,:,:), pointer, public qtrc_av
subroutine, public atmos_phy_ae_kajino13_tendency(KA, KS, KE, IA, IS, IE, JA, JS, JE, QA_AE, TEMP, PRES, QDRY, NREG, DENS, QV, QTRC, EMIT, dt, RHOQ_t_AE, CN, CCN)
Aerosol Microphysics.
real(rp), dimension(:,:,:), allocatable, public atmos_grid_cartesc_real_vol
control volume (zxy) [m3]
real(rp), public atmos_grid_cartesc_real_totvol
total volume (zxy, local) [m3]
character(len=h_short), public atmos_phy_ae_type
real(rp), dimension(:,:,:), allocatable, target, public dens
character(len=h_short), dimension(qa_max), public tracer_name
logical, public statistics_checktotal
calc&report variable totals to logfile?
module TRACER
module PROCESS
Definition: scale_prc.F90:11
real(rp), dimension(:,:,:,:), allocatable, public atmos_phy_ae_emit
real(rp), dimension(:,:,:,:), allocatable, public rhoq_tp
real(rp), dimension(:,:,:), allocatable, target, public temp
module TIME
Definition: scale_time.F90:16
real(rp), dimension(:,:,:,:), allocatable, public atmos_phy_ae_rhoq_t
real(rp), dimension(:,:,:), allocatable, public atmos_phy_ae_ccn
real(rp), dimension(:,:,:), pointer, public dens_av
real(dp), public time_dtsec_atmos_phy_ae
time interval of physics(aerosol ) [sec]
Definition: scale_time.F90:49
subroutine, public prc_abort
Abort Process.
Definition: scale_prc.F90:338
real(rp), dimension(:,:,:), allocatable, pointer, target, public qv
real(rp), dimension(:,:,:), allocatable, public atmos_phy_mp_evaporate
module Atmosphere GRID CartesC Real(real space)
module atmosphere / physics / aerosol / Kajino13
module Statistics
module ATMOSPHERE / Physics Aerosol Microphysics
real(rp), dimension(:,:,:), allocatable, target, public pres
module file_history
real(rp), dimension(:,:,:,:), allocatable, target, public qtrc
real(rp), dimension(:,:,:), allocatable, public atmos_phy_ae_ccn_t
Here is the call graph for this function:
Here is the caller graph for this function: