assign_force#
- Maxwell2d.assign_force(input_object, reference_cs='Global', is_virtual=True, force_name=None)[source]#
Assign a force to one or more objects.
Force 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:
- input_object
str
,list
One or more objects to assign the force to.
- reference_cs
str
,optional
Name of the reference coordinate system. The default is
"Global"
.- is_virtualbool,
optional
Whether the force is virtual. The default is
True.
- force_name
str
,optional
Name of the force. The default is
None
, in which case the default name is used.
- input_object
- Returns:
- bool
True
when successful,False
when failed.
References
>>> oModule.AssignForce