File:Spherical wave2.gif
出自Wikimedia Commons
跳至導覽
跳至搜尋
Spherical_wave2.gif (178 × 178 像素,檔案大小:117 KB,MIME 類型:image/gif、循環、9 畫格、1.4秒)
檔案資訊
結構化資料
說明
摘要
[編輯]描述Spherical wave2.gif | Illustration of a en:Spherical wave. Here the negative part of the wave is truncated. This needs to be corrected at some point. |
日期 | (UTC) |
來源 | self-made with MATLAB |
作者 | Oleg Alexandrov |
其他版本 | Image:Spherical wave.gif |
授權條款
[編輯]Public domainPublic domainfalsefalse |
我,此作品的版權所有人,釋出此作品至公共領域。此授權條款在全世界均適用。 這可能在某些國家不合法,如果是的話: 我授予任何人有權利使用此作品於任何用途,除受法律約束外,不受任何限制。 |
MATLAB source code
[編輯]% an illustration of a spherical wave
plane_wave = 1;
spherical_wave = 2;
%wave_type = plain_wave;
wave_type = spherical_wave;
if wave_type == plane_wave
% window size
Lx=0.4;
Lx=1;
% blow up the image by this factor to display better
factor = 80;
% a small shift to be added below for graph. purposes.
shift = 0.3;
elseif wave_type == spherical_wave
Lx = 0.5;
Ly = Lx;
factor = 1;
shift = 3;
end
Mx = Lx/2;
Wy = Ly/2;
M=400;
N = floor(M*Ly/Lx);
[X, Y]=meshgrid(linspace(-Lx/2, Lx/2, M), linspace(-Ly/2, Ly/2, N));
wavenumber = 100;
T = 1;
nt = 10;
Time = linspace(0, T, nt);
for repeat = 1:1
% go over one time period of the field
for iter = 1:(nt-1) % nt is same as 1 due to peridicity
t = Time(iter);
if wave_type == plane_wave
% plane wave
Z = real(exp(i*wavenumber*Y)*exp(-i*2*pi*t));
elseif wave_type == spherical_wave
% spherical wave
Z = exp(sqrt(-1)*wavenumber*sqrt(X.^2+Y.^2))*exp(-sqrt(-1)*2*pi*t)./sqrt(X.^2+Y.^2);
end
% plot the real part of the field Z
figure(1); clf; hold on; axis equal; axis off;
image(factor*(real(Z+shift))); % add shift to Z for graphing purposes
colormap jet; shading interp;
file = sprintf('Movie_frame%d.eps', 1000+iter);
disp(file); %show the frame number we are at
saveas(gcf, file, 'psc2') %save the current frame
pause(0.1);
end
end
% The following command was used to create the animated figure.
% convert -antialias -loop 10000 -delay 15 -compress LZW Movie_frame10* Spherical_wave2.gif
檔案歷史
點選日期/時間以檢視該時間的檔案版本。
日期/時間 | 縮圖 | 尺寸 | 用戶 | 備註 | |
---|---|---|---|---|---|
目前 | 2007年11月8日 (四) 04:46 | 178 × 178(117 KB) | Oleg Alexandrov(對話 | 貢獻) | Tweak, same license | |
2007年11月7日 (三) 05:43 | 349 × 348(150 KB) | Oleg Alexandrov(對話 | 貢獻) | {{Information |Description=Illustration of a en:Spherical wave |Source=self-made with MATLAB |Date=~~~~~ |Author= Oleg Alexandrov |Permission= |other_versions= }} {{PD-self}} ==MATLAB source code== <pre> <nowiki> % an illus |
無法覆蓋此檔案。
檔案用途
下列2個頁面有用到此檔案:
全域檔案使用狀況
以下其他 wiki 使用了這個檔案:
- ar.wikipedia.org 的使用狀況
- bg.wikipedia.org 的使用狀況
- bs.wikipedia.org 的使用狀況
- ca.wikipedia.org 的使用狀況
- de.wikipedia.org 的使用狀況
- el.wikipedia.org 的使用狀況
- en.wikipedia.org 的使用狀況
- eo.wikipedia.org 的使用狀況
- es.wikipedia.org 的使用狀況
- fa.wikipedia.org 的使用狀況
- gl.wikipedia.org 的使用狀況
- he.wikipedia.org 的使用狀況
- id.wikipedia.org 的使用狀況
- ko.wikipedia.org 的使用狀況
- mk.wikipedia.org 的使用狀況
- ms.wikipedia.org 的使用狀況
- no.wikipedia.org 的使用狀況
- pa.wikipedia.org 的使用狀況
- pt.wikipedia.org 的使用狀況
- ro.wikipedia.org 的使用狀況
- simple.wikipedia.org 的使用狀況
- sl.wikipedia.org 的使用狀況
- sq.wikipedia.org 的使用狀況
- sv.wikipedia.org 的使用狀況
- zh.wikipedia.org 的使用狀況