create_impedance_between_objects#

Hfss.create_impedance_between_objects(start_assignment, end_assignment, start_direction=0, source_name=None, resistance=50, reactance=0, is_infinite_ground=False, bound_on_plane=True)#

Create an impedance taking the closest edges of two objects.

Parameters:
start_assignmentstr or int or ansys.aedt.core.modeler.cad.object_3d.Object3d

Starting object for the integration line.

end_assignmentstr or int or ansys.aedt.core.modeler.cad.object_3d.Object3d

Ending object for the integration line.

start_directionint or ansys.aedt.core.application.analysis.Analysis.AxisDir, optional

Start direction for the boundary location. It should be one of the values for Application.AxisDir, which are: XNeg, YNeg, ZNeg, XPos, YPos, and ZPos. The default is Application.AxisDir.XNeg.

source_namestr, optional

Name of the impedance. The default is None.

resistancefloat, optional

Resistance value in ohms. The default is 50. If None, this parameter is disabled.

reactanceoptional

Reactance value in ohms. The default is 0. If None, this parameter is disabled.

is_infinite_groundbool, optional

Whether the impendance is an infinite ground. The default is False.

bound_on_planebool, optional

Whether to create the impedance on the plane orthogonal to AxisDir. The default is True.

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

Boundary object if successful, False otherwise.

References

>>> oModule.AssignImpedance

Examples

Create two boxes for creating an impedance named 'ImpedanceExample'.

>>> box1 = hfss.modeler.create_box([0, 0, 70],[10, 10, 5],"box1","copper")
>>> box2 = hfss.modeler.create_box([0, 0, 80],[10, 10, 5],"box2","copper")
>>> impedance = hfss.create_impedance_between_objects("box1", "box2", hfss.AxisDir.XPos,
...                                                   "ImpedanceExample", 100, 50)
PyAEDT INFO: Connection Correctly created