Skip to main content
Namespace: VM.API.Pre.GearTrain
Assembly: VM.API.Pre.GearTrain.dll
This class implements APIs for MotorEMForce class.

Inheritance

object ← MotorEMForceAPI

Extension Methods

LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType), LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType), LinkPropertyItemCache.GetLinkedObjects<T>(object, LinkPropertyType)

Methods

CreateMotorEMForce(GearTrainDocument, Obj, Obj, Vector, Vector, Vector, Obj, string)

Create MotorEMForce.

Parameters

document GearTrainDocument The document to create the motor em force. statorBody Obj The stator body. The type is ObjectBase. rotorBody Obj The rotor body. The type is ObjectBase. position Vector The position. zAxis Vector The z axis. xAxis Vector The x axis. referenceOfRotational Obj The reference of rotational. The type is ObjectBase. motorEMForceName string The name of the motor em force. If empty, default name starts with ‘Motor_’ will be generated and used.

Returns

Obj The new MotorEMForce object that is created by this API.

Exceptions

ArgumentNullException Will be thrown if ‘document’ or ‘statorBody’ or ‘rotorBody’ or ‘referenceOfRotational’ arguments are empty. ArgumentException Will be thrown if the magnitude of zAxis’ or ‘xAxis’ is 0. ArgumentNullException Will be thrown if type of ‘statorBody’ is not ObjectBase. ArgumentNullException Will be thrown if type of ‘rotorBody’ is not ObjectBase. ArgumentNullException Will be thrown if type of ‘referenceOfRotational’ is not ObjectBase.

CreateMotorEMForceForANSYSMotion(GearTrainDocument, Obj, Obj, Vector, Vector, Vector, Obj, string)

Create MotorEMForce.

Parameters

document GearTrainDocument The document to create the motor em force for ANSYS Motion. statorBody Obj The stator body. The type is ObjectBase. rotorBody Obj The rotor body. The type is ObjectBase. position Vector The position. zAxis Vector The z axis. xAxis Vector The x axis. referenceOfRotational Obj The reference of rotational. The type is ObjectBase. motorEMForceName string The name of the motor em force. If empty, default name starts with ‘Motor_’ will be generated and used.

Returns

Obj The new MotorEMForce object that is created by this API.

Exceptions

ArgumentNullException Will be thrown if ‘document’ or ‘statorBody’ or ‘rotorBody’ or ‘referenceOfRotational’ arguments are empty. ArgumentException Will be thrown if the magnitude of zAxis’ or ‘xAxis’ is 0. ArgumentNullException Will be thrown if type of ‘statorBody’ is not ObjectBase. ArgumentNullException Will be thrown if type of ‘rotorBody’ is not ObjectBase. ArgumentNullException Will be thrown if type of ‘referenceOfRotational’ is not ObjectBase.

CreateMotorEMForceForJMAG(GearTrainDocument, Obj, Obj, Vector, Vector, Vector, Obj, string)

Create MotorEMForce.

Parameters

document GearTrainDocument The document to create the motor em force for JMAG. statorBody Obj The stator body. The type is ObjectBase. rotorBody Obj The rotor body. The type is ObjectBase. position Vector The position. zAxis Vector The z axis. xAxis Vector The x axis. referenceOfRotational Obj The reference of rotational. The type is ObjectBase. motorEMForceName string The name of the motor em force. If empty, default name starts with ‘Motor_’ will be generated and used.

Returns

Obj The new MotorEMForce object that is created by this API.

Exceptions

ArgumentNullException Will be thrown if ‘document’ or ‘statorBody’ or ‘rotorBody’ or ‘referenceOfRotational’ arguments are empty. ArgumentException Will be thrown if the magnitude of zAxis’ or ‘xAxis’ is 0. ArgumentNullException Will be thrown if type of ‘statorBody’ is not ObjectBase. ArgumentNullException Will be thrown if type of ‘rotorBody’ is not ObjectBase. ArgumentNullException Will be thrown if type of ‘referenceOfRotational’ is not ObjectBase.