add_patch#

Layer3D.add_patch(frequency, patch_width, patch_length=None, patch_position_x=0, patch_position_y=0, patch_name=None, axis='X')#

Create a parametric patch.

Parameters:
frequencyfloat, None

Frequency value for the patch calculation in Hz.

patch_widthfloat

Patch width.

patch_lengthfloat, optional

Patch length. The default is None.

patch_position_xfloat, optional

Patch start x position.

patch_position_yfloat, optional

Patch start y position. The default is 0.

patch_namestr, optional

Patch name. The default is None.

axisstr, optional

Line orientation axis. The default is "X".

Returns:
ansys.aedt.core.modeler.advanced_cad.stackup_3d.Patch

Examples

>>> from ansys.aedt.core import Hfss
>>> from ansys.aedt.core.modeler.advanced_cad.stackup_3d import Stackup3D
>>> hfss = Hfss()
>>> my_stackup = Stackup3D(hfss, 2.5e9)
>>> gnd = my_stackup.add_ground_layer("gnd")
>>> my_stackup.add_dielectric_layer("diel1", thickness=1.5, material="Duroid (tm)")
>>> top = my_stackup.add_signal_layer("top")
>>> my_patch = top.add_patch(frequency=None, patch_width=51, patch_name="MLPatch")
>>> my_stackup.resize_around_element(my_patch)