SCALE-RM
|
module atmosphere / reference state More...
Functions/Subroutines | |
subroutine, public | atmos_refstate_setup (KA, KS, KE, IA, IS, IE, JA, JS, JE, CZ, FZ, REAL_CZ, REAL_FZ, REAL_PHI) |
Setup. More... | |
subroutine, public | atmos_refstate_read (KA, KS, KE, IA, IS, IE, JA, JS, JE, CZ, FZ, REAL_CZ, REAL_FZ, REAL_PHI) |
Read reference state profile. More... | |
subroutine, public | atmos_refstate_write |
Write reference state profile. More... | |
subroutine, public | atmos_refstate_update (KA, KS, KE, IA, IS, IE, JA, JS, JE, DENS, POTT, TEMP, PRES, QV, CZ, FZ, FDZ, RCDZ, REAL_CZ, REAL_FZ, REAL_PHI, AREA, nowsec, force) |
Update reference state profile (Horizontal average) More... | |
subroutine | atmos_refstate_calc3d (KA, KS, KE, IA, IS, IE, JA, JS, JE, CZ, FZ, REAL_CZ, REAL_FZ, REAL_PHI) |
apply 1D reference to 3D (terrain-following) with re-calc hydrostatic balance More... | |
subroutine | atmos_refstate_smoothing (KA, KS, KE, FDZ, RCDZ, 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_SHORT) | '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_DT | real(DP) | -1.0_DP |
subroutine, public scale_atmos_refstate::atmos_refstate_setup | ( | 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), intent(in) | CZ, | ||
real(rp), dimension (0:ka), intent(in) | FZ, | ||
real(rp), dimension ( ka,ia,ja), intent(in) | REAL_CZ, | ||
real(rp), dimension (0:ka,ia,ja), intent(in) | REAL_FZ, | ||
real(rp), dimension( ka,ia,ja), intent(in) | REAL_PHI | ||
) |
Setup.
Definition at line 83 of file scale_atmos_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_const::const_undef, scale_io::io_fid_conf, and scale_prc::prc_abort().
Referenced by mod_atmos_driver::atmos_driver_setup().
subroutine, public scale_atmos_refstate::atmos_refstate_read | ( | 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), intent(in) | CZ, | ||
real(rp), dimension (0:ka), intent(in) | FZ, | ||
real(rp), dimension ( ka,ia,ja), intent(in) | REAL_CZ, | ||
real(rp), dimension (0:ka,ia,ja), intent(in) | REAL_FZ, | ||
real(rp), dimension( ka,ia,ja), intent(in) | REAL_PHI | ||
) |
Read reference state profile.
Definition at line 223 of file scale_atmos_refstate.F90.
References atmos_refstate_calc3d(), atmos_refstate_dens, atmos_refstate_pott, atmos_refstate_pres, atmos_refstate_qv, atmos_refstate_temp, scale_file_cartesc::file_cartesc_close(), scale_file_cartesc::file_cartesc_open(), and scale_prc::prc_abort().
Referenced by atmos_refstate_setup().
subroutine, public scale_atmos_refstate::atmos_refstate_write | ( | ) |
Write reference state profile.
Definition at line 283 of file scale_atmos_refstate.F90.
References atmos_refstate_calc3d(), atmos_refstate_dens, atmos_refstate_pott, atmos_refstate_pres, atmos_refstate_qv, atmos_refstate_temp, scale_const::const_epsvap, and scale_const::const_pstd.
Referenced by atmos_refstate_update().
subroutine, public scale_atmos_refstate::atmos_refstate_update | ( | 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), intent(in) | DENS, | ||
real(rp), dimension (ka,ia,ja), intent(in) | POTT, | ||
real(rp), dimension (ka,ia,ja), intent(in) | TEMP, | ||
real(rp), dimension (ka,ia,ja), intent(in) | PRES, | ||
real(rp), dimension (ka,ia,ja), intent(in) | QV, | ||
real(rp), dimension ( ka), intent(in) | CZ, | ||
real(rp), dimension (0:ka), intent(in) | FZ, | ||
real(rp), dimension ( ka-1), intent(in) | FDZ, | ||
real(rp), dimension ( ka), intent(in) | RCDZ, | ||
real(rp), dimension ( ka,ia,ja), intent(in) | REAL_CZ, | ||
real(rp), dimension (0:ka,ia,ja), intent(in) | REAL_FZ, | ||
real(rp), dimension( ka,ia,ja), intent(in) | REAL_PHI, | ||
real(rp), dimension ( ia,ja), intent(in) | AREA, | ||
real(dp), intent(in) | nowsec, | ||
logical, intent(in), optional | force | ||
) |
Update reference state profile (Horizontal average)
Definition at line 559 of file scale_atmos_refstate.F90.
References atmos_refstate_calc3d(), atmos_refstate_smoothing(), atmos_refstate_write(), and scale_interp_vert::interp_vert_xi2z().
Referenced by mod_atmos_driver::atmos_driver_update(), and mod_rm_driver::restart_read().
subroutine scale_atmos_refstate::atmos_refstate_calc3d | ( | 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), intent(in) | CZ, | ||
real(rp), dimension (0:ka), intent(in) | FZ, | ||
real(rp), dimension ( ka,ia,ja), intent(in) | REAL_CZ, | ||
real(rp), dimension (0:ka,ia,ja), intent(in) | REAL_FZ, | ||
real(rp), dimension( ka,ia,ja), intent(in) | REAL_PHI | ||
) |
apply 1D reference to 3D (terrain-following) with re-calc hydrostatic balance
Definition at line 679 of file scale_atmos_refstate.F90.
References 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, and scale_interp_vert::interp_vert_z2xi().
Referenced by atmos_refstate_read(), atmos_refstate_update(), and atmos_refstate_write().
subroutine scale_atmos_refstate::atmos_refstate_smoothing | ( | integer, intent(in) | KA, |
integer, intent(in) | KS, | ||
integer, intent(in) | KE, | ||
real(rp), dimension (ka-1), intent(in) | FDZ, | ||
real(rp), dimension(ka), intent(in) | RCDZ, | ||
real(rp), dimension(ka), intent(inout) | phi | ||
) |
Definition at line 868 of file scale_atmos_refstate.F90.
References scale_const::const_eps.
Referenced by atmos_refstate_update().
logical, public scale_atmos_refstate::atmos_refstate_update_flag = .false. |
Definition at line 36 of file scale_atmos_refstate.F90.
Referenced by mod_atmos_driver::atmos_driver_update(), and atmos_refstate_setup().
real(rp), dimension(:,:,:), allocatable, public scale_atmos_refstate::atmos_refstate_pres |
refernce pressure [Pa]
Definition at line 38 of file scale_atmos_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 39 of file scale_atmos_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 40 of file scale_atmos_refstate.F90.
Referenced by mod_atmos_bnd_driver::atmos_boundary_driver_set(), mod_atmos_dyn_driver::atmos_dyn_driver(), mod_atmos_phy_mp_driver::atmos_phy_mp_driver_calc_tendency(), 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 41 of file scale_atmos_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 42 of file scale_atmos_refstate.F90.
Referenced by mod_atmos_dyn_driver::atmos_dyn_driver(), atmos_refstate_calc3d(), atmos_refstate_read(), atmos_refstate_setup(), and atmos_refstate_write().