基于OpenMP标准分别设计了粒子模拟方法中电磁场计算、粒子运动求解、电荷密度和电流密度更新的并行计算实现算法。在多核计算机上对所设计并行算法进行了性能测试和分析,根据分析结果在3维并行粒子模拟软件CHIPIC3D上实现了基于OpenMP的并行计算功能,并应用其对一种扩展互作用振荡器进行了基于OpenMP的并行模拟和基于OpenMP/MPI混合模式的并行模拟。模拟结果表明并行算法正确并能取得较高的加速比。
Electromagnetic PIC simulation contains three key computational procedures: solving Maxwell's equations,solving Lorentz equation and particle motion equation,updating charge density and current density.According to the characteristics of the three computational procedures,parallel algorithms based on OpenMP were designed.Then the performance of the parallel algorithms were tested and analyzed.In the light of the performance analysis,the parallel computation based on OpenMP of CHIPIC3D software was implemented.At last,the parallel version of CHIPIC3D was used to simulate a kind of extended interaction oscillator,and the results show the parallel algorithm is correct and the speedup is enhanced.