File:Ondes P et S 2d 30.gif
From Wikimedia Commons, the free media repository
Jump to navigation
Jump to search
Ondes_P_et_S_2d_30.gif (305 × 231 pixels, file size: 866 KB, MIME type: image/gif, looped, 275 frames, 28 s)
File information
Structured data
Captions
Summary[edit]
DescriptionOndes P et S 2d 30.gif |
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 2d 30 petit.gif; plane waves: Image:Ondes P et S 1d 30.gif |
Source code (scilab)[edit]
clear;
N=35; // taille de la grille
Naff = 30; // taille affichee
centre = N/2; // centre de la grille
L=2; // largeur (loi empirique)
points_initiaux_x = zeros(N,N); // initialisation
points_initiaux_y = zeros(N,N);
for i=1:N
for j=1:N
points_initiaux_x(i,j) = i-centre;
points_initiaux_y(i,j) = j-centre;
end
end
points_f1_x = points_initiaux_x;
points_f2_x = points_initiaux_x;
points_f1_y = points_initiaux_y;
points_f2_y = points_initiaux_y;
for i=1:N
for j=1:N
d = sqrt(points_initiaux_x(i,j)^2 + points_initiaux_y(i,j)^2);
distance(i,j) = d;
if d == 0 then
direction_x(i,j) = 0 ; direction_y(i,j) = 0 ;
else
direction_x(i,j) = points_initiaux_x(i,j)/d;
direction_y(i,j) = points_initiaux_y(i,j)/d;
end
end
end
// fonction
deff('[e]=profilP(r)','e=r*exp(-(r/L)^2)'); // profil empirique
deff('[e]=profilS(r)','e=r*exp(-(r/L)^2)');
// programme principal
unite=0;dizaine=0;centaine=0; // pour le nom de fichier
for r=0.1:0.2:centre*3.14 // rayon du front d'onde
intensiteP = r^(-1/3); // variation avec la distance
intensiteS = %pi/8*r^(-1/2);
for i=1:N
for j=1:N
// e = deplacement du point
eP = intensiteP*profilP(distance(i,j)-r);
points_f1_x(i,j) = points_initiaux_x(i,j) + eP*direction_x(i,j);
points_f1_y(i,j) = points_initiaux_y(i,j) + eP*direction_y(i,j);
eS = intensiteS*profilS(distance(i,j)-r*.5);
x = points_f1_x(i,j) ; y = points_f1_y(i,j);
points_f2_x(i,j) = x*cos(eS) + y*sin(eS); // rotation
points_f2_y(i,j) = x*sin(eS) - y*cos(eS);
end
end
// dessin
clf;
plot2d(0,0,-1,"010"," ",[-Naff/2,-Naff/2,Naff/2,Naff/2])
for i=1:N
xpoly(points_f2_x(i,:),points_f2_y(i,:));
xpoly(points_f2_x(:,i),points_f2_y(:,i));
end
nom='test\test'+code2str(centaine)+code2str(dizaine)+code2str(unite)+'.gif';
xs2gif(0,nom,0);
unite = unite+1;
if unite == 10 then
dizaine = dizaine + 1;
unite = 0 ;
end
if dizaine == 10 then
centaine = centaine + 1;
dizaine = 0 ;
end
end
Licensing[edit]
I, 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 | 13:09, 20 November 2006 | 305 × 231 (866 KB) | Cdang (talk | contribs) | {{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 Animation Shop |
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 de.wikipedia.org
- Usage on ja.wikipedia.org