Layer3D#
- class ansys.aedt.core.modeler.advanced_cad.stackup_3d.Layer3D(stackup, app, name, layer_type='S', material_name='copper', thickness=0.035, fill_material='FR4_epoxy', index=1, frequency=None)#
Provides a class for a management of a parametric layer in 3D Modeler. The Layer3D class is not intended to be used with its constructor, but by using the method “add_layer” available in the Stackup3D class.
- Parameters:
- stackup
ansys.aedt.core.modeler.advanced_cad.stackup_3d.Stackup3D
The stackup where the layers will be added.
- app
ansys.aedt.core.hfss.Hfss
HFSS design or project where the variable is to be created.
- name
str
Name of the layer.
- layer_type
str
“S” for signal layers, “D” for dielectric layers, “G” for ground layers.
- material_name
str
The material name of the layer.
- thickness
float
The thickness of the layer.
- fill_material
str
In ground and signal layers, the dielectric material name which will fill the non-conductive areas of the layer.
- index
int
The number of the layer, starting from bottom to top.
- frequency
float
The layer frequency, it will be common to all geometric shapes on the layer.
- stackup
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) >>> my_layer = my_stackup.add_layer("my_layer") >>> gnd = my_stackup.add_ground_layer("gnd") >>> diel = my_stackup.add_dielectric_layer("diel1", thickness=1.5, material="Duroid (tm)") >>> top = my_stackup.add_signal_layer("top")
Methods
Layer3D.add_patch
(frequency, patch_width[, ...])Create a parametric patch.
Layer3D.add_polygon
(points[, material, ...])Create a polygon.
Layer3D.add_trace
(line_width, line_length[, ...])Create a trace.
Duplicate a material and parametrize all properties.
Layer3D.ml_patch
(frequency, patch_width[, ...])Create a new parametric patch using machine learning algorithm rather than analytic formulas.
Attributes
Duplicated material.
Layer elevation.
Layer elevation value.
Fill material.
Fill material name.
Frequency variable.
Material.
Material name.
Layer name.
Layer ID.
Stackup.
Thickness variable.
Thickness value.
Layer type.