create_wave_port_microstrip_between_objects

Hfss.create_wave_port_microstrip_between_objects(startobj, endobject, axisdir=0, impedance=50, nummodes=1, portname=None, renorm=True, deembed_dist=0, vfactor=3, hfactor=5)[source]

Create a waveport taking the closest edges of two objects.

Parameters
startobj

Starting object for the integration line. This is typically the reference plane.

endobject

Ending object for the integration line.

axisdirint or pyaedt.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, and ZPos. The default is Application.AxisDir.XNeg.

impedancefloat, optional

Port impedance. The default is 50.

nummodesint, optional

Number of modes. The default is 1.

portnamestr, optional

Name of the port. The default is None.

renormbool, optional

Whether to renormalize the mode. The default is True.

deembed_distfloat, optional

Deembed distance in millimeters. The default is 0, in which case deembed is disabled.

vfactorint, optional

Port vertical factor. The default is 3.

hfactorint, optional

Port horizontal factor. The default is 5.

Returns
pyaedt.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", matname="copper")
>>> sub = hfss.modeler.create_box([0, 5, -2], [20, 100, 2],
...                               name="SUB1", matname="FR4_epoxy")
>>> gnd = hfss.modeler.create_box([0, 5, -2.2], [20, 100, 0.2],
...                               name="GND1", matname="FR4_epoxy")
>>> port = hfss.create_wave_port_microstrip_between_objects("GND1", "MS1",
...                                                         portname="MS1",
...                                                         axisdir=1)
pyaedt info: Connection correctly created.