File:Speckle vs disorder.gif

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Speckle_vs_disorder.gif(480 × 480 pixels, file size: 6.19 MB, MIME type: image/gif, looped, 102 frames, 10 s)

Captions

Captions

The change of even a few scatterers can significantly modify the resulting speckle pattern.

Summary[edit]

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

Mathematica 12.1 code[edit]

\[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[edit]

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.

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current13:17, 27 July 2020Thumbnail for version as of 13:17, 27 July 2020480 × 480 (6.19 MB)Berto (talk | contribs)Uploaded own work with UploadWizard

The following page uses this file:

Metadata