针对现有喷涂厚度仿真方法难以兼顾计算效率和物理可解释性的问题,开展基于粒子系统的机器人喷涂厚度高效仿真方法研究。首先,提出了一种基于Unity的简化粒子系统仿真框架,通过简化物理建模实现实时仿真计算;然后,建立了基于拒绝采样算法的粒子初始发射速度方向概率密度函数逼近方法,使仿真在理论上可适用于任意分布模型;最后,开展了仿真精度和计算效率验证实验,并通过典型零件喷涂和工艺参数优化验证了系统的实用性。结果表明,所提方法可将仿真耗时从传统物理仿真方法的数十小时缩短至数十秒,在平板样件验证中仿真预测相对误差≤12%,可用于零件喷涂仿真和工艺参数优化。
Objective: Coating thickness uniformity is a key indicator of spray quality, and its improvement depends on process parameter optimization. Therefore, a simulation method combining computational efficiency with physical interpretability is required to predict coating thickness distribution under different process parameters. Existing methods primarily include physics- and model-based simulations. The former offers high physical interpretability but suffers from high computational cost and long solution times, while the latter is efficient but relies heavily on fitted experimental data and often lacks robustness when spray conditions or workpiece geometry change. To address these limitations, this study proposes a particle system-based simulation method for robot spray coating thickness prediction and trajectory optimization. Methods: A particle system-based simulation framework for robot spray coating thickness is established in Unity. By retaining essential particle attributes, such as mass, velocity, and acceleration, and simplifying complex multiphysics processes such as atomization, airflow coupling, droplet breakup, and splash, the spray process is efficiently modeled. The workpiece surface is discretized into grid cells, and coating thickness is obtained by accumulating particle impacts on each grid element. For particle emission modeling, the droplet size is characterized by the volume median diameter, and the particle emission rate is determined based on the paint flow rate. A probability density approximation method for the initial particle emission velocity direction is established based on rejection sampling, enabling the simulation to be theoretically applicable to arbitrary distribution models. Furthermore, an elliptical double-beta distribution is adopted to describe the initial particle emission velocity direction. For spray gun motion modeling, trajectory interpolation is employed, with trapezoidal velocity interpolation used for position and spherical linear interpolation used for orientation to ensure smooth and continuous motion. In addition, a transfer efficiency parameter is introduced to represent the effective deposition ratio after the combined effects of diffusion, evaporation, and splash, such that the dissipative effects in the particle flight and deposition processes can be considered in a simplified manner. Coating thickness is then calculated based on the particle volume and material properties. Furthermore, a joint simulation and optimization framework is constructed by integrating Unity and Python through ML-Agents, enabling interaction between the simulation environment and external optimization algorithms. The performance of the proposed method is evaluated in terms of computational efficiency and prediction accuracy under typical spraying conditions. Results: The experimental results are as follows: 1) The computational efficiency of the proposed framework is mainly affected by the particle emission rate and grid density. Under appropriate parameter settings, the computation time of a single simulation ranges from several seconds to tens of seconds, which is significantly shorter than the tens of hours required by traditional physics-based simulation methods; 2) In planar specimen validation, the relative error between simulated and measured coating thickness is within 12%, indicating that the proposed method achieves acceptable prediction accuracy for practical applications. Conclusions: By combining simplified physical modeling with an efficient particle system framework, this study efficiently predicts coating thickness distribution under different process parameters while balancing computational efficiency and physical interpretability. The proposed method maintains an acceptable prediction accuracy and can provide effective support for spray process parameter optimization.