File:Onde stationnaire tuyau ferme.gif
Onde_stationnaire_tuyau_ferme.gif (610 × 461 pixels, file size: 844 KB, MIME type: image/gif, looped, 100 frames, 10 s)
File information
Structured data
Captions
Summary
editDescriptionOnde stationnaire tuyau ferme.gif |
English: Standing wave in a closed pipe, e.g. pan flute and gedackt organ pipes; pressure (top) and relative speed (bottom) of the air (made with Scilab and Jasc Animation Shop 2.02)
Français : Onde stationnaire dans un tuyau fermé, p. ex. flûte de pan et tuyau d'orgue à résonateur ouvert ; pression (haut) et vitesse relative (bas) de l'air (réalisé avec Scilab et Jasc Animation Shop 2.02) |
Date | |
Source | Own work |
Author | Christophe Dang Ngoc Chan (cdang) |
Permission (Reusing this file) |
GFDL |
Other versions | smaller size: Image:Onde stationnaire tuyau ferme_petit.gif; with quantitative diagrams: Image:Onde stationnaire tuyau ferme quatre diagrammes.gif |
Source code (Scilab)
edit clear;
clf;
deff('[y] = pression(x,t)', 'y = 1+sin(t)*sin(x)')
deff('[y] = vitesse(x,t)', 'y = -sin(t+%pi/2)*cos(x)')
x=0:0.025:%pi/2; // tuyau quart d'onde
y=[-1,-0.9,0.9,1]; // hauteur du tuyau
nx=max(size(x));
p=2*ones(nx,4); // pour fixer les extremes de l'echelle des couleurs
p(:,4)=zeros(nx,1); // les niveaux 0 et 2 sont toujours affiches
vx(:,1) = 0:%pi/18:%pi/2; // position des vecteurs vitesse
nx=max(size(vx));
vy1 = 0.75*ones(2,nx);
vy2 = 0.25*ones(2,nx);
vy3 = -vy2;
vy4 = -vy1; // 4 lignes de flèches
xset('colormap', graycolormap(256)); // niveaux de gris
for i=0:9
for j=0:9
t=(i*10+j)*0.02*%pi;
clf;
p(:,2)=feval(x,t,pression);
p(:,3)=p(:,2);
vx(:,2)=vx(:,1)+0.2*feval(vx(:,1),t,vitesse);
scf(0);
subplot(2,1,1)
grayplot(x,y,p,rect=[0,-1,%pi/2,1],axesflag=0);
subplot(2,1,2)
plot2d(vx(:,1),vy1(1,:),...
rect=[0,-1,%pi/2,1],style=0,axesflag=0)// pour l'echelle
xpoly([0,1.57],[0.95,0.95]);
xpoly([0,1.57],[-0.95,-0.95]);
xpoly([1.56,1.56],[-0.95,0.95]);
xarrows(vx',vy1,arsize=0.7);
xarrows(vx',vy2,arsize=0.7);
xarrows(vx',vy3,arsize=0.7);
xarrows(vx',vy4,arsize=0.7);
nom='test\test'+code2str(i)+code2str(j)+'.gif';
xs2gif(0,nom,1)
end;
end;
- Note
- This is not exactly the code that was used. The GIF that were generated seemed to be flawed, so the export function was
nom='test\test'+code2str(i)+code2str(j)+'.bmp'; xs2bmp(0,nom)
, then I had to do it in several times because all the BMP files were not saved (i.e. i ranged from 0 to 3 for the first time, then 4–7 then 8–9.
Licensing
editI, the copyright holder of this work, hereby publish it under the following licenses:
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled GNU Free Documentation License.http://www.gnu.org/copyleft/fdl.htmlGFDLGNU Free Documentation Licensetruetrue |
This file is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported license. | ||
| ||
This licensing tag was added to this file as part of the GFDL licensing update.http://creativecommons.org/licenses/by-sa/3.0/CC BY-SA 3.0Creative Commons Attribution-Share Alike 3.0truetrue |
You may select the license of your choice.
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 11:22, 16 November 2006 | 610 × 461 (844 KB) | Cdang (talk | contribs) | == Summary == {{Information |Description={{en|Standing wave in a closed pipe, e.g. pan flute and gedackt organ pipes; pressure (top) and relative speed (bottom) of the air (made with [http://www.scilab.org/ Scilab] and Jasc Animation Shop 2.02)}} {{fr|On |
You cannot overwrite this file.
File usage on Commons
There are no pages that use this file.
File usage on other wikis
The following other wikis use this file:
- Usage on en.wikiversity.org