add_layer#

Stackup3D.add_layer(name, layer_type='S', material_name='copper', thickness=0.035, fill_material='FR4_epoxy', frequency=None)[source]#

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:
namestr

Layer name.

layer_typestr, optional

Layer type. The default is "S". Options are:

  • "D" for “dielectric” layer

  • "G" for “ground” layer

  • "S" for “signal” layer

material_namestr, optional

Material name. The default is "copper". The material is parametrized.

thicknessfloat, optional

Thickness value. The default is 0.035. The thickness will be parametrized.

fill_materialstr, optional

Fill material name. The default is "FR4_epoxy". The fill material will be parametrized. This parameter is not valid for dielectrics.

frequencyfloat, 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.

Returns:
ansys.aedt.core.modeler.advanced_cad.stackup_3d.Layer3D

Layer object.

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")