Skip to main content

Motion Standalone Preprocessor C# library 2024 R2

Class MotorEMForceAPI

Last update: 16.07.2025

Namespace: VM.API.Pre.GearTrain
Assembly: VM.API.Pre.GearTrain.dll

This class implements APIs for class.

public static class MotorEMForceAPI

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 .

[NotNull(new string[] { "document" })]
[NotNullObj(new string[] { "statorBody", "rotorBody", "referenceOfRotational" })]
[NotZeroMagnitude(new string[] { "zAxis", "xAxis" })]
public static Obj CreateMotorEMForce(this GearTrainDocument document, Obj statorBody, Obj rotorBody, Vector position, Vector zAxis, Vector xAxis, Obj referenceOfRotational, string motorEMForceName = "")

Parameters

document GearTrainDocument

The document to create the motor em force.

statorBody Obj

The stator body. The type is .

rotorBody Obj

The rotor body. The type is .

position Vector

The position.

zAxis Vector

The z axis.

xAxis Vector

The x axis.

referenceOfRotational Obj

The reference of rotational. The type is .

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 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 .

ArgumentNullException

Will be thrown if type of 'rotorBody' is not .

ArgumentNullException

Will be thrown if type of 'referenceOfRotational' is not .

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

Create .

[NotNull(new string[] { "document" })]
[NotNullObj(new string[] { "statorBody", "rotorBody", "referenceOfRotational" })]
[NotZeroMagnitude(new string[] { "zAxis", "xAxis" })]
public static Obj CreateMotorEMForceForANSYSMotion(this GearTrainDocument document, Obj statorBody, Obj rotorBody, Vector position, Vector zAxis, Vector xAxis, Obj referenceOfRotational, string motorEMForceName = "")

Parameters

document GearTrainDocument

The document to create the motor em force for ANSYS Motion.

statorBody Obj

The stator body. The type is .

rotorBody Obj

The rotor body. The type is .

position Vector

The position.

zAxis Vector

The z axis.

xAxis Vector

The x axis.

referenceOfRotational Obj

The reference of rotational. The type is .

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 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 .

ArgumentNullException

Will be thrown if type of 'rotorBody' is not .

ArgumentNullException

Will be thrown if type of 'referenceOfRotational' is not .

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

Create .

[NotNull(new string[] { "document" })]
[NotNullObj(new string[] { "statorBody", "rotorBody", "referenceOfRotational" })]
[NotZeroMagnitude(new string[] { "zAxis", "xAxis" })]
public static Obj CreateMotorEMForceForJMAG(this GearTrainDocument document, Obj statorBody, Obj rotorBody, Vector position, Vector zAxis, Vector xAxis, Obj referenceOfRotational, string motorEMForceName = "")

Parameters

document GearTrainDocument

The document to create the motor em force for JMAG.

statorBody Obj

The stator body. The type is .

rotorBody Obj

The rotor body. The type is .

position Vector

The position.

zAxis Vector

The z axis.

xAxis Vector

The x axis.

referenceOfRotational Obj

The reference of rotational. The type is .

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 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 .

ArgumentNullException

Will be thrown if type of 'rotorBody' is not .

ArgumentNullException

Will be thrown if type of 'referenceOfRotational' is not .

Connect with Ansys