create_perfecte_from_objects#
- Hfss.create_perfecte_from_objects(assignment, reference, start_direction=0, name=None, is_infinite_ground=False, is_boundary_on_plane=True)#
Create a Perfect E taking the closest edges of two objects.
- Parameters:
- assignment
str
orint
oransys.aedt.core.modeler.cad.object_3d.Object3d
Starting object for the integration line.
- reference
str
orint
oransys.aedt.core.modeler.cad.object_3d.Object3d
Ending object for the integration line.
- start_direction
int
oransys.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
.- name
str
,optional
Perfect E name. The default is
None
, in which case a name is automatically assigned.- is_infinite_groundbool,
optional
Whether the Perfect E is an infinite ground. The default is
False
.- is_boundary_on_planebool,
optional
Whether to create the Perfect E on the plane orthogonal to the axis direction. The default is
True
.
- assignment
- Returns:
ansys.aedt.core.modules.boundary.common.BoundaryObject
or boolBoundary object if successful,
False
otherwise.
References
>>> oModule.AssignPerfectE
Examples
Create two boxes for creating a Perfect E named
'PerfectE'
.>>> box1 = hfss.modeler.create_box([0,0,0],[10,10,5],"perfect1","Copper") >>> box2 = hfss.modeler.create_box([0, 0, 10],[10, 10, 5],"perfect2","copper") >>> perfect_e = hfss.create_perfecte_from_objects("perfect1","perfect2",hfss.AxisDir.ZNeg,"PerfectE") PyAEDT INFO: Connection Correctly created >>> type(perfect_e) <class 'from ansys.aedt.core.modules.boundary.common.BoundaryObject'>