Theory algorithms two-dimensional hydro door Journee