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:
- application
ansys.aedt.core.hfss.Hfss
HFSS design or project where the variable is to be created.
- frequency
float
,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.- dx
float
The patch width.
- signal_layer
ansys.aedt.core.modeler.advanced_cad.stackup_3d.Layer3D
The signal layer where the patch will be drawn.
- dielectric_layer
ansys.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.
- dy
float
,None
,optional
The patch length. By default, it is None and so the length is calculated by prediction formulas.
- patch_position_x
float
,optional
Patch x position, by default it is 0.
- patch_position_y
float
,optional
Patch y position, by default it is 0.
- patch_name
str
,optional
Patch name, by default “patch”.
- reference_system
str
,None
,optional
Coordinate system of the patch. By default, None.
- axis
str
,optional
Patch length axis, by default “X”.
- application
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.
Create a Trace to feed the patch.
Set the expression of the NamedVariable corresponding to the patch width, to an optimal expression.
Attributes
Added length calculation.
PyAEDT object 3D.
App object.
Dielectric layer that the object belongs to.
Effective permittivity.
Model frequency.
Impedance.
Layer name.
Layer ID.
Length.
Material name.
Object name.
Permittivity.
Object bounding box.
Starting position X.
Starting position Y.
Coordinate system of the object.
Signal layer that the object belongs to.
Substrate thickness.
Wave length.
Width.