Jump to content

File:Drum vibration mode12.gif

Page contents not supported in other languages.
This is a file from the Wikimedia Commons
From Wikipedia, the free encyclopedia
    Original file (249 × 170 pixels, file size: 148 KB, MIME type: image/gif, looped, 19 frames, 1.9 s)

    Summary

    Description
    English: Illustration of vibrations of a drum.
    Date (UTC)
    Source Own work
    Author Oleg Alexandrov
    Other versions
    GIF development
    InfoField
     This diagram was created with MATLAB.

    Licensing

    Public domain I, the copyright holder of this work, release this work into the public domain. This applies worldwide.
    In some countries this may not be legally possible; if so:
    I grant anyone the right to use this work for any purpose, without any conditions, unless such conditions are required by law.

    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
    

    Captions

    Visualization of the (1, 2) standing wave on a disk.

    Items portrayed in this file

    depicts

    inception<\/a>"}},"text\/plain":{"en":{"":"inception"}}},"{\"value\":{\"time\":\"+2008-01-12T00:00:00Z\",\"timezone\":0,\"before\":0,\"after\":0,\"precision\":11,\"calendarmodel\":\"http:\\\/\\\/www.wikidata.org\\\/entity\\\/Q1985727\"},\"type\":\"time\"}":{"text\/html":{"en":{"P571":"12 January 2008"}},"text\/plain":{"en":{"P571":"12 January 2008"}}}}" class="wbmi-entityview-statementsGroup wbmi-entityview-statementsGroup-P571 oo-ui-layout oo-ui-panelLayout oo-ui-panelLayout-framed">

    12 January 2008

    media type<\/a>"}},"text\/plain":{"en":{"":"media type"}}},"{\"value\":\"image\\\/gif\",\"type\":\"string\"}":{"text\/html":{"en":{"P1163":"image\/gif"}},"text\/plain":{"en":{"P1163":"image\/gif"}}}}" class="wbmi-entityview-statementsGroup wbmi-entityview-statementsGroup-P1163 oo-ui-layout oo-ui-panelLayout oo-ui-panelLayout-framed">

    image/gif

    data size<\/a>"}},"text\/plain":{"en":{"":"data size"}}},"{\"value\":{\"amount\":\"+152059\",\"unit\":\"http:\\\/\\\/www.wikidata.org\\\/entity\\\/Q8799\"},\"type\":\"quantity\"}":{"text\/html":{"en":{"P3575":"152,059 byte<\/span>"}},"text\/plain":{"en":{"P3575":"152,059 byte"}}}}" class="wbmi-entityview-statementsGroup wbmi-entityview-statementsGroup-P3575 oo-ui-layout oo-ui-panelLayout oo-ui-panelLayout-framed">

    152,059 byte

    height<\/a>"}},"text\/plain":{"en":{"":"height"}}},"{\"value\":{\"amount\":\"+170\",\"unit\":\"http:\\\/\\\/www.wikidata.org\\\/entity\\\/Q355198\"},\"type\":\"quantity\"}":{"text\/html":{"en":{"P2048":"170 pixel<\/span>"}},"text\/plain":{"en":{"P2048":"170 pixel"}}}}" class="wbmi-entityview-statementsGroup wbmi-entityview-statementsGroup-P2048 oo-ui-layout oo-ui-panelLayout oo-ui-panelLayout-framed">

    170 pixel

    width<\/a>"}},"text\/plain":{"en":{"":"width"}}},"{\"value\":{\"amount\":\"+249\",\"unit\":\"http:\\\/\\\/www.wikidata.org\\\/entity\\\/Q355198\"},\"type\":\"quantity\"}":{"text\/html":{"en":{"P2049":"249 pixel<\/span>"}},"text\/plain":{"en":{"P2049":"249 pixel"}}}}" class="wbmi-entityview-statementsGroup wbmi-entityview-statementsGroup-P2049 oo-ui-layout oo-ui-panelLayout oo-ui-panelLayout-framed">

    249 pixel

    checksum<\/a>"}},"text\/plain":{"en":{"":"checksum"}}},"{\"value\":\"d35d09e4411728cf40c99de74a0e1b82919bba02\",\"type\":\"string\"}":{"text\/html":{"en":{"P4092":"d35d09e4411728cf40c99de74a0e1b82919bba02"}},"text\/plain":{"en":{"P4092":"d35d09e4411728cf40c99de74a0e1b82919bba02"}}},"{\"value\":{\"entity-type\":\"property\",\"numeric-id\":459,\"id\":\"P459\"},\"type\":\"wikibase-entityid\"}":{"text\/html":{"en":{"":"determination method or standard<\/a>"}},"text\/plain":{"en":{"":"determination method or standard"}}},"{\"value\":{\"entity-type\":\"item\",\"numeric-id\":13414952,\"id\":\"Q13414952\"},\"type\":\"wikibase-entityid\"}":{"text\/html":{"en":{"P459":"SHA-1<\/a>"}},"text\/plain":{"en":{"P459":"SHA-1"}}}}" class="wbmi-entityview-statementsGroup wbmi-entityview-statementsGroup-P4092 oo-ui-layout oo-ui-panelLayout oo-ui-panelLayout-framed">

    d35d09e4411728cf40c99de74a0e1b82919bba02

    File history

    Click on a date/time to view the file as it appeared at that time.

    Date/TimeThumbnailDimensionsUserComment
    current03:52, 30 March 2023Thumbnail for version as of 03:52, 30 March 2023249 × 170 (148 KB)Dndnrmn1Reverted to version as of 07:10, 12 January 2008 (UTC)
    04:45, 16 January 2008Thumbnail for version as of 04:45, 16 January 2008248 × 130 (138 KB)Oleg AlexandrovStrip caption, looks better like this
    04:45, 16 January 2008Thumbnail for version as of 04:45, 16 January 2008248 × 130 (138 KB)Oleg AlexandrovStrip caption, looks better like this
    07:10, 12 January 2008Thumbnail for version as of 07:10, 12 January 2008249 × 170 (148 KB)Oleg Alexandrov{{Information |Description=Illustration of vibrations of a drum. |Source=self-made with MATLAB |Date=06:21, 12 January 2008 (UTC) |Author= Oleg Alexandrov |Permission= |other_versions= }} {{PD-self

    Global file usage

    The following other wikis use this file:

    View more global usage of this file.