Файл:Spherical_wave2.gif
From Wikipedia, the free encyclopedia
Spherical_wave2.gif (178 × 178 пиксела, големина на файла: 117 КБ, 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 |
This diagram was created with MATLAB.
Лицензиране
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
Items portrayed in this file
изобразен обект
Някаква стойност без обект в Уикиданни
copyright status английски
copyrighted английски
7 ноември 2007
История на файла
Избирането на дата/час ще покаже как е изглеждал файлът към онзи момент.
Дата/Час | Миникартинка | Размер | Потребител | Коментар | |
---|---|---|---|---|---|
текуща | 04:46, 8 ноември 2007 | 178 × 178 (117 КБ) | Oleg Alexandrov | Tweak, same license | |
05:43, 7 ноември 2007 | 349 × 348 (150 КБ) | 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 |
Използване на файла
Следната страница използва следния файл:
Глобално използване на файл
Този файл се използва от следните други уикита:
- Употреба в ar.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