File:Onde stationnaire tuyau ferme quatre diagrammes.gif
Onde_stationnaire_tuyau_ferme_quatre_diagrammes.gif (610 × 461 pixels, file size: 565 KB, MIME type: image/gif, looped, 100 frames, 10 s)
File information
Structured data
Captions
Summary
editDescriptionOnde stationnaire tuyau ferme quatre diagrammes.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, with figurative (left) and quantitative (right, arbitrary scales) representation (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, en représentation figurative (gauche) et quantitative (droite, échelles arbitraires) (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 | without quantitative diagrams: Image:Onde stationnaire tuyau ferme.gif, smaller size: Image:Onde stationnaire tuyau ferme quatre diagrammes petit.gif |
Source code (Scilab)
edit clear;
clf;
deff('[y] = pression(x,t)', 'y = 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;
p1=-feval(x,t,pression);
p(:,2)=1 - p1;
// l'inversion du signe permet d'avoir les
// hautes pression en sombre
// sans torturer la carte des gris
p(:,3)=p(:,2);
vx(:,2)=vx(:,1)+0.2*feval(vx(:,1),t,vitesse);
v=feval(x,t,vitesse);
scf(0);
subplot(2,2,1)
grayplot(x,y,p,rect=[0,-1,%pi/2,1],axesflag=0);
xpoly([1.56,1.56],[-0.95,0.95]);
subplot(2,2,3)
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);
subplot(2,2,2)
plot2d(x,p1,rect=[0,-1,%pi/2,1],axesflag=5);
xtitle('P-P0','x', ' ')
subplot(2,2,4)
plot2d(x,v,rect=[0,-1,%pi/2,1],axesflag=5);
xtitle('V-V0','x', ' ')
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)
.
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 | 08:45, 17 November 2006 | 610 × 461 (565 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, with figurative (left) and quantitative (right, arbitrary scales) representation |
You cannot overwrite this file.
File usage on Commons
There are no pages that use this file.