Interaction of waves with an array of floating wave energy devcies