לדלג לתוכן

קובץ:Five point stencil illustration.png

תוכן הדף אינו נתמך בשפות אחרות.
מתוך ויקיפדיה, האנציקלופדיה החופשית

לקובץ המקורי(2,192 × 2,408 פיקסלים, גודל הקובץ: 106 ק"ב, סוג MIME‏: image/png)

ויקישיתוף זהו קובץ שמקורו במיזם ויקישיתוף. תיאורו בדף תיאור הקובץ המקורי (בעברית) מוצג למטה.
תיאור Illustration of five-point stencil in one and two dimensions.
מקור נוצר על־ידי מעלה היצירה
יוצר Oleg Alexandrov (talk)
 
. MATLAB עם‎‎ נוצרה ה PNG תמונת מפת סיביות
Public domain ברצוני, בעלי זכויות היוצרים על יצירה זו, לשחרר יצירה זו לנחלת הכלל. זה תקף בכל העולם.
יש מדינות שבהן הדבר אינו אפשרי על פי חוק, אם כך:
אני מעניק לכל אחד את הזכות להשתמש בעבודה זו לכל מטרה שהיא, ללא תנאים כלשהם, אלא אם כן תנאים כאלה נדרשים על פי חוק.

Source code (MATLAB)

 

% Illustration of five-point stencil in one and two dimensions.

function main ()

   figure(1); clf; hold on; axis equal; axis off;
   
% make nice lightning
   camlight right; lighting phong;

% draw both stencils on the same picture, with the second one
% shifted down
   shift=[0, -13];
   for type=1:2
      draw_stencil(type, shift(type))
   end
   
% save to disk. High resolution is very important here, that's why r400
print('-dpng',  '-r400', 'Five_point_stencil_illustration.png', '-opengl');
		 

function draw_stencil (type, shift)

% the "type" argument above determines if the stencil is 1D or 2D

   % N= number of points in each surface. The more, the smoother the surfaces are.
   N = 100; 
   
   h=5; % grid size

   if type == 1
	  % 1D
      Stencilx=[-2*h, -h, 0, h, 2*h];
      Stencily=[0,     0, 0, 0, 0];
   else
	  % 2D
      Stencilx=[-h, 0, h, 0, 0];
      Stencily=[0,  0, 0, -h, h];
   end
   
% draw the points in the stencil as spheres
   [X, Y, Z] =sphere(N);
   for i=1:length(Stencilx)
      
% draw the spheres
      H=surf(X+Stencilx(i), Y+Stencily(i)+shift, Z, 'FaceColor', 'blue', ...
			 'EdgeColor','none', 'AmbientStrength', 0.3, ...
	  'SpecularStrength', 1, 'DiffuseStrength', 0.8);
      
% make the center of the stencil red
      if Stencilx(i) == 0 & Stencily(i) == 0
	 set(H, 'FaceColor', 'red');
      end
      
   end
   
% create a cylinder which connects the points in the stencil
   [X, Y, Z] = cylinder([1, 1], N);
   L=4*h; rad=0.3;
   X=rad*X; Y=rad*Y; Z=L*Z-L/2;
   Tmp = Z; Z=X; X = Tmp;
   
% draw the cylinders, depending on type. A very convoluted code
   for k=1:2

      if type == 1 & k == 2
		 break;
      end
	  
      if type == 2
		 
		 if k == 1
			X = X/2;
		 else 
			Tmp = X; X = Y; Y = Tmp;
		 end;
		 
      end
      
      gray = 0.5*[1, 1, 1]; 
      H=surf(X, Y+shift, Z, 'FaceColor', gray, 'EdgeColor','none', ...
			 'AmbientStrength', 0.7, 'SpecularStrength', 1, 'DiffuseStrength', 0.8);
      
      
   end
יש ליצור מחדש את התמונה math הזו באמצעות גרפיקה וקטורית כדוגמת קובץ SVG. לפעולה זו מספר יתרונות, כפי שניתן לקרוא (באנגלית) בדף Commons:Media for cleanup. אם ברשותכם קובץ SVG, אנא העלו אותו. לאחר מכן, החליפו תבנית זו בתבנית
{{vector version available|שם הקובץ.svg}}

כיתובים

נא להוסיף משפט שמסביר מה הקובץ מייצג

פריטים שמוצגים בקובץ הזה

מוצג

היסטוריית הקובץ

ניתן ללחוץ על תאריך/שעה כדי לראות את הקובץ כפי שנראה באותו זמן.

תאריך/שעהתמונה ממוזערתממדיםמשתמשהערה
נוכחית06:36, 2 במאי 2007תמונה ממוזערת לגרסה מ־06:36, 2 במאי 2007‪2,408 × 2,192‬ (106 ק"ב)Oleg Alexandrov{{Information |Description= |Source= |Date= |Author= }}
20:01, 1 במאי 2007תמונה ממוזערת לגרסה מ־20:01, 1 במאי 2007‪1,988 × 2,196‬ (93 ק"ב)Oleg Alexandrov{{Information |Description= |Source= |Date= |Author= }} {{PD-self}} Category:Numerical analysis
19:59, 1 במאי 2007תמונה ממוזערת לגרסה מ־19:59, 1 במאי 2007‪2,400 × 3,200‬ (109 ק"ב)Oleg Alexandrov{{Information |Description= |Source= |Date= |Author= }} {{PD-self}} Category:Numerical analysis
19:50, 1 במאי 2007תמונה ממוזערת לגרסה מ־19:50, 1 במאי 2007‪1,952 × 2,116‬ (97 ק"ב)Oleg Alexandrov{{Information |Description= |Source= |Date= |Author= }} {{PD-self}} Category:Numerical analysis

אין בוויקיפדיה דפים המשתמשים בקובץ זה.

שימוש גלובלי בקובץ

אתרי הוויקי השונים הבאים משתמשים בקובץ זה: