File:Drum_vibration_mode12.gif
From Wikipedia, the free encyclopedia
Drum_vibration_mode12.gif (249 × 170 pixels, file size: 148 KB, MIME type: image/gif, looped, 19 frames, 1.9 s)
![]() | This is a file from the Wikimedia Commons. Information from its description page there is shown below. Commons is a freely licensed media file repository. You can help. |
DescriptionDrum vibration mode12.gif | Illustration of vibrations of a drum. | |||||
Date | (UTC) | |||||
Source | self-made with MATLAB | |||||
Author | Oleg Alexandrov | |||||
Other versions |
Derivative works of this file:
File:Harmonic partials on strings.svg → File:Drum vibration mode12.gif In general, it is better to use a good SVG version. |
![](https://upload.wikimedia.org/wikipedia/commons/thumb/2/21/Matlab_Logo.png/25px-Matlab_Logo.png)
This diagram was created with MATLAB.
Public domainPublic domainfalsefalse |
![]() |
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
Add a one-line explanation of what this file represents
Items portrayed in this file
depicts
some value
12 January 2008
image/gif
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 03:52, 30 March 2023 | ![]() | 249 × 170 (148 KB) | Dndnrmn1 | Reverted to version as of 07:10, 12 January 2008 (UTC) |
04:45, 16 January 2008 | ![]() | 248 × 130 (138 KB) | Oleg Alexandrov | Strip caption, looks better like this | |
04:45, 16 January 2008 | ![]() | 248 × 130 (138 KB) | Oleg Alexandrov | Strip caption, looks better like this | |
07:10, 12 January 2008 | ![]() | 249 × 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 |
File usage
The following pages on the English Wikipedia use this file (pages on other projects are not listed):
Global file usage
The following other wikis use this file:
- Usage on ar.wikipedia.org
- Usage on bs.wikipedia.org
- Usage on ca.wikipedia.org
- Usage on ckb.wikipedia.org
- Usage on cs.wikipedia.org
- Usage on de.wikipedia.org
- Usage on el.wikipedia.org
- Usage on en.wikiversity.org
- Usage on es.wikipedia.org
- Usage on et.wikipedia.org
- Usage on eu.wikipedia.org
- Usage on fa.wikipedia.org
- Usage on fa.wikibooks.org
- Usage on fr.wikipedia.org
- Usage on gl.wikipedia.org
- Usage on he.wikipedia.org
- Usage on hi.wikipedia.org
- Usage on hr.wikipedia.org
- Usage on hy.wikipedia.org
- Usage on incubator.wikimedia.org
- Usage on ja.wikipedia.org
- Usage on ko.wikipedia.org
- Usage on ms.wikipedia.org
- Usage on my.wikipedia.org
- Usage on nn.wikipedia.org
- Usage on no.wikipedia.org
- Usage on pt.wikipedia.org
- Usage on ro.wikipedia.org
- Usage on ru.wikipedia.org
- Usage on sh.wikipedia.org
- Usage on sq.wikipedia.org
View more global usage of this file.
Retrieved from "https://en.wikipedia.org/wiki/File:Drum_vibration_mode12.gif"