Slika:Spherical wave2.gif

Spherical_wave2.gif(178 × 178 točk, velikost datoteke: 117 KB, MIME-vrsta: image/gif, ponavljajoče, 9 sličic, 1,4 s)


Povzetek

Opis Illustration of a en:Spherical wave. Here the negative part of the wave is truncated. This needs to be corrected at some point.
Datum (UTC)
Vir self-made with MATLAB
Avtor Oleg Alexandrov
Druge različice Image:Spherical wave.gif
 
Ta SCRIPT ERROR: THE FUNCTION "RAZŠIRITEV" DOES NOT EXIST. grafika je bila ustvarjena z MATLAB.

Licenca

Public domain Jaz, imetnik avtorskih pravic na tem delu, izročam to delo v javno domeno. To velja po vsem svetu.
V nekaterih državah to pravno morda ni mogoče. Če je tako,
Vsakomur dajem (v okviru zakonskih omejitev) brezpogojno pravico, da gradivo uporablja v kateri koli namen.

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

Napisi

Dodajte enovrstični opis, kaj ta datoteka predstavlja
Radial Waves emanating from a common center

Predmeti, prikazani v tej datoteki

motiv

7. november 2007

Zgodovina datoteke

Kliknite datum in čas za ogled datoteke, ki je bila takrat naložena.

Datum in časSličicaVelikostUporabnikKomentar
trenutno06:46, 8. november 2007Sličica za različico z datumom 06:46, 8. november 2007178 × 178 (117 KB)Oleg AlexandrovTweak, same license
07:43, 7. november 2007Sličica za različico z datumom 07:43, 7. november 2007349 × 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

Datoteka je del naslednje 1 strani slovenske Wikipedije (strani drugih projektov niso navedene):

Globalna uporaba datoteke

To datoteko uporabljajo tudi naslednji vikiji: