Go to the documentation of this file.
45 integer,
private :: monit_west
46 integer,
private :: monit_east
47 integer,
private :: monit_south
48 integer,
private :: monit_north
72 log_info(
"ATMOS_PHY_TB_driver_tracer_setup",*)
'Setup'
86 log_error(
"ATMOS_PHY_TB_driver_tracer_setup",*)
'ATMOS_PHY_TB_TYPE is invalid: ',
atmos_phy_tb_type
122 logical :: horizontal = .false.
128 log_info(
"ATMOS_PHY_TB_driver_setup",*)
'Setup'
134 momz_t_tb(
ks-1,i,j) = 0.0_rp
135 momz_t_tb(
ke ,i,j) = 0.0_rp
141 case(
'SMAGORINSKY' )
152 call monitor_reg(
"QTOTFLX_TB_WEST",
"water mass flux at the western boundary",
"kg", &
154 dim_type=
"ZY-W", is_tendency=.true. )
155 call monitor_reg(
"QTOTFLX_TB_EAST",
"water mass flux at the eastern boundary",
"kg", &
157 dim_type=
"ZY-E", is_tendency=.true. )
158 call monitor_reg(
"QTOTFLX_TB_SOUTH",
"water mass flux at the southern boundary",
"kg", &
160 dim_type=
"ZX-S", is_tendency=.true. )
161 call monitor_reg(
"QTOTFLX_TB_NORTH",
"water mass flux at the northern boundary",
"kg", &
163 dim_type=
"ZX-N", is_tendency=.true. )
224 atmos_vars_get_diagnostic, &
252 logical,
intent(in) :: update_flag
276 integer ::
k, i, j, iq
279 if ( update_flag )
then
281 call atmos_vars_get_diagnostic(
"N2", n2 )
284 case(
'SMAGORINSKY' )
286 qflx_rhot, qflx_rhoq, &
287 momz_t_tb, momx_t_tb, momy_t_tb, &
288 rhot_t_tb, rhoq_t_tb, &
291 fz, fdz, rcdz, rfdz, cdx, fdx, cdy, fdy, &
292 gsqrt, j13g, j23g, j33g, mapf, &
295 momz_t_tb(:,:,:) = 0.0_rp
296 momx_t_tb(:,:,:) = 0.0_rp
297 momy_t_tb(:,:,:) = 0.0_rp
298 rhot_t_tb(:,:,:) = 0.0_rp
300 qflx_rhot, qflx_rhoq, &
304 sflx_mw, sflx_mu, sflx_mv, &
306 gsqrt, j13g, j23g, j33g, mapf, &
309 momz_t_tb(:,:,:) = 0.0_rp
310 momx_t_tb(:,:,:) = 0.0_rp
311 momy_t_tb(:,:,:) = 0.0_rp
312 rhot_t_tb(:,:,:) = 0.0_rp
314 qflx_rhot, qflx_rhoq, &
318 sflx_mw, sflx_mu, sflx_mv, &
320 gsqrt, j13g, j23g, j33g, mapf, &
330 call calc_tend_momz( tend(:,:,:), &
332 gsqrt, j13g, j23g, j33g, mapf, &
338 momz_t_tb(
k,i,j) = momz_t_tb(
k,i,j) + tend(
k,i,j)
343 call calc_tend_momx( tend(:,:,:), &
345 gsqrt, j13g, j23g, j33g, mapf, &
351 momx_t_tb(
k,i,j) = momx_t_tb(
k,i,j) + tend(
k,i,j)
356 call calc_tend_momy( tend(:,:,:), &
358 gsqrt, j13g, j23g, j33g, mapf, &
364 momy_t_tb(
k,i,j) = momy_t_tb(
k,i,j) + tend(
k,i,j)
369 call calc_tend_phi ( tend(:,:,:), &
371 gsqrt, j13g, j23g, j33g, mapf, &
377 rhot_t_tb(
k,i,j) = rhot_t_tb(
k,i,j) + tend(
k,i,j)
385 call calc_tend_phi( tend(:,:,:), &
386 qflx_rhoq(:,:,:,:,iq), &
387 gsqrt, j13g, j23g, j33g, mapf, &
394 rhoq_t_tb(
k,i,j,iq) = rhoq_t_tb(
k,i,j,iq) + tend(
k,i,j)
405 call file_history_in( nu(:,:,:),
'NU',
'eddy viscosity',
'm2/s' , fill_halo=.true. )
406 call file_history_in( ri(:,:,:),
'Ri',
'Richardson number',
'NIL' , fill_halo=.true. )
407 call file_history_in( pr(:,:,:),
'Pr',
'Prantle number',
'NIL' , fill_halo=.true. )
409 call file_history_in( momz_t_tb(:,:,:),
'MOMZ_t_TB',
'MOMZ tendency (TB)',
'kg/m2/s2', fill_halo=.true. )
410 call file_history_in( momx_t_tb(:,:,:),
'MOMX_t_TB',
'MOMX tendency (TB)',
'kg/m2/s2', fill_halo=.true. )
411 call file_history_in( momy_t_tb(:,:,:),
'MOMY_t_TB',
'MOMY tendency (TB)',
'kg/m2/s2', fill_halo=.true. )
412 call file_history_in( rhot_t_tb(:,:,:),
'RHOT_t_TB',
'RHOT tendency (TB)',
'K.kg/m3/s', fill_halo=.true. )
415 call file_history_in( rhoq_t_tb(:,:,:,iq), trim(
tracer_name(iq))//
'_t_TB', &
416 'tendency rho*'//trim(
tracer_name(iq))//
' in TB',
'kg/m3/s', fill_halo=.true. )
419 call file_history_in( qflx_momz(:,:,:,
zdir),
'SGS_ZFLX_MOMZ',
'SGS Z FLUX of MOMZ',
'kg/m/s2', &
421 call file_history_in( qflx_momz(:,:,:,
xdir),
'SGS_XFLX_MOMZ',
'SGS X FLUX of MOMZ',
'kg/m/s2', &
422 dim_type=
'ZHXHY', fill_halo=.true.)
423 call file_history_in( qflx_momz(:,:,:,
ydir),
'SGS_YFLX_MOMZ',
'SGS Y FLUX of MOMZ',
'kg/m/s2', &
424 dim_type=
'ZHXYH', fill_halo=.true.)
426 call file_history_in( qflx_momx(:,:,:,
zdir),
'SGS_ZFLX_MOMX',
'SGS Z FLUX of MOMX',
'kg/m/s2', &
427 dim_type=
'ZHXHY', fill_halo=.true.)
428 call file_history_in( qflx_momx(:,:,:,
xdir),
'SGS_XFLX_MOMX',
'SGS X FLUX of MOMX',
'kg/m/s2', &
430 call file_history_in( qflx_momx(:,:,:,
ydir),
'SGS_YFLX_MOMX',
'SGS Y FLUX of MOMX',
'kg/m/s2', &
431 dim_type=
'ZXHYH', fill_halo=.true.)
433 call file_history_in( qflx_momy(:,:,:,
zdir),
'SGS_ZFLX_MOMY',
'SGS Z FLUX of MOMY',
'kg/m/s2', &
434 dim_type=
'ZHXYH', fill_halo=.true.)
435 call file_history_in( qflx_momy(:,:,:,
xdir),
'SGS_XFLX_MOMY',
'SGS X FLUX of MOMY',
'kg/m/s2', &
436 dim_type=
'ZXHYH', fill_halo=.true.)
437 call file_history_in( qflx_momy(:,:,:,
ydir),
'SGS_YFLX_MOMY',
'SGS Y FLUX of MOMY',
'kg/m/s2', &
440 call file_history_in( qflx_rhot(:,:,:,
zdir),
'SGS_ZFLX_RHOT',
'SGS Z FLUX of RHOT',
'K*kg/m2/s', &
441 dim_type=
'ZHXY', fill_halo=.true.)
442 call file_history_in( qflx_rhot(:,:,:,
xdir),
'SGS_XFLX_RHOT',
'SGS X FLUX of RHOT',
'K*kg/m2/s', &
443 dim_type=
'ZXHY', fill_halo=.true.)
444 call file_history_in( qflx_rhot(:,:,:,
ydir),
'SGS_YFLX_RHOT',
'SGS Y FLUX of RHOT',
'K*kg/m2/s', &
445 dim_type=
'ZXYH', fill_halo=.true.)
451 call file_history_in( qflx_rhoq(:,:,:,
zdir,iq), &
453 dim_type=
'ZHXY', fill_halo=.true.)
454 call file_history_in( qflx_rhoq(:,:,:,
xdir,iq), &
456 dim_type=
'ZXHY', fill_halo=.true.)
457 call file_history_in( qflx_rhoq(:,:,:,
ydir,iq), &
459 dim_type=
'ZXYH', fill_halo=.true.)
464 momz_t_tb(:,:,:),
'MOMZ_t_TB', &
468 momx_t_tb(:,:,:),
'MOMX_t_TB', &
472 momy_t_tb(:,:,:),
'MOMY_t_TB', &
476 rhot_t_tb(:,:,:),
'RHOT_t_TB', &
494 rhoq_t_tb(:,:,:,iq), trim(
tracer_name(iq))//
'_t_TB', &
507 momz_t(
k,i,j) = momz_t(
k,i,j) + momz_t_tb(
k,i,j)
508 momx_t(
k,i,j) = momx_t(
k,i,j) + momx_t_tb(
k,i,j)
509 momy_t(
k,i,j) = momy_t(
k,i,j) + momy_t_tb(
k,i,j)
510 rhot_t(
k,i,j) = rhot_t(
k,i,j) + rhot_t_tb(
k,i,j)
523 rhoq_t(
k,i,j,iq) = rhoq_t(
k,i,j,iq) + rhoq_t_tb(
k,i,j,iq)
530 if ( monit_west > 0 )
then
537 qflx_x(
k,j) = qflx_x(
k,j) + qflx_rhoq(
k,
is-1,j,
xdir,iq)
543 call monitor_put( monit_west, qflx_x(:,:) )
545 if ( monit_east > 0 )
then
552 qflx_x(
k,j) = qflx_x(
k,j) + qflx_rhoq(
k,
ie,j,
xdir,iq)
558 call monitor_put( monit_east, qflx_x(:,:) )
560 if ( monit_south > 0 )
then
567 qflx_y(
k,i) = qflx_y(
k,i) + qflx_rhoq(
k,i,
js-1,
ydir,iq)
573 call monitor_put( monit_south, qflx_y(:,:) )
575 if ( monit_north > 0 )
then
582 qflx_y(
k,i) = qflx_y(
k,i) + qflx_rhoq(
k,i,
je,
ydir,iq)
588 call monitor_put( monit_north, qflx_y(:,:) )
real(rp), dimension(:,:,:), pointer, public momz_av
real(dp), public time_dtsec_atmos_phy_tb
time interval of physics(turbulence ) [sec]
integer, public ke
end point of inner domain: z, local
real(rp), dimension(:,:), allocatable, public atmos_phy_sf_sflx_mu
subroutine, public prc_abort
Abort Process.
logical, public atmos_sw_phy_tb
subroutine, public atmos_phy_tb_dns(qflx_sgs_MOMZ, qflx_sgs_MOMX, qflx_sgs_MOMY, qflx_sgs_rhot, qflx_sgs_rhoq, RHOQ_t, nu, Ri, Pr, MOMZ, MOMX, MOMY, RHOT, DENS, QTRC, N2, SFLX_MW, SFLX_MU, SFLX_MV, SFLX_SH, SFLX_Q, GSQRT, J13G, J23G, J33G, MAPF, dt)
module ATMOSPHERE / Physics Turbulence
real(rp), dimension(:,:,:), pointer, public momx_av
real(rp), dimension(:), allocatable, public atmos_grid_cartesc_cdz
z-length of control volume [m]
real(rp), public atmos_grid_cartesc_real_totvolzxv
total volume (zxv, local) [m3]
real(rp), dimension(:,:,:,:), allocatable, public rhoq_tp
real(rp), dimension(:,:,:), allocatable, public atmos_grid_cartesc_real_cz
geopotential height [m] (zxy)
real(rp), dimension(:,:,:), allocatable, target, public pott
real(rp), dimension(qa_max), public tracer_mass
real(rp), dimension(:,:,:), allocatable, public atmos_grid_cartesc_real_volwxy
control volume (wxy) [m3]
real(rp), dimension(:,:,:), allocatable, public atmos_phy_tb_momz_t
logical, public prc_has_s
real(rp), dimension(:,:,:,:), pointer, public qtrc_av
integer, public jblock
block size for cache blocking: y
logical, dimension(qa_max), public tracer_advc
real(rp), public atmos_grid_cartesc_real_totvolwxy
total volume (wxy, local) [m3]
real(rp), dimension(:,:,:), allocatable, public atmos_phy_tb_momx_t
module Atmosphere Grid CartesianC metirc
subroutine, public atmos_phy_tb_calc_tend_momx(MOMX_t_TB, QFLX_MOMX, GSQRT, J13G, J23G, J33G, MAPF, IIS, IIE, JJS, JJE)
real(rp), dimension(:,:,:), pointer, public rhot_av
integer, public iblock
block size for cache blocking: x
subroutine, public atmos_phy_tb_calc_tend_momy(MOMY_t_TB, QFLX_MOMY, GSQRT, J13G, J23G, J33G, MAPF, IIS, IIE, JJS, JJE)
real(rp), dimension(:), allocatable, public atmos_grid_cartesc_cdy
y-length of control volume [m]
real(rp), dimension(:,:), allocatable, public atmos_phy_sf_sflx_mv
subroutine, public atmos_phy_tb_dns_setup(CDZ, CDX, CDY, CZ)
real(rp), dimension(:), allocatable, public atmos_grid_cartesc_fdy
y-length of grid(j+1) to grid(j) [m]
subroutine, public atmos_phy_tb_dns_config(TYPE_TB, I_TKE_out)
Config.
module ATMOSPHERIC Surface Variables
real(rp), dimension(:,:), allocatable, public atmos_phy_sf_sflx_mw
subroutine, public atmos_phy_tb_d1980_config(TYPE_TB, I_TKE_out)
Config.
real(rp), dimension(:), allocatable, public atmos_grid_cartesc_rcdz
reciprocal of center-dz
real(rp), dimension(:,:,:), allocatable, target, public rhot
module Atmosphere GRID CartesC Real(real space)
real(rp), dimension(:,:,:,:), allocatable, target, public qtrc
real(rp), dimension(:,:,:), allocatable, public atmos_grid_cartesc_real_volzuy
control volume (zuy) [m3]
logical, public prc_has_n
logical, public prc_has_e
subroutine, public atmos_phy_tb_driver_calc_tendency(update_flag)
calclate tendency
subroutine, public atmos_phy_tb_d1980(qflx_sgs_momz, qflx_sgs_momx, qflx_sgs_momy, qflx_sgs_rhot, qflx_sgs_rhoq, RHOQ_t, Km, Ri, Pr, MOMZ, MOMX, MOMY, RHOT, DENS, QTRC, N2, SFLX_MW, SFLX_MU, SFLX_MV, SFLX_SH, SFLX_Q, GSQRT, J13G, J23G, J33G, MAPF, dt)
real(rp), dimension(:,:,:,:), allocatable, public atmos_grid_cartesc_metric_mapf
map factor
integer, parameter, public rp
integer, public ie
end point of inner domain: x, local
real(rp), dimension(:,:,:), allocatable, target, public dens
real(rp), dimension(:,:,:), allocatable, public atmos_grid_cartesc_real_volzxv
control volume (zxv) [m3]
module atmosphere / grid / cartesC index
real(rp), dimension(:,:,:), allocatable, public atmos_grid_cartesc_real_vol
control volume (zxy) [m3]
real(rp), dimension(:,:,:), allocatable, target, public momz
real(rp), dimension(:,:,:,:), allocatable, public atmos_grid_cartesc_metric_gsqrt
transformation metrics from Z to Xi, {G}^1/2
integer, parameter, public zdir
module Atmosphere / Physics Turbulence
real(rp), dimension(:,:,:), pointer, public momy_av
subroutine, public atmos_phy_tb_driver_tracer_setup
Tracer setup.
character(len=h_short), dimension(qa_max), public tracer_name
real(rp), dimension(:,:,:), allocatable, public momz_tp
real(rp), dimension(:,:,:), allocatable, target, public momx
integer, public is
start point of inner domain: x, local
module ATMOSPHERE / Physics Turbulence
real(rp), dimension(:,:,:,:), allocatable, public atmos_grid_cartesc_metric_j23g
(2,3) element of Jacobian matrix * {G}^1/2
subroutine, public monitor_reg(name, desc, unit, itemid, ndims, dim_type, is_tendency)
Search existing item, or matching check between requested and registered item.
real(rp), public atmos_grid_cartesc_real_totvolzuy
total volume (zuy, local) [m3]
real(rp), dimension(:,:,:), allocatable, target, public momy
subroutine, public atmos_phy_tb_driver_setup
Setup.
real(rp), dimension(:,:,:), allocatable, target, public atmos_phy_sf_sflx_qtrc
real(rp), dimension(:), allocatable, public atmos_grid_cartesc_fdx
x-length of grid(i+1) to grid(i) [m]
subroutine, public atmos_phy_tb_calc_tend_phi(phi_t_TB, QFLX_phi, GSQRT, J13G, J23G, J33G, MAPF, IIS, IIE, JJS, JJE)
integer, parameter, public xdir
subroutine, public atmos_phy_tb_d1980_setup(CDZ, CDX, CDY, CZ)
Setup.
real(rp), dimension(:,:,:), pointer, public dens_av
integer, public ks
start point of inner domain: z, local
logical, public statistics_checktotal
calc&report variable totals to logfile?
real(rp), dimension(:,:,:), allocatable, public atmos_phy_tb_momy_t
module ATMOSPHERE / Physics Turbulence
module ATMOSPHERIC Variables
real(rp), dimension(:,:,:), allocatable, public rhot_tp
subroutine, public atmos_phy_tb_smg_setup(FZ, CZ, CDX, CDY, MAPF, horizontal)
Setup.
integer, public js
start point of inner domain: y, local
integer, parameter, public ydir
real(rp), dimension(:,:,:), allocatable, public momy_tp
real(rp), dimension(:,:), allocatable, public atmos_phy_sf_sflx_sh
real(rp), dimension(:), allocatable, public atmos_grid_cartesc_rfdz
reciprocal of face-dz
logical, public atmos_sw_phy_bl
real(rp), dimension(:,:,:), allocatable, public momx_tp
real(rp), public atmos_grid_cartesc_metric_j33g
(3,3) element of Jacobian matrix * {G}^1/2
real(rp), dimension(:), allocatable, public atmos_grid_cartesc_cdx
x-length of control volume [m]
real(rp), dimension(:,:,:,:), allocatable, public atmos_grid_cartesc_metric_j13g
(1,3) element of Jacobian matrix * {G}^1/2
real(rp), dimension(:,:,:), allocatable, public atmos_grid_cartesc_real_fz
geopotential height [m] (wxy)
real(rp), public atmos_grid_cartesc_real_totvol
total volume (zxy, local) [m3]
module atmosphere / grid / cartesC
real(rp), dimension(:,:,:,:), allocatable, public atmos_phy_tb_rhoq_t
real(rp), dimension(:), allocatable, public atmos_grid_cartesc_fdz
z-length of grid(i+1) to grid(i) [m]
module ATMOSPHERE / Physics Turbulence
subroutine, public atmos_phy_tb_calc_tend_momz(MOMZ_t_TB, QFLX_MOMZ, GSQRT, J13G, J23G, J33G, MAPF, IIS, IIE, JJS, JJE)
module ATMOSPHERE / Physics Turbulence
logical, public prc_has_w
integer, public je
end point of inner domain: y, local
real(rp), dimension(:,:,:), allocatable, public atmos_phy_tb_rhot_t
character(len=h_short), public atmos_phy_tb_type
subroutine, public atmos_phy_tb_smg(qflx_sgs_momz, qflx_sgs_momx, qflx_sgs_momy, qflx_sgs_rhot, qflx_sgs_rhoq, MOMZ_t, MOMX_t, MOMY_t, RHOT_t, RHOQ_t, Nu, Ri, Pr, MOMZ, MOMX, MOMY, POTT, DENS, QTRC, N2, FZ, FDZ, RCDZ, RFDZ, CDX, FDX, CDY, FDY, GSQRT, J13G, J23G, J33G, MAPF, dt)