• A semi-resolved CFD-DEM model based on kernel approximation is established.
• Factors affecting the plugging probability of a single ball sealer are analyzed.
• Plugging efficiency's response to the number of ball sealers is analyzed.
• Plugging efficiency's response to the flow distribution is analyzed.
In the staged multi-cluster fracturing of shale gas horizontal wells, ball sealers are used to ensure uniform fluid distribution among clusters, a strategy that is both cost-effective and operationally beneficial. Despite these advantages, comprehending the ball sealers' dynamics within the wellbore and their plugging behavior at perforations is still challenging. This complexity results in prediction difficulties regarding their diversion efficiency. To address this, our study utilized a semi-resolved CFD-DEM model based on kernel approximation to simulate the behavior of medium-sized ball sealers in single and multiple cluster scenarios. Our findings from a single cluster scenario reveal that the plugging probability is co-determined by velocity gradients in the fluid ingestion area near the perforation, backflow region, and inertial forces of the ball sealers. As the critical flow rate is achieved, the plugging probability negatively correlated with fluid viscosity and displacement, and positively correlated with the perforation flow ratio (PFR), the difference in particle-fluid density, ball sealer's diameter, and the ball sealer's offset from the pipeline center. Temporary plugging control efficiency was used to evaluate the flow balance effect among multiple clusters. The results indicate that an increased number of ball sealers enhances the fault tolerance during the temporary plugging process. Nevertheless, excessive ball sealers might undermine the temporary plugging control efficiency, as perforations with lower fluid inflow rates are unexpectedly plugging. Higher differences in fluid injection rates between clusters led to increased efficiency in temporary plugging control. Premature deployment of ball sealers cannot effectively plug perforations with marginally higher fluid inflow rates, but instead accidently plug intermediate clusters with lower fluid inflow rates. These findings offer a theoretical basis for optimizing the design of ball sealers.