See also ebooksgratis.com: no banners, no cookies, totally FREE.

CLASSICISTRANIERI HOME PAGE - YOUTUBE CHANNEL
Privacy Policy Cookie Policy Terms and Conditions
चित्र:Lens and wavefronts.gif - विकिपीडिया

चित्र:Lens and wavefronts.gif

विकिपीडिया, एक मुक्त ज्ञानकोष से

Wikimedia Commons logo This is a file from the Wikimedia Commons. The description on its description page there is shown below.
Commons is attempting to create a freely licensed media file repository. You can help.
ज़ानकारी जो फ़ाईल ज़ानकारी पन्ना पर शेअर्ड रिपोजिटरीमें हैं नीचे दी हुई हैं।
Description

Illustration of wavefronts after passing through a [:en:lens (optics)

Source

self-made with MATLAB

Date

00:49, 24 November 2007 (UTC)

Author

Oleg Alexandrov

Permission
(Reusing this image)

see below



Public domain I, the copyright holder of this work, hereby release it into the public domain. This applies worldwide.

In case this is not legally possible:
I grant anyone the right to use this work for any purpose, without any conditions, unless such conditions are required by law.


Afrikaans | Alemannisch | Aragonés | العربية | Asturianu | Български | Català | Česky | Cymraeg | Dansk | Deutsch | Eʋegbe | Ελληνικά | English | Español | Esperanto | Euskara | Estremeñu | فارسی | Français | Galego | 한국어 | हिन्दी | Hrvatski | Ido | Bahasa Indonesia | Íslenska | Italiano | עברית | Kurdî / كوردی | Latina | Lietuvių | Latviešu | Magyar | Македонски | Bahasa Melayu | Nederlands | ‪Norsk (bokmål)‬ | ‪Norsk (nynorsk)‬ | 日本語 | Polski | Português | Ripoarisch | Română | Русский | Shqip | Slovenčina | Slovenščina | Српски / Srpski | Svenska | ไทย | Tagalog | Türkçe | Українська | Tiếng Việt | Walon | ‪中文(简体)‬ | ‪中文(繁體)‬ | zh-yue-hant | +/-

[edit] MATLAB source code

% Illustration of planar wavefronts going through a lens and getting focused
% into a converging spherical wave
 
function main ()
 
  % lens index
   n=1.5; 
 
  % number of points, used for plotting
   N = 100;
 
  % radii of lens surfaces
   R1 = 3.5; 
   R2 = R1;
 
  % centers of circles (y coord is 0)
   O1 = -2.9;
   O2 = -O1;
 
  % focal length
   f = (n-1)*(1/R1+1/R2); f = 1/f;
 
   % theta0 determines the width of the lens
   theta0=pi/6;
   Theta = linspace(-theta0, theta0, N);
 
  % right face of the lens
   L1x = R1*cos(Theta)+O1;
   L1y =R1*sin(Theta); 
 
   % left size of the lens
   L2x=-R2*cos(Theta)+O2;
   L2y = R2*sin(Theta);
 
   % flat top part
   Topx = [L1x(N), L2x(N)];
   Topy = [L1y(N), L2y(N)];
 
   % flat bottom part
   Botx = [L1x(1) L2x(1)];
   Boty = [L1y(1), L2y(1)];
 
   % the lens
   Lensx = [L1x rv_vec(Topx), rv_vec(L2x), Botx];
   Lensy = [L1y rv_vec(Topy), rv_vec(L2y), Boty];
 
   % Parameters for graphing
   Lens_color  = [204, 226, 239]/256;
   Lens_border = 0.3*[1, 1, 1];
   lbw = 1.3; % lens border width
   wavefr_color = [1, 0, 0];
   wavefr_bdw   = 2;
 
   % spacing between wavefronts (both plane and spherical ones)
   spacing = 0.25;
 
   % 2*H is the height of the plane wavefronts
   H = L1y(N); 
 
   % theta2 = slope of the line going from the upper-right
   % end of the lens to the focus point
   theta2 = atan(L1y(N)/(f-L1x(N)));
 
   % Shape of the spherical wavefronts.
   Theta = linspace(-theta2, theta2, N);
   X = -cos(Theta);
   Y =  sin(Theta);
 
   S = -f; % start ploting waves from here to the right
 
   % number of frames in the movie
   num_frames = 10;
   Shifts = linspace(0, spacing, num_frames+1);
 
   % start at S+shift, plot the wavefronts
   for frame_no = 1:num_frames
 
      shift = Shifts(frame_no);
 
      s = S+shift;
 
      % plotting window
      figure(1); clf; hold on; axis equal; axis off;
 
      % plot the plane wavefronts
      while s < 0
         plot([s, s], [-H, H], 'color', wavefr_color, 'linewidth', wavefr_bdw);
         s = s + spacing;
      end
 
 
      % plot the spherical wavefronts
      s = s - 10*spacing; % backtrack a bit
      while s < f
 
         rho = f-s;
 
         if rho*Y(N) <= L1y(N)
            plot(rho*X+f, rho*Y, 'color', wavefr_color, 'linewidth', wavefr_bdw);
         end
 
         s = s + spacing;
 
      end
 
      % plot the lens
      fill(Lensx, Lensy, Lens_color, 'EdgeColor', Lens_border, 'LineWidth', lbw);
%      get(H)
%      return
 
      % Invisible points to force MATLAB to keep the
      % plotting window fixed.
      tiny = 0.15*spacing;
      white = 0.999*[1, 1, 1];
      plot(S-tiny,   H+tiny, 'color', white);
      plot(S-tiny,  -H-tiny, 'color', white);
      plot(f+tiny,   H+tiny, 'color', white);
      plot(f+tiny,  -H-tiny, 'color', white);
 
      % Rotate by 90 degrees
      set(gca, 'View', [90, 90])
 
      % save current file
      frame_file = sprintf('Frame%d.eps', 1000+frame_no);
      disp(frame_file);
      saveas(gcf, frame_file, 'psc2');
      pause(0.07)
   end
 
% The frames were converted to a movie with the command
% convert -antialias -loop 10000  -delay 8 -compress LZW Frame100* Lens_and_wavefronts.gif
 
function W = rv_vec(V)
 
   K = length(V);
 
   W = V;
   for i=1:K
      W(i) = V(K-i+1);
   end

फ़ाइल का इतिहास

फ़ाइलका पुराना अवतरण देखने के लिये दिनांक/समय पर क्लिक करें।

दिनांक/समयडायमेन्शन्ससदस्यप्रतिक्रिया
सद्य०६:३५, २५ नवम्बर २००७१८३×३५६ (३५ KB)Oleg Alexandrov (tweak)
०४:१०, २४ नवम्बर २००७१७१×३५६ (३३ KB)Oleg Alexandrov (tweak)
०४:०९, २४ नवम्बर २००७१७१×३५६ (३३ KB)Oleg Alexandrov (tweak)
००:५६, २४ नवम्बर २००७१७१×३५९ (३३ KB)Oleg Alexandrov (tweak, same license)
००:५३, २४ नवम्बर २००७१७१×३५९ (३२ KB)Oleg Alexandrov (tweak)
००:४९, २४ नवम्बर २००७१५१×३५९ (३१ KB)Oleg Alexandrov ({{Information |Description=Illustration of wavefronts after passing through a [:en:lens (optics)|lens]] |Source=self-made with MATLAB |Date=~~~~~ |Author= Oleg Alexandrov |Permission=see below |other_versions= }})

निम्नलिखित पन्ने इस चित्र से जुडते हैं :


aa - ab - af - ak - als - am - an - ang - ar - arc - as - ast - av - ay - az - ba - bar - bat_smg - bcl - be - be_x_old - bg - bh - bi - bm - bn - bo - bpy - br - bs - bug - bxr - ca - cbk_zam - cdo - ce - ceb - ch - cho - chr - chy - co - cr - crh - cs - csb - cu - cv - cy - da - de - diq - dsb - dv - dz - ee - el - eml - en - eo - es - et - eu - ext - fa - ff - fi - fiu_vro - fj - fo - fr - frp - fur - fy - ga - gan - gd - gl - glk - gn - got - gu - gv - ha - hak - haw - he - hi - hif - ho - hr - hsb - ht - hu - hy - hz - ia - id - ie - ig - ii - ik - ilo - io - is - it - iu - ja - jbo - jv - ka - kaa - kab - kg - ki - kj - kk - kl - km - kn - ko - kr - ks - ksh - ku - kv - kw - ky - la - lad - lb - lbe - lg - li - lij - lmo - ln - lo - lt - lv - map_bms - mdf - mg - mh - mi - mk - ml - mn - mo - mr - mt - mus - my - myv - mzn - na - nah - nap - nds - nds_nl - ne - new - ng - nl - nn - no - nov - nrm - nv - ny - oc - om - or - os - pa - pag - pam - pap - pdc - pi - pih - pl - pms - ps - pt - qu - quality - rm - rmy - rn - ro - roa_rup - roa_tara - ru - rw - sa - sah - sc - scn - sco - sd - se - sg - sh - si - simple - sk - sl - sm - sn - so - sr - srn - ss - st - stq - su - sv - sw - szl - ta - te - tet - tg - th - ti - tk - tl - tlh - tn - to - tpi - tr - ts - tt - tum - tw - ty - udm - ug - uk - ur - uz - ve - vec - vi - vls - vo - wa - war - wo - wuu - xal - xh - yi - yo - za - zea - zh - zh_classical - zh_min_nan - zh_yue - zu -