assign_primary#
- Hfss.assign_primary(assignment: int | FacePrimitive, u_start: list, u_end: list, reverse_v: bool | None = False, coordinate_system: str | None = 'Global', name: str | None = None) BoundaryObject#
Assign the primary boundary condition.
- Parameters:
- assignment
int,FacePrimitive Face to assign the lattice pair to.
- u_start
list List of
[x,y,z]values for the starting point of the U vector.- u_end
list List of
[x,y,z]values for the ending point of the U vector.- reverse_vbool,
optional Whether to reverse the V vector. The default is False.
- coordinate_system
str,optional Name of the coordinate system for the U coordinates. The default is
"Global".- name
str,optional Name of the boundary. The default is
None, in which case a name is automatically assigned.
- assignment
- Returns:
ansys.aedt.core.modules.boundary.common.BoundaryObjectBoundary object.
References
>>> oModule.AssignPrimary
Examples
>>> from ansys.aedt.core import Hfss >>> hfss = Hfss() >>> box1 = hfss.modeler.create_box([-100, -100, -100], [200, 200, 200]) >>> primary = hfss.assign_primary(box1.faces[4], [100, -100, -100], [100, 100, -100]) >>> secondary = hfss.assign_secondary(box1.faces[0], primary.name, [100, -100, 100], [100, 100, 100])