SUEWS API Site
Documentation of SUEWS source code
|
Functions/Subroutines | |
subroutine | snow_cal_meltheat (snowUse, tstep, tau_r, SnowDensMax, lvS_J_kg, lv_J_kg, tstep_real, RadMeltFact, TempMeltFact, SnowAlbMax, SnowDensMin, Temp_C, Precip, PrecipLimit, PrecipLimitAlb, nsh_real, sfr, Tsurf_ind, Tsurf_ind_snow, state_id, qn1_ind_snow, kup_ind_snow, SnowWater, deltaQi, alb1, SnowPack_in, SnowFrac_in, SnowAlb_in, SnowDens_in, SnowfallCum_in, SnowPack_out, SnowFrac_out, SnowAlb_out, SnowDens_out, SnowfallCum_out, mwh, Qm, QmFreez, QmRain, veg_fr, snowCalcSwitch, Qm_melt, Qm_freezState, Qm_rain, FreezMelt, FreezState, FreezStateVol, rainOnSnow, SnowDepth, mw_ind, dataOutLineSnow) |
subroutine | meltheat (lvS_J_kg, lv_J_kg, tstep_real, RadMeltFact, TempMeltFact, SnowAlbMax, SnowDensMin, Temp_C, Precip, PrecipLimit, PrecipLimitAlb, nsh_real, waterdens, sfr, 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, EvapMethod, CRWmin, CRWmax, nsh_real, lvS_J_kg, lv_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, dayofWeek_id, StoreDrainPrm, SnowPackLimit, AddWater, addwaterrunoff, soilstore_id, SnowPack, SurplusEvap, SnowFrac, SnowWater, iceFrac, SnowDens, runoffAGimpervious, runoffAGveg, surplusWaterBody, rss_nsurf, runoffSnow, runoff, runoffSoil, chang, changSnow, SnowToSurf, state_id, ev_snow, SnowDepth, SnowRemoval, swe, ev, chSnow_tot, ev_tot, qe_tot, runoff_tot, surf_chang_tot, 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 | snowrem (is, PavSurf, BldgSurf, nsurf, SnowFrac, sfr, SnowPack, SnowRemoval, SnowLimPaved, SnowLimBldg) |
real(kind(1d0)) function | snowdepletioncurve (is, swe, sweD) |
subroutine | veg_fr_snow (sfr, 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 1156 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)), intent(in) | waterdens, | ||
real(kind(1d0)), dimension(nsurf), intent(in) | sfr, | ||
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 235 of file suews_phys_snow.f95.
References allocatearray::bldgsurf, allocatearray::nsurf, allocatearray::pavsurf, and allocatearray::watersurf.
Referenced by snow_cal_meltheat().
subroutine snow_module::snow_cal_meltheat | ( | integer, intent(in) | snowUse, |
integer, intent(in) | tstep, | ||
real(kind(1d0)), intent(in) | tau_r, | ||
real(kind(1d0)), intent(in) | SnowDensMax, | ||
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, | ||
real(kind(1d0)), dimension(nsurf), intent(in) | Tsurf_ind, | ||
real(kind(1d0)), dimension(nsurf), intent(in) | Tsurf_ind_snow, | ||
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) | kup_ind_snow, | ||
real(kind(1d0)), dimension(nsurf), intent(in) | SnowWater, | ||
real(kind(1d0)), dimension(nsurf), intent(in) | deltaQi, | ||
real(kind(1d0)), intent(in) | alb1, | ||
real(kind(1d0)), dimension(nsurf), intent(in) | SnowPack_in, | ||
real(kind(1d0)), dimension(nsurf), intent(in) | SnowFrac_in, | ||
real(kind(1d0)), intent(in) | SnowAlb_in, | ||
real(kind(1d0)), dimension(nsurf), intent(in) | SnowDens_in, | ||
real(kind(1d0)), intent(in) | SnowfallCum_in, | ||
real(kind(1d0)), dimension(nsurf), intent(out) | SnowPack_out, | ||
real(kind(1d0)), dimension(nsurf), intent(out) | SnowFrac_out, | ||
real(kind(1d0)), intent(out) | SnowAlb_out, | ||
real(kind(1d0)), dimension(nsurf), intent(out) | SnowDens_out, | ||
real(kind(1d0)), intent(out) | SnowfallCum_out, | ||
real(kind(1d0)), intent(out) | mwh, | ||
real(kind(1d0)), intent(out) | Qm, | ||
real(kind(1d0)), intent(out) | QmFreez, | ||
real(kind(1d0)), intent(out) | QmRain, | ||
real(kind(1d0)), intent(out) | veg_fr, | ||
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, | ||
real(kind(1d0)), dimension(ncolumnsdataoutsnow_notime), intent(out) | dataOutLineSnow | ||
) |
Definition at line 46 of file suews_phys_snow.f95.
References meltheat(), allocatearray::nsurf, update_snow_dens(), and veg_fr_snow().
Referenced by suews_driver::suews_cal_main().
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, 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) | lv_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, | ||
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)), dimension(nsurf), intent(out) | rss_nsurf, | ||
real(kind(1d0)), dimension(nsurf), intent(out) | runoffSnow, | ||
real(kind(1d0)), dimension(nsurf), intent(out) | runoff, | ||
real(kind(1d0)), dimension(nsurf), intent(out) | runoffSoil, | ||
real(kind(1d0)), dimension(nsurf), intent(out) | chang, | ||
real(kind(1d0)), dimension(nsurf), intent(out) | changSnow, | ||
real(kind(1d0)), dimension(nsurf), intent(out) | SnowToSurf, | ||
real(kind(1d0)), dimension(nsurf), intent(out) | state_id, | ||
real(kind(1d0)), dimension(nsurf), intent(out) | ev_snow, | ||
real(kind(1d0)), dimension(nsurf), intent(out) | SnowDepth, | ||
real(kind(1d0)), dimension(2), intent(out) | SnowRemoval, | ||
real(kind(1d0)), intent(out) | swe, | ||
real(kind(1d0)), intent(out) | ev, | ||
real(kind(1d0)), intent(out) | chSnow_tot, | ||
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) | runoffPipes, | ||
real(kind(1d0)), intent(out) | mwstore, | ||
real(kind(1d0)), intent(out) | runoffwaterbody | ||
) |
Definition at line 497 of file suews_phys_snow.f95.
References allocatearray::bldgsurf, evap_module::evap_suews(), evap_suews_snow(), allocatearray::nsurf, allocatearray::pavsurf, snowdepletioncurve(), snowrem(), waterdist_module::updateflood(), and allocatearray::watersurf.
Referenced by suews_driver::suews_cal_qe().
real(kind(1d0)) function snow_module::snowdepletioncurve | ( | integer | is, |
real(kind(1d0)) | swe, | ||
real(kind(1d0)) | sweD | ||
) |
Definition at line 1244 of file suews_phys_snow.f95.
References allocatearray::bldgsurf, allocatearray::pavsurf, and allocatearray::watersurf.
Referenced by snowcalc().
subroutine snow_module::snowrem | ( | integer, intent(in) | is, |
integer, intent(in) | PavSurf, | ||
integer, intent(in) | BldgSurf, | ||
integer, intent(in) | nsurf, | ||
real(kind(1d0)), dimension(nsurf), intent(in) | SnowFrac, | ||
real(kind(1d0)), dimension(nsurf), intent(in) | sfr, | ||
real(kind(1d0)), dimension(nsurf), intent(out) | SnowPack, | ||
real(kind(1d0)), dimension(nsurf), intent(out) | SnowRemoval, | ||
real(kind(1d0)), intent(in) | SnowLimPaved, | ||
real(kind(1d0)), intent(in) | SnowLimBldg | ||
) |
Definition at line 1215 of file suews_phys_snow.f95.
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 1337 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 1415 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 1458 of file suews_phys_snow.f95.
References allocatearray::nsurf.
Referenced by snow_cal_meltheat(), and snowupdate().
subroutine snow_module::veg_fr_snow | ( | real(kind(1d0)), dimension(nsurf), intent(in) | sfr, |
real(kind(1d0)), dimension(nsurf), intent(in) | SnowFrac, | ||
real(kind(1d0)), intent(out) | veg_fr | ||
) |
[in] | sfr | surface fractions |
[in] | snowfrac | snowy surface fractions [-] |
[out] | veg_fr | vegetated surface fractions [-] |
Definition at line 1302 of file suews_phys_snow.f95.
Referenced by snow_cal_meltheat().