assign_torque#
- Maxwell2d.assign_torque(assignment, coordinate_system='Global', is_positive=True, is_virtual=True, axis='Z', torque_name=None)[source]#
Assign a torque to one or more objects.
Torque assignment can be calculated based upon the solver type. For 3D solvers the available solution types are:
Magnetostatic
,Electrostatic
,Eddy Current
,Transient
andElectric Transient
. For 2D solvers the available solution types are:Magnetostatic
,Electrostatic
,Eddy Current
andTransient
.- Parameters:
- assignment
str
orlist
One or more objects to assign the torque to.
- coordinate_system
str
,optional
Name of the reference coordinate system. The default is
"Global"
.- is_positivebool,
optional
Whether the torque is positive. The default is
True
.- is_virtualbool,
optional
Whether the torque is virtual. The default is
True
.- axis
str
,optional
Axis to apply the torque to. The default is
"Z"
.- torque_name
str
,optional
Name of the torque. The default is
None
, in which case the default name is used.
- assignment
- Returns:
- bool
True
when successful,False
when failed.
References
>>> oModule.AssignTorque