From Surf Wiki (app.surf) — the open knowledge base
Discrete dipole approximation codes
Discrete dipole approximation codes. This is a list of Discrete Dipole Approximation (DDA) codes. The "code" here indicates computer code, a particular implementation of the DDA (many of them are open-source). For theoretical approach see Discrete dipole approximation article.
Most of the codes apply to arbitrary-shaped inhomogeneous nonmagnetic particles and particle systems in free space or homogeneous dielectric host medium. The calculated quantities typically include the Mueller matrices, integral cross-sections (extinction, absorption, and scattering), internal fields and angle-resolved scattered fields (phase function). There are some published comparisons of existing DDA codes.
General-purpose open-source DDA codes
These codes typically use regular grids (cubical or rectangular cuboid), conjugate gradient method to solve large systems of linear equations, and FFT-acceleration of the matrix-vector products which uses convolution theorem. Complexity of this approach is almost linear in number of dipoles for both time and memory.
| Name | Authors | References | Language | Updated | Features |
|---|---|---|---|---|---|
| DDSCAT | Draine and Flatau | Fortran | 2019 (v.7.3.3) | Can also handle periodic particles and efficiently calculate near fields. Uses OpenMP acceleration. | |
| DDscat.C++ | Choliy | C++ | 2017 (v.7.3.1) | Version of DDSCAT translated to C++ with some further improvements. | |
| ADDA | Yurkin, Hoekstra, and contributors | C | 2020 (v.1.4.0) | Implements fast and rigorous consideration of a plane substrate, and allows rectangular-cuboid voxels for highly oblate or prolate particles. Can also calculate emission (decay-rate) enhancement of point emitters. Near-fields calculation is not very efficient. Uses Message Passing Interface (MPI) parallelization and can run on GPU (OpenCL). | |
| OpenDDA | McDonald | C | 2009 (v.0.4.1) | Uses both OpenMP and MPI parallelization. Focuses on computational efficiency. | |
| DDA-GPU | Kieß | C++ | 2016 | Runs on GPU (OpenCL). Algorithms are partly based on ADDA. | |
| VIE-FFT | Sha | C/C++ | 2019 | Also calculates near fields and material absorption. Named differently, but the algorithms are very similar to the ones used in the mainstream DDA. | |
| VoxScatter | Groth, Polimeridis, and White | Matlab | 2019 | Uses circulant preconditioner for accelerating iterative solvers | |
| IF-DDA | Chaumet, Sentenac, and Sentenac | Fortran, GUI in C++ with Qt | 2021 (v.0.9.19) | Idiot-friendly DDA. Uses OpenMP and HDF5. Has a separate version (IF-DDAM) for multi-layered substrate. | |
| MPDDA | Shabaninezhad, Awan, and Ramakrishna | Matlab | 2021 (v.1.0) | Runs on GPU (using Matlab capabilities) | |
| CPDDA | Dibo Xu and others | Python | 2025 | GPU acceleration using CuPy |
Specialized DDA codes
These list include codes that do not qualify for the previous section. The reasons may include the following: source code is not available, FFT acceleration is absent or reduced, the code focuses on specific applications not allowing easy calculation of standard scattering quantities.
| Name | Authors | References | Language | Updated | Features |
|---|---|---|---|---|---|
| DDSURF, DDSUB, DDFILM | Schmehl, Nebeker, and Zhang | Fortran | 2008 | Rigorous handling of semi-infinite substrate and finite films (with arbitrary particle placement), but only 2D FFT acceleration is used. | |
| DDMM | Mackowski | Fortran | 2002 | Calculates T-matrix, which can then be used to efficiently calculate orientation-averaged scattering properties. | |
| CDA | McMahon | Matlab | 2006 | ||
| DDA-SI | Loke | Matlab | 2014 (v.0.2) | Rigorous handling of substrate, but no FFT acceleration is used. | |
| PyDDA | Dmitriev | Python | 2015 | Reimplementation of DDA-SI | |
| *e*-DDA | Vaschillo and Bigelow | Fortran | 2019 (v.2.0) | Simulates electron-energy loss spectroscopy and cathodoluminescence. Built upon DDSCAT 7.1. | |
| DDEELS | Geuquet, Guillaume and Henrard | Fortran | 2013 (v.2.1) | Simulates electron-energy loss spectroscopy and cathodoluminescence. Handles substrate through image approximation, but no FFT acceleration is used. | |
| T-DDA | Edalatpour | Fortran | 2015 | Simulates near-field radiative heat transfer. The computational bottleneck is direct matrix inversion (no FFT acceleration is used). Uses OpenMP and MPI parallelization. | |
| CDDA | Rosales, Albella, González, Gutiérrez, and Moreno | 2021 | Applies to chiral systems (solves coupled equations for electric and magnetic fields) | ||
| PyDScat | Yibin Jiang, Abhishek Sharma and Leroy Cronin | Python | 2023 | Simulates nanostructures undergoing structural transformation with GPU acceleration. |
Gallery of shapes
File:Shape periodic2d.png|Scattering by periodic structures such as slabs, gratings, of periodic cubes placed on a surface, can be solved in the discrete dipole approximation. File:Shape_1d_cylinder.png|Scattering by infinite object (such as cylinder) can be solved in the discrete dipole approximation.
References
|article-number = 063307
|article-number=106689
|doi-access=free}}
|article-number = 107501
|hdl-access = free
References
- (2023). "An Accelerated Method for Investigating Spectral Properties of Dynamically Evolving Nanostructures". The Journal of Physical Chemistry Letters.
- (2025). "CPDDA: A Python Package for Discrete Dipole Approximation Accelerated by CuPy". Nanomaterials.
This article was imported from Wikipedia and is available under the Creative Commons Attribution-ShareAlike 4.0 License. Content has been adapted to SurfDoc format. Original contributors can be found on the article history page.
Ask Mako anything about Discrete dipole approximation codes — get instant answers, deeper analysis, and related topics.
Research with MakoFree with your Surf account
Create a free account to save articles, ask Mako questions, and organize your research.
Sign up freeThis content may have been generated or modified by AI. CloudSurf Software LLC is not responsible for the accuracy, completeness, or reliability of AI-generated content. Always verify important information from primary sources.
Report