add_layer#
- Stackup3D.add_layer(name, layer_type='S', material_name='copper', thickness=0.035, fill_material='FR4_epoxy', frequency=None)#
Add a new layer to the stackup. The new layer can be a signal (S), ground (G), or dielectric (D). The layer is entirely filled with the specified fill material. Anything will be drawn material.
- Parameters:
- name
str
Layer name.
- layer_type
str
,optional
Layer type. The default is
"S"
. Options are:"D"
for “dielectric” layer"G"
for “ground” layer"S"
for “signal” layer
- material_name
str
,optional
Material name. The default is
"copper"
. The material is parametrized.- thickness
float
,optional
Thickness value. The default is
0.035
. The thickness will be parametrized.- fill_material
str
,optional
Fill material name. The default is
"FR4_epoxy"
. The fill material will be parametrized. This parameter is not valid for dielectrics.- frequency
float
,optional
The layer frequency, it will be common to all geometric shapes on the layer. The default is None, so each shape must have their own frequency.
- name
- Returns:
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")