📄 routres.f
字号:
subroutine routres
!! ~ ~ ~ PURPOSE ~ ~ ~
!! this subroutine performs reservoir routing
!! ~ ~ ~ INCOMING VARIABLES ~ ~ ~
!! name |units |definition
!! ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
!! bury |mg pst |loss of pesticide from active sediment layer
!! |by burial
!! curyr |none |current year of simulation
!! da_ha |ha |area of watershed in hectares
!! difus |mg pst |diffusion of pesticide from sediment to lake
!! |water
!! iida |julian date |day being simulated (current julian date)
!! ihout |none |outflow hydrograph storage location number
!! inum1 |none |reservoir number
!! inum2 |none |inflow hydrograph storage location number
!! iprint |none |print code:
!! |0 monthly
!! |1 daily
!! |2 annually
!! isproj |none |special project code:
!! |1 test rewind (run simulation twice)
!! iyr |year |current year of simulation (eg 1980)
!! iyres(:) |none |year of the simulation that the reservoir
!! |becomes operational
!! lkpst_conc(:)|mg/m^3 |pesticide concentration in lake water
!! lkspst_conc(:)|mg/m^3 |pesticide concentration in lake bed sediment
!! i_mo |none |current month of simulation
!! mores(:) |none |month the reservoir becomes operational
!! mvaro |none |max number of variables routed through the
!! |reach
!! nhru |none |number of HRUs in watershed
!! nyskip |none |number of years to skip output summarization
!! |and printing
!! reactb |mg pst |amount of pesticide in sediment that is lost
!! |through reactions
!! reactw |mg pst |amount of pesticide in lake water lost
!! |through reactions
!! res_nh3(:) |kg N |amount of ammonia in reservoir
!! res_no2(:) |kg N |amount of nitrite in reservoir
!! res_no3(:) |kg N |amount of nitrate in reservoir
!! res_orgn(:) |kg N |amount of organic N in reservoir
!! res_orgp(:) |kg P |amount of organic P in reservoir
!! res_sed(:) |kg/L (ton/m^3)|amount of sediment in reservoir
!! res_solp(:) |kg P |amount of soluble P in reservoir
!! res_seci(:) |m |secchi-disk depth
!! res_sub(:) |none |number of subbasin reservoir is in
!! res_vol(:) |m^3 H2O |reservoir volume
!! reschlao |kg chl-a |amount of chlorophyll-a leaving reaservoir
!! |on day
!! resev |m^3 H2O |evaporation from reservoir on day
!! resflwi |m^3 H2O |water entering reservoir on day
!! resflwo |m^3 H2O |water leaving reservoir on day
!! resnh3o |kg N |amount of ammonia leaving reservoir on day
!! resno2o |kg N |amount of nitrite leaving reservoir on day
!! resno3o |kg N |amount of nitrate leaving reservoir on day
!! resorgno |kg N |amount of organic N leaving reservoir on day
!! resorgpo |kg P |amount of organic P leaving reservoir on day
!! respcp |m^3 H2O |precipitation on reservoir for day
!! respesti |mg pst |pesticide entering reservoir on day
!! ressedi |metric tons |sediment entering reservoir during time step
!! ressedo |metric tons |sediment leaving reservoir during time step
!! ressep |m^3 H2O |seepage from reservoir on day
!! ressolpo |kg P |amount of soluble P leaving reservoir on day
!! resuspst |mg pst |amount of pesticide moving from sediment to
!! |lake water due to resuspension
!! setlpst |mg pst |amount of pesticide moving from water to
!! |sediment due to settling
!! shallst(:) |mm H2O |depth of water in shallow aquifer
!! solpesto |mg pst |soluble pesticide in outflow on day
!! sorpesto |mg pst |sorbed pesticide in outflow on day
!! sub_fr(:) |none |fraction of watershed area in subbasin
!! volatpst |mg pst |amount of pesticide lost from lake water
!! |by volatilization
!! ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
!! ~ ~ ~ OUTGOING VARIABLES ~ ~ ~
!! name |units |definition
!! ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
!! resoutm(1,:) |m^3/s |flow into reservoir during month
!! resoutm(2,:) |m^3/s |flow out of reservoir during month
!! resoutm(3,:) |metric tons |sediment entering reservoir during month
!! resoutm(4,:) |metric tons |sediment leaving reservoir during month
!! resoutm(5,:) |mg/L |sediment concentration in reservoir during
!! |month
!! resoutm(6,:) |mg pst |pesticide entering reservoir during month
!! resoutm(7,:) |mg pst |pesticide lost from reservoir through
!! |reactions during month
!! resoutm(8,:) |mg pst |pesticide lost from reservoir through
!! |volatilization during month
!! resoutm(9,:) |mg pst |pesticide moving from water to sediment
!! |through settling during month
!! resoutm(10,:)|mg pst |pesticide moving from sediment to water
!! |through resuspension during month
!! resoutm(11,:)|mg pst |pesticide moving from water to sediment
!! |through diffusion during month
!! resoutm(12,:)|mg pst |pesticide lost from reservoir sediment layer
!! |through reactions during month
!! resoutm(13,:)|mg pst |pesticide lost from reservoir sediment layer
!! |through burial during month
!! resoutm(14,:)|mg pst |pesticide transported out of reservoir during
!! |month
!! resoutm(15,:)|mg pst/m^3 |pesticide concentration in reservoir water
!! |during month
!! resoutm(16,:)|mg pst/m^3 |pesticide concentration in reservoir sediment
!! |layer during month
!! resoutm(17,:)|m^3 H2O |evaporation from reservoir during month
!! resoutm(18,:)|m^3 H2O |seepage from reservoir during month
!! resoutm(19,:)|m^3 H2O |precipitation on reservoir during month
!! resoutm(20,:)|m^3 H2O |water flowing into reservoir during month
!! resoutm(21,:)|m^3 H2O |water flowing out of reservoir during month
!! resoutm(22,:)|kg N |organic N entering reservoir during month
!! resoutm(23,:)|kg N |organic N leaving reservoir during month
!! resoutm(24,:)|kg P |organic P entering reservoir during month
!! resoutm(25,:)|kg P |organic P leaving reservoir during month
!! resoutm(26,:)|kg N |nitrate entering reservoir during month
!! resoutm(27,:)|kg N |nitrate leaving reservoir during month
!! resoutm(28,:)|kg N |nitrite entering reservoir during month
!! resoutm(29,:)|kg N |nitrite leaving reservoir during month
!! resoutm(30,:)|kg N |ammonia entering reservoir during month
!! resoutm(31,:)|kg N |ammonia leaving reservoir during month
!! resoutm(32,:)|kg P |mineral P entering reservoir during month
!! resoutm(33,:)|kg P |mineral P leaving reservoir during month
!! resoutm(34,:)|kg chla |chlorophyll-a entering reservoir during month
!! resoutm(35,:)|kg chla |chlorophyll-a leaving reservoir during month
!! resoutm(36,:)|mg P/L |average organic P concentration in reservoir
!! |during month
!! resoutm(37,:)|mg P/L |average soluble P concentration in reservoir
!! |during month
!! resoutm(38,:)|mg N/L |average organic N concentration in reservoir
!! |during month
!! resoutm(39,:)|mg N/L |average nitrate concentration in reservoir
!! |during month
!! resoutm(40,:)|mg N/L |average nitrite concentration in reservoir
!! |during month
!! resoutm(41,:)|mg N/L |average ammonia concentration in reservoir
!! |during month
!! shallst(:) |mm H2O |depth of water in shallow aquifer
!! wshddayo(11) |metric tons |net change in sediment of reservoirs in
!! |watershed for day
!! wshddayo(34) |m^3 H2O |net change in water volume of reservoirs in
!! |watershed for day
!! varoute(2,:) |m^3 H2O |water
!! varoute(3,:) |metric tons |sediment or suspended solid load
!! varoute(4,:) |kg N |organic nitrogen
!! varoute(5,:) |kg P |organic posphorus
!! varoute(6,:) |kg N |nitrate
!! varoute(7,:) |kg P |soluble phosphorus
!! varoute(11,:)|mg pst |pesticide in solution
!! varoute(12,:)|mg pst |pesticide sorbed to sediment
!! varoute(13,:)|kg |chlorophyll-a
!! varoute(14,:)|kg N |ammonia
!! varoute(15,:)|kg N |nitrite
!! varoute(18,:)|# cfu/100ml |persistent bacteria
!! varoute(19,:)|# cfu/100ml |less persistent bacteria
!! varoute(20,:)|kg |conservative metal #1
!! varoute(21,:)|kg |conservative metal #2
!! varoute(22,:)|kg |conservative metal #3
!! ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
!! ~ ~ ~ LOCAL DEFINITIONS ~ ~ ~
!! name |units |definition
!! ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
!! ii |none |counter
!! jres |none |reservoir number
!! k |none |counter
!! sedcon |mg/L |sediment concentration in reservoir water
!! |during day
!! sepmm |mm H2O |depth of reservoir seepage over subbasin
!! |area
!! resnh3c |mg N/L |concentration of ammonia in reservoir
!! |on day
!! resno2c |mg N/L |concentration of nitrite in reservoir
!! |on day
!! resno3c |mg N/L |concentration of nitrate in reservoir
!! |on day
!! resorgnc |mg N/L |concentration of organic N in reservoir
!! |on day
!! resorgpc |mg P/L |concentration of organic P in reservoir
!! |on day
!! ressolpc |mg P/L |concentration of soluble P in reservoir
!! |on day
!! ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
!! ~ ~ ~ SUBROUTINES/FUNCTIONS CALLED ~ ~ ~
!! SWAT: resinit, irr_res, res, resnut, lakeq
!! ~ ~ ~ ~ ~ ~ END SPECIFICATIONS ~ ~ ~ ~ ~ ~
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -