python_codes.CourrechDuPont2014.Flux_at_crest#
- Flux_at_crest(alpha, theta, Q0, gamma=1.6)[source]#
Calculation of the sand flux at the dune crest:
\[Q_{\rm crest} = Q_{0}\left[1 + \gamma\sin\vert\theta-\alpha\vert\right]\]- Parameters
alpha (scalar, numpy array) – Dune orientation \(\alpha\).
theta (scalar, numpy array) – Flux orientation \(\theta\) in degrees.
Q0 (scalar, numpy array) – Flux at the bottom of the dune \(Q_{0}\).
gamma (scalar, numpy array) – Flux-up ratio \(\gamma\) (the default is 1.6).
- Returns
Flux at the dune crest \(Q_{\rm crest}\)
- Return type
scalar, numpy array
Examples
>>> import numpy as np >>> alpha = 10 >>> theta = np.random.random((1000,))*360 >>> Q0 = np.random.random((1000,))*50 >>> Qcrest = Flux_at_crest(alpha, theta, Q0)