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:
- assignment
list
of
int
orstr
oransys.aedt.core.modeler.cad.object_3d.Object3d
List of objects to assign an end connection to.
- resistance
float
orstr
,optional
Resistance value. If float is provided, the units are assumed to be ohms. The default value is
0
,- inductance
float
orstr
,optional
Inductance value. If a float is provided, the units are assumed to Henry (H). The default value is
0
.- boundary
str
,optional
Name of the end connection boundary. The default is
None
, in which case the default name is used.
- assignment
- 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)