en:hydro:nash
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen der Seite angezeigt.
Beide Seiten, vorherige ÜberarbeitungVorherige ÜberarbeitungNächste Überarbeitung | Vorherige Überarbeitung | ||
en:hydro:nash [2016/12/13 18:52] – ckuells | en:hydro:nash [2024/04/10 10:02] (aktuell) – Externe Bearbeitung 127.0.0.1 | ||
---|---|---|---|
Zeile 3: | Zeile 3: | ||
The Nash cascade is a sequence of $N$ linear stores in series, each having a residence time of $K$ time units. The resulting mathematical form of the Nash-cascade is: | The Nash cascade is a sequence of $N$ linear stores in series, each having a residence time of $K$ time units. The resulting mathematical form of the Nash-cascade is: | ||
- | $$h(t) = (t/ | + | $$h(t) = (t/ |
- | where $h(t)$ is the unit hydrograph in terms of a unit discharge and $\gamma$ is the gamma function $\gamma(N)=(N-1)!$ for integer values $N$. $N$ can also have rational values. | + | where $h(t)$ is the unit hydrograph in terms of a unit discharge and $\Gamma$ is the gamma function $\gamma(N)=(N-1)!$ for integer values $N$. $N$ can also have rational values. |
+ | |||
+ | <code R |Nash.R> | ||
+ | |||
+ | n <- 3 | ||
+ | k <- 0.2 | ||
+ | ks <- 0.1 | ||
+ | kl <- 0.3 | ||
+ | x <- seq(0.1, | ||
+ | y <- 1/ | ||
+ | plot(x, | ||
+ | abline( h = seq( 5, 25, 5 ),lty = 2,col = colors()[440]) | ||
+ | abline( v = seq( 1, 4, 1 ),lty = 2,col = colors()[440]) | ||
+ | curve(1/ | ||
+ | curve(1/(k *gamma(n))*(x/ | ||
+ | curve(1/ | ||
+ | </ | ||
<code py |Nash.py> | <code py |Nash.py> | ||
from pylab import * | from pylab import * | ||
+ | from scipy import * | ||
from math import * | from math import * | ||
- | def Nash(t): | + | from numpy import * |
- | K = 2.0 | + | |
- | N = 4 | + | N = 5 |
- | | + | k = 0.5 |
- | return | + | t = arange(0.0, 100, 1) |
- | t = arange(0.0, 35.0, 0.1) | + | |
- | plot(t, Nash(t)) | + | def Nash(t,N,k): |
- | ytext = ylabel('Q (l/s)') | + | h = (t/k)**(N-1)*exp((-t/k)/ |
- | xtext = xlabel('Time (t)') | + | return |
+ | |||
+ | plot(t, Nash(t,N,k)) | ||
+ | xtext = xlabel('time') | ||
+ | ytext = ylabel('response') | ||
setp(xtext, size=' | setp(xtext, size=' | ||
setp(ytext, size=' | setp(ytext, size=' | ||
show() | show() | ||
</ | </ | ||
+ | |||
+ | Model in R: [[https:// | ||
+ | |||
+ | |||
+ | |||
/usr/www/users/uhydro/doku/data/attic/en/hydro/nash.1481651569.txt.gz · Zuletzt geändert: 2024/04/10 10:15 (Externe Bearbeitung)