4nec2 Tutorial
4nec2 Tutorial
.Themainwindowcanbe broughtupatanytimebyhittingF2. ThesecondwindowisthePatternpage.Thispagedisplaysa2Dpolarplotoftheradiationpatternof yourantenna.Bydefault,thispageshowsthethetaplaneoftheantennasradiationpattern.Itcanbe switchedtothephi(horizontal)planebygoingtoFarField=>HorizontalPlane.Thetaandphicanbe sweptforthephiplaneandthetaplane,respectively,byusingtheleftandrightarrowsonyour keyboard.ThiswindowcanbebroughtupatanytimebyhittingF4. ThethirdwindowistheGeometrywindow.Thiswindowshowsthephysicalrepresentationofyour antenna.Italsoshowswhereyoursourcesarebyrepresentingthemwithpurplecircle.Thiswindowcan bebroughtupatanytimebyhittingF3. Notshown,isthe4nec2Editwindow.ThiswindowcanbebroughtupbyhittingtheEditNECinput filebuttononthemainwindow.Thebuttonlookslikeahandholdingapencilwhilewritingsomething inabook.
11.ClickontheGeometrytab. TheGeometrytabinthe4nec2Editwindowiswhereyouwilldefineyourantennasstructure.In anynec2program,suchas4nec2,youdefineyourantennabyfirstbuildingaseriesoflines.Eachline willbeassignedareferencenumber,anumberofsegments,andaradius.Thereferencenumberisjust areferencenumber.Itspurposeisforyouandtheprogramtobeabletotellthedifferencebetween onelineandanother.Thenumberofsegmentsalineisbrokenintodefineshowaccuratethesimulation is.Atthesametime,themoresegmentsthereare,themoretimeitwilltaketheprogramtorun.Asa ruleofthumb,eachsegmentshouldbebetweenLambda/10andLambda/100.(Forexample,ahalf wavedipolelineshouldhavebetween5and50segments).Theradiusshouldbelessthan1/10the lengthofthesegmentsofaline. Twofinalnotes:Anylinewhichwillbeexcitedfromitscenter,suchasadipoleorHertzianantenna, shouldhaveanoddnumberofsegments.Also,ifatanytimetwolinesoverlap,theiroverlapshould occuratajunctionoftwosegments. 12.ClickthefirstspaceunderType.Adropdownmenushouldappearwhichallowsyoudefinewhat kindofstructureyouarecreating.Selectwire. 13.ClickthefirstspaceunderTagandtypein1.Thisisthereferencenumberofyourwire. 14.ClickthefirstspaceunderSegsandtypein21.Thisisthenumberofsegmentsyourwirewillbe splitinto.
25.ClicktheRunNECbuttonintheupperrighthandcornerofthe4nec2Editwindow.Thisisthe buttonthatlookslikeacalculator.
26.Selectfarfieldinthewindowthatpopsup.ThenclicktheGeneratebuttoninthebottomleft.
Congratulations.Forsomeofyou,youhavejustrunyourfirstelectromagneticsimulation.Note:Dueto glitchesintheprogram,sometimes4nec2willresetwhilescrollingthroughwindows.Ifatanypointthe datafieldsintheMainwindowgoempty,justrerunthesimulationtopullthedatabackup. 27.PressF4tobringuptheradiationpatterndisplayonthepolarplot.Onthispageyoucanseea2D representationoftheradiationpatternofyourantenna.Toswitchbetweenaverticalandhorizontal planeview,selectFarfield=>Horizontalplaneorpressthespacebar.Tochangetheangleof viewing,usetheup/downarrowsonyourkeyboard. 28.PressF9tobringupthe3Dviewer.Withthethreepulldownmenusinthiswindowyoucan: a. Seeaclearpictureofyourstructureandsource.Thewiresaregrey;thesourceispurple;and theaxisisgreen.Thisshouldbethedefaultdisplay. b. Displaythecurrentdistributionontheline.UsethefirstdragdownmenuandselectCurrents. c. Displaytheradiationpatternineither2Dor3D.Usethesecondpulldowntoshowtheradiation pattern.UsethethirdpulldownmenutochangebetweenDirectivity,Ethetapolarizedfield, andEphipolarizedfield.