光纤通信-实验报告

光纤通信-实验报告

ID:31332472

大小:49.96 KB

页数:5页

时间:2019-01-08

光纤通信-实验报告_第1页
光纤通信-实验报告_第2页
光纤通信-实验报告_第3页
光纤通信-实验报告_第4页
光纤通信-实验报告_第5页
资源描述:

《光纤通信-实验报告》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库

1、PHTN4661LabReportYuanWeiz5052230XiaoxueLiuz5047180Inthislab,weuseC++tosimulateasquarecorewaveguide・Weexplorethepropertiesandthefundamentalmodeofit.WeareprovidedsomeheaderfilesandamainfunctionunderC++language.AndalsotwoPDFfilestoindicatethethingsweshoulddoandtheprincipleso

2、fthelab.NowIamgoingtoanswerthequestionsonebyoneandexplainthestepsofthelab.PreambleFirstlyweareprovidedalibraryoffunctionscalledtheTightNumericalRecipes'(LNR)andafilecalled4square.dafwhichcontainstheparametersofawaveguide・Wedonotneedtochangethefile.Inpreamble,wejustrunthem

3、ainlxcfileandtypein"square.dat'toreadtheparametersofthewaveguide・AndthentheprogramshowstheEffectiveindexofit.Justlikethefollowingfigure.Tokeepthedisplayoftheresult,weadd“cin>>filename;,'atthebottom.Inputfile:square.datEffectiveindex:1.448342061Problem1Withthegivenformula,

4、wecancalculatetheVvalueeasilybycalculator.Herenco=1.450,ncl=1.447,p=5.When九=1.55,V=1.89andthewaveguideissingle-moded.WhenX=1.3,V=2.25andthewaveguideisnotsinglc-modcd.Thisresultmeansawaveguidecanbebothsingleormulti-modedwhenthewavelengtharedifferent・Problem2zy3031323334353

5、6373839404142Inthisstep,weonlychangethemiddlepartofthemain_l.eefileasfollowsofstreammyfileC^esults.txtn^ofstream::out);guide=Tiling_Read(filenam皂);for(wl=1.2;wl<=1>6;wl=wl+0.02){solver=newFDM_Solv已厂(guide丿nxe,nxo,nye,nyo,wl);solver->Solve();cout<Effective

6、Index(0)<EffectiveIndex(0)<<}Wcusealooptocalculatethesomethingaswedidinpreamble.Theonlydifferenceisthatwecalculateaseriesofwavelengthandwritetheresultsinafilecalled4results.txtAndwegetresultsasfollow

7、1.21.4487911.221.44876.1.241.448744.261.4

8、4871:1.281.448691.31.44866!1.321.44863•1.341.448611.361.448581.381.448561.41.448531.421.44854.441.44848,1.461.44845.1.481.448431.51.44841.521.448384.541.448351.561.448334.581.44831Fromtheresults,wccanknowtheeffectiveindexateverywavelengthintherangeof1.6to12Andwefindthatwh

9、enwavelengthincreases,theeffectiveindexdecreases.1.44891.44811.448二宀空空佗二怕边怕Bjpppp.q叭旳qrHrKvirdrd

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。