Hamiltonian Formulation of Water Waves: 1D-formulation, numerical evaluations and examples