Text this: Dynamic stability of hydraulic gates and engineering for flood prevention