assign_sink#

Maxwell3d.assign_sink(assignment, name=None)#

Assign sink excitation. Available only in 3D electric solvers but electrostatic.

Parameters:
assignmentlist, str

List of objects to assign the current excitation to.

namestr, optional

Name of the current excitation. The default is None in which case a generic name will be given.

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

Boundary object.

References

>>> oModule.AssignSink

Examples

>>> from ansys.aedt.core import Maxwell3d
>>> m3d = Maxwell3d(solution_type="ElectroDCConduction")
>>> cylinder = m3d.modeler.create_cylinder("X", [0, 0, 0], 10, 100, 250)
>>> current = m3d.assign_sink(cylinder.top_face_x.id)
>>> m3d.desktop_class.release_desktop()