oDesktop = oAnsoftApp.GetAppDesktop()oProject.InsertDesign("HFSS", "HFSSDesign1", "DrivenModal", "")oDesign = oProject.SetActiveDesign("HFSSDesign1")oEditor = oDesign.SetActiveEditor("3D Modeler")oModule = oDesign.GetModule("BoundarySetup")oModule = oDesign.GetModule("AnalysisSetup")oModule.InsertSetup("HfssDriven", "AdaptMultipleFreqs:=" , False, "Frequency:=" , "500MHz", "UseMatrixConv:=" , False, "MinimumConvergedPasses:=", 1, "PercentRefinement:=" , 30, "DoLambdaRefine:=" , True, "DoMaterialLambda:=" , True,
"SetLambdaTarget:=" , False, "UseMaxTetIncrease:=" , False, "UseABCOnPort:=" , False, "SetPortMinMaxTri:=" , False, "UseIterativeSolver:=" , False, "SaveRadFieldsOnly:=" , False, "SaveAnyFields:=" , True, "IESolverType:=" , "Auto", "LambdaTargetForIESolver:=", 0.15, "UseDefaultLambdaTgtForIESolver:=", True, "RayDensityPerWavelength:=", 4, "MaxNumberOfBounces:=" , 5, "InfiniteSphereSetup:=" , -1, "SkipSBRSolveDuringAdaptivePasses:=", True "Selections:=" , "spacing"oModule = oDesign.GetModule("BoundarySetup") "Objects:=" , ["element1"], "InfGroundPlane:=" , FalseoDesign.SetDesignSettings( "NAME:Design Settings Data", "Use Advanced DC Extrapolation:=", False, "Export After Simulation:=", False, "Allow Material Override:=", True, "Calculate Lossy Dielectrics:=", False, "Perform Minimal validation:=", False, "Port Validation Settings:=", "Standard" "NAME:Model Validation Settings", "EntityCheckLevel:=" , "Strict", "IgnoreUnclassifiedObjects:=", False, "SkipIntersectionChecks:=", FalseoModule = oDesign.GetModule("RadField")oModule.InsertFarFieldSphereSetup( "UseCustomRadiationSurface:=", False, "ThetaStop:=" , "180deg", "PhiStart:=" , "-180deg",oModule = oDesign.GetModule("ReportSetup")oModule.CreateReport("S Parameter Plot 1", "Modal Solution Data", "Rectangular Plot", "Setup1 : Sweep", "X Component:=" , "Freq", "Y Component:=" , ["dB(S(1,1))"]oModule.CreateReport("Gain Plot 1", "Far Fields", "3D Polar Plot", "Setup1 : LastAdaptive", "Context:=" , "Infinite Sphere1" "Phi Component:=" , "Phi", "Theta Component:=" , "Theta", "Mag Component:=" , ["dB(GainTotal)"] |