A reduced model for one-dimensional arrays of overdamped Josephson junctions