assign_flux_tangential#

Maxwell3d.assign_flux_tangential(assignment, flux_name=None)[source]#

Assign a flux tangential boundary for a transient A-Phi solver.

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:
pyaedt.modules.Boundary.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 pyaedt import Maxwell3d
>>> m3d = Maxwell3d()
>>> box = m3d.modeler.create_box([50, 0, 50],[294, 294, 19],name="Box")
>>> flux_tangential = m3d.assign_flux_tangential(box.faces[0],"FluxExample")
>>> m3d.release_desktop(True, True)