BCWOSTholen

BCWOSTholen(self, volume, tru_tovt=0.01, trh_tovt=0.07)

Boundary condition for overtopping flow, based on fit observed at the first measurement location and the temporal flow profile of Hughes et al. (2012).

Attributes

Name Type Description
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

Name Description
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

BCWOSTholen.get_flow(t, coef=None)

Compute (h, u) for time t based on current or given coef.

Parameters

Name Type Description Default
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

Name Type Description
np.ndarray 2D array with (h, u) for t

optimize_flow

BCWOSTholen.optimize_flow()

Optimize coefficient until time series of u(t) and h(t) match the given volume

Returns

Name Type Description
float The optimized coefficient