File:Speckle vs disorder.gif

Summary

Description
English: The change of even a few scatterers can significantly modify the resulting speckle pattern.
Date
Source https://twitter.com/j_bertolotti/status/1286689341708869634
Author Jacopo Bertolotti
Permission
(Reusing this file)
https://twitter.com/j_bertolotti/status/1030470604418428929
GIF development
InfoField

Mathematica 12.1 code

\[Lambda] = 0.5;
k0 = (2 \[Pi])/\[Lambda];
c = 1;
\[Omega] = c k0;
\[Alpha] = (4 I)/k0^2;
\[Sigma] = (k0^3 Norm[\[Alpha]]^2)/4;
G[r_] := N[I/4 HankelH1[0, k0 Norm[r] ]];
source[{x_, y_}] := E^(I k0 x) E^(-((y - 0)^2/(2 0.5^2)));
dim = 50;
dipolesfixed = RandomVariate[UniformDistribution[{{-2, 2}, {-3, 3}}], {dim - 1}];
sinstep[t_] := Sin[\[Pi]/2 t]^2;
p0 = Table[
   dipoles = Join[dipolesfixed, {{-2 sinstep[t], 0}}];
   y0 = 0;
   E0 = Table[source[dipoles[[j]], y0], {j, 1, dim}];
   ME = Table[If[k == j, 0, \[Alpha] k0^2 G[dipoles[[j]] - dipoles[[k]] ] ], {j, 1, dim}, {k, 1, dim}];
   Es = Inverse[IdentityMatrix[dim] - ME].E0; (*Es=E0+ME.ES\[Rule]Es=(1-ME)^-1.E0*)
   Etot[x_, y_] := source[{x, y}] + \[Alpha] k0^2 Sum[G[{x, y} - dipoles[[j]] ] Es[[j]], {j, 1, dim}];
   DensityPlot[Abs[Etot[x, y, y0] ]^2, {x, -10, 10}, {y, -10, 10}, PlotPoints -> 100, ColorFunction -> "AvocadoColors", Frame -> False, PlotRange -> {0, 1.1}, Epilog -> {Purple, Point[dipoles], Black, 
      Disk[{-2 sinstep[t], 0}, 0.15], Orange, Disk[{-2 sinstep[t], 0}, 0.1]}]
   , {t, 0, 1, 0.02}];
ListAnimate[p0]

Licensing

I, the copyright holder of this work, hereby publish it under the following license:
Creative Commons CC-Zero This file is made available under the Creative Commons CC0 1.0 Universal Public Domain Dedication.
The person who associated a work with this deed has dedicated the work to the public domain by waiving all of their rights to the work worldwide under copyright law, including all related and neighboring rights, to the extent allowed by law. You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission.

Category:CC-Zero#Speckle%20vs%20disorder.gifCategory:Self-published work
Category:Scattering Category:Speckle Category:Images with Mathematica source code Category:Animated GIF files Category:Animations of physics
Category:Animated GIF files Category:Animations of physics Category:CC-Zero Category:Images with Mathematica source code Category:PNG created with Mathematica Category:Scattering Category:Self-published work Category:Speckle