SUEWS API Site
Documentation of SUEWS source code
|
Functions/Subroutines | |
subroutine | meltheat (lvs_j_kg, lv_j_kg, tstep_real, radmeltfact, tempmeltfact, snowalbmax, snowdensmin, temp_c, precip, preciplimit, preciplimitalb, nsh_real, sfr_surf, tsurf_ind, state_id, qn1_ind_snow, snowwater, deltaqi, snowpack, snowfrac, snowalb, snowdens, snowfallcum, mwh, fwh, qm, qmfreez, qmrain, snowcalcswitch, qm_melt, qm_freezstate, qm_rain, freezmelt, freezstate, freezstatevol, rainonsnow, snowdepth, mw_ind) |
subroutine | snowcalc (tstep, imin, it, dectime, is, snowcalcswitch, evapmethod, crwmin, crwmax, nsh_real, lvs_j_kg, avdens, avrh, press_hpa, temp_c, rasnow, psyc_hpa, avcp, sice_hpa, pervfraction, vegfraction, addimpervious, vpd_hpa, qn_e, s_hpa, resistsurf, ra, rb, tlv, snowdensmin, snowprof_24hr, precip, pipecapacity, runofftowater, addveg, snowlimpaved, snowlimbldg, flowchange, drain, wetthresh, stateold, mw_ind, soilstorecap, rainonsnow, freezmelt, freezstate, freezstatevol, qm_melt, qm_rain, tsurf_ind, sfr_surf, dayofweek_id, storedrainprm, snowpacklimit, addwater, addwaterrunoff, soilstore_id, snowpack, surplusevap, snowfrac, snowwater, icefrac, snowdens, runoffagimpervious, runoffagveg, surpluswaterbody, ev_tot, qe_tot, runoff_tot, surf_chang_tot, chsnow_tot, rss_surf, runoff_snowfree, chang, changsnow, snowtosurf, state_id, ev_snow, snowremoval, swe, runoffpipes, mwstore, runoffwaterbody) |
subroutine | evap_suews_snow (qm, qp, lvs_j_kg, avdens, avrh, press_hpa, temp_c, rasnow, psyc_hpa, tstep, avcp, sice_hpa, dectime, ev_snow, tlv_sub) |
subroutine | snow_removal (is, snowfrac, sfr_surf, snowpack, snowremoval, snowlimpaved, snowlimbldg) |
real(kind(1d0)) function | snowdepletioncurve (is, swe, swed) |
subroutine | veg_fr_snow (sfr_surf, snowfrac, veg_fr) |
subroutine | snowupdate (tstep, temp_c, tau_a, tau_f, tau_r, snowdensmax, snowdensmin, snowalbmax, snowalbmin, snowpack_prev, snowalb_prev, snowdens_prev, snowalb_next, snowdens_next) |
real(kind(1d0)) function | update_snow_albedo (tstep, snowpack_prev, snowalb_prev, temp_c, tau_a, tau_f, snowalbmax, snowalbmin) |
real(kind(1d0)) function, dimension(nsurf) | update_snow_dens (tstep, snowpack_prev, snowdens_prev, tau_r, snowdensmax, snowdensmin) |
subroutine snow_module::evap_suews_snow | ( | real(kind(1d0)), intent(in) | qm, |
real(kind(1d0)), intent(in) | qp, | ||
real(kind(1d0)), intent(in) | lvs_j_kg, | ||
real(kind(1d0)), intent(in) | avdens, | ||
real(kind(1d0)), intent(in) | avrh, | ||
real(kind(1d0)), intent(in) | press_hpa, | ||
real(kind(1d0)), intent(in) | temp_c, | ||
real(kind(1d0)), intent(in) | rasnow, | ||
real(kind(1d0)), intent(in) | psyc_hpa, | ||
integer, intent(in) | tstep, | ||
real(kind(1d0)), intent(in) | avcp, | ||
real(kind(1d0)), intent(in) | sice_hpa, | ||
real(kind(1d0)), intent(in) | dectime, | ||
real(kind(1d0)), intent(out) | ev_snow, | ||
real(kind(1d0)), intent(out) | tlv_sub ) |
Definition at line 1204 of file suews_phys_snow.f95.
References meteo::sat_vap_pressice().
Referenced by snowcalc().
subroutine snow_module::meltheat | ( | real(kind(1d0)), intent(in) | lvs_j_kg, |
real(kind(1d0)), intent(in) | lv_j_kg, | ||
real(kind(1d0)), intent(in) | tstep_real, | ||
real(kind(1d0)), intent(in) | radmeltfact, | ||
real(kind(1d0)), intent(in) | tempmeltfact, | ||
real(kind(1d0)), intent(in) | snowalbmax, | ||
real(kind(1d0)), intent(in) | snowdensmin, | ||
real(kind(1d0)), intent(in) | temp_c, | ||
real(kind(1d0)), intent(in) | precip, | ||
real(kind(1d0)), intent(in) | preciplimit, | ||
real(kind(1d0)), intent(in) | preciplimitalb, | ||
real(kind(1d0)), intent(in) | nsh_real, | ||
real(kind(1d0)), dimension(nsurf), intent(in) | sfr_surf, | ||
real(kind(1d0)), dimension(nsurf), intent(in) | tsurf_ind, | ||
real(kind(1d0)), dimension(nsurf), intent(in) | state_id, | ||
real(kind(1d0)), dimension(nsurf), intent(in) | qn1_ind_snow, | ||
real(kind(1d0)), dimension(nsurf), intent(in) | snowwater, | ||
real(kind(1d0)), dimension(nsurf), intent(in) | deltaqi, | ||
real(kind(1d0)), dimension(nsurf), intent(inout) | snowpack, | ||
real(kind(1d0)), dimension(nsurf), intent(inout) | snowfrac, | ||
real(kind(1d0)), intent(inout) | snowalb, | ||
real(kind(1d0)), dimension(nsurf), intent(inout) | snowdens, | ||
real(kind(1d0)), intent(inout) | snowfallcum, | ||
real(kind(1d0)), intent(out) | mwh, | ||
real(kind(1d0)), intent(out) | fwh, | ||
real(kind(1d0)), intent(out) | qm, | ||
real(kind(1d0)), intent(out) | qmfreez, | ||
real(kind(1d0)), intent(out) | qmrain, | ||
integer, dimension(nsurf), intent(out) | snowcalcswitch, | ||
real(kind(1d0)), dimension(nsurf), intent(out) | qm_melt, | ||
real(kind(1d0)), dimension(nsurf), intent(out) | qm_freezstate, | ||
real(kind(1d0)), dimension(nsurf), intent(out) | qm_rain, | ||
real(kind(1d0)), dimension(nsurf), intent(out) | freezmelt, | ||
real(kind(1d0)), dimension(nsurf), intent(out) | freezstate, | ||
real(kind(1d0)), dimension(nsurf), intent(out) | freezstatevol, | ||
real(kind(1d0)), dimension(nsurf), intent(out) | rainonsnow, | ||
real(kind(1d0)), dimension(nsurf), intent(out) | snowdepth, | ||
real(kind(1d0)), dimension(nsurf), intent(out) | mw_ind ) |
Definition at line 194 of file suews_phys_snow.f95.
References allocatearray::nsurf, and allocatearray::watersurf.
Referenced by suews_driver::suews_cal_snow(), and suews_driver::suews_cal_snow_dts().
subroutine snow_module::snow_removal | ( | integer, intent(in) | is, |
real(kind(1d0)), dimension(nsurf), intent(in) | snowfrac, | ||
real(kind(1d0)), dimension(nsurf), intent(in) | sfr_surf, | ||
real(kind(1d0)), dimension(nsurf), intent(out) | snowpack, | ||
real(kind(1d0)), dimension(2), intent(out) | snowremoval, | ||
real(kind(1d0)), intent(in) | snowlimpaved, | ||
real(kind(1d0)), intent(in) | snowlimbldg ) |
Definition at line 1260 of file suews_phys_snow.f95.
References allocatearray::bldgsurf, and allocatearray::pavsurf.
Referenced by snowcalc().
subroutine snow_module::snowcalc | ( | integer, intent(in) | tstep, |
integer, intent(in) | imin, | ||
integer, intent(in) | it, | ||
real(kind(1d0)), intent(in) | dectime, | ||
integer, intent(in) | is, | ||
integer, dimension(nsurf), intent(in) | snowcalcswitch, | ||
integer, intent(in) | evapmethod, | ||
real(kind(1d0)), intent(in) | crwmin, | ||
real(kind(1d0)), intent(in) | crwmax, | ||
real(kind(1d0)), intent(in) | nsh_real, | ||
real(kind(1d0)), intent(in) | lvs_j_kg, | ||
real(kind(1d0)), intent(in) | avdens, | ||
real(kind(1d0)), intent(in) | avrh, | ||
real(kind(1d0)), intent(in) | press_hpa, | ||
real(kind(1d0)), intent(in) | temp_c, | ||
real(kind(1d0)), intent(in) | rasnow, | ||
real(kind(1d0)), intent(in) | psyc_hpa, | ||
real(kind(1d0)), intent(in) | avcp, | ||
real(kind(1d0)), intent(in) | sice_hpa, | ||
real(kind(1d0)), intent(in) | pervfraction, | ||
real(kind(1d0)), intent(in) | vegfraction, | ||
real(kind(1d0)), intent(in) | addimpervious, | ||
real(kind(1d0)), intent(in) | vpd_hpa, | ||
real(kind(1d0)), intent(in) | qn_e, | ||
real(kind(1d0)), intent(in) | s_hpa, | ||
real(kind(1d0)), intent(in) | resistsurf, | ||
real(kind(1d0)), intent(in) | ra, | ||
real(kind(1d0)), intent(in) | rb, | ||
real(kind(1d0)), intent(in) | tlv, | ||
real(kind(1d0)), intent(in) | snowdensmin, | ||
real(kind(1d0)), dimension(0:23, 2), intent(in) | snowprof_24hr, | ||
real(kind(1d0)), intent(in) | precip, | ||
real(kind(1d0)), intent(in) | pipecapacity, | ||
real(kind(1d0)), intent(in) | runofftowater, | ||
real(kind(1d0)), intent(in) | addveg, | ||
real(kind(1d0)), intent(in) | snowlimpaved, | ||
real(kind(1d0)), intent(in) | snowlimbldg, | ||
real(kind(1d0)), intent(in) | flowchange, | ||
real(kind(1d0)), dimension(nsurf), intent(in) | drain, | ||
real(kind(1d0)), dimension(nsurf), intent(in) | wetthresh, | ||
real(kind(1d0)), dimension(nsurf), intent(in) | stateold, | ||
real(kind(1d0)), dimension(nsurf), intent(in) | mw_ind, | ||
real(kind(1d0)), dimension(nsurf), intent(in) | soilstorecap, | ||
real(kind(1d0)), dimension(nsurf), intent(in) | rainonsnow, | ||
real(kind(1d0)), dimension(nsurf), intent(in) | freezmelt, | ||
real(kind(1d0)), dimension(nsurf), intent(in) | freezstate, | ||
real(kind(1d0)), dimension(nsurf), intent(in) | freezstatevol, | ||
real(kind(1d0)), dimension(nsurf), intent(in) | qm_melt, | ||
real(kind(1d0)), dimension(nsurf), intent(in) | qm_rain, | ||
real(kind(1d0)), dimension(nsurf), intent(in) | tsurf_ind, | ||
real(kind(1d0)), dimension(nsurf), intent(in) | sfr_surf, | ||
integer, dimension(3), intent(in) | dayofweek_id, | ||
real(kind(1d0)), dimension(6, nsurf), intent(in) | storedrainprm, | ||
real(kind(1d0)), dimension(nsurf), intent(in) | snowpacklimit, | ||
real(kind(1d0)), dimension(nsurf), intent(in) | addwater, | ||
real(kind(1d0)), dimension(nsurf), intent(in) | addwaterrunoff, | ||
real(kind(1d0)), dimension(nsurf), intent(inout) | soilstore_id, | ||
real(kind(1d0)), dimension(nsurf), intent(inout) | snowpack, | ||
real(kind(1d0)), dimension(2), intent(inout) | surplusevap, | ||
real(kind(1d0)), dimension(nsurf), intent(inout) | snowfrac, | ||
real(kind(1d0)), dimension(nsurf), intent(inout) | snowwater, | ||
real(kind(1d0)), dimension(nsurf), intent(inout) | icefrac, | ||
real(kind(1d0)), dimension(nsurf), intent(inout) | snowdens, | ||
real(kind(1d0)), intent(inout) | runoffagimpervious, | ||
real(kind(1d0)), intent(inout) | runoffagveg, | ||
real(kind(1d0)), intent(inout) | surpluswaterbody, | ||
real(kind(1d0)), intent(out) | ev_tot, | ||
real(kind(1d0)), intent(out) | qe_tot, | ||
real(kind(1d0)), intent(out) | runoff_tot, | ||
real(kind(1d0)), intent(out) | surf_chang_tot, | ||
real(kind(1d0)), intent(out) | chsnow_tot, | ||
real(kind(1d0)), dimension(nsurf), intent(out) | rss_surf, | ||
real(kind(1d0)), dimension(nsurf) | runoff_snowfree, | ||
real(kind(1d0)), dimension(nsurf) | chang, | ||
real(kind(1d0)), dimension(nsurf) | changsnow, | ||
real(kind(1d0)), dimension(nsurf) | snowtosurf, | ||
real(kind(1d0)), dimension(nsurf), intent(out) | state_id, | ||
real(kind(1d0)), dimension(nsurf) | ev_snow, | ||
real(kind(1d0)), dimension(2), intent(out) | snowremoval, | ||
real(kind(1d0)), intent(out) | swe, | ||
real(kind(1d0)), intent(out) | runoffpipes, | ||
real(kind(1d0)), intent(out) | mwstore, | ||
real(kind(1d0)), intent(out) | runoffwaterbody ) |
Definition at line 475 of file suews_phys_snow.f95.
References allocatearray::bldgsurf, evap_module::cal_evap(), evap_suews_snow(), allocatearray::pavsurf, snow_removal(), snowdepletioncurve(), waterdist_module::updateflood(), and allocatearray::watersurf.
Referenced by suews_driver::suews_cal_snow(), and suews_driver::suews_cal_snow_dts().
real(kind(1d0)) function snow_module::snowdepletioncurve | ( | integer | is, |
real(kind(1d0)) | swe, | ||
real(kind(1d0)) | swed ) |
Definition at line 1294 of file suews_phys_snow.f95.
References allocatearray::bldgsurf, allocatearray::pavsurf, and allocatearray::watersurf.
Referenced by snowcalc().
subroutine snow_module::snowupdate | ( | integer, intent(in) | tstep, |
real(kind(1d0)), intent(in) | temp_c, | ||
real(kind(1d0)), intent(in) | tau_a, | ||
real(kind(1d0)), intent(in) | tau_f, | ||
real(kind(1d0)), intent(in) | tau_r, | ||
real(kind(1d0)), intent(in) | snowdensmax, | ||
real(kind(1d0)), intent(in) | snowdensmin, | ||
real(kind(1d0)), intent(in) | snowalbmax, | ||
real(kind(1d0)), intent(in) | snowalbmin, | ||
real(kind(1d0)), dimension(nsurf), intent(in) | snowpack_prev, | ||
real(kind(1d0)), intent(in) | snowalb_prev, | ||
real(kind(1d0)), dimension(nsurf), intent(in) | snowdens_prev, | ||
real(kind(1d0)), intent(out) | snowalb_next, | ||
real(kind(1d0)), dimension(nsurf), intent(out) | snowdens_next ) |
Definition at line 1375 of file suews_phys_snow.f95.
References update_snow_albedo(), and update_snow_dens().
real(kind(1d0)) function snow_module::update_snow_albedo | ( | integer, intent(in) | tstep, |
real(kind(1d0)), dimension(7), intent(in) | snowpack_prev, | ||
real(kind(1d0)), intent(in) | snowalb_prev, | ||
real(kind(1d0)), intent(in) | temp_c, | ||
real(kind(1d0)), intent(in) | tau_a, | ||
real(kind(1d0)), intent(in) | tau_f, | ||
real(kind(1d0)), intent(in) | snowalbmax, | ||
real(kind(1d0)), intent(in) | snowalbmin ) |
Definition at line 1462 of file suews_phys_snow.f95.
Referenced by snowupdate(), suews_driver::suews_cal_qn(), and suews_driver::suews_cal_qn_dts().
real(kind(1d0)) function, dimension(nsurf) snow_module::update_snow_dens | ( | integer, intent(in) | tstep, |
real(kind(1d0)), dimension(nsurf), intent(in) | snowpack_prev, | ||
real(kind(1d0)), dimension(nsurf), intent(in) | snowdens_prev, | ||
real(kind(1d0)), intent(in) | tau_r, | ||
real(kind(1d0)), intent(in) | snowdensmax, | ||
real(kind(1d0)), intent(in) | snowdensmin ) |
Definition at line 1505 of file suews_phys_snow.f95.
Referenced by snowupdate(), suews_driver::suews_cal_snow(), and suews_driver::suews_cal_snow_dts().
subroutine snow_module::veg_fr_snow | ( | real(kind(1d0)), dimension(nsurf), intent(in) | sfr_surf, |
real(kind(1d0)), dimension(nsurf), intent(in) | snowfrac, | ||
real(kind(1d0)), intent(out) | veg_fr ) |
[in] | sfr_surf | surface fractions |
[in] | snowfrac | snowy surface fractions [-] |
[out] | veg_fr | vegetated surface fractions [-] |
Definition at line 1350 of file suews_phys_snow.f95.