PySphLab: a software for calculation of electromagnetic properties of spheroid particles
摘要
We introduce PySphLab (https://gitee.com/jianglan98/py-sph-lab), an open-source software package for simulating the electromagnetic response of spheroidal particles using the T-matrix method. PySphLab is developed using Python based on and extended from the well-established MATLAB code named SMARTIES. PySphLab provides a user-friendly graphical user interface and an extensive refractive index database (3107 experimental data points for 398 materials). The software enables comprehensive characterization of both far-field properties (including cross sections, efficiencies, orientation-averaged quantities, and the scattering matrix) and near-field behavior, specifically the field intensity enhancement factor. Its capabilities are illustrated by investigations of the extinction properties of Ag, Au, Cu, Al, and Mg nanoparticles, as well as the surface field enhancement of Au-Ag alloy nanoparticles. Systematic convergence analysis confirms that the spherical-harmonic-based T‑matrix code yields stable and reliable results for nanoscale rotationally symmetric ellipsoidal particles with aspect ratios up to 10 in the visible spectrum. PySphLab offers a robust platform for quantitative analysis and material screening in particle-based photonic applications.