File:Drum vibration mode12.gif
维基共享资源,媒体文件资料库
跳转到导航
跳转到搜索
Drum_vibration_mode12.gif (249 × 170像素,文件大小:148 KB,MIME类型:image/gif、循环、19帧、1.9秒)
文件信息
结构化数据
说明
Public domainPublic domainfalsefalse |
我,本作品著作权人,释出本作品至公有领域。这适用于全世界。 在一些国家这可能不合法;如果是这样的话,那么: 我无条件地授予任何人以任何目的使用本作品的权利,除非这些条件是法律规定所必需的。 |
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
文件历史
点击某个日期/时间查看对应时刻的文件。
日期/时间 | 缩略图 | 大小 | 用户 | 备注 | |
---|---|---|---|---|---|
当前 | 2023年3月30日 (四) 03:52 | 249 × 170(148 KB) | Dndnrmn1(留言 | 贡献) | Reverted to version as of 07:10, 12 January 2008 (UTC) | |
2008年1月16日 (三) 04:45 | 248 × 130(138 KB) | Oleg Alexandrov(留言 | 贡献) | Strip caption, looks better like this | ||
2008年1月16日 (三) 04:45 | 248 × 130(138 KB) | Oleg Alexandrov(留言 | 贡献) | Strip caption, looks better like this | ||
2008年1月12日 (六) 07:10 | 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 |
您不可以覆盖此文件。
文件用途
全域文件用途
以下其他wiki使用此文件:
- ar.wikipedia.org上的用途
- bs.wikipedia.org上的用途
- ca.wikipedia.org上的用途
- ckb.wikipedia.org上的用途
- cs.wikipedia.org上的用途
- de.wikipedia.org上的用途
- el.wikipedia.org上的用途
- en.wikipedia.org上的用途
- en.wikiversity.org上的用途
- es.wikipedia.org上的用途
- et.wikipedia.org上的用途
- eu.wikipedia.org上的用途
- fa.wikipedia.org上的用途
- fa.wikibooks.org上的用途
- fr.wikipedia.org上的用途
- gl.wikipedia.org上的用途
- he.wikipedia.org上的用途
- hi.wikipedia.org上的用途
- hr.wikipedia.org上的用途
- hu.wikipedia.org上的用途
- hy.wikipedia.org上的用途
- incubator.wikimedia.org上的用途
查看此文件的更多全域用途。
分类: