assign_current_density_terminal#

Maxwell3d.assign_current_density_terminal(assignment, current_density_name=None)#

Assign current density terminal to a single or list of entities for an Eddy Current or Magnetostatic solver.

Parameters:
assignmentlist of int or ansys.aedt.core.modeler.elements_3d.FacePrimitive

Faces or sheet objects to assign the current density terminal to.

current_density_namestr, optional

Current density name. If no name is provided a random name is generated.

Returns:
bool

True when successful, False when failed.

References

>>> oModule.AssignCurrentDensityTerminal

Examples

Create a box and assign current density terminal to one of its face in Eddy Current.

>>> from ansys.aedt.core import Maxwell3d
>>> m3d = Maxwell3d(solution_type="EddyCurrent")
>>> box = m3d.modeler.create_box(origin=[0, 0, 0], sizes=[25, 25, 2])
>>> m3d.assign_current_density_terminal(assignment=box.faces[0], current_density_name="J_terminal")
>>> m3d.release_desktop(True, True)