File:Ondes P et S 1d 30.gif

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Ondes_P_et_S_1d_30.gif(610 × 461 pixels, file size: 429 KB, MIME type: image/gif, looped, 97 frames, 9.7 s)

Captions

Captions

Add a one-line explanation of what this file represents

Summary[edit]

Description
English: P- and S-wave sharing with time; made with Scilab and Jasc Animation Shop 2.02
Français : Ondes P et S se séparant avec le temps ; 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 version: Image:Ondes P et S 1d 30 petit.gif; spherical waves: Image:Ondes P et S 2d 30.gif

Source code (scilab)[edit]

 clear;
 
 Nx=35; // taille de la grille
 Ny=29;
 // Ny=5; // test
 Nxaff = 30; // taille affichee
 Nyaff = 24;
 // Nyaff=4; // test
 L=2; // largeur (loi empirique)
 
 points_initiaux_x = zeros(Nx,Ny); // initialisation
 points_initiaux_y = zeros(Nx,Ny);
 for i=1:Nx
    for j=1:Ny
       points_initiaux_x(i,j) = i;
       points_initiaux_y(i,j) = j;
    end
 end
 points_finaux_x = points_initiaux_x;
 points_finaux_y = points_initiaux_y;
 
 // fonction
 
 deff('[e]=profilP(r)','e=exp(-(r/L)^2)'); // profil empirique
 deff('[e]=profilS(r)','e=r*exp(-(r/L)^2)');
 
 // programme principal
 
 xmin = (Nx-Nxaff)/2+1;
 xmax = Nx-xmin;
 ymin = (Ny-Nyaff)/2+1;
 ymax = Ny-ymin;
 unite=0;dizaine=0; // pour le nom de fichier
 for r=-1:0.5:Nx+12 // position du front d'onde
    intensiteP = 1.5; // variation avec la distance
    intensiteS = 2;
    for i=1:Nx
       for j=1:Ny
          // e = deplacement du point
          eP = intensiteP*profilP(i-r);
          eS = intensiteS*profilS(i-r*0.72);
          points_finaux_x(i,j) = points_initiaux_x(i,j) + eP;
          points_finaux_y(i,j) = points_initiaux_y(i,j) + eS;
       end
    end
    // dessin
    clf;
    plot2d(0,0,-1,"010"," ",[xmin,ymin,xmax,ymax]) 
    for i=1:Nx
       for j=1:Ny
          xpoly(points_finaux_x(i,:),points_finaux_y(i,:));
          xpoly(points_finaux_x(:,j),points_finaux_y(:,j));
       end
    end
    nom='test\test'+code2str(dizaine)+code2str(unite)+'.gif';
    xs2gif(0,nom,1);
    unite = unite+1;
    if unite == 10 then
       dizaine = dizaine + 1;
       unite = 0 ;
    end
 end

Licensing[edit]

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.

File history

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

Date/TimeThumbnailDimensionsUserComment
current14:27, 20 November 2006Thumbnail for version as of 14:27, 20 November 2006610 × 461 (429 KB)Cdang (talk | contribs)== Summary == {{Information |Description={{en|P- and S-wave sharing with time; made with [http://www.scilab.org/ Scilab] and Jasc Animation Shop 2.02}} {{fr|Ondes P et S se séparant avec le temps ; réalisé avec [http://www.scilab.org/ Scilab] et Jasc

There are no pages that use this file.