版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐng)
文檔簡介
1、收集于網(wǎng)絡(luò),如有侵權(quán)請聯(lián)系管理員刪除MATLAB仿真平面電磁波在不同媒介分界面上的入射MATLAB仿真平面電磁波在不同媒介分界面上的入射、反射和折射一、實驗?zāi)康模?、進(jìn)一步學(xué)習(xí)MATLAB,初步掌握GUI界面的編程。2、通過編程實現(xiàn)電磁波仿真效果圖。3、進(jìn)一步理解平面電磁波的入射、反射和折射現(xiàn)象二、實驗要求:1、以電場為例,動態(tài)演示平面電磁波的傳播情況。2、可以任意設(shè)置媒介的介電常數(shù)和入射角。3、考慮金屬導(dǎo)體和空氣的分界面平面電磁波的入射、反射情況。二、實驗原理:種媒質(zhì)入射到第二種媒質(zhì)時,分界面使一部分能量反射回第一種媒質(zhì),另一部分能量折射到第二種媒質(zhì)中,反射波和折射波得大小和相位取決于分界面
2、兩側(cè)的媒質(zhì)特性、極化方向和入射角大小等,當(dāng)電磁波入射到理想導(dǎo)體表面時,會發(fā)生全反射。這一過程中包括的主要原理有以下二點。1、正弦平面波在媒質(zhì)分界面的反射和折射規(guī)律波對分界面的入射是任意的,但為了方便,我們假設(shè)入射面與zox面重合。波在zo時發(fā)生入射和反射,在zo時發(fā)生折射并令空間任意一點r處的入根據(jù)在z=0的界面上電場強度的切線分量相等的邊界條件,有E(x,y,0)=E(x,y,0)=E(x,y,0)irt故必有ksin0=ksin0=ksin01i1r2反射定律:0=0ir折射定律:ksin0=ksin01i2r2、正弦平面波對理想介質(zhì)的斜入射垂直極化波垂直極化波對理想介質(zhì)斜入射如圖所示,由
3、折射和反射定律,我們可以得到在任意媒質(zhì)中的場強。在第一煤質(zhì)中E=E(ejkZcos%+Rejkzcos%)ejkXsin%1yi0H=(Hcos0)(ejk1zcos%1Rejk1zcos%1)ejk1xsin%11xi01H=(Hsin0)(ejk1zcos%+Rejk占cos%)ejklxsin%1zi01111111在第二煤質(zhì)中&J耳cos0一耳cos0廠TOC o 1-5 h zE=t+2Er0耳cos0+qcos0i021122qcos0匸E=21E10耳cos0+qcos0i02112E二Eejk2(xsin02+xcos02)2y10H=(Hcos0)ejk2(xsin02+xc
4、os02)2x102H=(Hsin0)ejk2(xsin02+xcos02)2zt02圖表2垂直極化波斜入射平行極化波平行極化波對理想介質(zhì)斜入射如圖所示,由折射和反射定律,我們可以得到在任意媒質(zhì)中的場強。在第一煤質(zhì)中E=(Ecos0)(ejk1zcos0+RejkZcos0i)ejkxsin01TOC o 1-5 h z1xi01E-(Esin0)(ejk1zcos01Rejk1zcos01)ejk1xsin011zi01HH(ejkZcos0Rejkfcos0)ejkxsin01yi0在第二煤質(zhì)中TOC o 1-5 h z耳cos0一耳cos0,E=2211Er0耳cos0+耳cos0i02
5、211Et0Ei02qcos021耳cos0+耳cos02211TOC o 1-5 h zE-(Ecos0)e一j&2(xsin0?+zcos&2)2x1022Bt_Eyx=-xv*sind(sita);y=xv*cosd(sita);x=x+cosd(sita)*yv;y=y+sind(sita)*yv;xv1=0:pi/10:20*pi;yv1=sqrt(1-er*er)*sin(xv-pi/30*i);%zEa2BlEyx1=xv1*sind(sita);y1=xv1*cosd(sita);x1=x1-2*cosd(sita)*yv1;y1=y1+sind(sita)*yv1;xv2=0
6、:pi/10:20*pi;yv2=er*sin(xv-pi/30*i);%dUEa2Bl_Eyx2=xv2*sind(sita1);y2=xv2*cosd(sita1);x2=x2-cosd(sita1)*yv2;y2=y2+sind(sita1)*yv2;%plot(zeros(1:81)%plot(-40:0.01:40,0)%holdon%plot(0,-60:0.01:60)%holdonplot(x,y,x1,y1,x2,-y2,-5050,00,k,00,-5050,k);su=get(handles.edit2);su=str2num(su.String);sudu=1/su;p
7、ause(sudu)endfunctionedit2_Callback(hObject,eventdata,handles)%hObjecthandletoedit2(seeGCBO)%eventdatareserved-tobedefinedinafutureversionofMATLAB%handlesstructurewithhandlesanduserdata(seeGUIDATA)%Hints:get(hObject,String)returnscontentsofedit2astext%str2double(get(hObject,String)returnscontentsofe
8、dit2asadouble%-Executesduringobjectcreation,aftersettingallproperties.functionedit2_CreateFcn(hObject,eventdata,handles)%hObjecthandletoedit2(seeGCBO)%eventdatareserved-tobedefinedinafutureversionofMATLAB%handlesempty-handlesnotcreateduntilafterallCreateFcnscalled%Hint:editcontrolsusuallyhaveawhiteb
9、ackgroundonWindows.%SeeISPCandCOMPUTER.ifispc&isequal(get(hObject,BackgroundColor),get(0,defaultUicontrolBackgroundColor)set(hObject,BackgroundColor,white);end%hObjecthandletopushbutton1(seeGCBO)%eventdatareserved-tobedefinedinafutureversionofMATLAB%handlesstructurewithhandlesanduserdata(seeGUIDATA)
10、functionedit3_Callback(hObject,eventdata,handles)%hObjecthandletoedit3(seeGCBO)%eventdatareserved-tobedefinedinafutureversionofMATLAB%handlesstructurewithhandlesanduserdata(seeGUIDATA)%Hints:get(hObject,String)returnscontentsofedit3astext%str2double(get(hObject,String)returnscontentsofedit3asadouble
11、%-Executesduringobjectcreation,aftersettingallproperties.functionedit3_CreateFcn(hObject,eventdata,handles)%hObjecthandletoedit3(seeGCBO)%eventdatareserved-tobedefinedinafutureversionofMATLAB%handlesempty-handlesnotcreateduntilafterallCreateFcnscalled%Hint:editcontrolsusuallyhaveawhitebackgroundonWi
12、ndows.%SeeISPCandCOMPUTER.ifispc&isequal(get(hObject,BackgroundColor),get(0,defaultUicontrolBackgroundColor)set(hObject,BackgroundColor,white);endfunctionedit1_Callback(hObject,eventdata,handles)%hObjecthandletoedit1(seeGCBO)%eventdatareserved-tobedefinedinafutureversionofMATLAB%handlesstructurewith
13、handlesanduserdata(seeGUIDATA)%Hints:get(hObject,String)returnscontentsofedit1astext%str2double(get(hObject,String)returnscontentsofedit1asadouble%-Executesduringobjectcreation,aftersettingallproperties.functionedit1_CreateFcn(hObject,eventdata,handles)%hObjecthandletoedit1(seeGCBO)%eventdatareserve
14、d-tobedefinedinafutureversionofMATLAB%handlesempty-handlesnotcreateduntilafterallCreateFcnscalled%Hint:editcontrolsusuallyhaveawhitebackgroundonWindows.%SeeISPCandCOMPUTER.ifispc&isequal(get(hObject,BackgroundColor),get(0,defaultUicontrolBackgroundColor)set(hObject,BackgroundColor,white);endfunction
15、edit5_Callback(hObject,eventdata,handles)%hObjecthandletoedit2(seeGCBO)%eventdatareserved-tobedefinedinafutureversionofMATLAB%handlesstructurewithhandlesanduserdata(seeGUIDATA)%Hints:get(hObject,String)returnscontentsofedit2astext%str2double(get(hObject,String)returnscontentsofedit2asadouble%-Execut
16、esduringobjectcreation,aftersettingallproperties.functionedit5_CreateFcn(hObject,eventdata,handles)%hObjecthandletoedit2(seeGCBO)%eventdatareserved-tobedefinedinafutureversionofMATLAB%handlesempty-handlesnotcreateduntilafterallCreateFcnscalled%Hint:editcontrolsusuallyhaveawhitebackgroundonWindows.%S
17、eeISPCandCOMPUTER.ifispc&isequal(get(hObject,BackgroundColor),get(0,defaultUicontrolBackgroundColor)set(hObject,BackgroundColor,white);endfunctionedit8_Callback(hObject,eventdata,handles)%hObjecthandletoedit8(seeGCBO)%eventdatareserved-tobedefinedinafutureversionofMATLAB%handlesstructurewithhandlesa
18、nduserdata(seeGUIDATA)%Hints:get(hObject,String)returnscontentsofedit8astext%str2double(get(hObject,String)returnscontentsofedit8asadouble%-Executesduringobjectcreation,aftersettingallproperties.functionedit8_CreateFcn(hObject,eventdata,handles)%hObjecthandletoedit8(seeGCBO)%eventdatareserved-tobede
19、finedinafutureversionofMATLAB%handlesempty-handlesnotcreateduntilafterallCreateFcnscalled%Hint:editcontrolsusuallyhaveawhitebackgroundonWindows.%SeeISPCandCOMPUTER.ifispc&isequal(get(hObject,BackgroundColor),get(0,defaultUicontrolBackgroundColor)set(hObject,BackgroundColor,white);endfunctionedit10_C
20、allback(hObject,eventdata,handles)%hObjecthandletoedit2(seeGCBO)%eventdatareserved-tobedefinedinafutureversionofMATLAB%handlesstructurewithhandlesanduserdata(seeGUIDATA)%Hints:get(hObject,String)returnscontentsofedit2astext%str2double(get(hObject,String)returnscontentsofedit2asadouble%-Executesdurin
21、gobjectcreation,aftersettingallproperties.functionedit10_CreateFcn(hObject,eventdata,handles)%hObjecthandletoedit2(seeGCBO)%eventdatareserved-tobedefinedinafutureversionofMATLAB%handlesempty-handlesnotcreateduntilafterallCreateFcnscalled%Hint:editcontrolsusuallyhaveawhitebackgroundonWindows.%SeeISPCandCOMPUTER.ifispc&isequal(get(hObject,BackgroundColor),get(0,defaultUicontrolBackgroundColor)set(hObject,BackgroundColor,white);endfunctionedit4_Callback(hObjec
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 江西省吉安市2025-2026學(xué)年第一學(xué)期小學(xué)六年級語文期末試卷(含答案)
- 河北省張家口市橋東區(qū)2025-2026學(xué)年七年級上學(xué)期1月期末考試地理試卷(無答案)
- 飛秒激光直寫技術(shù)解讀
- “十五五”深度研究系列報告:如何推動進(jìn)出口平衡發(fā)展
- 飛機(jī)科普教學(xué)課件
- 2026湖南長沙市芙蓉區(qū)東湖街道社區(qū)衛(wèi)生服務(wù)中心招聘考試參考題庫及答案解析
- 市場調(diào)查及咨詢服務(wù)公司安全管理責(zé)任制度
- 2026紹興市越城區(qū)城市運營服務(wù)有限公司市場化用工招聘4人備考考試題庫及答案解析
- 2026山東事業(yè)單位統(tǒng)考菏澤市鄆城縣招聘備考考試試題及答案解析
- 特殊類藥品授權(quán)管理制度(3篇)
- 粉煤灰制磚項目可行性研究報告
- 冬季道路施工應(yīng)對措施
- 云南省昆明市官渡區(qū)2024-2025學(xué)年九年級上學(xué)期期末學(xué)業(yè)質(zhì)量監(jiān)測英語試題(含答案)
- 企業(yè)員工培訓(xùn)分層方案
- 體檢中心新員工培訓(xùn)教材
- 衛(wèi)生院綜合樓施工組織設(shè)計
- 淮安市2022-2023學(xué)年七年級上學(xué)期期末歷史試題【帶答案】
- 腦動脈供血不足的護(hù)理查房
- 《中醫(yī)藥健康知識講座》課件
- 中國地級市及各省份-可編輯標(biāo)色地圖
- 急性消化道出血的急診處理
評論
0/150
提交評論