create_perfecth_from_objects#
- Hfss.create_perfecth_from_objects(startobj, endobject, axisdir=0, sourcename=None, bound_on_plane=True)[source]#
Create a Perfect H taking the closest edges of two objects.
- Parameters:
- startobj
Starting object for the integration line.
- endobject
Ending object for the integration line.
- axisdir
int
orpyaedt.application.Analysis.Analysis.AxisDir
,optional
Position of the port. It should be one of the values for
Application.AxisDir
, which are:XNeg
,YNeg
,ZNeg
,XPos
,YPos
, andZPos
. The default isApplication.AxisDir.XNeg
.- sourcename
str
,optional
Perfect H name. The default is
None
.- bound_on_planebool,
optional
Whether to create the Perfect H on the plane orthogonal to
AxisDir
. The default isTrue
.
- Returns:
pyaedt.modules.Boundary.BoundaryObject
or boolBoundary object if successful,
False
otherwise.
References
>>> oModule.AssignPerfectH
Examples
Create two boxes for creating a Perfect H named
'PerfectH'
.>>> box1 = hfss.modeler.create_box([0,0,20], [10,10,5], ... "perfect1", "Copper") >>> box2 = hfss.modeler.create_box([0, 0, 30], [10, 10, 5], ... "perfect2", "copper") >>> perfect_h = hfss.create_perfecth_from_objects("perfect1", "perfect2", ... hfss.AxisDir.ZNeg, "Perfect H") PyAEDT INFO: Connection Correctly created >>> type(perfect_h) <class 'pyaedt.modules.Boundary.BoundaryObject'>