ANSOFTMAXWELL2D/3DFIELDCALCULATOR-Examples-IntroductionThismanualisintendedasanaddendumtotheon-linedocumentationregardingPost-processingingeneralandtheFieldCalculatorinparticular.TheFieldCalculatorcanbeusedforavarietyoftasks,howeveritsprimaryuseistoextendthepost-processingcapabilitieswithinMaxwellbeyondthecalculation/plottingofthemainfieldquantities.TheFieldCalculatormakesitpossibletooperatewithprimaryvectorfields(suchasH,B,J,etc)usingvectoralgebraandcalculusoperationsinawaythatisbothmathematicallycorrectandmeaningfulfromaMaxwell’sequationsperspective.TheFieldCalculatorcanalsooperatewithgeometryquantitiesforthreebasicpurposes:-plotfieldquantities(orderivedquantities)ontogeometricentities;-performintegration(line,surface,volume)ofquantitiesoverspecifiedgeometricentities;-exportfieldresultsinauserspecifiedboxoratauserspecifiedsetoflocations(points).Anotherimportantfeatureofthe(field)calculatoristhatitcanbefullymacrodriven.Alloperationsthatcanbeperformedinthecalculatorhaveacorresponding“image”inoneormorelinesofmacrolanguagecode.Post-processingmacrosarewidelyusedforrepetitivepost-processingoperations,forsupportpurposesandincaseswhereOptimetricsisusedandpost-processingmacrosprovidesomequantityrequiredintheoptimization/parameterizationprocess.Thisdocumentdescribesthemechanicsofthetoolsaswellasthe“softer”sideofitaswell.So,apartfromdescribingthestructureoftheinterfacethisdocumentwillshowexamplesofhowtousethecalculatortoperformmanyofthepost-processingoperationsencounteredinpractical,daytodayengineeringactivityusingMaxwell.Examplesaregroupedaccordingtothetypeofsolution.Keepinmindthatmostoftheexamplescanbeeasilytransposedintosimilaroperationsperformedwithsolutionsofdifferentphysicalnature.Alsomostofthedescribedexampleshaveeasytofind2Dversions.1.DescriptionoftheinterfaceTheinterfaceisshowninFig.I1.Itisstructuredsuchthatitcontainsastackwhichholdsthequantityofinterestinstackregisters.Anumberofoperationsareintendedtoallowtheusertomanipulatethecontentsofthestackorchangetheorderofquantitiesbeingholdinstackregisters.Thedescriptionofthefunctionalityofthestackmanipulationbuttons(andofthecorrespondingstackcommands)ispresentedbelow:-Pushrepeatsthecontentsofthetopstackregistersothataftertheoperationthetwotoplinescontainidenticalinformation;-Popdeletesthelastentryfromthestack(deletesthetopofthestack);-RlDn(rolldown)isa“circular”movethatmakesthecontentsofthestacksslidedownonelinewiththebottomofthestackadvancingtothetop;-RlUp(rollup)isa“circular”movethatmakesthecontentsofthestacksslideuponelinewiththetopofthestackdroppingtothebottom;-Exch(exchange)producesanexchangebetweenthecontentsofthetwotopstackregisters;-Clearclearstheentirecontentsofallstackregisters;-Undoreversestheresultofthemostrecentoperation.Fig.I1FieldCalculatorInterfaceStack&stackregistersStackcommandsCalculatorbuttonsTheusershouldnotethatUndooperationscouldbenesteduptothelevelwhereabasicquantityisobtained.Thecalculatorbuttonsareorganizedinfivecategoriesasfollows:-Inputcontainscalculatorbuttonsthatallowtheusertoenterdatainthestack;sub-categoriescontainsolutionvectorfields(B,H,J,etc.),geometry(point,linesurface,volume),scalar,vectororcomplexconstants(dependingonapplication)orevenentiref.e.m.solutions.-Generalcontainsgeneralcalculatoroperationsthatcanbeperformedwith“general”data(scalar,vectororcomplex),iftheoperationmakessense;forexampleifthetoptwoentriesonthestackaretwovectors,onecanperformtheaddition(+)butnotmultiplication(*);indeed,withvectorsonecanperformadotproductoracrossproductbutnotamultiplicationasitispossiblewithscalars.-Scalarcontainsoperationsthatcanbeperformedonscalars;exampleofscalarsarescalarconstants,scalarfields,mathematicaloperationsperformedonvectorwhichresultinascalar,componentsofvectorfields(suchastheXcomponentofavectorfield),etc.-Vectorcontainsoperationsthatcanbeperformedonvectorsonly;exampleofsuchoperationsarecrossproduct(oftwovectors),div,curl,etc.-Outputcontainsoperationsresultinginplots(2D/3D),graphs,dataexport,dataevaluation,etc.Asarule,calculatoroperationsareallowediftheymakesensefromamathematicalpointofview.Therearesituationshoweverwherethecontentsofthetopstackregistersshouldbeinacertainorderfortheoperationtoproducetheexpectedresult.Theexamplesthatfollowwillindicatethestepstobefollowedinordertoobtainthedesiredresultinanumberoffrequentlyencounteredoperations.Theexamplesaregroupedaccordingtothetypeofsolution(solver)used.Theyaretypicalmedium/higherlevelpost-processingtaskthatcanbeencounteredincurrentengineeringpractice.ThroughoutthismanualitisassumedthattheuserhasthebasicskillsofusingtheFieldCalculatorforbasicoperationsasexplainedintheon-linetechnicaldocumentationand/orduringAnsoftbasictraining.Note:Thef.e.m.solutionisalwaysperformedintheglobal(fixed)coordinatesystem.Theplotsofvectorquantitiesarethereforerelatedtotheglobalcoordinatesystemandwillnotchangeifalocalcoordinatesystemisdefinedwithadifferentorientationfromtheglobalcoordinatesystem.Thesameruleapplieswiththelocationofuserdefinedgeometryentitiesforpost-processingpurposes.Forexamplethefieldv