resize_around_element#
- Stackup3D.resize_around_element(element, percentage_offset=0.25)[source]#
Resize the stackup around parametrized objects and make it parametrize.
- Parameters:
- element
pyaedt.modeler.stackup_3d.Patch, :class:
pyaedt.modeler.stackup_3d.Trace
Element around which the resizing is done.
- percentage_offset
float
,optional
Offset of resize. Value accepted are greater than 0. O.25 by default.
- element
- Returns:
Examples
>>> from pyaedt import Hfss >>> from pyaedt.modeler.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)