Fichier:Drum vibration mode12.gif

De testwiki
Aller à la navigation Aller à la recherche
    Fichier d’origine (249 × 170 pixels, taille du fichier : 148 kio, type MIME : image/gif, en boucle, 19 trames, 1,9 s)

    Ce fichier provient de Wikimedia Commons et peut être utilisé par d'autres projets. Sa description sur sa page de description est affichée ci-dessous.

    Description

    Description
    English: Illustration of vibrations of a drum.
    Date (UTC)
    Source Travail personnel
    Auteur ou autrice Oleg Alexandrov
    Autres versions
    GIF information
    InfoField
     Ce diagramme a été créé avec MATLAB

    Conditions d’utilisation

    Public domain Moi, propriétaire des droits d’auteur sur cette œuvre, la place dans le domaine public. Ceci s'applique dans le monde entier.
    Dans certains pays, ceci peut ne pas être possible ; dans ce cas :
    J’accorde à toute personne le droit d’utiliser cette œuvre dans n’importe quel but, sans aucune condition, sauf celles requises par la loi.

    Source code (MATLAB)

    function VibratingDrum()
    
    k = 1; % k-th asimuthal number and bessel function
    p = 2; % p-th bessel root
    
    q=find_pth_bessel_root(k, p); 
    
    N=20; % used for plotting
    
    % Get a grid
    R1=linspace(0.0, 1.0, N); 
    Theta1=linspace(0.0, 2*pi, N);
    [R, Theta]=meshgrid(R1, Theta1);
    X=R.*cos(Theta);
    Y=R.*sin(Theta);
    
    T=linspace(0.0, 2*pi/q, N); 
    T=T(1:(N-1));
    
    for iter=1:length(T)
    
      t = T(iter);
      Z=sin(q*t)*besselj(k, q*R).*cos(k*Theta);
    
      figure(1); clf
      surf(X, Y, Z)
      caxis([-1, 1])
      shading faceted
      colormap autumn
    
      % viewing angle
      view(108, 42)
    
      axis([-1, 1, -1, 1, -1, 1])
      axis off
    
    % To save as a GIF comment out the next the 3 lines
    %   file=sprintf('Frame%d.png', 1000+iter);
    %   fprintf('Saving to %s\n', file)
    %   print('-dpng',  '-opengl',  '-r100', file);
    
      pause(0.01)
    end
    
    end
    
       % converted to gif with the command (run in command shell)
       % convert -antialias -loop 10000 -delay 10  -scale 50% Frame10* Drum_vibration_mode12.gif
    
    function r = find_pth_bessel_root(k, p)
    % a dummy way of finding the root, just get a small interval where the root is
    
    X=0.5:0.5:(10*p+1); Y = besselj(k, X);
    [a, b] = find_nthroot(X, Y, p);
    
    X=a:0.01:b; Y = besselj(k, X);
    [a, b] = find_nthroot(X, Y, 1);
    
    X=a:0.0001:b; Y = besselj(k, X);
    [a, b] = find_nthroot(X, Y, 1);
    
    r=(a+b)/2;
    end
       
    function [a, b] = find_nthroot(X, Y, n)
    
    l=0;
    
    m=length(X);
    for i=1:(m-1)
      if ( Y(i) >= 0  && Y(i+1) <= 0 ) || ( Y(i) <= 0  && Y(i+1) >= 0 )
          l=l+1;
      end
    
      if l==n
          a=X(i); b=X(i+1);
          %disp(sprintf('Error in finding the root %0.9g', b-a))
          return
      end
    end
    
    disp('Root not found!')
    
    end
    

    Légendes

    Ajoutez en une ligne la description de ce que représente ce fichier
    Visualization of the (1, 2) standing wave on a disk.

    Éléments décrits dans ce fichier

    dépeint

    image/gif

    152 059 octet

    170 pixel

    249 pixel

    d35d09e4411728cf40c99de74a0e1b82919bba02

    Historique du fichier

    Cliquer sur une date et heure pour voir le fichier tel qu'il était à ce moment-là.

    Date et heureVignetteDimensionsUtilisateurCommentaire
    actuel30 mars 2023 à 04:52Vignette pour la version du 30 mars 2023 à 04:52249 × 170 (148 kio)wikimediacommons>Dndnrmn1Reverted to version as of 07:10, 12 January 2008 (UTC)

    Aucune page n’utilise ce fichier.