Image:Two sources interference.gif

From Wikipedia, the free encyclopedia

Wikimedia Commons logo This is a file from the Wikimedia Commons. The description on its description page there is shown below.
Commons is a freely licensed media file repository. You can help.
Description

Illustration of interference of light coming from two in-phase point sources.

Source

self-made with MATLAB

Date

03:11, 13 January 2008 (UTC)

Author

Oleg Alexandrov

Permission
(Reusing this image)

see below



Public domain I, the copyright holder of this work, hereby release it into the public domain. This applies worldwide.

In case this is not legally possible:
I grant anyone the right to use this work for any purpose, without any conditions, unless such conditions are required by law.


Afrikaans | Alemannisch | Aragonés | العربية | Asturianu | Български | Català | Česky | Cymraeg | Dansk | Deutsch | Eʋegbe | Ελληνικά | English | Español | Esperanto | Euskara | Estremeñu | فارسی | Français | Galego | 한국어 | हिन्दी | Hrvatski | Ido | Bahasa Indonesia | Íslenska | Italiano | עברית | Kurdî / كوردی | Latina | Lietuvių | Latviešu | Magyar | Македонски | Bahasa Melayu | Nederlands | ‪Norsk (bokmål)‬ | ‪Norsk (nynorsk)‬ | 日本語 | Polski | Português | Ripoarisch | Română | Русский | Shqip | Slovenčina | Slovenščina | Српски / Srpski | Svenska | ไทย | Tagalog | Türkçe | Українська | Tiếng Việt | Walon | ‪中文(简体)‬ | ‪中文(繁體)‬ | zh-yue-hant | +/-

This chart was created with MATLAB.

[edit] Source code (MATLAB)

% illustration of interference of two point sources
 
L=6;
sep = 2;
N=500;
k= 5;
 
V=linspace(-L, L, N);
[X, Y] = meshgrid(V, V);
 
I=sqrt(-1);
R1= sqrt( (X-sep).^2 + Y.^2 );
R2= sqrt( (X+sep).^2 + Y.^2 );
 
% Sum of Green's functions for two point sources
Z = exp(I*k*R1)./R1 + exp(I*k*R2)./R2;
 
M=10;
T=linspace(0.0, 2*pi, M); T=T(1:(M-1));
cut = 0.8;
scale = 55/(2*cut);
 
for p=1:1
   for iter=1:length(T)
 
      figure(1); clf; hold on;
 
      W = real(Z*exp(-I*T(iter)));
      W = max(W, -cut);
      W = min(W, cut);
 
      image(scale*(W+cut));
      axis equal; axis off;
 
      file=sprintf('Frame%d.png', 1000+iter);
      disp(sprintf('Saving to %s', file));
      print('-dpng',  '-zbuffer',  '-r100', file);
 
      pause(0.1);
 
   end
 
end
 
% saved to gif with the command
% convert -density 100 -loop 1000 -delay 10 Frame100* Two_sources_interference.gif
% then cropped and scaled in Gimp

File history

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

Date/TimeDimensionsUserComment
current03:11, 13 January 2008200×200 (162 KB)Oleg Alexandrov ({{Information |Description=Illustration of interference of light coming from two in-phase point sources. |Source=self-made with MATLAB |Date=~~~~~ |Author= Oleg Alexandrov |Permission= |other_ve)
The following pages on the English Wikipedia link to this file (pages on other projects are not listed):