assign_flux_tangential#

Maxwell3d.assign_flux_tangential(assignment: list, flux_name: str | None = None) BoundaryObject | bool#

Assign a flux tangential boundary for Transient and AC Magnetic A-Phi solvers.

Parameters:
assignmentlist

List of objects to assign the flux tangential boundary condition to.

flux_namestr, optional

Name of the flux tangential boundary. The default is None, in which case a random name is automatically generated.

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

Boundary object if successful, False otherwise.

References

>>> oModule.AssignFluxTangential

Examples

Create a box and assign a flux tangential boundary to one of its faces.

>>> from ansys.aedt.core import Maxwell3d
>>> m3d = Maxwell3d(solution_type="AC Magnetic APhi")
>>> box = m3d.modeler.create_box([50, 0, 50], [294, 294, 19], name="Box")
>>> flux_tangential = m3d.assign_flux_tangential(box.top_face_z, "FluxExample")
>>> m3d.desktop_class.close_desktop()