AssignScreeningImpedance

Creates a screening impedance boundary.

Command: HFSS>Boundaries>Assign>Screening Impedance

Syntax: AssignScreeningImpedance <ScreeningArray>

Return Value: None.

Parameters: <ScreeningArray>

Array("NAME:<name>",

"Objects:=", Array( "<name>"),

"IsAnisotropic:=", <Boolean>,

If true, you need to specify the coordinate system

"CoordSystem:=", <integer or name>,

"HasExternalLink:=", <Boolean>,

true or false. If False, specify XResistence and XReactance values. Also see the first example.

"XResistance:=", "<value>",

"XReactance:=", "<value>"

If true, then specify the external link array with the project and solution to use. Also see the second example.

Array("NAME:XLink",

"Project:=", "<projectName>.aedt",

"Design:=", "<DesignName>",

"Soln:=", "Setup1 : LastAdaptive",

Array("NAME:Params", "<variable>:=", "<value>"),

"ForceSourceToSolve:=", <Boolean>,

"PreservePartnerSoln:=", <Boolean>,

"PathRelativeTo:=", "TargetProject"),

Array("NAME:YLink",

"Project:=", "<projectName>.aedt",

"Design:=", "HFSSDesign1",

"Soln:=", "Setup1 : LastAdaptive",

Array("NAME:Params", "<variable>:=", "<value>"),

"ForceSourceToSolve:=", <Boolean>

"PreservePartnerSoln:=", <Boolean>,

"PathRelativeTo:=", "TargetProject"))

Example:

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("Project53")

Set oDesign = oProject.SetActiveDesign("HFSSDesign1")

Set oModule = oDesign.GetModule("BoundarySetup")

oModule.AssignScreeningImpedance Array("NAME:Screening1",
"Faces:=", Array(12),
"IsAnisotropic:=", false,
"HasExternalLink:=", false,
"XResistance:=", "377", "XReactance:=", "0")

 

Example:

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("Project53")

Set oDesign = oProject.SetActiveDesign("HFSSDesign1")

Set oModule = oDesign.GetModule("BoundarySetup")

oModule.AssignScreeningImpedance Array("NAME:Screening1", "Objects:=", Array( "Rectangle1"),
"IsAnisotropic:=", true,
"CoordSystem:=", 1,
"HasExternalLink:=", true,
Array("NAME:XLink",
"Project:=", "mydesign.aedt",
"Design:=", "HFSSDesign1",
"Soln:=", "Setup1 : LastAdaptive",
Array("NAME:Params", "bend_angle:=", "50deg"),
"ForceSourceToSolve:=", false,
"PreservePartnerSoln:=", false,
"PathRelativeTo:=", "TargetProject"),
Array("NAME:YLink", "Project:=", "mydesign.aedt",
"Design:=", "HFSSDesign1",
"Soln:=", "Setup1 : LastAdaptive",
Array("NAME:Params", "bend_angle:=", "50deg"),
"ForceSourceToSolve:=", true,
"PreservePartnerSoln:=", true,
"PathRelativeTo:=", "TargetProject"))