python_codes.CourrechDuPont2014.Resultant_flux_perp_crest_at_crest#
- Resultant_flux_perp_crest_at_crest(alpha, theta, Q0, gamma=1.6, axis=- 1)[source]#
Component of the resultant flux (i.e vectorial average) at the crest perpendicular to the dune crest.
- 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).
axis (int) – axis over wich the average is done (the default is -1).
- Returns
A list containing the orientation and the magnitude of the resultant sand flux at the crest.
- Return type
list of scalars, numpy arrays
Examples
>>> import numpy as np >>> alpha = 10 >>> theta = np.random.random((1000,))*360 >>> Q0 = np.random.random((1000,))*50 >>> Qcrest_perp = Resultant_flux_perp_crest_at_crest(alpha, theta, Q0)