assign_symmetry#

Maxwell3d.assign_symmetry(assignment, symmetry_name=None, is_odd=True)#

Assign symmetry boundary.

This boundary condition defines a plane of geometric or magnetic symmetry in a structure. Assign it only to the outer edges or surfaces of the problem region in 2D and 3D respectiveley.

Parameters:
assignmentlist

List IDs or ansys.aedt.core.modeler.elements_3d.EdgePrimitive or ansys.aedt.core.modeler.elements_3d.FacePrimitive.

symmetry_namestr, optional

Name of the symmetry.

is_oddbool, optional

Type of the symmetry. The default is True`,` in which case the H field is tangential to the boundary. If ``False, the H field is normal to the boundary.

Returns:
bool

True when successful, False when failed.

References

>>> oModule.AssignSymmetry

Examples

Create a rectangle and assign symmetry boundary to one of its edges.

>>> from ansys.aedt.core import Maxwell2d
>>> m2d = Maxwell2d()
>>> rect = m2d.modeler.create_rectangle(origin=[0, 0, 0], sizes=[10, 30])
>>> m2d.assign_symmetry(assignment=rect.top_edge_x, symmetry_name="symmetry1")
>>> m2d.release_desktop(True, True)