assign_master_slave

Maxwell2d.assign_master_slave(master_edge, slave_edge, reverse_master=False, reverse_slave=False, same_as_master=True, bound_name=None)[source]

Assign master and slave boundary conditions to two edges of the same object.

Parameters
master_edgeint

ID of the master edge.

slave_edgeint

ID of the slave edge.

reverse_masterbool, optional

Whether to reverse the master edge to the V direction. The default is False.

reverse_slavebool, optional

Whether to reverse the master edge to the U direction. The default is False.

same_as_masterbool, optional

Whether the B-Field of the slave edge and master edge are the same. The default is True.

bound_namestr, optional

Name of the master boundary. The name of the slave boundary will have a _dep suffix.

Returns
:class:`pyaedt.modules.Boundary.BoundaryObject`,class:pyaedt.modules.Boundary.BoundaryObject

Master and slave objects.

References

>>> oModule.AssignIndependent
>>> oModule.AssignDependent