:orphan: Example gallery =============== Choose a topic below. Each runnable script includes its calculation settings, explanations, and figures alongside the code that produces them. Medium volumes and 3D phase surfaces are interactive: drag to rotate, scroll to zoom, and hover to inspect values. Angular curves and diagnostic plots use Matplotlib. Inputs use SI-compatible quantities. Analytical examples describe infinite-medium first-order scattering; numerical Born-series examples describe finite samples. Keep each separate figure in its own code cell: call ``plt.show()`` after plotting, then insert a ``# %%`` separator and narrative comments before creating the next figure. Multiple axes comparing related data may share a single figure. This keeps each gallery image beside its plotting code and displays figures one at a time when running the scripts locally. Assign each Plotly figure to a named variable so the gallery can embed it. When running a script, call ``figure.show(renderer="browser")`` unless ``--no-browser`` is supplied. The documentation builder uses that argument and exports the figures with a shared local Plotly library, so the downloaded documentation works offline. Keep static slices as secondary diagnostic views. .. raw:: html
.. raw:: html
.. thumbnail-parent-div-open .. thumbnail-parent-div-close .. raw:: html
Random media ============ Seeded random fields, numerical ensembles, phase functions, and wavelength dependence. .. raw:: html
.. raw:: html
.. thumbnail-parent-div-open .. raw:: html
.. only:: html .. image:: /auto_examples/random_media/images/thumb/sphx_glr_random_spheres_thumb.png :alt: :doc:`/auto_examples/random_media/random_spheres` .. raw:: html
Random nonoverlapping spheres
.. raw:: html
.. only:: html .. image:: /auto_examples/random_media/images/thumb/sphx_glr_phase_function_thumb.png :alt: :doc:`/auto_examples/random_media/phase_function` .. raw:: html
Normalized phase function
.. raw:: html
.. only:: html .. image:: /auto_examples/random_media/images/thumb/sphx_glr_wavelength_dependence_thumb.png :alt: :doc:`/auto_examples/random_media/wavelength_dependence` .. raw:: html
Wavelength dependence of scattering and anisotropy
.. raw:: html
.. only:: html .. image:: /auto_examples/random_media/images/thumb/sphx_glr_covariance_models_thumb.png :alt: :doc:`/auto_examples/random_media/covariance_models` .. raw:: html
Gaussian and exponential spatial covariance
.. raw:: html
.. only:: html .. image:: /auto_examples/random_media/images/thumb/sphx_glr_random_medium_thumb.png :alt: :doc:`/auto_examples/random_media/random_medium` .. raw:: html
Visualize seeded three-dimensional random media
.. raw:: html
.. only:: html .. image:: /auto_examples/random_media/images/thumb/sphx_glr_theory_random_fields_thumb.png :alt: :doc:`/auto_examples/random_media/theory_random_fields` .. raw:: html
Theory figure: covariance and simulated random fields
.. thumbnail-parent-div-close .. raw:: html
Structured media ================ Build spheres, finite layers, and combined structured and random samples. Explore how geometry and relative positions affect directional scattering. .. raw:: html
.. raw:: html
.. thumbnail-parent-div-open .. raw:: html
.. only:: html .. image:: /auto_examples/structured_media/images/thumb/sphx_glr_dielectric_sphere_thumb.png :alt: :doc:`/auto_examples/structured_media/dielectric_sphere` .. raw:: html
A dielectric sphere in a homogeneous background
.. raw:: html
.. only:: html .. image:: /auto_examples/structured_media/images/thumb/sphx_glr_structured_media_thumb.png :alt: :doc:`/auto_examples/structured_media/structured_media` .. raw:: html
Layers and scatterers with numerical random fluctuations
.. raw:: html
.. only:: html .. image:: /auto_examples/structured_media/images/thumb/sphx_glr_theory_directional_interference_thumb.png :alt: :doc:`/auto_examples/structured_media/theory_directional_interference` .. raw:: html
Theory figure: translation and directional interference
.. thumbnail-parent-div-close .. raw:: html
Born orders and interference ============================ Compare cumulative Born orders and inspect coherent amplitude interference. Field-term diagnostics alone do not certify convergence. .. raw:: html
.. raw:: html
.. thumbnail-parent-div-open .. raw:: html
.. only:: html .. image:: /auto_examples/born_orders/images/thumb/sphx_glr_compare_orders_thumb.png :alt: :doc:`/auto_examples/born_orders/compare_orders` .. raw:: html
Compare numerical Born orders
.. raw:: html
.. only:: html .. image:: /auto_examples/born_orders/images/thumb/sphx_glr_born_interference_thumb.png :alt: :doc:`/auto_examples/born_orders/born_interference` .. raw:: html
Coherent interference between Born terms
.. thumbnail-parent-div-close .. raw:: html
Plotting and saving results =========================== Plot differential scattering and directional phase functions, then save and restore unitful results with their calculation settings. .. raw:: html
.. raw:: html
.. thumbnail-parent-div-open .. raw:: html
.. only:: html .. image:: /auto_examples/results/images/thumb/sphx_glr_result_plots_thumb.png :alt: :doc:`/auto_examples/results/result_plots` .. raw:: html
Result plots and interactive 3D views
.. raw:: html
.. only:: html .. image:: /auto_examples/results/images/thumb/sphx_glr_save_load_results_thumb.png :alt: :doc:`/auto_examples/results/save_load_results` .. raw:: html
Save results and inspect calculation provenance
.. thumbnail-parent-div-close .. raw:: html
Numerical validation ==================== Check voxel and angular refinement, ensemble sampling uncertainty, and finite-size effects independently. .. raw:: html
.. raw:: html
.. thumbnail-parent-div-open .. raw:: html
.. only:: html .. image:: /auto_examples/validation/images/thumb/sphx_glr_finite_size_comparison_thumb.png :alt: :doc:`/auto_examples/validation/finite_size_comparison` .. raw:: html
Finite-sample size convergence
.. raw:: html
.. only:: html .. image:: /auto_examples/validation/images/thumb/sphx_glr_grid_refinement_thumb.png :alt: :doc:`/auto_examples/validation/grid_refinement` .. raw:: html
Grid refinement against an exact cube integral
.. raw:: html
.. only:: html .. image:: /auto_examples/validation/images/thumb/sphx_glr_ensemble_sampling_thumb.png :alt: :doc:`/auto_examples/validation/ensemble_sampling` .. raw:: html
Realization count and sampling uncertainty
.. raw:: html
.. only:: html .. image:: /auto_examples/validation/images/thumb/sphx_glr_angular_convergence_thumb.png :alt: :doc:`/auto_examples/validation/angular_convergence` .. raw:: html
Convergence of solid-angle quadrature
.. thumbnail-parent-div-close .. raw:: html
.. toctree:: :hidden: :includehidden: /auto_examples/random_media/index.rst /auto_examples/structured_media/index.rst /auto_examples/born_orders/index.rst /auto_examples/results/index.rst /auto_examples/validation/index.rst .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_