SCALE-RM
|
module ATMOSPHERE / Reference state More...
Functions/Subroutines | |
subroutine, public | atmos_refstate_setup |
Setup. More... | |
subroutine, public | atmos_refstate_resume (DENS, RHOT, QTRC) |
Resume. More... | |
subroutine, public | atmos_refstate_read |
Read reference state profile. More... | |
subroutine, public | atmos_refstate_write |
Write reference state profile. More... | |
subroutine, public | atmos_refstate_update (DENS, RHOT, QTRC) |
Update reference state profile (Horizontal average) More... | |
subroutine | atmos_refstate_calc3d |
apply 1D reference to 3D (terrain-following) with re-calc hydrostatic balance More... | |
subroutine | smoothing (phi) |
Variables | |
logical, public | atmos_refstate_update_flag = .false. |
real(rp), dimension(:,:,:), allocatable, public | atmos_refstate_pres |
refernce pressure [Pa] More... | |
real(rp), dimension(:,:,:), allocatable, public | atmos_refstate_temp |
refernce temperature [K] More... | |
real(rp), dimension(:,:,:), allocatable, public | atmos_refstate_dens |
refernce density [kg/m3] More... | |
real(rp), dimension(:,:,:), allocatable, public | atmos_refstate_pott |
refernce potential temperature [K] More... | |
real(rp), dimension(:,:,:), allocatable, public | atmos_refstate_qv |
refernce vapor [kg/kg] More... | |
module ATMOSPHERE / Reference state
name | type | default value | comment |
---|---|---|---|
ATMOS_REFSTATE_IN_BASENAME | character(len=H_LONG) | '' | basename of the input file |
ATMOS_REFSTATE_OUT_BASENAME | character(len=H_LONG) | '' | basename of the output file |
ATMOS_REFSTATE_OUT_TITLE | character(len=H_MID) | 'SCALE-RM RefState' | title of the output file |
ATMOS_REFSTATE_OUT_DTYPE | character(len=H_MID) | 'DEFAULT' | REAL4 or REAL8 |
ATMOS_REFSTATE_TYPE | character(len=H_SHORT) | 'UNIFORM' | profile type |
ATMOS_REFSTATE_TEMP_SFC | real(RP) | 300.0_RP | surface temperature [K] |
ATMOS_REFSTATE_RH | real(RP) | 0.0_RP | surface & environment RH [%] |
ATMOS_REFSTATE_POTT_UNIFORM | real(RP) | 300.0_RP | uniform potential temperature [K] |
ATMOS_REFSTATE_UPDATE_FLAG | logical | .false. | |
ATMOS_REFSTATE_UPDATE_DT | real(DP) | 0.0_DP |
subroutine, public scale_atmos_refstate::atmos_refstate_setup | ( | ) |
Setup.
Definition at line 88 of file scale_atmos_sub_refstate.F90.
References atmos_refstate_dens, atmos_refstate_pott, atmos_refstate_pres, atmos_refstate_qv, atmos_refstate_read(), atmos_refstate_temp, atmos_refstate_update_flag, scale_grid_index::ia, scale_stdio::io_fid_conf, scale_stdio::io_fid_log, scale_stdio::io_l, scale_stdio::io_lnml, scale_grid_index::ja, scale_grid_index::ka, and scale_process::prc_mpistop().
Referenced by mod_atmos_driver::atmos_driver_setup().
subroutine, public scale_atmos_refstate::atmos_refstate_resume | ( | real(rp), dimension(ka,ia,ja), intent(in) | DENS, |
real(rp), dimension(ka,ia,ja), intent(in) | RHOT, | ||
real(rp), dimension(ka,ia,ja,qa), intent(in) | QTRC | ||
) |
Resume.
Definition at line 185 of file scale_atmos_sub_refstate.F90.
References atmos_refstate_update_flag, atmos_refstate_write(), scale_grid::grid_cz, scale_stdio::io_fid_log, scale_stdio::io_l, scale_grid_index::ke, scale_grid_index::ks, and scale_process::prc_mpistop().
Referenced by mod_atmos_driver::atmos_driver_resume1().
subroutine, public scale_atmos_refstate::atmos_refstate_read | ( | ) |
Read reference state profile.
Definition at line 238 of file scale_atmos_sub_refstate.F90.
References atmos_refstate_calc3d(), atmos_refstate_dens, atmos_refstate_pott, atmos_refstate_pres, atmos_refstate_qv, atmos_refstate_temp, scale_stdio::io_fid_log, scale_stdio::io_l, and scale_process::prc_mpistop().
Referenced by atmos_refstate_setup().
subroutine, public scale_atmos_refstate::atmos_refstate_write | ( | ) |
Write reference state profile.
Definition at line 288 of file scale_atmos_sub_refstate.F90.
References atmos_refstate_calc3d(), atmos_refstate_dens, atmos_refstate_pott, atmos_refstate_pres, atmos_refstate_qv, atmos_refstate_temp, atmos_refstate_update(), scale_comm::comm_horizontal_mean(), scale_const::const_epsvap, scale_const::const_pstd, scale_grid_index::ia, scale_stdio::io_fid_log, scale_stdio::io_l, scale_grid_index::ja, scale_grid_index::ka, scale_grid_index::ke, scale_grid_index::ks, scale_grid_real::real_cz, and scale_time::time_nowsec.
Referenced by atmos_refstate_resume().
subroutine, public scale_atmos_refstate::atmos_refstate_update | ( | real(rp), dimension(ka,ia,ja), intent(in) | DENS, |
real(rp), dimension(ka,ia,ja), intent(in) | RHOT, | ||
real(rp), dimension(ka,ia,ja,qa), intent(in) | QTRC | ||
) |
Update reference state profile (Horizontal average)
Definition at line 567 of file scale_atmos_sub_refstate.F90.
References atmos_refstate_calc3d(), scale_comm::comm_horizontal_mean(), scale_tracer::i_qv, scale_grid_index::ia, scale_interpolation::interp_vertical_xi2z(), scale_stdio::io_fid_log, scale_stdio::io_l, scale_grid_index::ja, scale_grid_index::ke, scale_grid_index::ks, smoothing(), and scale_time::time_nowsec.
Referenced by mod_atmos_driver::atmos_driver(), and atmos_refstate_write().
subroutine scale_atmos_refstate::atmos_refstate_calc3d | ( | ) |
apply 1D reference to 3D (terrain-following) with re-calc hydrostatic balance
Definition at line 653 of file scale_atmos_sub_refstate.F90.
References scale_atmos_hydrostatic::atmos_hydrostatic_buildrho_atmos_0d(), scale_atmos_hydrostatic::atmos_hydrostatic_buildrho_atmos_rev_2d(), scale_atmos_hydrostatic::atmos_hydrostatic_buildrho_atmos_rev_3d(), atmos_refstate_dens, atmos_refstate_pott, atmos_refstate_pres, atmos_refstate_qv, atmos_refstate_temp, scale_const::const_cpdry, scale_const::const_pre00, scale_const::const_rdry, scale_const::const_undef, scale_grid::grid_cz, scale_grid::grid_fz, scale_grid_index::ieb, scale_interpolation::interp_vertical_z2xi(), scale_grid_index::isb, scale_grid_index::jeb, scale_grid_index::jsb, scale_grid_index::ka, scale_grid_index::ke, scale_grid_index::ks, scale_grid_real::real_cz, scale_grid_real::real_fz, and scale_grid_real::real_phi.
Referenced by atmos_refstate_read(), atmos_refstate_update(), and atmos_refstate_write().
subroutine scale_atmos_refstate::smoothing | ( | real(rp), dimension(ka), intent(inout) | phi | ) |
Definition at line 858 of file scale_atmos_sub_refstate.F90.
References scale_const::const_eps, scale_grid::grid_fdz, scale_grid::grid_rcdz, scale_stdio::io_fid_log, scale_stdio::io_l, scale_grid_index::ke, scale_grid_index::ks, and scale_process::prc_mpistop().
Referenced by atmos_refstate_update().
logical, public scale_atmos_refstate::atmos_refstate_update_flag = .false. |
Definition at line 43 of file scale_atmos_sub_refstate.F90.
Referenced by mod_atmos_driver::atmos_driver(), atmos_refstate_resume(), and atmos_refstate_setup().
real(rp), dimension(:,:,:), allocatable, public scale_atmos_refstate::atmos_refstate_pres |
refernce pressure [Pa]
Definition at line 45 of file scale_atmos_sub_refstate.F90.
Referenced by mod_atmos_dyn_driver::atmos_dyn_driver(), atmos_refstate_calc3d(), atmos_refstate_read(), atmos_refstate_setup(), and atmos_refstate_write().
real(rp), dimension(:,:,:), allocatable, public scale_atmos_refstate::atmos_refstate_temp |
refernce temperature [K]
Definition at line 46 of file scale_atmos_sub_refstate.F90.
Referenced by atmos_refstate_calc3d(), atmos_refstate_read(), atmos_refstate_setup(), and atmos_refstate_write().
real(rp), dimension(:,:,:), allocatable, public scale_atmos_refstate::atmos_refstate_dens |
refernce density [kg/m3]
Definition at line 47 of file scale_atmos_sub_refstate.F90.
Referenced by scale_atmos_boundary::atmos_boundary_resume(), mod_atmos_dyn_driver::atmos_dyn_driver(), scale_atmos_phy_mp_kessler::atmos_phy_mp_kessler(), atmos_refstate_calc3d(), atmos_refstate_read(), atmos_refstate_setup(), and atmos_refstate_write().
real(rp), dimension(:,:,:), allocatable, public scale_atmos_refstate::atmos_refstate_pott |
refernce potential temperature [K]
Definition at line 48 of file scale_atmos_sub_refstate.F90.
Referenced by mod_atmos_dyn_driver::atmos_dyn_driver(), atmos_refstate_calc3d(), atmos_refstate_read(), atmos_refstate_setup(), and atmos_refstate_write().
real(rp), dimension (:,:,:), allocatable, public scale_atmos_refstate::atmos_refstate_qv |
refernce vapor [kg/kg]
Definition at line 49 of file scale_atmos_sub_refstate.F90.
Referenced by mod_atmos_dyn_driver::atmos_dyn_driver(), atmos_refstate_calc3d(), atmos_refstate_read(), atmos_refstate_setup(), and atmos_refstate_write().