CPDDA: A Python Package for Discrete Dipole Approximation Accelerated by CuPy
간접 관련 필름·전자재료 · (13) 프리즘 필름 (11) 배리어 필름(15) 디스플레이 패널재료(16) CPI(투명 폴리이미드)
기본 정보
- 저자
- DOI
- 10.3390/nano15070500
- 저널
- Nanomaterials
- 발행년도
- 2025
- 발행기관
- Multidisciplinary Digital Publishing Institute
- 피인용수
- 0
- 라이선스
- cc-by
- 논문 유형
- –
- 언어
- –
- 원문 페이지
- https://doi.org/10.3390/nano15070500
- 토픽
- Optical Coatings and Gratings
- OpenAlex ID
- W4408928447
평가 내용
- 관련도
- 간접 관련
- 사업분야
- 필름·전자재료 · (13) 프리즘 필름
- 부 분야
- (11) 배리어 필름, (15) 디스플레이 패널재료, (16) CPI(투명 폴리이미드)
- R&D 측면
- 분석·모델링
- 확신도
- 0.70
- 근거 용어
- Discrete Dipole Approximation, light-scattering, refractive indices, optical properties, numerical method
- 판단 근거
- 이 논문은 입자의 광학적 특성(산란 및 흡수)을 시뮬레이션하는 수치 해석 패키지(CPDDA)에 관한 연구입니다. 직접적인 제품 연구는 아니나, 광학 필름이나 디스플레이 소재의 굴절률 및 광학적 성능을 예측하는 모델링 도구로 활용 가능합니다.
- R&D 활용 포인트
- 필름 및 디스플레이 소재 개발 시, 나노 입자나 코팅층의 굴절률 및 광학적 산란 특성을 실험 전 시뮬레이션하여 최적의 광학 설계(휘도, 투과율 등)를 수행하는 데 활용할 수 있습니다.
- 평가 입력
- 섹션 본문 34,642자 중 30,032자 발췌
초록
본문 35,432자
본문 펼치기
섹션 본문 64문단 · 34,002자
(제목 없음)
1Discrete Dipole Approximation (DDA) is a rapidly developing numerical method in recent years.DDA has found wide application in many research fields including plasmonics and atmospheric optics.Currently, few DDA packages based on Python have been reported.In this work, a Python package called CPDDA is developed.It can be used to simulate the light-scattering and -absorption properties of arbitrarily shaped particles.CPDDA uses object-oriented programming, offers high flexibility and extensibility, and provides a comprehensive database of refractive indices.The package uses the biconjugate gradient method and fast Fourier transform for program acceleration and memory optimization, and it uses parallel computation with graphics processing units to enhance program performance.The accuracy and performance of CPDDA were demonstrated by comparison with Mie theory, the MATLAB package MPDDA, and the Python package pyGDM2.Finally, CPDDA was used to simulate the variations in light-absorption and -scattering properties of ZnO@Au core-shell nanorods based on the particle size.CPDDA is useful for calculating light-scattering and -absorption properties of small particles and selecting materials with excellent optical properties.
Introduction
2The interaction of light with matter is a hot topic in physics.In recent years, the interaction of light with particles has emerged in applications in various fields such as biomedicine [1], atmospheric science [2], and sensing [3].Although Mie theory can accurately and efficiently analyze such interactions, its applicability is limited to simple geometries like spheres.There are various numerical methods for calculating the lightscattering and -absorption properties of particles with arbitrary shapes.These include Finite Difference Time Domain (FDTD) [4], Finite Element Method (FEM) [5], Boundary Element Method (BEM) [6], the null-field method [7,8], and Discrete Dipole Approximation (DDA) [9].Compared to FDTD and FEM, DDA is faster to compute.For the detailed characteristics of these numerical methods, see the published paper written by Amirjani and Sadrnezhaad [10].
3DDA was originally proposed by Purcell and Pennypacker to calculate light scattering from grains in the interstellar medium [11].Over the years, DDA has been applied to calculate the optical properties of arbitrarily shaped particles.In DDA, the particle is discretized into an array of N dipole points, and these polarizable points respond to the
Fundamentals of DDA
4DDA is a numerical method based on volume-integral discretization derived directly from Maxwell's equations [14].It calculates optical properties like absorption, scattering, and extinction cross sections for particles of any shape and composition.The method approximates a continuous target by a finite array of polarizable points.The target is discretized into N points, each represented as a dipole and periodically arranged on a cubic lattice with a side length of d.The points acquire dipole moments in response to the local electric field.Therefore, the only approximation in the DDA is replacing the continuum target with an array of N-point dipoles.
5Assuming the center coordinates of each dipole are {r p , p = 1, 2, . .., N}, and the polarizability is {α p , p = 1, 2, . .., N}, each dipole generates a dipole moment under the influence of the local electric field:
6where E p is the electric field at r p due to the incident wave E inc,p plus the contribution of each of the other N − 1 dipoles:
7where A pq is the 3 × 3 interaction matrix containing the Green tensor, which can be expressed as:
8where k = ωc is the wave number, r pq = r p − r q is the distance from dipole q to p, rpq = (r p − r q )/r pq is a unit vector in the direction from dipole q to p, and I 3 represents the 3 × 3 identity matrix.The diagonal elements of the interaction matrix are defined as A pp = α p −1 I 3 , which leads to the simplified form of Equation (2) as:
9Equation ( 4) is the final linear equation system to be solved and the primary objective of DDA.Once Equation (4) has been solved for the unknown polarization P p , the extinction, absorption, and scattering cross sections can be evaluated:
10After discretizing the target object into dipoles, each dipole can be considered to represent a specific polarizability of the target's material and can interact with other N − 1 dipoles.The dielectric properties of a material are directly linked to the polarizability.
11When dipoles are arranged on an infinite cubic lattice, this relationship is described by the simple and precise Clausius-Mossotti relation:
12where ϵ p is the dielectric function of the target's material at location r p .However, the derivation of this correction was based on the assumption that the electric field remains uniform across cubic regions with a volume of d 3 .Thus, we consider the Lattice Dispersion Relation (LDR) polarizability.Since the dipoles are arranged on a periodic cubic lattice and coupling occurs between the electromagnetic waves and the lattice, consider that for the LDR polarizability α, the infinite lattice of polarizable points has the same dispersion relation as the continuous refractive index m.In the limit kd << 1, the polarizability α is expressed as a power series expansion in terms of kd and m 2 = ϵ:
13where:
14In order to ensure the accuracy of the DDA calculation results, the rule of the following equation is followed:
15For irregular particles, the criteria may be appropriately adjusted to account for their specific characteristics [24].The subsequent section describes the implementation of DDA in Python, including acceleration techniques, and provides a quantitative assessment of the code's accuracy, reliability, and performance.
Implementation of CPDDA
16Our primary algorithms are based on MPDDA, and we have extended this framework to develop CPDDA using Python.CPDDA uses an object-oriented form to program the DDA.The structure of the CPDDA package and the main steps to set up and run a simulation are schematically depicted in Figure 1.The core of CPDDA is the simulation object, which contains information about the structure and the incident field used in the simulation.In Appendix A, a simple Python script for CPDDA to create a simulation object is supplied.The geometry of the particle and the refractive indices of the particle and the environment are stored in an instance of structures.struct.The geometry module is used to establish the grid coordinates of the particle, and the materials object contains the dipole material properties, including the refractive index of the particles and the corresponding dielectric constant.It is worth noting that CPDDA contains a rich database of refractive indices of materials, which provides 398 kinds of materials (including 3107 kinds of experimental data).Table 1 presents a summary of the database.The diverse range of refractive indices in this package's database enables researchers to explore novel optical properties of materials and conduct comparative studies within material classes to identify high-performance candidates for specific applications.After setting up the first two objects, the polarizability of each dipole is determined by placeholders.The second key ingredient of CPDDA simulation is the incident field.The part about the incident field is set in the field.efieldobject, which contains the propagation direction and polarization of the incident field.The current CPDDA implementation contains two incident fields: plane wave and Gaussian beam.
17The above two parts together set up and define the simulation object, thus setting Einc,p and the diagonal elements in Apq in Equation (4).The main simulation of CPDDA is divided into constructing matrix-vector multiplications and solving them.For Equation (4), it can be written as follows:
18where A μν ( μ and ν is x, y, or z) is an N×N matrix that represents the interaction matrix, and P μ and inc , E μ ( μ and ν is x, y, or z) are denoted as the three polarization vectors of N×1 and the three components of the incident electric field, respectively.Since the nine blocks of the interaction matrix are symmetric regarding changing the indices, only six independent blocks of A (Axx, Axy, Axz, Ayy, Ayx, Azx) are required.After constructing the matrix, it is time to solve for this matrix-vector multiplication.Due to the size of the matrix, it takes a significant amount of computing resources to generate the interaction matrix's inverse, and solving Equation ( 12) in this case is not possible.
Material Classification Description
19MAIN simple inorganic materials GLASS glasses ORGANIC organic materials OTHER miscellaneous materials
20The second key ingredient of CPDDA simulation is the incident field.The part about the incident field is set in the field.efieldobject, which contains the propagation direction and polarization of the incident field.The current CPDDA implementation contains two incident fields: plane wave and Gaussian beam.
21The above two parts together set up and define the simulation object, thus setting E inc,p and the diagonal elements in A pq in Equation ( 4).The main simulation of CPDDA is divided into constructing matrix-vector multiplications and solving them.For Equation ( 4), it can be written as follows:
22where A µν (µ and ν is x, y, or z) is an N×N matrix that represents the interaction matrix, and P µ and E inc,µ (µ and ν is x, y, or z) are denoted as the three polarization vectors of N×1 and the three components of the incident electric field, respectively.Since the nine blocks of the interaction matrix are symmetric regarding changing the indices, only six independent blocks of A (A xx , A xy , A xz , A yy , A yx , A zx ) are required.After constructing the matrix, it is time to solve for this matrix-vector multiplication.Due to the size of the matrix, it takes a significant amount of computing resources to generate the interaction matrix's inverse, and solving Equation ( 12) in this case is not possible.Therefore, the solution is to use an iterative method to solve the linear system.The principle of an iterative method for solving the linear system is to create a sequence E s such that:
23with the residue r q tending towards zero when q increases, in which the q-th approximation is derived from the previous ones.The iterative process is stopped when r q < η, where the value of η is set by the user and depends on the desired precision of the field [13,19].Bi-conjugate gradient (Bi-CG) has been employed in several DDA implementations [12,17], and CPDDA also adopts this iterative method.
24The iterative method involves several matrix-vector multiplications, which are further accelerated by 3D FFT.The interaction matrix is constructed as a Toeplitz matrix, where all diagonal elements are equal, and the off-diagonal elements along each parallel diagonal are equal.Thus, the Toeplitz matrix can be entirely defined by its first row and first column as [25]:
25By setting t q,p = t q-p and appending the first column (excluding the initial term) in reverse order to the first row, then completing the diagonal, the Toeplitz matrix is transformed into the circulant matrix C n ′ , where n ′ = 2n − 1. Arbitrary circulant matrices can be diagonalized using Fourier matrices:
26Equation ( 15) is the expression for the Fourier matrix using the fact that the Fourier matrix is unitary,
27Where the H superscript is the transposed conjugate, the multiplication of an arbitrary vector with a circulant matrix can be performed as an element-wise multiplication in the Fourier domain via the Convolution Theorem.For a comprehensive discussion of specific algorithms for iterative methods and FFT, readers may refer to the studies by Shabaninezhad et al. and Donald et al. [12,17].All of the above operations for matrix-vector multiplication can be found in the core.DDA module.core.DDA is divided into CPU and GPU compute modes.The next section details how CPU-bound prat blocks are accelerated in GPU mode.
28After calculating the polarization vector P p , CPDDA can compute the near-field and far-field parameters and visualize them through the visu module.Specifically, the three main cross-sections, efficiency and volume coefficients, and the electric field distribution around the particles can be calculated; the corresponding code is available in the post-processing module.
GPU Mode of CPDDA
29For CPU-bound tasks like DDA, parallel computing is an efficient computational method.Due to the GIL, explicit multi-threading cannot be implemented in Python to achieve parallelism.Using multi-threading through tools like Cython limits programming to basic atomic operations, which prevents using the high-performance capabilities of libraries like NumPy and increases programming complexity [26,27].Therefore, GPU mode is added to core.DDA for parallel computation.
30In general, GPUs have thousands of cores and are capable of running several thousands of threads simultaneously.Although modern CPUs can have an even larger number of cores, they are still very small compared to GPUs.Since the GPU is a foreign device compared to the host CPU, any data that need to be processed on a GPU must be offloaded to it first.The data transfer between CPU and GPU is performed via a PCIe cable.PCIe data communication can be bottlenecked by large data transfers, and in extreme cases, data transfer costs may exceed computation times.Therefore, considering the hardware communication overhead, only the CPU-bound part of the code is offloaded to the GPU, as shown in Figure 2. CPU-bound iterative methods and matrix-vector multiplications were offloaded to the GPU, with only two communications between the CPU and GPU during the entire computation.In the Python implementation, we used CuPy and NumPy for highperformance computing and transfered data between the CPU and GPU using the cp.array and cp.asnumpy.Additionally, the memory pooling technique in CuPy manually replaces some of Python's garbage collection techniques for more efficient memory management.It is worth mentioning that the CuPy library offers a highly compatible interface with NumPy, enabling GPU-accelerated data processing and scientific computing, particularly for large-scale data.GPU acceleration is available when the user selects GPU mode in the core.DDA module.
31of cores, they are still very small compared to GPUs.Since the GPU is a foreign device compared to the host CPU, any data that need to be processed on a GPU must be offloaded to it first.The data transfer between CPU and GPU is performed via a PCIe cable.PCIe data communication can be bottlenecked by large data transfers, and in extreme cases, data transfer costs may exceed computation times.Therefore, considering the hardware communication overhead, only the CPU-bound part of the code is offloaded to the GPU, as shown in Figure 2. CPU-bound iterative methods and matrix-vector multiplications were offloaded to the GPU, with only two communications between the CPU and GPU during the entire computation.In the Python implementation, we used CuPy and NumPy for high-performance computing and transfered data between the CPU and GPU using the cp.array and cp.asnumpy.Additionally, the memory pooling technique in CuPy manually replaces some of Python's garbage collection techniques for more efficient memory management.It is worth mentioning that the CuPy library offers a highly compatible interface with NumPy, enabling GPU-accelerated data processing and scientific computing, particularly for large-scale data.GPU acceleration is available when the user selects GPU mode in the core.DDA module.
Numerical Validation of CPDDA
32To verify the accuracy of CPDDA, the calculations were performed using a LAPTOP-3EE0017T with Windows 10 operating system.The laptop was equipped with an Intel(R) i5-7300HQ processor with 2.50 GHz and 8192 MB of total RAM as well as a NVIDIA Ge-Force RTX 1050ti graphics card with 4096 MB of RAM, and Python 3.10 with 13.1.0cupy-cuda12x was installed on the laptop.We calculated the extinction efficiency of the Au nanosphere with a diameter of 30 nm in an aqueous solution for two lattice spacings, d = 0.5 nm and 0.25 nm, and compared the results with the Mie theory using PyMieLab_V1.0[28], as shown in Figure 3a.The CPDDA results closely matched Mie theory with a relative error of less than 2% for d = 0.25 nm, and the spectra converged to the exact solution as the lattice spacing was reduced.Additionally, scattering efficiency of ZnO@Au nanorods, characterized by a core length of 60 nm, a shell thickness of 5 nm, and an aspect ratio of 12, were calculated and compared with the results from MPDDA [17], as shown in Figure 3b.The results are in excellent agreement, demonstrating the accuracy and reliability of CPDDA.
33To verify the accuracy of CPDDA, the calculations were performed using a LAPTOP-3EE0017T with Windows 10 operating system.The laptop was equipped with an Intel(R) i5-7300HQ processor with 2.50 GHz and 8192 MB of total RAM as well as a NVIDIA GeForce RTX 1050ti graphics card with 4096 MB of RAM, and Python 3.10 with 13.1.0cupy-cuda12x was installed on the laptop.We calculated the extinction efficiency of the Au nanosphere with a diameter of 30 nm in an aqueous solution for two lattice spacings, d = 0.5 nm and 0.25 nm, and compared the results with the Mie theory using PyMieLab_V1.0[28], as shown in Figure 3a.The CPDDA results closely matched Mie theory with a relative error of less than 2% for d = 0.25 nm, and the spectra converged to the exact solution as the lattice spacing was reduced.Additionally, scattering efficiency of ZnO@Au nanorods, characterized by a core length of 60 nm, a shell thickness of 5 nm, and an aspect ratio of 12, were calculated and compared with the results from MPDDA [17], as shown in Figure 3b.The results are in excellent agreement, demonstrating the accuracy and reliability of CPDDA.To demonstrate the GPU acceleration of CPDDA, we compare the computation time for the CPU and GPU under the same configurations.Figure 4a shows the variations between the CPU and GPU computation times with lattice spacing d for an Au nanocube with an isomeric diameter of 40 nm in a medium with a refractive index 1.33 and incident light wavelength of 450 nm.As d decreases, the GPU acceleration becomes more pronounced.As the lattice pitch decreases, CPU computation time increases significantly, while GPU computation time remains relatively constant.At d = 0.3 nm, CPU time is approximately 26 times that of the GPU.To further evaluate performance, we compared the GPU mode of CPDDA with that of MPDDA on the same configured system, both using Bi-CG as the iterative solver.The computation time ratio between MPDDA and CPDDA demonstrates the acceleration advantage of CPDDA, as shown in Figure 4b.The results indicate that CPDDA is generally faster, but MPDDA outperforms CPDDA when d reaches 1.9 nm.CPDDA shows a computational speed advantage at smaller lattice spacings.To further evaluate the computational efficiency, we compared the performance of pyGDM2 and CPDDA in GPU mode.As Figure 4c shows, we simulated Au nanospheres (50 nm diameter in a vacuum) using both pyGDM2 and CPDDA under GPU acceleration based on the example provided in the pyGDM2 documentation.Due to the high memory demand of pyGDM2 compared to DDA for the same number of discrete cells, the analysis was limited to approximately 1000 discrete units.The results demonstrate that while CPDDA exhibits superior performance at shorter wavelengths, pyGDM2 outperforms at longer wavelengths.To demonstrate the GPU acceleration of CPDDA, we compare the computation time for the CPU and GPU under the same configurations.Figure 4a shows the variations between the CPU and GPU computation times with lattice spacing d for an Au nanocube with an isomeric diameter of 40 nm in a medium with a refractive index 1.33 and incident light wavelength of 450 nm.As d decreases, the GPU acceleration becomes more pronounced.As the lattice pitch decreases, CPU computation time increases significantly, while GPU computation time remains relatively constant.At d = 0.3 nm, CPU time is approximately 26 times that of the GPU.To further evaluate performance, we compared the GPU mode of CPDDA with that of MPDDA on the same configured system, both using Bi-CG as the iterative solver.The computation time ratio between MPDDA and CPDDA demonstrates the acceleration advantage of CPDDA, as shown in Figure 4b.The results indicate that CPDDA is generally faster, but MPDDA outperforms CPDDA when d reaches 1.9 nm.CPDDA shows a computational speed advantage at smaller lattice spacings.To further evaluate the computational efficiency, we compared the performance of pyGDM2 and CPDDA in GPU mode.As Figure 4c shows, we simulated Au nanospheres (50 nm diameter in a vacuum) using both pyGDM2 and CPDDA under GPU acceleration based on the example provided in the pyGDM2 documentation.Due to the high memory demand of pyGDM2 compared to DDA for the same number of discrete cells, the analysis was limited to approximately 1000 discrete units.The results demonstrate that while CPDDA exhibits superior performance at shorter wavelengths, pyGDM2 outperforms at longer wavelengths.In the simulation, the particle is an Au nanocube with an isomeric diameter of 40 nm, the refractive index of the environment is 1.33, and the incident light is a plane wave with a wavelength of 450 nm.(c) Variation of the ratio of pyGDM2 to CPDDA computation time with the wavelengths λ, the diameter of Au nanosphere is 50 nm, the number of discrete units for both is around 1000.
Optical Properties of ZnO@Au Nanorods
34ZnO@Au core-shell nanoparticles, consisting of ZnO core and Au shell, show significant potential in applications such as surface-enhanced Raman scattering, photocatalysis, and biosensing [29][30][31][32].ZnO, a semiconductor with a bandgap of 3.37 eV at room temperature, exhibits good electrical conductivity, making it valuable in electrochemical devices [33].Moreover, these nanoparticles are low in toxicity, biodegradable, and easy to synthesize [34].When coated with Au, ZnO@Au nanoparticles exhibit enhanced biocompatibility.ZnO@Au core-shell nanorods have been synthesized and widely used in gas sensing [35], and other fields [36].In this section, ZnO@Au core-shell nanorods are used to quantitatively analyze the variation in their light-absorption and -scattering properties with particle size using CPDDA.The refractive index data of Au and ZnO were obtained from ref.
35[37] and ref. [38], respectively, and the refractive index of the surrounding medium was set to 1.44 (representing subcutaneous fat) [39].The light-absorption and -scattering characteristics were quantified by the volume-absorption coefficient A abs and volume-scattering coefficient A sca , defined as follows:
36where V p represents the overall volume of the particle (including the shell).
37The schematic diagram of interaction of light with the ZnO@Au core-shell nanorod is shown in Figure 5.The ZnO@Au core-shell nanorod is represented by three geometrical parameters, where l c denotes the core length, d c denotes the core diameter, and t s denotes the shell thickness.The ratio of core length to diameter is defined as the aspect ratio AR, and the particle geometry can also be expressed in terms of AR, t s , and l c .The incident light propagates along the short axis of the nanorod, and the electric field is polarized along the long axis of the nanorod.
Effect of Aspect Ratio
38To quantitatively analyze the effect of the core aspect ratio AR on the abso scattering spectra, we calculated the spectra for ZnO@Au core-shell nanorod
39To quantitatively analyze the effect of the core aspect ratio AR on the absorption and scattering spectra, we calculated the spectra for ZnO@Au core-shell nanorods with AR values of 3, 6, 9, and 12, fixing the core length l c at 80 nm and the shell thickness t s at 5 nm.The results are shown in Figure 6a,c.As the AR increased from 3 to 12, the resonance wavelength redshifted from 965 nm to 1055 nm (see Figure 6b,d), the volume-absorption coefficient increased from 0.5256 nm −1 to 1.6854 nm −1 (see Figure 6b), and the volumescattering coefficient first increased from 0.2024 nm −1 to 0.2340 nm −1 , then decreased to 0.2160 nm −1 (see Figure 6d).The imaginary part of the dielectric function is expected to exhibit an increasing trend with wavelength, as the collision frequency of electrons in the metal becomes comparable to the optical frequency in the lower energy (longer wavelength) regime.At these wavelengths, the absorption contribution is anticipated to rise due to the enhancement of the metal's intrinsic dielectric function.This effect is particularly pronounced for Au, where the increase in the imaginary dielectric function is more significant.This could be the reason for the decrease in the maximum value of the bulk-scattering coefficient at longer wavelengths for high-aspect-ratio nanorods [40]
Effect of Shell Thickness
40To further analyze the effect of the shell thickness t s on the absorption and scattering spectra, we calculated the spectra for ZnO@Au core-shell nanorods with t s values of 2.5, 5, 7.5, and 10 nm, fixing the core length l c at 80 nm and the core aspect ratio AR at 12. The results are shown in Figure 7a,c.As the t s increased from 2.5 to 10 nm, The resonance wavelength of the ZnO@Au core-shell nanorods underwent a significant blueshift (see Figure 7b,d), the volume-absorption coefficient decreased from 1.8834 nm −1 to 0.8885 nm −1 (see Figure 7b), and the volume-scattering coefficient increased from 0.0521 nm −1 to 0.5204 nm −1 (see Figure 7d).As t s increased, the accumulated surface charge on the nanoparticle enhanced the electron-restoring force, raising the LSPR frequency and inducing a blueshift in the resonance wavelength.
Effect of Core Length
41To further analyze the effect of the core length l c on the absorption and scattering spectra, we calculated the spectra for ZnO@Au core-shell nanorods with l c values of 40, 60, 80, and 100 nm, fixing the shell thickness t s at 5 nm and the core aspect ratio AR at 12. The results are shown in Figure 8a,c.As the l c increased from 40 to 100 nm, the resonance wavelength redshifted from 875 nm to 1300 nm (see Figure 8b,d), the volumeabsorption coefficient decreased from 1.8589 nm −1 to 1.6166 nm −1 (see Figure 8b), and the volume-scattering coefficient increased from 0.1444 nm −1 to 0.2440 nm −1 (see Figure 8d).As l c increased, the vibrational distance of free electrons within the Au shell increased, decreasing their vibrational frequency and lowering the LSPR frequency, which induced a redshift in the resonance wavelength.
42creased, the vibrational distance of free electrons within the Au shell increased, decreasing their vibrational frequency and lowering the LSPR frequency, which induced a redshift in the resonance wavelength.
Conclusions
43This paper presents CPDDA, a Python package for simulating the light-scattering and -absorption properties of arbitrarily shaped particles.CPDDA uses Bi-CG and FFT algorithms to accelerate the CPU-bound part of DDA and reduce memory usage.To improve performance and overcome GIL limitations, CuPy was used to implement parallel computation on the GPU, significantly enhancing computation speed compared to the CPU.Having a rich database of refractive indices of materials (3107 refractive index experimental data of 398 materials) is one of the features of this package, which can provide powerful help for studying and optimizing electromagnetic properties of particles with multiple materials.Compared to Mie theory, MPDDA, and pyGDM2, the reliability and performance of CPDDA were validated.Finally, ZnO@Au core-shell nanorods were used to study how their light-absorption and -scattering properties varied with aspect ratio,
44This paper presents CPDDA, a Python package for simulating the light-scattering and -absorption properties of arbitrarily shaped particles.CPDDA uses Bi-CG and FFT algorithms to accelerate the CPU-bound part of DDA and reduce memory usage.To improve performance and overcome GIL limitations, CuPy was used to implement parallel computation on the GPU, significantly enhancing computation speed compared to the CPU.Having a rich database of refractive indices of materials (3107 refractive index experimental data of 398 materials) is one of the features of this package, which can provide powerful help for studying and optimizing electromagnetic properties of particles with multiple materials.Compared to Mie theory, MPDDA, and pyGDM2, the reliability and performance of CPDDA were validated.Finally, ZnO@Au core-shell nanorods were used to study how their light-absorption and -scattering properties varied with aspect ratio, shell thickness, and core length.The high-level Python API, along with various tools for rapid data analysis and visualization, renders standard optical simulations of particles relatively straightforward.In the future, more optical parameters will be added to CPDDA to expand the functionality of the package, and more high-performance algorithms will be integrated to support broader applications.
Figure 1 .
45Figure 1.Structure of the CPDDA package and workflow of the typical simulation: (1) Setup of the geometry, material, and incident electric field.They are bundled in an instance of the simulation object.(2) Main simulation.(3) Post-processing.(4) Visualization of the results.
46Figure 1.Structure of the CPDDA package and workflow of the typical simulation: (1) Setup of the geometry, material, and incident electric field.They are bundled in an instance of the simulation object.(2) Main simulation.(3) Post-processing.(4) Visualization of the results.
Figure 2 .
47Figure 2. Schematic diagram of CPDDA data transfer from CPU to GPU.
48Figure 2. Schematic diagram of CPDDA data transfer from CPU to GPU.
Figure 3 .
49Figure 3. (a) Calculated extinction spectra of Au nanosphere using Mie theory and CPDDA (lattice spacing is 0.5 nm and 0.25 nm, respectively).(b) Calculated scattering spectra of ZnO@Au nanorod using MPDDA and CPDDA.In the simulation, the diameter of Au nanosphere is 30 nm, and core length, shell thickness, and aspect ratio of core-shell nanorod are 60 nm, 5 nm, and 12, respectively.The refractive indices of the environment are (a) 1.33 and (b) 1.44, respectively.
50Figure 3. (a) Calculated extinction spectra of Au nanosphere using Mie theory and CPDDA (lattice spacing is 0.5 nm and 0.25 nm, respectively).(b) Calculated scattering spectra of ZnO@Au nanorod using MPDDA and CPDDA.In the simulation, the diameter of Au nanosphere is 30 nm, and core length, shell thickness, and aspect ratio of core-shell nanorod are 60 nm, 5 nm, and 12, respectively.The refractive indices of the environment are (a) 1.33 and (b) 1.44, respectively.
Nanomaterials 2025 , 15 Figure 4 .
51Figure 4. (a) Variation of CPU and GPU computation time and their ratio with the lattice spacing d.(b) Variation of the ratio of MPDDA to CPDDA computation time with the lattice spacing d.In the simulation, the particle is an Au nanocube with an isomeric diameter of 40 nm, the refractive index of the environment is 1.33, and the incident light is a plane wave with a wavelength of 450 nm.(c)Variation of the ratio of pyGDM2 to CPDDA computation time with the wavelengths λ, the diameter of Au nanosphere is 50 nm, the number of discrete units for both is around 1000.
Figure 4 .
52Figure 4. (a) Variation of CPU and GPU computation time and their ratio with the lattice spacing d.(b) Variation of the ratio of MPDDA to CPDDA computation time with the lattice spacing d.In the
Nanomaterials 2025 ,Figure 5 .
53Figure 5. Schematic of the interaction of ZnO@Au core-shell nanorod with light.
Figure 5 .
54Figure 5. Schematic of the interaction of ZnO@Au core-shell nanorod with light.
55. The optical properties and electronic structure of the nanoparticles changed with AR.As the AR increased, the charge accumulation on the nanoparticle surface decreased, weakening the electron-restoring force and lowering the Local Surface Plasmon Resonance (LSPR) frequency, which resulted in a redshift of the resonance wavelength [41].anomaterials 2025, 15, x FOR PEER REVIEW 11 of 15
Figure 6 .
56Figure 6.Calculated (a) absorption and (c) scattering spectra of ZnO@Au core-shell nanorods with different aspect ratios AR.Variation of (b) absorption and (d) scattering resonance wavelength and peak intensity with AR.The core length lc and shell thickness ts were 80 nm and 5 nm, respectively.
57Figure 6.Calculated (a) absorption and (c) scattering spectra of ZnO@Au core-shell nanorods with different aspect ratios AR.Variation of (b) absorption and (d) scattering resonance wavelength and peak intensity with AR.The core length l c and shell thickness t s were 80 nm and 5 nm, respectively.
58Figure 6.Calculated (a) absorption and (c) scattering spectra of ZnO@Au core-shell nanorods with different aspect ratios AR.Variation of (b) absorption and (d) scattering resonance wavelength and peak intensity with AR.The core length lc and shell thickness ts were 80 nm and 5 nm, respectively.
Figure 7 .
59Figure 7. Calculated (a) absorption and (c) scattering spectra of ZnO@Au core-shell nanorods with different shell thicknesses ts.Variation of (b) absorption and (d) scattering resonance wavelength and peak intensity with ts.The core length lc and aspect ratio AR are 80 nm and 12, respectively.
60Figure 7. Calculated (a) absorption and (c) scattering spectra of ZnO@Au core-shell nanorods with different shell thicknesses t s .Variation of (b) absorption and (d) scattering resonance wavelength and peak intensity with t s .The core length l c and aspect ratio AR are 80 nm and 12, respectively.
Figure 8 .
61Figure 8. Calculated (a) absorption and (c) scattering spectra of ZnO@Au core-shell nanorods with different core lengths lc.Variation of (b) absorption and (d) scattering resonance wavelength and peak intensity with lc.The shell thickness ts and aspect ratio AR were 5 nm and 12, respectively.
62Figure 8. Calculated (a) absorption and (c) scattering spectra of ZnO@Au core-shell nanorods with different core lengths l c .Variation of (b) absorption and (d) scattering resonance wavelength and peak intensity with l c .The shell thickness t s and aspect ratio AR were 5 nm and 12, respectively.
Table 1 .
63Description of material refractive index database.
64Description of material refractive index database.
참고문헌 38건
- Rapid synthesis and characterization of hybrid ZnO@Au core–shell nanorods for high performance, low temperature NO 2 gas sensor applications Applied Surface Science · Elsevier BV · 2015 10.1016/j.apsusc.2015.07.143
- Laser assisted fabrication of ZnO/Ag and ZnO/Au core/shell nanocomposites Applied Physics A · Springer Science+Business Media · 2013 10.1007/s00339-012-7517-y
- Synthesis, characterization and application of zinc oxide nanoparticles (n-ZnO) Ceramics International · Elsevier BV · 2013 10.1016/j.ceramint.2013.04.110
- Scattering and Absorption of Light by Nonspherical Dielectric Grains The Astrophysical Journal · IOP Publishing · 1973 10.1086/152538
- Controllable synthesis of plasmonic ZnO/Au core/shell nanocable arrays on ITO glass Physica E Low-dimensional Systems and Nanostructures · Elsevier BV · 2013 10.1016/j.physe.2013.08.012
- Recent Advances and Emerging Applications of the Boundary Element Method Applied Mechanics Reviews · American Society of Mechanical Engineers · 2011 10.1115/1.4005491
- Dependence of the Enhanced Optical Scattering Efficiency Relative to That of Absorption for Gold Metal Nanorods on Aspect Ratio, Size, End-Cap Shape, and Medium Refractive Index The Journal of Physical Chemistry B · American Chemical Society · 2005 10.1021/jp054385p
- Optical Constants of the Noble Metals Physical review. B, Solid state · American Physical Society · 1972 10.1103/physrevb.6.4370
- Discrete-dipole approximation with surface interaction: Computational toolbox for MATLAB Journal of Quantitative Spectroscopy and Radiative Transfer · Elsevier BV · 2011 10.1016/j.jqsrt.2011.03.012
- Opendda: a Novel High-Performance Computational Framework for the Discrete Dipole Approximation The International Journal of High Performance Computing Applications · SAGE Publishing · 2009 10.1177/1094342008097914
- Cython: The Best of Both Worlds Computing in Science & Engineering · AIP Publishing · 2010 10.1109/mcse.2010.118
- Finite‐Difference Time‐Domain Analysis Encyclopedia of RF and Microwave Engineering · 2005 10.1002/0471654507.eme123
- The discrete-dipole-approximation code ADDA: Capabilities and known limitations Journal of Quantitative Spectroscopy and Radiative Transfer · Elsevier BV · 2011 10.1016/j.jqsrt.2011.01.031
- The NumPy Array: A Structure for Efficient Numerical Computation Computing in Science & Engineering · AIP Publishing · 2011 10.1109/mcse.2011.37
- Discrete-Dipole Approximation For Scattering Calculations Journal of the Optical Society of America A · Optica Publishing Group · 1994 10.1364/josaa.11.001491
- Electrical Properties of Tissue Elsevier eBooks · Elsevier BV · 1990 10.1016/b978-0-12-222800-1.50010-3
- On the Asymptotic Equivalence of Circulant and Toeplitz Matrices IEEE Transactions on Information Theory · Institute of Electrical and Electronics Engineers · 2017 10.1109/tit.2017.2676808
- Plasmonically Engineered Nanoprobes for Biomedical Applications Journal of the American Chemical Society · American Chemical Society · 2016 10.1021/jacs.6b09451
- Determination of Chlorophenol in Environmental Samples Using a Voltammetric Biosensor Based on Hybrid Nanocomposite Journal of the Brazilian Chemical Society · Brazilian Chemical Society · 2016 10.21577/0103-5053.20160282
- pyGDM—A python toolkit for full-field electro-dynamical simulations and evolutionary optimization of nanostructures Computer Physics Communications · Elsevier BV · 2018 10.1016/j.cpc.2018.06.017
- Two step synthesis of ZnO/Ag and ZnO/Au core/shell nanocomposites: Structural, optical and electrical property analysis Journal of Alloys and Compounds · Elsevier BV · 2018 10.1016/j.jallcom.2018.03.348
- An overview of the null-field method. II: Convergence and numerical stability Physics Open · Elsevier BV · 2020 10.1016/j.physo.2020.100019
- An overview of the null-field method. I: Formulation and basic results Physics Open · Elsevier BV · 2020 10.1016/j.physo.2020.100020
- MATLAB package for discrete dipole approximation by graphics processing unit: Fast Fourier Transform and Biconjugate Gradient Journal of Quantitative Spectroscopy and Radiative Transfer · Elsevier BV · 2021 10.1016/j.jqsrt.2020.107501
- Localized Surface Plasmonic Properties of Au and Ag Nanoparticles for Sensors: a Review Plasmonics · Springer Science+Business Media · 2021 10.1007/s11468-021-01381-1
- SMUTHI: A python package for the simulation of light scattering by multiple particles near or between planar interfaces Journal of Quantitative Spectroscopy and Radiative Transfer · Elsevier BV · 2021 10.1016/j.jqsrt.2021.107846
- “pyGDM” - new functionalities and major improvements to the python toolkit for nano-optics full-field simulations Computer Physics Communications · Elsevier BV · 2021 10.1016/j.cpc.2021.108142
- Computational electromagnetics in plasmonic nanostructures Journal of Materials Chemistry C · Royal Society of Chemistry · 2021 10.1039/d1tc01742j
- IFDDA, an easy-to-use code for simulating the field scattered by 3D inhomogeneous objects in a stratified medium: tutorial Journal of the Optical Society of America A · Optica Publishing Group · 2021 10.1364/josaa.432685
- Surface plasmons in metallic nanoparticles: fundamentals and applications Journal of Physics D Applied Physics · Institute of Physics · 2012 10.1088/0022-3727/45/38/389501
- The Discrete Dipole Approximation: A Review Mathematics · Multidisciplinary Digital Publishing Institute · 2022 10.3390/math10173049
- Highly efficient photo-induced surface enhanced Raman spectroscopy from ZnO/Au nanorods Optical Materials · Elsevier BV · 2022 10.1016/j.optmat.2022.113069
- PyMieLab_V1.0: A software for calculating the light scattering and absorption of spherical particles Heliyon · Elsevier BV · 2022 10.1016/j.heliyon.2022.e11469
- Global GPBiCGstab(L) method for solving linear matrix equations Numerical Algorithms · Springer Science+Business Media · 2022 10.1007/s11075-022-01415-7
- A comparative study of efficient iterative solvers for the discrete dipole approximation Journal of Quantitative Spectroscopy and Radiative Transfer · Elsevier BV · 2023 10.1016/j.jqsrt.2023.108816
- Surface-enhanced Raman spectroscopy (SERS) for the characterization of atmospheric aerosols: Current status and challenges TrAC Trends in Analytical Chemistry · Elsevier BV · 2023 10.1016/j.trac.2023.117426
- Dopamine levels determined in synthetic urine using an electrochemical tyrosinase biosensor based on ZnO@Au core–shell RSC Advances · Royal Society of Chemistry · 2023 10.1039/d3ra06277e
- Convergence of the DDA for ensembles of objects of irregular shape Journal of Quantitative Spectroscopy and Radiative Transfer · Elsevier BV · 2023 10.1016/j.jqsrt.2023.108854