Skeda:Spherical wave2.gif
Nga testwiki
Kërceni tek navigimi
Kërceni tek kërkimi
Spherical_wave2.gif (178 × 178 pixela, madhësia e skedës: 117 KB, tipi MIME: image/gif, kthyer, 9 korniza, 1,4 s)
Kjo skedë është nga Wikimedia Commons dhe mund të përdoret nga projektet e tjera. Përshkrimi në faqen përshkruese të skedës është treguar më poshtë.
Përmbledhje
| PërshkrimiSpherical 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. |
| Data | (UTC) |
| Burimi | self-made with MATLAB |
| Autori | Oleg Alexandrov |
| Versione tjera | Image:Spherical wave.gif |
| GIF genesis InfoField |
Licencim
| Public domainPublic domainfalsefalse |
| Unë,krijuesi i kësaj pune, e lëshoj këtë punë në public domain. Kjo aplikohet në të gjithë botën. Në disa vende kjo mund të mos jetë e mundur ligjërisht; nëse është kështu: Unë i garantoj çdokujt të drejtën për ta përdorur këtë punë për çdo qëllim, pa asnjë kusht, përveç rasteve kur këto kushte janë të kërkuara nga ligji. |
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
Captions
Add a one-line explanation of what this file represents
Radial Waves emanating from a common center
vagues radiales émanant depuis un unique centre
Items portrayed in this file
përshkruan
7 nëntor 2007
data size anglisht
119.312 Bajti
178 pixel
178 pixel
image/gif
checksum anglisht
43cea002a5e7ee7fbf1eeb7ceb53b020e3fdd69c
Historiku i skedarit
Kliko mbi një datë/orë për ta parë skedarin siç është shfaqur në atë kohë.
| Data/Ora | Miniatura | Përmasat | Përdoruesi | Koment | |
|---|---|---|---|---|---|
| e tanishme | 8 nëntor 2007 05:46 | 178 × 178 (117 KB) | wikimediacommons>Oleg Alexandrov | Tweak, same license |
Përdorimi i skedarit
faqe lidhet tek kjo skedë:
