欢迎来到天天文库
浏览记录
ID:40383341
大小:1.28 MB
页数:24页
时间:2019-08-01
《How to program FDTD》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、HowtoprogramFDTDv0.1byKyriacouAdamos,GreeceHowtoprogramtheFDTDforEMSimulations(v0.1)Author:KyriacouAdamosLocation:Xanthi,GreeceE-mailAddress:somada141@yahoo.grForeword:Thepurposeofthisguideisreallystraightforward.IwanttohelppeoplewiththeimplementationoftheFiniteDifferenceTimeDo
2、mainmethod.ThismethodiswelldocumentedhenceIwon’tbothertoexplainitsinnerworkings(forthisyoumustreadsuchgreatbooksasTaflove’sComputationalElectrodynamicswhichexplainsthemethodgreatly)butratherthekinksonemightfacewhileactuallyprogrammingthismethod.Thereasonsuchaguidewaswrittenisth
3、atwhileIwasstudyingFDTDthereweretonsofpointsnoonebotheredtoclarify,notinanyoneofthefamousbooks.Thattookmealotoftimetofigureonmyownandalotofmistakes.IftherewassuchaguidewhenIwasstrugglingIwouldhavekissedtheauthor’sfeet(notthatIwantsuchadisgustingthing).Iknowthatasitis,thisguidew
4、illonlyhelptotalnewbiestoFDTDsinceitdoesn’tcoveranymoreadvancedissues.ButifthereisapositiveresponsefromthecommunityIwillupdatethisguidetoincludemorecomplextopicssuchas:AbsorbingBoundaryConditionsSourceModelingImplementationofotherequations(suchastheBioheatEquation)BEWARE:THI
5、SDOCUMENTISMERELYWHATYOUCOULDCALLABETA-NOTAFINALVERSION.IFENOUGHPEOPLEAREINTERESTEDINTHISGUIDETHENIWILLCONTINUETHISGUIDEANDUPDATEIT.BEWARE:Thecodesuppliedinthisguideisfarfromoptimized.Tobehonestitisprobablythemostinefficientcode.Howeveritisalsothesimplestcode.Thisguide’spurpose
6、istoteachFDTDnotprogramming.OfcoursethisisnotthecodeIamusingforFDTDbutthefirstcodeIwrote.Sogoahead,learnFDTDandthenimproveit.1HowtoprogramFDTDv0.1byKyriacouAdamos,GreeceTheYee-CellItallstartswiththeformoftheYeecellwearegoingtouse.InthiscasetheYeecellweareusingistheoneshownbelow
7、:ZEyExHzExEyEzEzHxHyHyEzEzHxEyYExHzExEyXstndAlthoughtheaboveformisn’ttheoneshownbyTaflove(atleastinthe1and2Editionsofhisbook)mostpeopleusethiswhenprogrammingFDTD.Sowearegoingtousethisonebecause:ItwillbeeasiertocompareourcodewiththatofothersItallowseasierimplementationofPerfec
8、tElectricConductors(PEC)2HowtoprogramFDTDv0.1byKyriaco
此文档下载收益归作者所有