- #1

TheodoreCT

- 2

- 0

S

_{t}= S

_{t-1}+ P

_{t}- ET

_{t}, S

_{t-1}+ P

_{t}- ET

_{t}≤ S

_{max}

= S

_{max}, S

_{t-1}+ P

_{t}- ET

_{t}> S

_{max}

then

R

_{t}= 0, S

_{t-1}+ P

_{t}- ET

_{t}≤ S

_{max}

= P

_{t}- (S

_{max}- S

_{t-1}) - ET

_{t}, S

_{t-1}+ P

_{t}- ET

_{t}> S

_{max}

P

_{t}= rainfall depth

ET

_{t}= evapotranspiration rate

S = Retained rainwater depth in substrate

S

_{max}= maximum retention capacity

R = runoff

it is a hourly time step function, hourly rainfall data for a year will be inserted to the function

i would be really appreciated if anyone could help me.