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)

This is a file from the Wikimedia Commons. The description on its description page there is shown below.

Commons is a freely licensed media file repository. You can help.

Summary

Description
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)

 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

I, the copyright holder of this work, hereby publish it under the following licenses:
GNU head 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.
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.
This licensing tag was added to this file as part of the GFDL licensing update.
You may select the license of your choice.

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts

16 November 2006

File history

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

Date/TimeThumbnailDimensionsUserComment
current11:22, 16 November 2006Thumbnail for version as of 11:22, 16 November 2006610 × 461 (844 KB)Cdang== 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

The following page uses this file: