Edit for BoundarySetup Commands

For existing boundaries and excitations, the Edit command can be used to change properties. To use this command, first call the BoundarySetup module, and then with the Edit command, specify the name of the boundary or excitation and then the properties of that particular boundary or excitation. For example, to change the properties of a current excitation (Maxwell):

oModule = oDesign.GetModule("BoundarySetup")

oModule.Edit("Current2",

[

"NAME:Current2",

"Phase:=" , "0deg",

"Current:=" , "5A",

"IsSolid:=" , False,

"Point out of terminal:=", True

])

Important:

The Edit command replaces the EditBoundaryName commands of previous releases.

Note:

The Edit command cannot be used to change the entity that the boundary or excitation is assigned to. To change the entity, use one of the following commands:

  • AddAssignmentTo
  • RemoveAssignmentFrom
  • Reassign
UI Access Right click on the boundary or excitation in the Project Manager tree, and select Properties
Parameters
Name Type Description
<Name> String Name of the boundary or excitation to be edited.

<Properties>

Array Structured array. The required contents of this array is determined by the type of boundary or excitation specified in the Name parameter. See the corresponding AssignBoundaryName topic for a list of properties that can be edited.
Return Value None

 

Python Syntax Edit(<Name>, <Properties>)
Python Example

HFSS:

oModule = oDesign.GetModule("BoundarySetup")

oModule.Edit("FiniteCond1",

["NAME:FiniteCond1",

"Roughness:=", "2um",

"UseCoating:=", false

])

Maxwell:

oModule = oDesign.GetModule("BoundarySetup")

oModule.Edit("VectorPotential1",

[

"NAME:VectorPotential1",

"Phase:=" , "30deg",

"Value:=" , "2"

])

IcepackFEA:

oModule = oDesign.GetModule("BoundarySetup")

oModule.Edit("Contact1",

[

"NAME:Contact_Top",

"Resistance Type:=" , "Thickness"

"Thickness:=" , "2.5mil",

"Material:=" , "polyehtylene"

])

Q3D:

oModule = oDesign.GetModule("BoundarySetup")

oModule.Edit("ContactResistance1"

[

"NAME:ContactResistance1",

"Contact Resistance Type:=", "Thin Layer",

"Conductivity:=" , "58000000S_per_m",

"Thickness:=" , "2mm"

])

Icepak:

oModule = oDesign.GetModule("BoundarySetup")

oModule.Edit("Opening1",

[

"NAME:Opening1",

"Temperature:=" , "AmbientTemp",

"External Rad. Temperature:=", "AmbientRadTemp",

"Inlet Type:=" , "Velocity",

"Static Pressure:=" , "AmbientPressure",

"X Velocity:=" , "2m_per_sec"

])