InsertSetup [Transient]

Add a new solution setup to a Transient design

Command: HFSS>Analysis Setup>Add Solution Setup

Syntax: InsertSetup <SetupType>, <AttributesArray>

Return Value: None

Parameters: <SetupType>

Type: <string>

"HfssTransient". Must match the HFSS solution type.

<AttributesArray>

Array("NAME:<SetupName>", <Named Parameters>)

 

<Named Parameters>

The parameters correspond to fields in the Setup dialog box. For example, here is default dialog for an HFSS Transient driven Composite Excitation setup with one excitation assigned. To see the required parameters for a specific set of parameters and their format, use the record script function, and view the resulting script in a text editor.

The first part of a vbs script corresponds to the fields and selections on the General tab:

Set oModule = oDesign.GetModule("AnalysisSetup")

oModule.InsertSetup "HfssTransient", Array("NAME:Setup1", "Frequency:=", "5GHz", "MaxDeltaE:=", 0.1, _"MaximumPasses:=", 6, "UseImplicitSolver:=", true, "IsEnabled:=", true,

The next parameters correspond to fields and selections on the Saved Fields tab:

Array("NAME:Transient", "ListsForFields:=", Array("integrationloops", "groundplane"), _
"UseSaveCount:=", 1, "SaveCount:=", 256, _
"UseSaveStart:=", 1, "SaveStart:=", "0s", _
"UseSaveDelta:=", 1, "SaveDelta:=", "10ps", _
"SaveRadFields:=", 0, "SaveFDRadFields:=", 0, _

You must create one or more face lists and select them to enable the ability to Save fields at specified intervals.

The next part corresponds to fields on the Duration tab.

"UseAutoTermination:=", 1, "SteadyStateCriteria:=", 0.01, _
"UseMinimumDuration:=", 0, "TerminateOnMaximum:=", 0))

The choices made for solver, Transient solution type as Network Analysis or Composite Excitation, Mesh Linking, and whether you use Expression Cash, Derivatives, and HPC will all affect the parameters array for a particular setup. The Network Analysis solution type includes the Input Signal tab.

The vbs script for this setup includes parameters for this information.

Array("NAME:Transient", "TimeProfile:=", "Broadband Pulse", "HfssFrequency:=", "5GHz", _
"MinFreq:=", "100MHz", "MaxFreq:=", "1GHz", _
"NumFreqsExtracted:=", 401, _
"SweepMinFreq:=", "100MHz", "SweepMaxFreq:=", "1GHz",

To see the parameters for a specific Setup and their format, use the record script function, and view the resulting script in a text editor. For descriptions of the parameters, see the Online help for the setup. See the examples below.

VB Example: Transient Solution Type

Set oModule = oDesign.GetModule("AnalysisSetup")

oModule.InsertSetup "HfssTransient", _

Array("NAME:Setup1", _

"Frequency:=", "1GHz", _

"MaxDeltaE:=", 0.1, _

"MaximumPasses:=", 20, _

"IsEnabled:=", true, _

"BasisOrder:=", -1, _

"NoAdditionalRefinementOnImport:=", true, _

Array("NAME:Transient", _

"UseAutoTermination:=", 1, _

"SteadyStateCriteria:=", 0.001, _

"UseMinimumDuration:=", 0, _

"TerminateOnMaximum:=", 1, _

"UseMaxTime:=", 1, _

"MaxTime:=", "20000ps"))

 

VB Example:Transient Network Solution Type

Dim oAnsoftApp

Dim oDesktop

Dim oProject

Dim oDesign

Dim oEditor

Dim oModule

Set oAnsoftApp = CreateObject("Ansoft.ElectronicsDesktop")

Set oDesktop = oAnsoftApp.GetAppDesktop()

oDesktop.RestoreWindow

Set oProject = oDesktop.SetActiveProject("transient")

Set oDesign = oProject.SetActiveDesign("HFSSDesign1")

Set oModule = oDesign.GetModule("AnalysisSetup")

oModule.InsertSetup "HfssTransient", Array("NAME:Setup1", "Frequency:=", "5GHz", "MaxDeltaS:=", _

0.02, "MaximumPasses:=", 20, "UseImplicitSolver:=", true, "IsEnabled:=", true, "BasisOrder:=", _

-1, Array("NAME:Transient", "TimeProfile:=", "Broadband Pulse", "HfssFrequency:=", _

"5GHz", "MinFreq:=", "100MHz", "MaxFreq:=", "1GHz", "NumFreqsExtracted:=", 401, "SweepMinFreq:=", _

"100MHz", "SweepMaxFreq:=", "1GHz", "ListsForFields:=", Array("Facelist1"), "UseSaveCount:=", _

1, "SaveCount:=", 256, "UseSaveStart:=", 1, "SaveStart:=", "0s", "UseSaveDelta:=", _

1, "SaveDelta:=", "10ps", "SaveRadFields:=", 0, "SaveFDRadFields:=", 0, "UseAutoTermination:=", _

1, "SteadyStateCriteria:=", 0.01, "UseMinimumDuration:=", 0, "TerminateOnMaximum:=", _

1, "UseMaxTime:=", 1, "MaxTime:=", "20ns"))

Python Syntax InsertSetup("HfssTransient", [<parameters>])
Python Example

oModule.InsertSetup("HfssTransient", [ "NAME:Setup2", "Frequency:=" , "5GHz", "MaxDeltaS:=" , 0.02, "MaximumPasses:=" , 20, "UseImplicitSolver:=" , True, "IsEnabled:=" , True, "BasisOrder:=" , -1, [ "NAME:Transient", "TimeProfile:=" , "Broadband Pulse", "HfssFrequency:=" , "5GHz", "MinFreq:=" , "100MHz", "MaxFreq:=" , "1GHz", "NumFreqsExtracted:=" , 401, "SweepMinFreq:=" , "100MHz", "SweepMaxFreq:=" , "1GHz", "ListsForFields:=" , ["Facelist1"], "UseSaveCount:=" , 1, "SaveCount:=" , 256, "UseSaveStart:=" , 1, "SaveStart:=" , "0s", "UseSaveDelta:=" , 1, "SaveDelta:=" , "10ps", "SaveRadFields:=" , 0, "SaveFDRadFields:=" , 0, "UseAutoTermination:=" , 1, "SteadyStateCriteria:=" , 0.01, "UseMinimumDuration:=" , 0, "TerminateOnMaximum:=" , 0 ] ])