wave_port#
- Hfss.wave_port(assignment, reference=None, create_port_sheet=False, create_pec_cap=False, integration_line=0, port_on_plane=True, modes=1, impedance=50, name=None, renormalize=True, deembed=0, is_microstrip=False, vfactor=3, hfactor=5, terminals_rename=True)[source]#
Create a waveport from a sheet (
start_object
) or taking the closest edges of two objects.- Parameters:
- assignment
int
,str
,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
,str
,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 the start object as the surface to create the port. The default is
False
.- create_pec_capbool,
False
Whether to create a port cap. The default is
False
.- integration_line
list
orint
oransys.aedt.core.application.analysis.Analysis.AxisDir
,optional
Position of the integration. 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
.- modes
int
,optional
Number of modes. The default is
1
.- name
str
,optional
Name of the port. The default is
None
, in which case a name is automatically assigned.- renormalizebool,
optional
Whether to renormalize the mode. The default is
True
.- deembed
float
,optional
Deembed distance in millimeters. The default is
0
.- is_microstripbool,
optional
Whether if the wave port will be created and is a microstrip port. The default is
False
.- vfactor
int
,optional
Port vertical factor. Only valid if
is_microstrip
is enabled. The default is3
.- hfactor
int
,optional
Port horizontal factor. Only valid if
is_microstrip
is enabled. The default is5
.- terminals_renamebool,
optional
Modify terminals name with the port name plus the terminal number. The default is
True
.
- assignment
- Returns:
ansys.aedt.core.modules.boundary.BoundaryObject
Port object.
References
>>> oModule.AssignWavePort
Examples
Create a wave port supported by a microstrip line.
>>> ms = hfss.modeler.create_box([4, 5, 0],[1, 100, 0.2],name="MS1",material="copper") >>> sub = hfss.modeler.create_box([0, 5, -2],[20, 100, 2],name="SUB1",material="FR4_epoxy") >>> gnd = hfss.modeler.create_box([0, 5, -2.2],[20, 100, 0.2],name="GND1",material="FR4_epoxy") >>> port = hfss.wave_port("GND1","MS1",integration_line=1,name="MS1") PyAEDT INFO: Connection correctly created.