SCALE-RM
|
module ATMOSPHERE / Hydrostatic barance More...
Functions/Subroutines | |
subroutine, public | atmos_hydrostatic_setup |
Setup. More... | |
subroutine | atmos_hydrostatic_buildrho_1d (dens, temp, pres, pott, qv, qc, temp_sfc, pres_sfc, pott_sfc, qv_sfc, qc_sfc) |
Build up density from surface (1D) More... | |
subroutine | atmos_hydrostatic_buildrho_3d (dens, temp, pres, pott, qv, qc, temp_sfc, pres_sfc, pott_sfc, qv_sfc, qc_sfc) |
Build up density from surface (3D) More... | |
subroutine | atmos_hydrostatic_buildrho_real_3d (dens, temp, pres, pott, qv, qc) |
Build up density from surface (3D), not to reverse from TOA. More... | |
subroutine, public | atmos_hydrostatic_buildrho_atmos_0d (dens_L2, temp_L2, pres_L2, pott_L2, qv_L2, qc_L2, dens_L1, pott_L1, qv_L1, qc_L1, dz, k) |
Build up density (0D) More... | |
subroutine | atmos_hydrostatic_buildrho_atmos_1d (dens, temp, pres, pott, qv, qc) |
Build up density from lowermost atmosphere (1D) More... | |
subroutine | atmos_hydrostatic_buildrho_atmos_3d (dens, temp, pres, pott, qv, qc, dz, kref_in) |
Build up density from lowermost atmosphere (3D) More... | |
subroutine, public | atmos_hydrostatic_buildrho_atmos_rev_2d (dens_L1, temp_L1, pres_L1, pott_L1, qv_L1, qc_L1, dens_L2, pott_L2, qv_L2, qc_L2, dz, k) |
Build up density (2D) More... | |
subroutine, public | atmos_hydrostatic_buildrho_atmos_rev_3d (dens, temp, pres, pott, qv, qc, dz, kref_in) |
Build up density from lowermost atmosphere (3D) More... | |
subroutine | atmos_hydrostatic_buildrho_bytemp_1d (dens, pott, pres, temp, qv, qc, pott_sfc, pres_sfc, temp_sfc, qv_sfc, qc_sfc) |
Build up density from surface (1D) More... | |
subroutine | atmos_hydrostatic_buildrho_bytemp_3d (dens, pott, pres, temp, qv, qc, pott_sfc, pres_sfc, temp_sfc, qv_sfc, qc_sfc) |
Build up density from surface (3D) More... | |
subroutine | atmos_hydrostatic_buildrho_bytemp_atmos_1d (dens, pott, pres, temp, qv, qc) |
Build up density from lowermost atmosphere (1D) More... | |
subroutine | atmos_hydrostatic_buildrho_bytemp_atmos_3d (dens, pott, pres, temp, qv, qc) |
Build up density from lowermost atmosphere (3D) More... | |
subroutine | atmos_hydrostatic_barometric_law_mslp_0d (mslp, pres, temp, dz) |
Calculate mean sea-level pressure from barometric law (0D) More... | |
module ATMOSPHERE / Hydrostatic barance
name | type | default value | comment |
---|---|---|---|
HYDROSTATIC_USELAPSERATE | logical | .false. | use lapse rate? |
HYDROSTATIC_BUILDRHO_REAL_KREF | integer | 1 |
subroutine, public scale_atmos_hydrostatic::atmos_hydrostatic_setup | ( | ) |
Setup.
Definition at line 125 of file scale_atmos_sub_hydrostatic.F90.
References scale_const::const_eps, scale_atmos_hydrometeor::i_qc, scale_atmos_hydrometeor::i_qv, scale_stdio::io_fid_conf, scale_stdio::io_fid_log, scale_stdio::io_fid_nml, scale_stdio::io_l, scale_stdio::io_nml, scale_process::prc_mpistop(), scale_tracer::tracer_cp, and scale_tracer::tracer_cv.
Referenced by mod_rm_driver::scalerm(), and mod_rm_prep::scalerm_prep().
subroutine scale_atmos_hydrostatic::atmos_hydrostatic_buildrho_1d | ( | real(rp), dimension(ka), intent(out) | dens, |
real(rp), dimension(ka), intent(out) | temp, | ||
real(rp), dimension(ka), intent(out) | pres, | ||
real(rp), dimension(ka), intent(in) | pott, | ||
real(rp), dimension (ka), intent(in) | qv, | ||
real(rp), dimension (ka), intent(in) | qc, | ||
real(rp), intent(out) | temp_sfc, | ||
real(rp), intent(in) | pres_sfc, | ||
real(rp), intent(in) | pott_sfc, | ||
real(rp), intent(in) | qv_sfc, | ||
real(rp), intent(in) | qc_sfc | ||
) |
Build up density from surface (1D)
[out] | dens | density [kg/m3] |
[out] | temp | temperature [K] |
[out] | pres | pressure [Pa] |
[in] | pott | potential temperature [K] |
[in] | qv | water vapor [kg/kg] |
[in] | qc | liquid water [kg/kg] |
[out] | temp_sfc | surface temperature [K] |
[in] | pres_sfc | surface pressure [Pa] |
[in] | pott_sfc | surface potential temperature [K] |
[in] | qv_sfc | surface water vapor [kg/kg] |
[in] | qc_sfc | surface liquid water [kg/kg] |
Definition at line 194 of file scale_atmos_sub_hydrostatic.F90.
References atmos_hydrostatic_buildrho_atmos_1d(), scale_grid::grid_cz, scale_grid_index::ks, and scale_process::prc_mpistop().
subroutine scale_atmos_hydrostatic::atmos_hydrostatic_buildrho_3d | ( | real(rp), dimension(ka,ia,ja), intent(out) | dens, |
real(rp), dimension(ka,ia,ja), intent(out) | temp, | ||
real(rp), dimension(ka,ia,ja), intent(out) | pres, | ||
real(rp), dimension(ka,ia,ja), intent(in) | pott, | ||
real(rp), dimension (ka,ia,ja), intent(in) | qv, | ||
real(rp), dimension (ka,ia,ja), intent(in) | qc, | ||
real(rp), dimension(1,ia,ja), intent(out) | temp_sfc, | ||
real(rp), dimension(1,ia,ja), intent(in) | pres_sfc, | ||
real(rp), dimension(1,ia,ja), intent(in) | pott_sfc, | ||
real(rp), dimension (1,ia,ja), intent(in) | qv_sfc, | ||
real(rp), dimension (1,ia,ja), intent(in) | qc_sfc | ||
) |
Build up density from surface (3D)
[out] | dens | density [kg/m3] |
[out] | temp | temperature [K] |
[out] | pres | pressure [Pa] |
[in] | pott | potential temperature [K] |
[in] | qv | water vapor [kg/kg] |
[in] | qc | liquid water [kg/kg] |
[out] | temp_sfc | surface temperature [K] |
[in] | pres_sfc | surface pressure [Pa] |
[in] | pott_sfc | surface potential temperature [K] |
[in] | qv_sfc | surface water vapor [kg/kg] |
[in] | qc_sfc | surface liquid water [kg/kg] |
Definition at line 323 of file scale_atmos_sub_hydrostatic.F90.
References atmos_hydrostatic_buildrho_atmos_3d(), atmos_hydrostatic_buildrho_atmos_rev_2d(), atmos_hydrostatic_buildrho_atmos_rev_3d(), scale_comm::comm_horizontal_mean(), scale_grid_index::ieb, scale_grid_index::isb, scale_grid_index::jeb, scale_grid_index::jsb, scale_grid_index::ke, scale_grid_index::ks, scale_process::prc_mpistop(), scale_grid_real::real_cz, and scale_grid_real::real_fz.
subroutine scale_atmos_hydrostatic::atmos_hydrostatic_buildrho_real_3d | ( | real(rp), dimension(ka,ia,ja), intent(out) | dens, |
real(rp), dimension(ka,ia,ja), intent(out) | temp, | ||
real(rp), dimension(ka,ia,ja), intent(inout) | pres, | ||
real(rp), dimension(ka,ia,ja), intent(in) | pott, | ||
real(rp), dimension (ka,ia,ja), intent(in) | qv, | ||
real(rp), dimension (ka,ia,ja), intent(in) | qc | ||
) |
Build up density from surface (3D), not to reverse from TOA.
[out] | dens | density [kg/m3] |
[out] | temp | temperature [K] |
[in,out] | pres | pressure [Pa] |
[in] | pott | potential temperature [K] |
[in] | qv | water vapor [kg/kg] |
[in] | qc | liquid water [kg/kg] |
Definition at line 520 of file scale_atmos_sub_hydrostatic.F90.
References atmos_hydrostatic_buildrho_atmos_3d(), atmos_hydrostatic_buildrho_atmos_rev_3d(), scale_grid_index::ieb, scale_grid_index::isb, scale_grid_index::jeb, scale_grid_index::jsb, scale_grid_index::ke, scale_grid_index::ks, scale_process::prc_mpistop(), scale_grid_real::real_cz, and scale_grid_real::real_fz.
subroutine, public scale_atmos_hydrostatic::atmos_hydrostatic_buildrho_atmos_0d | ( | real(rp), intent(out) | dens_L2, |
real(rp), intent(out) | temp_L2, | ||
real(rp), intent(out) | pres_L2, | ||
real(rp), intent(in) | pott_L2, | ||
real(rp), intent(in) | qv_L2, | ||
real(rp), intent(in) | qc_L2, | ||
real(rp), intent(in) | dens_L1, | ||
real(rp), intent(in) | pott_L1, | ||
real(rp), intent(in) | qv_L1, | ||
real(rp), intent(in) | qc_L1, | ||
real(rp), intent(in) | dz, | ||
integer, intent(in) | k | ||
) |
Build up density (0D)
[out] | dens_l2 | density at layer 2 [kg/m3] |
[out] | temp_l2 | temperature at layer 2 [K] |
[out] | pres_l2 | pressure at layer 2 [Pa] |
[in] | pott_l2 | potential temperature at layer 2 [K] |
[in] | qv_l2 | water vapor at layer 2 [kg/kg] |
[in] | qc_l2 | liquid water at layer 2 [kg/kg] |
[in] | dens_l1 | density at layer 1 [Pa] |
[in] | pott_l1 | potential temperature at layer 1 [K] |
[in] | qv_l1 | water vapor at layer 1 [kg/kg] |
[in] | qc_l1 | liquid water at layer 1 [kg/kg] |
[in] | dz | distance from layer 1 to layer 2 [m] |
[in] | k | for monitor |
Definition at line 637 of file scale_atmos_sub_hydrostatic.F90.
References scale_process::prc_mpistop().
Referenced by scale_atmos_refstate::atmos_refstate_calc3d().
subroutine scale_atmos_hydrostatic::atmos_hydrostatic_buildrho_atmos_1d | ( | real(rp), dimension(ka), intent(inout) | dens, |
real(rp), dimension(ka), intent(out) | temp, | ||
real(rp), dimension(ka), intent(out) | pres, | ||
real(rp), dimension(ka), intent(in) | pott, | ||
real(rp), dimension (ka), intent(in) | qv, | ||
real(rp), dimension (ka), intent(in) | qc | ||
) |
Build up density from lowermost atmosphere (1D)
[in,out] | dens | density [kg/m3] |
[out] | temp | temperature [K] |
[out] | pres | pressure [Pa] |
[in] | pott | potential temperature [K] |
[in] | qv | water vapor [kg/kg] |
[in] | qc | liquid water [kg/kg] |
Definition at line 733 of file scale_atmos_sub_hydrostatic.F90.
References scale_grid::grid_fdz, scale_grid_index::ieb, scale_grid_index::isb, scale_grid_index::jeb, scale_grid_index::jsb, scale_grid_index::ke, scale_grid_index::ks, and scale_process::prc_mpistop().
Referenced by atmos_hydrostatic_buildrho_1d().
subroutine scale_atmos_hydrostatic::atmos_hydrostatic_buildrho_atmos_3d | ( | real(rp), dimension(ka,ia,ja), intent(inout) | dens, |
real(rp), dimension(ka,ia,ja), intent(out) | temp, | ||
real(rp), dimension(ka,ia,ja), intent(out) | pres, | ||
real(rp), dimension(ka,ia,ja), intent(in) | pott, | ||
real(rp), dimension (ka,ia,ja), intent(in) | qv, | ||
real(rp), dimension (ka,ia,ja), intent(in) | qc, | ||
real(rp), dimension (ka,ia,ja), intent(in) | dz, | ||
integer, intent(in), optional | kref_in | ||
) |
Build up density from lowermost atmosphere (3D)
[in,out] | dens | density [kg/m3] |
[out] | temp | temperature [K] |
[out] | pres | pressure [Pa] |
[in] | pott | potential temperature [K] |
[in] | qv | water vapor [kg/kg] |
[in] | qc | liquid water [kg/kg] |
[in] | dz | distance between the layer (center) [m] |
Definition at line 946 of file scale_atmos_sub_hydrostatic.F90.
References scale_grid_index::ieb, scale_grid_index::isb, scale_grid_index::jeb, scale_grid_index::jsb, scale_grid_index::ke, scale_grid_index::ks, and scale_process::prc_mpistop().
Referenced by atmos_hydrostatic_buildrho_3d(), and atmos_hydrostatic_buildrho_real_3d().
subroutine, public scale_atmos_hydrostatic::atmos_hydrostatic_buildrho_atmos_rev_2d | ( | real(rp), dimension(ia,ja), intent(out) | dens_L1, |
real(rp), dimension(ia,ja), intent(out) | temp_L1, | ||
real(rp), dimension(ia,ja), intent(out) | pres_L1, | ||
real(rp), dimension(ia,ja), intent(in) | pott_L1, | ||
real(rp), dimension (ia,ja), intent(in) | qv_L1, | ||
real(rp), dimension (ia,ja), intent(in) | qc_L1, | ||
real(rp), dimension(ia,ja), intent(in) | dens_L2, | ||
real(rp), dimension(ia,ja), intent(in) | pott_L2, | ||
real(rp), dimension (ia,ja), intent(in) | qv_L2, | ||
real(rp), dimension (ia,ja), intent(in) | qc_L2, | ||
real(rp), dimension (ia,ja), intent(in) | dz, | ||
integer, intent(in) | k | ||
) |
Build up density (2D)
[out] | dens_l1 | density at layer 1 [kg/m3] |
[out] | temp_l1 | temperature at layer 1 [K] |
[out] | pres_l1 | pressure at layer 1 [Pa] |
[in] | pott_l1 | potential temperature at layer 1 [K] |
[in] | qv_l1 | water vapor at layer 1 [kg/kg] |
[in] | qc_l1 | liquid water at layer 1 [kg/kg] |
[in] | dens_l2 | density at layer 2 [Pa] |
[in] | pott_l2 | potential temperature at layer 2 [K] |
[in] | qv_l2 | water vapor at layer 2 [kg/kg] |
[in] | qc_l2 | liquid water at layer 2 [kg/kg] |
[in] | dz | distance from layer 1 to layer 2 [m] |
[in] | k | for monitor |
Definition at line 1061 of file scale_atmos_sub_hydrostatic.F90.
References scale_grid_index::ieb, scale_grid_index::isb, scale_grid_index::jeb, scale_grid_index::jsb, and scale_process::prc_mpistop().
Referenced by atmos_hydrostatic_buildrho_3d(), and scale_atmos_refstate::atmos_refstate_calc3d().
subroutine, public scale_atmos_hydrostatic::atmos_hydrostatic_buildrho_atmos_rev_3d | ( | real(rp), dimension(ka,ia,ja), intent(inout) | dens, |
real(rp), dimension(ka,ia,ja), intent(out) | temp, | ||
real(rp), dimension(ka,ia,ja), intent(out) | pres, | ||
real(rp), dimension(ka,ia,ja), intent(in) | pott, | ||
real(rp), dimension (ka,ia,ja), intent(in) | qv, | ||
real(rp), dimension (ka,ia,ja), intent(in) | qc, | ||
real(rp), dimension (ka,ia,ja), intent(in) | dz, | ||
integer, intent(in), optional | kref_in | ||
) |
Build up density from lowermost atmosphere (3D)
[in,out] | dens | density [kg/m3] |
[out] | temp | temperature [K] |
[out] | pres | pressure [Pa] |
[in] | pott | potential temperature [K] |
[in] | qv | water vapor [kg/kg] |
[in] | qc | liquid water [kg/kg] |
[in] | dz | distance between the layer (center) [m] |
Definition at line 1173 of file scale_atmos_sub_hydrostatic.F90.
References scale_grid_index::ieb, scale_grid_index::isb, scale_grid_index::jeb, scale_grid_index::jsb, scale_grid_index::ke, scale_grid_index::ks, and scale_process::prc_mpistop().
Referenced by atmos_hydrostatic_buildrho_3d(), atmos_hydrostatic_buildrho_real_3d(), and scale_atmos_refstate::atmos_refstate_calc3d().
subroutine scale_atmos_hydrostatic::atmos_hydrostatic_buildrho_bytemp_1d | ( | real(rp), dimension(ka), intent(out) | dens, |
real(rp), dimension(ka), intent(out) | pott, | ||
real(rp), dimension(ka), intent(out) | pres, | ||
real(rp), dimension(ka), intent(in) | temp, | ||
real(rp), dimension (ka), intent(in) | qv, | ||
real(rp), dimension (ka), intent(in) | qc, | ||
real(rp), intent(out) | pott_sfc, | ||
real(rp), intent(in) | pres_sfc, | ||
real(rp), intent(in) | temp_sfc, | ||
real(rp), intent(in) | qv_sfc, | ||
real(rp), intent(in) | qc_sfc | ||
) |
Build up density from surface (1D)
[out] | dens | density [kg/m3] |
[out] | pott | potential temperature [K] |
[out] | pres | pressure [Pa] |
[in] | temp | temperature [K] |
[in] | qv | water vapor [kg/kg] |
[in] | qc | liquid water [kg/kg] |
[out] | pott_sfc | surface potential temperature [K] |
[in] | pres_sfc | surface pressure [Pa] |
[in] | temp_sfc | surface temperature [K] |
[in] | qv_sfc | surface water vapor [kg/kg] |
[in] | qc_sfc | surface liquid water [kg/kg] |
Definition at line 1287 of file scale_atmos_sub_hydrostatic.F90.
References atmos_hydrostatic_buildrho_bytemp_atmos_1d(), scale_grid::grid_cz, scale_grid_index::ks, and scale_process::prc_mpistop().
subroutine scale_atmos_hydrostatic::atmos_hydrostatic_buildrho_bytemp_3d | ( | real(rp), dimension(ka,ia,ja), intent(out) | dens, |
real(rp), dimension(ka,ia,ja), intent(out) | pott, | ||
real(rp), dimension(ka,ia,ja), intent(out) | pres, | ||
real(rp), dimension(ka,ia,ja), intent(in) | temp, | ||
real(rp), dimension (ka,ia,ja), intent(in) | qv, | ||
real(rp), dimension (ka,ia,ja), intent(in) | qc, | ||
real(rp), dimension(1,ia,ja), intent(out) | pott_sfc, | ||
real(rp), dimension(1,ia,ja), intent(in) | pres_sfc, | ||
real(rp), dimension(1,ia,ja), intent(in) | temp_sfc, | ||
real(rp), dimension (1,ia,ja), intent(in) | qv_sfc, | ||
real(rp), dimension (1,ia,ja), intent(in) | qc_sfc | ||
) |
Build up density from surface (3D)
[out] | dens | density [kg/m3] |
[out] | pott | potential temperature [K] |
[out] | pres | pressure [Pa] |
[in] | temp | temperature [K] |
[in] | qv | water vapor [kg/kg] |
[in] | qc | liquid water [kg/kg] |
[out] | pott_sfc | surface potential temperature [K] |
[in] | pres_sfc | surface pressure [Pa] |
[in] | temp_sfc | surface temperature [K] |
[in] | qv_sfc | surface water vapor [kg/kg] |
[in] | qc_sfc | surface liquid water [kg/kg] |
Definition at line 1400 of file scale_atmos_sub_hydrostatic.F90.
References atmos_hydrostatic_buildrho_bytemp_atmos_3d(), scale_grid_index::ieb, scale_grid_index::isb, scale_grid_index::jeb, scale_grid_index::jsb, scale_grid_index::ks, scale_process::prc_mpistop(), scale_grid_real::real_cz, and scale_grid_real::real_fz.
subroutine scale_atmos_hydrostatic::atmos_hydrostatic_buildrho_bytemp_atmos_1d | ( | real(rp), dimension(ka), intent(inout) | dens, |
real(rp), dimension(ka), intent(out) | pott, | ||
real(rp), dimension(ka), intent(out) | pres, | ||
real(rp), dimension(ka), intent(in) | temp, | ||
real(rp), dimension (ka), intent(in) | qv, | ||
real(rp), dimension (ka), intent(in) | qc | ||
) |
Build up density from lowermost atmosphere (1D)
[in,out] | dens | density [kg/m3] |
[out] | pott | potential temperature [K] |
[out] | pres | pressure [Pa] |
[in] | temp | temperature [K] |
[in] | qv | water vapor [kg/kg] |
[in] | qc | liquid water [kg/kg] |
Definition at line 1529 of file scale_atmos_sub_hydrostatic.F90.
References scale_grid::grid_fdz, scale_grid_index::ke, scale_grid_index::ks, and scale_process::prc_mpistop().
Referenced by atmos_hydrostatic_buildrho_bytemp_1d().
subroutine scale_atmos_hydrostatic::atmos_hydrostatic_buildrho_bytemp_atmos_3d | ( | real(rp), dimension(ka,ia,ja), intent(inout) | dens, |
real(rp), dimension(ka,ia,ja), intent(out) | pott, | ||
real(rp), dimension(ka,ia,ja), intent(out) | pres, | ||
real(rp), dimension(ka,ia,ja), intent(in) | temp, | ||
real(rp), dimension (ka,ia,ja), intent(in) | qv, | ||
real(rp), dimension (ka,ia,ja), intent(in) | qc | ||
) |
Build up density from lowermost atmosphere (3D)
[in,out] | dens | density [kg/m3] |
[out] | pott | potential temperature [K] |
[out] | pres | pressure [Pa] |
[in] | temp | temperature [K] |
[in] | qv | water vapor [kg/kg] |
[in] | qc | liquid water [kg/kg] |
Definition at line 1614 of file scale_atmos_sub_hydrostatic.F90.
References scale_grid_index::ieb, scale_grid_index::isb, scale_grid_index::jeb, scale_grid_index::jsb, scale_grid_index::ke, scale_grid_index::ks, scale_process::prc_mpistop(), and scale_grid_real::real_cz.
Referenced by atmos_hydrostatic_buildrho_bytemp_3d().
subroutine scale_atmos_hydrostatic::atmos_hydrostatic_barometric_law_mslp_0d | ( | real(rp), intent(out) | mslp, |
real(rp), intent(in) | pres, | ||
real(rp), intent(in) | temp, | ||
real(rp), intent(in) | dz | ||
) |
Calculate mean sea-level pressure from barometric law (0D)
[out] | mslp | mean sea-level pressure [Pa] |
[in] | pres | surface pressure [Pa] |
[in] | temp | surface air temperature [K] |
[in] | dz | surface height from MSL [m] |
Definition at line 1711 of file scale_atmos_sub_hydrostatic.F90.
References scale_grid_index::ieb, scale_grid_index::isb, scale_grid_index::jeb, and scale_grid_index::jsb.