-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhru_sweep.f90
53 lines (42 loc) · 2.19 KB
/
hru_sweep.f90
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
subroutine hru_sweep
!! ~ ~ ~ PURPOSE ~ ~ ~
!! the subroutine performs the street sweeping operation
!! ~ ~ ~ INCOMING VARIABLES ~ ~ ~
!! name |units |definition
!! ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
!! dirtmx(:) |kg/curb km |maximum amount of solids allowed t
!! |build up on impervious surfaces
!! ihru |none |HRU number
!! sweepeff |none |removal efficiency of sweeping
!! |operation
!! thalf(:) |days |time for the amount of solids on
!! |impervious areas to build up to 1/2
!! |the maximum level
!! ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
!! ~ ~ ~ OUTGOING VARIABLES ~ ~ ~
!! name |units |definition
!! ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
!! twash(:) |days |time that solids have built-up on streets
!! ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
!! ~ ~ ~ ~ ~ ~ END SPECIFICATIONS ~ ~ ~ ~ ~ ~
use hru_module, only : ihru, sweepeff, twash, ulu
use urban_data_module
implicit none
integer :: j !j |none |HRU number
real :: dirt !kg/curb km |amount of solids built up on impervious
! |surfaces
real :: fr_curb !none |availability factor, the fraction of the
! |curb length that is sweepable
j = 0
j = ihru
!! calculate amount of dirt on streets prior to sweeping
dirt = 0.
dirt = urbdb(ulu)%dirtmx * twash(j) / (urbdb(ulu)%thalf +twash(j))
!! calculate reduced amount of solid built up on impervious areas
dirt = dirt * (1. - fr_curb * sweepeff)
if (dirt < 1.e-6) dirt = 0.
!! set time to correspond to lower amount of dirt
twash(j) = 0.
twash(j) = urbdb(ulu)%thalf * dirt / (urbdb(ulu)%dirtmx - dirt)
return
end subroutine hru_sweep