Trace#

class ansys.aedt.core.modeler.advanced_cad.stackup_3d.Trace(application, frequency, line_width, line_impedance, signal_layer, dielectric_layer, line_electrical_length=90, line_length=None, line_position_x=0, line_position_y=0, line_name='line', reference_system=None, axis='X')[source]#

Trace Class in Stackup3D. Create a parametrized trace. It is preferable to use the add_trace method in the class Layer3D than directly the class constructor.

Parameters:
applicationansys.aedt.core.hfss.Hfss

HFSS design or project where the variable is to be created.

frequencyfloat, None

The line frequency, it is used in prediction formulas. If it is None, the line frequency will be that of the layer or of the stackup.

line_widthfloat, None

The line width. If it is None, it will calculate it from characteristic impedance of the line.

line_impedancefloat

The characteristic impedance of the line. If a line width is entered by the user, the characteristic impedance will be calculated from it.

signal_layeransys.aedt.core.modeler.advanced_cad.stackup_3d.Layer3D

The signal layer where the line will be drawn.

dielectric_layeransys.aedt.core.modeler.advanced_cad.stackup_3d.Layer3D

The dielectric layer between the line and the ground layer. Its permittivity and thickness are used in prediction formulas.

line_electrical_lengthfloat, None, optional

The ratio between the line length and the wavelength in degree. By default 90 which is corresponding to the quarter of the wavelength. If it is None, it will be directly calculated from the line length entered by the user.

line_lengthfloat, None, optional

The line length. By default, it is None and so the length is calculated by prediction formulas according to the electrical length.

line_position_xfloat, optional

Line x position, by default it is 0.

line_position_yfloat, optional

Line y position, by default it is 0.

line_namestr, optional

Line name, by default “line”.

reference_systemstr, None, optional

Coordinate system of the line. By default, None.

axisstr, optional

Line length axis, by default “X”.

Examples

>>> from ansys.aedt.core import Hfss
>>> from ansys.aedt.core.modeler.advanced_cad.stackup_3d import Stackup3D
>>> hfss = Hfss(new_desktop=True)
>>> 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_trace = top.add_trace(line_width=2.5, line_length=22)
>>> my_stackup.resize_around_element(my_trace)

Methods

Trace.create_lumped_port(reference_layer[, ...])

Create a parametrized lumped port.

Attributes

Trace.added_length

Added Length.

Trace.aedt_object

PyAEDT object 3D.

Trace.application

App object.

Trace.charac_impedance

Characteristic Impedance.

Trace.dielectric_layer

Dielectric layer that the object belongs to.

Trace.effective_permittivity

Effective Permittivity.

Trace.effective_permittivity_h_w

Effective Permittivity when dielectric thickness is upper than width.

Trace.effective_permittivity_w_h

Effective Permittivity when width is upper than dielectric thickness.

Trace.electrical_length

Electrical Length.

Trace.frequency

Frequency.

Trace.layer_name

Layer name.

Trace.layer_number

Layer ID.

Trace.length

Length.

Trace.material_name

Material name.

Trace.name

Object name.

Trace.permittivity

Permittivity.

Trace.points_on_layer

Object bounding box.

Trace.position_x

Starting Position X.

Trace.position_y

Starting Position Y.

Trace.reference_system

Coordinate system of the object.

Trace.signal_layer

Signal layer that the object belongs to.

Trace.substrate_thickness

Substrate Thickness.

Trace.wave_length

Wave Length.

Trace.width

Width.

Trace.width_h_w

Width when the substrat thickness is two times upper than the width.

Trace.width_w_h

Width when the width is two times upper than substrat thickness.