Patch#

class ansys.aedt.core.modeler.advanced_cad.stackup_3d.Patch(application, frequency, dx, signal_layer, dielectric_layer, dy=None, patch_position_x=0, patch_position_y=0, patch_name='patch', reference_system=None, axis='X')#

Patch Class in Stackup3D. Create a parametrized patch.

It is preferable to use the add_patch method in the class Layer3D than directly the class constructor.

Parameters:
applicationansys.aedt.core.hfss.Hfss

HFSS design or project where the variable is to be created.

frequencyfloat, None

Target resonant frequency for the patch antenna. The default is None, in which case the patch frequency is that of the layer or of the stackup.

dxfloat

The patch width.

signal_layeransys.aedt.core.modeler.advanced_cad.stackup_3d.Layer3D

The signal layer where the patch will be drawn.

dielectric_layeransys.aedt.core.modeler.advanced_cad.stackup_3d.Layer3D

The dielectric layer between the patch and the ground layer. Its permittivity and thickness are used in prediction formulas.

dyfloat, None, optional

The patch length. By default, it is None and so the length is calculated by prediction formulas.

patch_position_xfloat, optional

Patch x position, by default it is 0.

patch_position_yfloat, optional

Patch y position, by default it is 0.

patch_namestr, optional

Patch name, by default “patch”.

reference_systemstr, None, optional

Coordinate system of the patch. By default, None.

axisstr, optional

Patch length axis, by default “X”.

Examples

>>> from ansys.aedt.core import Hfss
>>> from ansys.aedt.core.modeler.advanced_cad.stackup_3d import Stackup3D
>>> hfss = Hfss()
>>> stackup = Stackup3D(hfss)
>>> gnd = stackup.add_ground_layer("ground", material="copper", thickness=0.035, fill_material="air")
>>> dielectric = stackup.add_dielectric_layer("dielectric", thickness="0.5" + length_units, material="Duroid (tm)")
>>> signal = stackup.add_signal_layer("signal", material="copper", thickness=0.035, fill_material="air")
>>> patch = signal.add_patch(patch_length=9.57, patch_width=9.25, patch_name="Patch")
>>> stackup.resize_around_element(patch)
>>> pad_length = [3, 3, 3, 3, 3, 3]  # Air bounding box buffer in mm.
>>> region = hfss.modeler.create_region(pad_length,is_percentage=False)
>>> hfss.assign_radiation_boundary_to_objects(region)
>>> patch.create_probe_port(gnd, rel_x_offset=0.485)

Methods

Patch.create_lumped_port(reference_layer[, ...])

Create a parametrized lumped port.

Patch.create_probe_port(reference_layer[, ...])

Create a coaxial probe port for the patch.

Patch.quarter_wave_feeding_line([...])

Create a Trace to feed the patch.

Patch.set_optimal_width()

Set the expression of the NamedVariable corresponding to the patch width, to an optimal expression.

Attributes

Patch.added_length

Added length calculation.

Patch.aedt_object

PyAEDT object 3D.

Patch.application

App object.

Patch.dielectric_layer

Dielectric layer that the object belongs to.

Patch.effective_permittivity

Effective permittivity.

Patch.frequency

Model frequency.

Patch.impedance

Impedance.

Patch.layer_name

Layer name.

Patch.layer_number

Layer ID.

Patch.length

Length.

Patch.material_name

Material name.

Patch.name

Object name.

Patch.permittivity

Permittivity.

Patch.points_on_layer

Object bounding box.

Patch.position_x

Starting position X.

Patch.position_y

Starting position Y.

Patch.reference_system

Coordinate system of the object.

Patch.signal_layer

Signal layer that the object belongs to.

Patch.substrate_thickness

Substrate thickness.

Patch.wave_length

Wave length.

Patch.width

Width.