/
Figure1:thesituation2 Figure1:thesituation2

Figure1:thesituation2 - PDF document

tatiana-dople
tatiana-dople . @tatiana-dople
Follow
387 views
Uploaded On 2015-10-07

Figure1:thesituation2 - PPT Presentation

vvn jnj2nvnn2Thetangentpartvkisthedifferencebetweenvandvvkvv3Thedotproductbetweenvkandviszerovkvvvvvvvnnvn2 ID: 152904

!v?=!v!n j!nj2!n=(!v!n)!n(2)Thetangentpart!vkisthedifferencebetween!vand!v?:!vk=!v!v?(3)Thedotproductbetween!vkand!v?iszero:!vk!v?=!v!v?!v?!v?=!v(!v!n)!n(!v!n)2

Share:

Link:

Embed:

Download Presentation from below link

Download Pdf The PPT/PDF document "Figure1:thesituation2" is the property of its rightful owner. Permission is granted to download and print the materials on this web site for personal, non-commercial use only, and to display it on your personal computer provided you do not modify the materials and that you retain all copyright notices contained in the materials. By downloading content from our website, you accept the terms of this agreement.


Presentation Transcript

Figure1:thesituation2 �!v?=�!v�!n j�!nj2�!n=(�!v�!n)�!n(2)Thetangentpart�!vkisthedifferencebetween�!vand�!v?:�!vk=�!v��!v?(3)Thedotproductbetween�!vkand�!v?iszero:�!vk�!v?=�!v�!v?��!v?�!v?=�!v(�!v�!n)�!n�(�!v�!n)2�!n�!n=(�!v�!n)2�(�!v�!n)2j�!nj2=0(4)Thatprovestwothings:�!v?and�!vkareorthogonal,and�!v?isindeedanorthogonalprojectionon�!n.�!v??�!vk(5)Hence,wecanapplyPythagoras:j�!vj2= �!vk 2+j�!v?j2(6)Furthemore,allnormalpartsareparalleltoeachotherand�!n.Thetangentpartsareparallelaswell.�!i?k�!r?k�!t?k�!n(7)�!ikk�!rkk�!tk(8)Theanglesofincidence,reectionandrefractionareqi,qrandqtandtheyarethesmallestpositiveanglesbetweentherespectiveraysandthenormalvector�!n.Basictrigonometryandequations(1)and(5)tellusforanyofthisanglesqthefollowingpropertiesapply:cosq=j�!v?j j�!vj=j�!v?j(9)sinq= �!vk j�!vj= �!vk (10)Infact,(9)saysnothingelsethan1:cosq=�!v�!n(11)Nowwehadallthat,wecanstartwiththefunstuff. 1Theusedsignin(11)dependsontherelativeorientationof�!vand�!n.3 Youcanwritethisas:sinqt=h1 h2sinqi(21)Withthisequationyoucanalreadyseetherewillbeabitofaproblemifsinq1�h2 h1.Ifthat'sthecase,sinq2wouldhavetobegreaterthan1.BANG!That'snotpossible.WhatwehavehereistotalinternalreectionorTIR.WhatexactlythisTIRiswillbeaddressedlater.Fornow,we'lljustaddaconditiontoourlaw:sinqt=h1 h2sinqi,sinqih2 h1(22)Inwhatfollows,we'llassumethisconditionisfulllled,sowedon'thavetoworryaboutit.Fine,nowweknowthetheory,weshouldtrytondaformulafor�!t.Thisrstthingwe'lldoistosplititupinatangentandnormalpart:�!t=�!tk+�!t?(23)Ofbothparts,we'lldo�!tkrst,becauseSnell'slawtellsussomethingaboutsines,andthenormsofthetangentpartshappentobeequaltosines.Hence,becauseof10and22,wecanwrite: �!tk =h1 h2 �!ik (24)Since�!tkand�!ikareparallelandpointinthesamedirection,thisbecomes:�!tk=h1 h2�!ik=h1 h2�!i�cosqi�!n(25)Don'tworryaboutthecosqi,lateronitwillmakethingseasierifwejustleaveitthere.Ifyouneedit,youcaneasilycalculateitwith(11),itequals�!i�!n.Great,sowehaveonepartalready(it'snotthatbad,isit?;-)Nowtheotherone,andthat'squitesimpleifyouusePythagoras(6)andtheknowledgethatwe'redealingwithnormalizedvectors(1):�!t?=�q 1� �!tk 2�!n(26)Nowwehavebothparts.It'stimetosubstitute(25)and(26)in(23)togettherefracteddirectionvector.Ifwedothatandweregroupalittlesowegetonlyonetermin�!n,weget(holdon!):�!t=h1 h2�!i�h1 h2cosqi+q 1� �!tk 2�!n(27)It'sabitunfortunatewestillneed�!tkunderthesquareroot.Luckely,wedon'treallyneedthevector�!tk,butitsnorm.Andthisnormequalstosinqt(10).Weget:5 5ConclusionBynow,wehavederivedtwoequationstocalculatethereectedandrefracteddirectionvectorsbyusingvectorarithmeticonly.Heretheyareagain:�!r=�!i�2cosqi�!n�!t=h1 h2�!i�h1 h2cosqi+q 1�sin2qt�!nwithcosqi=�!i�!nsin2qt=h1 h22�1�cos2qiIncaseofrefraction,there'saconditionthatlimitstherangeofincominganglesqi.Outsidethisrange,therefracteddirectionvectordoesnotexists.Hence,there'snotransmission.Thisiscalledtotalinternalreection.Theconditionis:sin2qt1 Algorithm1thecode Vectorreflect(constVector&normal,constVector&incident){constdoublecosI=dot(normal,incident);returnincident-2*cosI*normal;}Vectorrefract(constVector&normal,constVector&incident,doublen1,doublen2){constdoublen=n1/n2;constdoublecosI=dot(normal,incident);constdoublesinT2=n*n*(1.0-cosI*cosI);if(sinT2�1.0){returnVector::invalid;}returnn*incident-(n+sqrt(1.0-sinT2))*normal;} 7