Influence of inter-foil spacing on energy extraction of tandem oscillating hydrofoils