create_source_excitation#

Hfss.create_source_excitation(assignment: str, point1: list, point2: list, name: str, source_type: str | None = 'Voltage') BoundaryObject#

Create a source excitation.

Parameters:
assignmentstr

Name of the sheet.

point1list

First point of the source excitation.

point2list

Second point of the source excitation.

namestr

Name of the source.

source_typestr, optional

Type of the source. The default is "Voltage".

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

Boundary object.

References

>>> oModule.AssignVoltage
>>> oModule.AssignCurrent

Examples

>>> from ansys.aedt.core import Hfss
>>> hfss = Hfss()
>>> rect = hfss.modeler.create_rectangle([0, 0, 0], [10, 10])
>>> excitation = hfss.create_source_excitation(rect.name, [0, 0, 5], [0, 0, 10], "my_source")