# DDSCAT 7.2: Open-Source Fortran Code Simulates Light Scattering by Any Shape

Original title: Discrete Dipole Approximation Code Ddscat 7.2 (2012)

> Hacker News story 49580005 · language: en · submitted 2026-09-05
> Web version: https://zeli.app/story/49580005
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 13 · by [doener](<https://news.ycombinator.com/user?id=doener>) · 💬 7
[original](<https://arxiv.org/abs/1202.3424>) · [HN discussion](<https://news.ycombinator.com/item?id=49580005>)

## Summary

DDSCAT 7.2 is a free, open-source Fortran-90 package that uses the discrete dipole approximation to compute how electromagnetic waves scatter and absorb in targets of arbitrary geometry and complex refractive index. It handles isolated particles, periodic arrays, inhomogeneous and anisotropic materials, and supports MPI, OpenMP, and Intel MKL. The 95-page user guide covers cross sections, Mueller matrices, and near-field calculations for size parameters up to 25.

## Key quote

> DDSCAT 7.2 allows accurate calculations of electromagnetic scattering from targets with size parameters 2*pi*aeff/lambda <25 provided the refractive index m is not large compared to unity (|m-1| <2).

## HN discussion (7 comments)

### [phuff](<https://news.ycombinator.com/item?id=49645573>)

> It always boggles my mind that these core math libraries are still written in Fortran (same goes for some famous core matrix math libraries that still kick around). I have always presumed that it was because nobody knows Fortran well enough anymore to successfully translate them to something more modern.
>
> Are we at the point yet where we might be able to replace some of these legacy Fortran libs with more modern, legible, performant Rust or C/C++?

---

## Cite

- Page: https://zeli.app/story/49580005
- Date: 2026-09-05
- Source: arxiv.org (https://arxiv.org/abs/1202.3424)
- Hacker News: https://news.ycombinator.com/item?id=49580005

## Other languages

- zh: https://zeli.app/zh/story/49580005 · markdown: https://zeli.app/zh/story/49580005.md
- ja: https://zeli.app/ja/story/49580005 · markdown: https://zeli.app/ja/story/49580005.md
- ko: https://zeli.app/ko/story/49580005 · markdown: https://zeli.app/ko/story/49580005.md
- de: https://zeli.app/de/story/49580005 · markdown: https://zeli.app/de/story/49580005.md
- es: https://zeli.app/es/story/49580005 · markdown: https://zeli.app/es/story/49580005.md
- ru: https://zeli.app/ru/story/49580005 · markdown: https://zeli.app/ru/story/49580005.md
