Virtually all engineering applications involve the use of piping, conduits, and channels. In the petroleum industry, piping systems are extensively used in upstream and downstream processes. These piping systems often carry fluids that are corrosive, which leads to wear, cavitation, and cracking. The replacement of damaged piping systems can be quite expensive, both in terms of capital costs and in operational downtime. This motivates the present research on noninvasive healing of cracked piping systems. In this investigation, we propose to develop computational models for characterizing noninvasive repair strategies involving electromagnetically guided particles. The objective is to heal industrial-piping systems noninvasively, from the exterior of the system, during operation, resulting in no downtime and minimal relative cost. The particle accumulation at a target location is controlled by external electromagnetic/mechanical means. There are two primary effects that play a role for guiding the particles to the solid-fluid-interface/wall: mechanical shear caused by the fluid flow, and an electrical or magnetic force. In this work we develop and study a relationship that characterizes contributions of both, and ascertain how this relationship scales with characteristic physical parameters. Characteristic nondimensional parameters that describe system behavior are derived, and their role in design is illustrated. A detailed, fully 3D discrete-element-simulation framework is presented, and illustrated by use of a model problem of magnetically guided particles. The detailed particle behavior is considered to be regulated by three effects: the field strength, the mass-flow rate, and the wall interactions.