Weakly nonlinear theory for oscillating wave surge converters in a channel