arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2107.12437physics.comp-phphysics.class-phphysics.optics
收藏

PyCharge:一个开源Python包,用于Lorentz振荡器和移动点电荷的自洽电动力学模拟

PyCharge: An open-source Python package for self-consistent electrodynamics simulations of Lorentz oscillators and moving point charges

Matthew J. Filipovich, Stephen Hughes

摘要:

PyCharge是一个计算电动力学Python模拟器,可以计算移动点电荷产生的电磁场和电势,并且可以自洽地模拟作为洛伦兹振荡器建模的偶极子。为了计算在指定时间沿着离散空间网格的总场和电势,PyCharge计算每个网格点处的点电荷的延迟时间,随后用于计算每个点电荷的麦克斯韦方程的解析解。洛伦兹振荡器由系统中的电场驱动,PyCharge自洽地确定辐射在每个时间步长对偶极矩的反应。PyCharge将偶极子中的两个相反电荷视为单独的点电荷源,并计算它们对总电磁场和电势的单独贡献。在PyCharge模拟中捕获偶极子之间产生的预期耦合,并且可以在整个模拟的每个时间步长使用偶极子的能量提取偶极子的修改的辐射特性(辐射衰减率和频移)。修改后的辐射特性的两个偶极子分离在近场,这需要一个完整的偶极子响应,以产生正确的物理,计算PyCharge和显示出良好的协议与分析格林函数的结果($<0.2\%$相对误差,在很宽的空间分离范围)。移动偶极子也可以通过指定偶极子的原点位置作为时间的函数来建模。PyCharge包括一个并行化版本的偶极模拟方法,可以在高性能计算环境中并行执行计算要求很高的模拟,从而显著提高运行时间。

英文摘要:

PyCharge is a computational electrodynamics Python simulator that can calculate the electromagnetic fields and potentials generated by moving point charges and can self-consistently simulate dipoles modeled as Lorentz oscillators. To calculate the total fields and potentials along a discretized spatial grid at a specified time, PyCharge computes the retarded time of the point charges at each grid point, which are subsequently used to compute the analytical solutions to Maxwell's equations for each point charge. The Lorentz oscillators are driven by the electric field in the system and PyCharge self-consistently determines the reaction of the radiation on the dipole moment at each time step. PyCharge treats the two opposite charges in the dipole as separate point charge sources and calculates their individual contributions to the total electromagnetic fields and potentials. The expected coupling that arises between dipoles is captured in the PyCharge simulation, and the modified radiative properties of the dipoles (radiative decay rate and frequency shift) can be extracted using the dipole's energy at each time step throughout the simulation. The modified radiative properties of two dipoles separated in the near-field, which require a full dipole response to yield the correct physics, are calculated by PyCharge and shown to be in excellent agreement with the analytical Green's function results ($<0.2\%$ relative error, over a wide range of spatial separations). Moving dipoles can also be modeled by specifying the dipole's origin position as a function of time. PyCharge includes a parallelized version of the dipole simulation method to enable the parallel execution of computationally demanding simulations on high performance computing environments to significantly improve run time.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑