Shape analysis of the longitudinal flow along a periodic array of cylinders