SCALE-RM
|
module atmosphere / hydrostatic barance More...
Functions/Subroutines | |
subroutine, public | atmos_hydrostatic_setup |
Setup. More... | |
subroutine | atmos_hydrostatic_buildrho_1d (KA, KS, KE, pott, qv, qc, pres_sfc, pott_sfc, qv_sfc, qc_sfc, cz, fz, dens, temp, pres, temp_sfc) |
Build up density from surface (1D) More... | |
subroutine | atmos_hydrostatic_buildrho_3d (KA, KS, KE, IA, IS, IE, JA, JS, JE, pott, qv, qc, pres_sfc, pott_sfc, qv_sfc, qc_sfc, cz, fz, area, dens, temp, pres, temp_sfc) |
Build up density from surface (3D) More... | |
subroutine | atmos_hydrostatic_buildrho_real_3d (KA, KS, KE, IA, IS, IE, JA, JS, JE, pott, qv, qc, cz, pres, dens, temp) |
Build up density from surface (3D), not to reverse from TOA. More... | |
subroutine | atmos_hydrostatic_buildrho_atmos_0d (pott_L2, qv_L2, qc_L2, dens_L1, pott_L1, qv_L1, qc_L1, dz, k, dens_L2, temp_L2, pres_L2) |
Build up density (0D) More... | |
subroutine | atmos_hydrostatic_buildrho_atmos_1d (KA, KS, KE, pott, qv, qc, dz, dens, temp, pres, kref) |
Build up density from lowermost atmosphere (1D) More... | |
subroutine | atmos_hydrostatic_buildrho_atmos_rev_1d (KA, KS, KE, pott, qv, qc, dz, dens, temp, pres, kref) |
Build up density from upermost atmosphere (1D) More... | |
subroutine | atmos_hydrostatic_buildrho_bytemp_3d (KA, KS, KE, IA, IS, IE, JA, JS, JE, temp, qv, qc, pres_sfc, temp_sfc, qv_sfc, qc_sfc, cz, fz, dens, pott, pres, pott_sfc) |
Build up density from surface (3D) More... | |
subroutine | atmos_hydrostatic_buildrho_bytemp_atmos_rev_1d (KA, KS, KE, temp, qv, qc, dz, dens, pott, pres) |
Build up density from upermost atmosphere (1D) More... | |
subroutine | atmos_hydrostatic_buildrho_bytemp_atmos_3d (KA, KS, KE, IA, IS, IE, JA, JS, JE, temp, qv, qc, dz, dens, pott, pres) |
Build up density from lowermost atmosphere (3D) More... | |
module atmosphere / hydrostatic barance
name | type | default value | comment |
---|---|---|---|
HYDROSTATIC_USELAPSERATE | logical | .false. | use lapse rate? |
HYDROSTATIC_BUILDRHO_REAL_KREF | integer | 1 | |
HYDROSTATIC_BAROMETRIC_LAW_MSLP_KREF | integer | 1 | reference layer for MSLP calculation |
subroutine, public scale_atmos_hydrostatic::atmos_hydrostatic_setup | ( | ) |
Setup.
Definition at line 116 of file scale_atmos_hydrostatic.F90.
References scale_const::const_eps, scale_io::io_fid_conf, and scale_prc::prc_abort().
Referenced by mod_rm_driver::rm_driver(), and mod_rm_prep::rm_prep().
subroutine scale_atmos_hydrostatic::atmos_hydrostatic_buildrho_1d | ( | integer, intent(in) | KA, |
integer, intent(in) | KS, | ||
integer, intent(in) | KE, | ||
real(rp), dimension(ka), intent(in) | pott, | ||
real(rp), dimension (ka), intent(in) | qv, | ||
real(rp), dimension (ka), intent(in) | qc, | ||
real(rp), intent(in) | pres_sfc, | ||
real(rp), intent(in) | pott_sfc, | ||
real(rp), intent(in) | qv_sfc, | ||
real(rp), intent(in) | qc_sfc, | ||
real(rp), dimension (ka), intent(in) | cz, | ||
real(rp), dimension (0:ka), intent(in) | fz, | ||
real(rp), dimension(ka), intent(out) | dens, | ||
real(rp), dimension(ka), intent(out) | temp, | ||
real(rp), dimension(ka), intent(out) | pres, | ||
real(rp), intent(out) | temp_sfc | ||
) |
Build up density from surface (1D)
[in] | pott | potential temperature [K] |
[in] | qv | water vapor [kg/kg] |
[in] | qc | liquid water [kg/kg] |
[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] |
[out] | dens | density [kg/m3] |
[out] | temp | temperature [K] |
[out] | pres | pressure [Pa] |
[out] | temp_sfc | surface temperature [K] |
Definition at line 163 of file scale_atmos_hydrostatic.F90.
References atmos_hydrostatic_buildrho_atmos_0d(), atmos_hydrostatic_buildrho_atmos_1d(), scale_atmos_hydrometeor::cp_vapor, scale_atmos_hydrometeor::cp_water, scale_atmos_hydrometeor::cv_vapor, scale_atmos_hydrometeor::cv_water, and scale_prc::prc_abort().
Referenced by atmos_hydrostatic_buildrho_3d().
subroutine scale_atmos_hydrostatic::atmos_hydrostatic_buildrho_3d | ( | 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) | pott, | ||
real(rp), dimension (ka,ia,ja), intent(in) | qv, | ||
real(rp), dimension (ka,ia,ja), intent(in) | qc, | ||
real(rp), dimension(ia,ja), intent(in) | pres_sfc, | ||
real(rp), dimension(ia,ja), intent(in) | pott_sfc, | ||
real(rp), dimension (ia,ja), intent(in) | qv_sfc, | ||
real(rp), dimension (ia,ja), intent(in) | qc_sfc, | ||
real(rp), dimension( ka,ia,ja), intent(in) | cz, | ||
real(rp), dimension(0:ka,ia,ja), intent(in) | fz, | ||
real(rp), dimension(ia,ja), intent(in) | area, | ||
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(ia,ja), intent(out) | temp_sfc | ||
) |
Build up density from surface (3D)
[in] | pott | potential temperature [K] |
[in] | qv | water vapor [kg/kg] |
[in] | qc | liquid water [kg/kg] |
[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] |
[out] | dens | density [kg/m3] |
[out] | temp | temperature [K] |
[out] | pres | pressure [Pa] |
[out] | temp_sfc | surface temperature [K] |
Definition at line 271 of file scale_atmos_hydrostatic.F90.
References atmos_hydrostatic_buildrho_1d().
subroutine scale_atmos_hydrostatic::atmos_hydrostatic_buildrho_real_3d | ( | 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) | 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) | cz, | ||
real(rp), dimension(ka,ia,ja), intent(inout) | pres, | ||
real(rp), dimension(ka,ia,ja), intent(out) | dens, | ||
real(rp), dimension(ka,ia,ja), intent(out) | temp | ||
) |
Build up density from surface (3D), not to reverse from TOA.
[in] | pott | potential temperature [K] |
[in] | qv | water vapor [kg/kg] |
[in] | qc | liquid water [kg/kg] |
[in,out] | pres | pressure [Pa] |
[out] | dens | density [kg/m3] |
[out] | temp | temperature [K] |
Definition at line 379 of file scale_atmos_hydrostatic.F90.
References scale_atmos_hydrometeor::cp_vapor, scale_atmos_hydrometeor::cp_water, scale_atmos_hydrometeor::cv_vapor, and scale_atmos_hydrometeor::cv_water.
subroutine scale_atmos_hydrostatic::atmos_hydrostatic_buildrho_atmos_0d | ( | 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, | ||
real(rp), intent(out) | dens_L2, | ||
real(rp), intent(out) | temp_L2, | ||
real(rp), intent(out) | pres_L2 | ||
) |
Build up density (0D)
[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 |
[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] |
Definition at line 490 of file scale_atmos_hydrostatic.F90.
References scale_atmos_hydrometeor::cp_vapor, scale_atmos_hydrometeor::cp_water, scale_atmos_hydrometeor::cv_vapor, scale_atmos_hydrometeor::cv_water, and scale_prc::prc_abort().
Referenced by atmos_hydrostatic_buildrho_1d(), and atmos_hydrostatic_buildrho_atmos_rev_1d().
subroutine scale_atmos_hydrostatic::atmos_hydrostatic_buildrho_atmos_1d | ( | integer, intent(in) | KA, |
integer, intent(in) | KS, | ||
integer, intent(in) | KE, | ||
real(rp), dimension(ka), intent(in) | pott, | ||
real(rp), dimension (ka), intent(in) | qv, | ||
real(rp), dimension (ka), intent(in) | qc, | ||
real(rp), dimension (ka), intent(in) | dz, | ||
real(rp), dimension(ka), intent(inout) | dens, | ||
real(rp), dimension(ka), intent(out) | temp, | ||
real(rp), dimension(ka), intent(out) | pres, | ||
integer, intent(in), optional | kref | ||
) |
Build up density from lowermost atmosphere (1D)
[in] | pott | potential temperature [K] |
[in] | qv | water vapor [kg/kg] |
[in] | qc | liquid water [kg/kg] |
[in,out] | dens | density [kg/m3] |
[out] | temp | temperature [K] |
[out] | pres | pressure [Pa] |
Definition at line 591 of file scale_atmos_hydrostatic.F90.
References scale_atmos_hydrometeor::cp_vapor, scale_atmos_hydrometeor::cp_water, scale_atmos_hydrometeor::cv_vapor, scale_atmos_hydrometeor::cv_water, and scale_prc::prc_abort().
Referenced by atmos_hydrostatic_buildrho_1d(), and atmos_hydrostatic_buildrho_atmos_rev_1d().
subroutine scale_atmos_hydrostatic::atmos_hydrostatic_buildrho_atmos_rev_1d | ( | integer, intent(in) | KA, |
integer, intent(in) | KS, | ||
integer, intent(in) | KE, | ||
real(rp), dimension(ka), intent(in) | pott, | ||
real(rp), dimension (ka), intent(in) | qv, | ||
real(rp), dimension (ka), intent(in) | qc, | ||
real(rp), dimension (ka), intent(in) | dz, | ||
real(rp), dimension(ka), intent(inout) | dens, | ||
real(rp), dimension(ka), intent(out) | temp, | ||
real(rp), dimension(ka), intent(out) | pres, | ||
integer, intent(in), optional | kref | ||
) |
Build up density from upermost atmosphere (1D)
[in] | pott | potential temperature [K] |
[in] | qv | water vapor [kg/kg] |
[in] | qc | liquid water [kg/kg] |
[in,out] | dens | density [kg/m3] |
[out] | temp | temperature [K] |
[out] | pres | pressure [Pa] |
Definition at line 706 of file scale_atmos_hydrostatic.F90.
References atmos_hydrostatic_buildrho_atmos_0d(), atmos_hydrostatic_buildrho_atmos_1d(), scale_atmos_hydrometeor::cp_vapor, scale_atmos_hydrometeor::cp_water, scale_atmos_hydrometeor::cv_vapor, scale_atmos_hydrometeor::cv_water, and scale_prc::prc_abort().
subroutine scale_atmos_hydrostatic::atmos_hydrostatic_buildrho_bytemp_3d | ( | 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) | temp, | ||
real(rp), dimension (ka,ia,ja), intent(in) | qv, | ||
real(rp), dimension (ka,ia,ja), intent(in) | qc, | ||
real(rp), dimension(ia,ja), intent(in) | pres_sfc, | ||
real(rp), dimension(ia,ja), intent(in) | temp_sfc, | ||
real(rp), dimension (ia,ja), intent(in) | qv_sfc, | ||
real(rp), dimension (ia,ja), intent(in) | qc_sfc, | ||
real(rp), dimension(ka,ia,ja), intent(in) | cz, | ||
real(rp), dimension(ka,ia,ja), intent(in) | fz, | ||
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(ia,ja), intent(out) | pott_sfc | ||
) |
Build up density from surface (3D)
[in] | temp | temperature [K] |
[in] | qv | water vapor [kg/kg] |
[in] | qc | liquid water [kg/kg] |
[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] |
[out] | dens | density [kg/m3] |
[out] | pott | potential temperature [K] |
[out] | pres | pressure [Pa] |
[out] | pott_sfc | surface potential temperature [K] |
Definition at line 1114 of file scale_atmos_hydrostatic.F90.
References scale_atmos_hydrometeor::cp_vapor, scale_atmos_hydrometeor::cp_water, scale_atmos_hydrometeor::cv_vapor, scale_atmos_hydrometeor::cv_water, and scale_prc::prc_abort().
subroutine scale_atmos_hydrostatic::atmos_hydrostatic_buildrho_bytemp_atmos_rev_1d | ( | integer, intent(in) | KA, |
integer, intent(in) | KS, | ||
integer, intent(in) | KE, | ||
real(rp), dimension(ka), intent(in) | temp, | ||
real(rp), dimension (ka), intent(in) | qv, | ||
real(rp), dimension (ka), intent(in) | qc, | ||
real(rp), dimension (ka), intent(in) | dz, | ||
real(rp), dimension(ka), intent(inout) | dens, | ||
real(rp), dimension(ka), intent(out) | pott, | ||
real(rp), dimension(ka), intent(out) | pres | ||
) |
Build up density from upermost atmosphere (1D)
[in] | temp | temperature [K] |
[in] | qv | water vapor [kg/kg] |
[in] | qc | liquid water [kg/kg] |
[in,out] | dens | density [kg/m3] |
[out] | pott | potential temperature [K] |
[out] | pres | pressure [Pa] |
Definition at line 1259 of file scale_atmos_hydrostatic.F90.
References scale_atmos_hydrometeor::cp_vapor, scale_atmos_hydrometeor::cp_water, scale_atmos_hydrometeor::cv_vapor, scale_atmos_hydrometeor::cv_water, and scale_prc::prc_abort().
subroutine scale_atmos_hydrostatic::atmos_hydrostatic_buildrho_bytemp_atmos_3d | ( | 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) | temp, | ||
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, | ||
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 | ||
) |
Build up density from lowermost atmosphere (3D)
[in] | temp | temperature [K] |
[in] | qv | water vapor [kg/kg] |
[in] | qc | liquid water [kg/kg] |
[in,out] | dens | density [kg/m3] |
[out] | pott | potential temperature [K] |
[out] | pres | pressure [Pa] |
Definition at line 1355 of file scale_atmos_hydrostatic.F90.