The flow regime and hydrodynamic performance for a pitching hydrofoil