lumped_port#
- Hfss.lumped_port(assignment, reference=None, create_port_sheet=False, port_on_plane=True, integration_line=0, impedance=50, name=None, renormalize=True, deembed=False, terminals_rename=True)[source]#
Create a waveport taking the closest edges of two objects.
- Parameters:
- assignment
str
,int
,list
,ansys.aedt.core.modeler.cad.object_3d.Object3d
or
ansys.aedt.core.modeler.cad.elements_3d.FacePrimitive
Main object for port creation or starting object for the integration line.- reference
int
,list
oransys.aedt.core.modeler.cad.object_3d.Object3d
Ending object for the integration line or reference for Terminal solution. Can be multiple objects.
- create_port_sheetbool,
optional
Whether to create a port sheet or use given start_object as port sheet.
- integration_line
int
oransys.aedt.core.application.analysis.Analysis.AxisDir
,optional
Position of the port. It should be one of the values for
Application.AxisDir
, which are:XNeg
,YNeg
,ZNeg
,XPos
,YPos
, andZPos
. The default isApplication.AxisDir.XNeg
. It can also be a list of 2 points.- port_on_planebool,
optional
Whether to create the source on the plane orthogonal to
AxisDir
. The default isTrue
.- impedance
float
,optional
Port impedance. The default is
50
.- name
str
,optional
Name of the port. The default is
None
.- renormalizebool,
optional
Whether to renormalize the mode. The default is
True
.- deembed
float
,optional
Deembed distance in millimeters. The default is
0
, in which case deembed is disabled.- terminals_renamebool,
optional
Modify terminals name with the port name plus the terminal number. The default value is
True
.
- assignment
- Returns:
ansys.aedt.core.modules.boundary.BoundaryObject
Port object.
Examples
Create two boxes that will be used to create a lumped port named
'LumpedPort'
.>>> box1 = hfss.modeler.create_box([0, 0, 50],[10, 10, 5],"BoxLumped1","copper") >>> box2 = hfss.modeler.create_box([0, 0, 60],[10, 10, 5],"BoxLumped2","copper") >>> hfss.lumped_port("BoxLumped1","BoxLumped2",hfss.AxisDir.XNeg,50,"LumpedPort",True,False) PyAEDT INFO: Connection Correctly created 'LumpedPort'