Energy storage grid-connected design scheme