File:Two sources interference.gif

Two_sources_interference.gif(200 × 200像素,文件大小:162 KB,MIME类型:image/gif、​循环、​9帧、​0.9秒)


描述 Illustration of interference of light coming from two in-phase point sources.
日期 (UTC)
来源 self-made with MATLAB
作者 Oleg Alexandrov
Public domain 我,本作品著作权人,释出本作品至公有领域。这适用于全世界。
在一些国家这可能不合法;如果是这样的话,那么:
我无条件地授予任何人以任何目的使用本作品的权利,除非这些条件是法律规定所必需的。
 
本GIF 位图使用MATLAB创作.

Source code (MATLAB)

% illustration of interference of two point sources

L=10;
sep = 6;
N=800;
k= 10;

V=linspace(-L, L, N);
[X, Y] = meshgrid(V, V);

I=sqrt(-1);
R1= sqrt( (X-sep).^8 + Y.^8 );
R2= sqrt( (X+sep).^8 + Y.^8 );

% 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

说明

添加一行文字以描述该文件所表现的内容

此文件中描述的项目

描繪內容

文件历史

点击某个日期/时间查看对应时刻的文件。

日期/时间缩⁠略⁠图大小用户备注
当前2008年1月13日 (日) 03:112008年1月13日 (日) 03:11版本的缩略图200 × 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

全域文件用途

以下其他wiki使用此文件:

查看此文件的更多全域用途