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_assignment
strorintoransys.aedt.core.modeler.cad.object_3d.Object3d Starting object for the integration line.
- end_assignment
strorintoransys.aedt.core.modeler.cad.object_3d.Object3d Ending object for the integration line.
- start_direction
intoransys.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, andZPos. The default isApplication.AxisDir.XNeg.- source_name
str,optional Name of the impedance. The default is
None.- resistance
float,optional Resistance value in ohms. The default is
50. IfNone, this parameter is disabled.- reactance
optional Reactance value in ohms. The default is
0. IfNone, 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 isTrue.
- start_assignment
- Returns:
ansys.aedt.core.modules.boundary.common.BoundaryObjector boolBoundary object if successful,
Falseotherwise.
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