Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions pyaedt/maxwell.py
Original file line number Diff line number Diff line change
Expand Up @@ -3013,6 +3013,17 @@ def assign_balloon(self, assignment, boundary=None):
----------

>>> oModule.AssignBalloon


Examples
--------
Set balloon boundary condition in Maxwell 2D.

>>> from pyaedt import Maxwell2d
>>> m2d = Maxwell2d()
>>> region_id = m2d.modeler.create_region()
>>> region_edges = region_id.edges
>>> m2d.assign_balloon(edge_list=region_edges)
"""
assignment = self.modeler.convert_to_selections(assignment, True)

Expand Down Expand Up @@ -3052,6 +3063,17 @@ def assign_vector_potential(self, assignment, vector_value=0, boundary=None):
----------

>>> oModule.AssignVectorPotential


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

>>> from pyaedt import Maxwell2d
>>> m2d = Maxwell2d()
>>> region_id = m2d.modeler.create_region()
>>> region_edges = region_id.edges
>>> m2d.assign_vector_potential(input_edge=region_edges)
"""
assignment = self.modeler.convert_to_selections(assignment, True)

Expand Down