BCWOS
BCWOS(self, volume, tru_tovt=0.01, trh_tovt=0.07)
Boundary condition for overtopping flow, based on empirical formulas from van der Meer et al. (2011) and Hughes et al. (2012).
Attributes
volume |
float |
The to be simulated individual overtopping volume |
u_peak |
float |
Peak flow velocity |
h_peak |
float |
Peak flow thickness |
t_ovt |
float |
The total time of the overtopping event |
tru_tovt |
float |
Ratio between the time of upeak and the overtopping time (tovt) (default: 0.01) |
trh_tovt |
float |
Ratio between the time of hpeak and the overtopping time (tovt) (default: 0.07) |
coef |
float |
Coefficient optimized such that the integrated u(t) and h(t) equal the given volume |
Methods
get_flow |
Compute (h, u) for time t based on current or given coef. |
optimize_flow |
Optimize coefficient until time series of u(t) and h(t) match the given volume |
get_flow
BCWOS.get_flow(t, coef=None)
Compute (h, u) for time t based on current or given coef.
Parameters
t |
Union[float, np.ndarray] |
Time as a float or array |
required |
coef |
float |
Coefficient, if None use the coefficient determined by the optimize_flow function (default: None) |
None |
Returns
|
np.ndarray |
2D array with (h, u) for t |
optimize_flow
Optimize coefficient until time series of u(t) and h(t) match the given volume
Returns
|
float |
The optimized coefficient |