assign_vector_potential#

Maxwell2d.assign_vector_potential(assignment, vector_value=0, boundary=None)[source]#

Assign a vector potential boundary condition to specified edges.

This method is valid for Maxwell 2D Eddy Current, Magnetostatic, and Transient solvers.

Parameters:
assignmentlist

List of edge names or edge IDs to assign a vector to.

vector_valuefloat, optional

Value of the vector. The default is 0.

boundarystr, optional

Name of the boundary. The default is None, in which case the default name is used.

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

Vector Potential Object. False if it fails.

References

>>> oModule.AssignVectorPotential

Examples

Set vector potential to zero at the boundary edges in Maxwell 2D.

>>> from ansys.aedt.core import Maxwell2d
>>> m2d = Maxwell2d()
>>> region_id = m2d.modeler.create_region()
>>> region_edges = region_id.edges
>>> m2d.assign_vector_potential(input_edge=region_edges)