assign_end_connection#

Maxwell2d.assign_end_connection(assignment, resistance=0, inductance=0, boundary=None)#

Assign an end connection to a list of objects.

Available only for Maxwell 2D AC Magnetic (Eddy Current) and Transient solvers.

Parameters:
assignmentlist of int or str or ansys.aedt.core.modeler.cad.object_3d.Object3d

List of objects to assign an end connection to.

resistancefloat or str, optional

Resistance value. If float is provided, the units are assumed to be ohms. The default value is 0,

inductancefloat or str, optional

Inductance value. If a float is provided, the units are assumed to Henry (H). The default value is 0.

boundarystr, optional

Name of the end connection boundary. The default is None, in which case the default name is used.

Returns:
ansys.aedt.core.modules.boundary.common.BoundaryObject

Newly created object. False if it fails.

References

>>> oModule.AssignEndConnection

Examples

Create two rectangles and assign end connection excitation to them.

>>> from ansys.aedt.core import Maxwell2d
>>> m2d = Maxwell2d(solution_type="TransientZ")
>>> rect1 = m2d.modeler.create_rectangle([0, 0, 0], [5, 5], material="aluminum")
>>> rect2 = m2d.modeler.create_rectangle([15, 20, 0], [5, 5], material="aluminum")
>>> bound = m2d.assign_end_connection(assignment=[rect1, rect2])
>>> m2d.release_desktop(True, True)