Validation Examples#

This section compares PyMieSim’s results against reference implementations. It contains scripts reproducing calculations from Bohren & Huffman as well as cross-checks with the PyMieScatt package. Internal tests that exercise specific parts of the library are also provided.

Contents#

  • bohren_huffman – examples based on figures from Absorption and Scattering of Light by Small Particles.

  • pymiescatt – comparisons with the PyMieScatt package.

  • internal – small utilities checking phase functions and energy flow.

Validation with Bohren & Huffmann#

Scripts reproducing figures from the classic text.

Cylinder Scatterer Bohren-Huffman figure 8.10

Cylinder Scatterer Bohren-Huffman figure 8.10

Cylinder Scatterer Bohren-Huffman figure 8.7

Cylinder Scatterer Bohren-Huffman figure 8.7

Cylinder Scatterer Bohren-Huffman figure 8.8

Cylinder Scatterer Bohren-Huffman figure 8.8

Internal validation#

Tests checking phase functions and energy conservation.

Effect of Shell dimensions in equivalent medium

Effect of Shell dimensions in equivalent medium

Goniometric Coupling vs S1 S2 Comparison

Goniometric Coupling vs S1 S2 Comparison

Validation with PyMieScatt#

Comparison scripts using the PyMieScatt package.

Core-Shell Particles: 0

Core-Shell Particles: 0

Core-Shell Particles: 1

Core-Shell Particles: 1

Sphere Particles: 0

Sphere Particles: 0

Sphere Particles: 1

Sphere Particles: 1

Gallery generated by Sphinx-Gallery