source#
- Q3d.source(objects=None, axisdir=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:
- objects
str
,int
orlist
orpyaedt.modeler.cad.object3d.Object3d
Name of the object or face ID or face ID list.
- axisdir
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
.
- objects
- Returns:
pyaedt.modules.Boundary.BoundaryObject
Source object.
References
>>> oModule.AssignSource