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().
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().
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(), and suews_driver::suews_cal_qn().
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(), and suews_driver::suews_cal_snow().
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.