A Generalized Particle Search–Locate Algorithm for Arbitrary Grids