assign_vector_potential#
- Maxwell2d.assign_vector_potential(assignment, vector_value=0, boundary=None)#
Assign a vector potential boundary condition to specified edges.
This method is valid for Maxwell 2D Eddy Current, Magnetostatic, and Transient solvers.
- Parameters:
- 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)