source#
- Q3d.source(assignment=None, direction=0, name=None, net_name=None, terminal_type='voltage')[source]#
Generate a source on a face of an object or a group of faces or face ids. The face ID is selected based on the axis direction. It is the face that has the maximum/minimum in this axis direction.
- Parameters:
- assignment
str
,int
orlist
oransys.aedt.core.modeler.cad.object_3d.Object3d
Name of the object or face ID or face ID list.
- direction
int
,optional
Initial axis direction. Options are
0
to5
. The default is0
.- name
str
,optional
Name of the source. The default is
None
.- net_name
str
,optional
Name of the net. The default is
None
, in which case theobject_name
is considered.- terminal_type
str
Type of the terminal. Options are
voltage
andcurrent
. The default isvoltage
.
- assignment
- Returns:
ansys.aedt.core.modules.boundary.BoundaryObject
Source object.
References
>>> oModule.AssignSource