Coordinate-dependent damping of Gilbert type for spin wave studies