Skip to main content

Motion Standalone Preprocessor C# library 2026 R1

Class PropertyMotorEMForce

Last update: 09.03.2026

Namespace: VM.Managed.DAFUL.GearTrain.Force
Assembly: VMDGearTrain.dll

Property of Motor EM Force

public class PropertyMotorEMForce : Property, IObservableObject, IDisposableObject, ILinkable, IObjectBase, IObject, IEventProvider, IHasKeyObject, ILinkContainerEvent, IVerifiable, IHistoryObjectSerializable, IAttributeContainer, IContainer, ILinkContainer, IOwned, IHasID

Inheritance

object ← ObservableObject ← LinkableBase ← ObjectBase ← Object<PropertyEventCore> ← ContainerObject<PropertyEventCore> ← Property ← PropertyMotorEMForce

Implements

IObservableObject, IDisposableObject, ILinkable, IObjectBase, IObject, IEventProvider, IHasKeyObject, ILinkContainerEvent, IVerifiable, IHistoryObjectSerializable, IAttributeContainer, IContainer, ILinkContainer, IOwned, IHasID

Inherited Members

Property.Initialize(Unit.ConvertFactor), Property.PropertyRequestUpdate(object, LinkEventArgs), Property.OnUpdatePropertyImpl(Property, LinkEventArgs), Property.GetUnnamedObjectName(object), Property.FindLocal(string), Property.Draw(Canvas, TMatrix, TMatrix, bool), ContainerObject<PropertyEventCore>.Find(string), ContainerObject<PropertyEventCore>.FindLocal(string), ContainerObject<PropertyEventCore>.GetUnnamedObjectName(object), ContainerObject<PropertyEventCore>.GetNewEntityName(string), ContainerObject<PropertyEventCore>.GetNewEntityName(string, bool, int), ContainerObject<PropertyEventCore>.GetNewEntityName(string, bool, int, int), Object<PropertyEventCore>.GetKey(), Object<PropertyEventCore>.Initialize(Unit.ConvertFactor), Object<PropertyEventCore>.SetIconColor(Canvas), Object<PropertyEventCore>.OnDeserialization(object), Object<PropertyEventCore>.CustomGetObjectData(SerializationInfo, StreamingContext), Object<PropertyEventCore>.RollbackEvent(), Object<PropertyEventCore>.OnDeserializedCore(object), Object<PropertyEventCore>.Key, Object<PropertyEventCore>.UntypedEventCore, Object<PropertyEventCore>.EventCore, Object<PropertyEventCore>.Attributes, ObjectBase.ReplaceEventCore(ObjectEventCore), ObjectBase.SetModifiedCore(ModifiedResult.ModifiedType), ObjectBase.AddPostDeserialize(StreamingContext), ObjectBase.LinkAddedToDocumentCore(IOwned, bool), ObjectBase.SetModified(ModifiedResult.ModifiedType), ObjectBase.SetModified(), ObjectBase.SetModified(ModifiedResult.ModifiedType, IDocument), ObjectBase.DestroyObject(object, LinkEventArgs), ObjectBase.DestroyObject(DestroyEventArgs), ObjectBase.DestroyObject(), ObjectBase.Initialize(Unit.ConvertFactor), ObjectBase.FixUp(ObjectBase), ObjectBase.DoWorkAfterUpdateContents(), ObjectBase.SetOldNameWithNewEntity(ObjectBase, ObjectBase), ObjectBase.SetIconColor(Canvas), ObjectBase.RemoveFromCreatedList(), ObjectBase.PostAddToDocument(), ObjectBase.PostRemoveFromDocument(Document), ObjectBase.GetArgumentList(LinkedList<ObjectBase>), ObjectBase.ResetInvalidEntity(), ObjectBase.OnDeserialization(object), ObjectBase.IsSerializableEvent(Delegate), ObjectBase.CustomGetObjectData(SerializationInfo, StreamingContext), ObjectBase.CheckAndUpdateLink(HashSet<ObjectBase>), ObjectBase.Verify(VerifiedResult), ObjectBase.ConnectProxy(), ObjectBase.RollbackEvent(), ObjectBase.LinkRequestUpdating(object, LinkEventArgs), ObjectBase.LinkRequestUpdate(object, LinkEventArgs), ObjectBase.LinkRequestDestroying(object, LinkEventArgs), ObjectBase.LinkRequestDestroy(object, LinkEventArgs), ObjectBase.LinkAddedToDocument(object, AddToDocEventArgs), ObjectBase.LinkRemovedFromDocument(object, RemoveFromDocEventArgs), ObjectBase.DisposeManagedResources(), ObjectBase.GetDestroyEventExtraData(), ObjectBase.OnLinkReserved(ILink, object, EventArgs), ObjectBase.CreateEntityWhenUpdateContents(Action), ObjectBase.GetObjectByKey(UIntPtr), ObjectBase.FindObjectOnXmlDeserialize(string), ObjectBase.UpdateContents(XmlReader, ObjectBase, string), ObjectBase.UpdateContents(XmlReader, ObjectBase), ObjectBase.UpdateContents(string, string), ObjectBase.UpdateContents(string), ObjectBase.SetFlagWhenXMLFile(string, bool), ObjectBase.IsEqualArray<T>(T[], T[]), ObjectBase.IsEqualList(List<double>, List<double>), ObjectBase.SetContainer(IOwned, bool), ObjectBase.GetTargetListForUpdate(), ObjectBase.SkipUpdateObjectImpl(), ObjectBase.raise_OnUpdating(object, LinkEventArgs), ObjectBase.raise_OnUpdate(object, LinkEventArgs), ObjectBase.raise_OnDestroying(object, LinkEventArgs), ObjectBase.raise_OnDestroy(object, LinkEventArgs), ObjectBase.raise_Destroying(object, Identifier), ObjectBase.raise_OnAdded(object, AddToDocEventArgs), ObjectBase.raise_OnRemoved(object, RemoveFromDocEventArgs), ObjectBase.raise_OnContentsUpdated(object, EventArgs), ObjectBase.Dispose(bool), ObjectBase.SkipModified, ObjectBase.ClearChildInfoBeforeDeserialize, ObjectBase.KeyImpl, ObjectBase.ID, ObjectBase.TopologyEntityTypeName, ObjectBase.ObjectStateForCircularError, ObjectBase.ObjectState, ObjectBase.IsChildExternable, ObjectBase.IsExternable, ObjectBase.Container, ObjectBase.Owner, ObjectBase.Document, ObjectBase.UntypedEventCore, ObjectBase.KernelKey, ObjectBase.Key, ObjectBase.OnContentsUpdated, ObjectBase.OnRemoved, ObjectBase.OnAdded, ObjectBase.Destroying, ObjectBase.OnDestroy, ObjectBase.OnDestroying, ObjectBase.OnUpdate, ObjectBase.OnUpdating, LinkableBase.OnDeserialization(object), ObservableObject.Dispose(), ObservableObject.RaisePropertyChanged(string), ObservableObject.RaisePropertyChanged(string, object, object), ObservableObject.Dispose(bool), ObservableObject.DisposeManagedResources(), ObservableObject.DisposeUnmanagedResources(), ObservableObject.IsDisposed, ObservableObject.TryDisposing, ObservableObject.Disposed, ObservableObject.Disposing, ObservableObject.PropertyChanged

Extension Methods

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

Constructors

PropertyMotorEMForce()

Initializes a new instance of the class.

public PropertyMotorEMForce()

Properties

Depth

Gets or sets the depth.

public ExpressionValueVariable Depth { get; set; }

Property Value

ExpressionValueVariable

Exceptions

Exception

Depth is null.

FileFormat

Gets or sets the file format.

public PropertyMotorEMForce.FileFormatType FileFormat { get; set; }

Property Value

PropertyMotorEMForce.FileFormatType

ForceUNVFiles

Gets or sets the force unv files.

public PropertyMotorEMForce.UNVFileWithRPM[] ForceUNVFiles { get; set; }

Property Value

PropertyMotorEMForce.UNVFileWithRPM[]

GeometryUNVFile

Gets or sets the geometry unv file.

public PropertyMotorEMForce.UNVFile GeometryUNVFile { get; set; }

Property Value

PropertyMotorEMForce.UNVFile

InitialPositionAngle

Gets or sets the initial position angle.

public ExpressionValueVariable InitialPositionAngle { get; set; }

Property Value

ExpressionValueVariable

Exceptions

Exception

Initial position angle is null.

MaxwellForceFile

Gets or sets the Maxwell force file.

public string MaxwellForceFile { get; set; }

Property Value

string

MaxwellGeometryFile

Gets or sets the Maxwell geometry file.

public string MaxwellGeometryFile { get; set; }

Property Value

string

NumberOfLayer

Gets or sets the number of layer.

public ExpressionValueVariable NumberOfLayer { get; set; }

Property Value

ExpressionValueVariable

Exceptions

Exception

Number of layer is null.

ReferenceFrame

Gets or sets the reference frame.

public TransformBase ReferenceFrame { get; set; }

Property Value

TransformBase

ReferenceOfRotational

Gets or sets the reference Of rotational.

public ObjectBase ReferenceOfRotational { get; set; }

Property Value

ObjectBase

ResultFile

Gets or sets the result file.

public string ResultFile { get; set; }

Property Value

string

Scale

Gets or sets the scale.

public Scale Scale { get; set; }

Property Value

Scale

Methods

CheckAMGeometryAndForceFile(Document, string, string, TMatrix)

public static void CheckAMGeometryAndForceFile(Document doc, string strGeometryAMFilePath, string strForceAMFilePath, TMatrix transform)

Parameters

doc Document

strGeometryAMFilePath string

strForceAMFilePath string

transform TMatrix

CheckResultAMFile(string)

Check result AM file

public static bool CheckResultAMFile(string strResultAMFilePath)

Parameters

strResultAMFilePath string

Returns

bool

CheckUNVFiles(Document, IEnumerable<string>, TMatrix)

Check UNV files

public static void CheckUNVFiles(Document document, IEnumerable<string> filesPath, TMatrix transform)

Parameters

document Document

The document.

filesPath IEnumerable<string>

The force UNV files.

transform TMatrix

The transform.

CheckUNVFiles(Document, string, string[], TMatrix)

Check UNV files

public static void CheckUNVFiles(Document doc, string strGeometryUNVFilePath, string[] arForceUNVFilePath, TMatrix transform)

Parameters

doc Document

The document.

strGeometryUNVFilePath string

The geometry UNV file.

arForceUNVFilePath string[]

The force UNV files.

transform TMatrix

The transform.

GetGlobalPosition(Vector, TMatrix)

Gets global position

public static Vector GetGlobalPosition(Vector vecLocal, TMatrix matT)

Parameters

vecLocal Vector

The local position

matT TMatrix

The Reference matrix

Returns

Vector

GetNodeCountFromAMFile(Document, string, string, TMatrix)

public static Tuple<int, int> GetNodeCountFromAMFile(Document doc, string strGeometryAMFilePath, string strForceAMFilePath, TMatrix transform)

Parameters

doc Document

strGeometryAMFilePath string

strForceAMFilePath string

transform TMatrix

Returns

Tuple<int, int>

GetNodeCountFromUNVFile(Document, string, TMatrix)

Get node count from UNV file.

public static int GetNodeCountFromUNVFile(Document document, string forceUNVFilePath, TMatrix transform)

Parameters

document Document

The document.

forceUNVFilePath string

The force UNV file.

transform TMatrix

The transform.

Returns

int

GetNodeCountFromUNVFile(Document, string, string, TMatrix)

Get node count from UNV file.

public static int GetNodeCountFromUNVFile(Document doc, string strGeometryUNVFilePath, string strForceUNVFilePath, TMatrix transform)

Parameters

doc Document

The document.

strGeometryUNVFilePath string

The geometry UNV file.

strForceUNVFilePath string

The force UNV file.

transform TMatrix

The transform.

Returns

int

GetRotorPosition(Document, string, int, int)

Gets rotor position

public Vector GetRotorPosition(Document doc, string strResultFile, int nIndexRotor, int nTotalRotor)

Parameters

doc Document

The document

strResultFile string

The result file

nIndexRotor int

The rotor index

nTotalRotor int

The total rotor number

Returns

Vector

GetRotorPosition(Document, string, TMatrix, int, int)

Gets rotor position

public static Vector GetRotorPosition(Document doc, string strResultFile, TMatrix matRef, int nIndexRotor, int nTotalRotor)

Parameters

doc Document

The document

strResultFile string

The result file

matRef TMatrix

The reference matrix

nIndexRotor int

The rotor index

nTotalRotor int

The total rotor number

Returns

Vector

Initialize(ConvertFactor)

Initializes member through unit convert factor.

public override void Initialize(Unit.ConvertFactor factor)

Parameters

factor Unit.ConvertFactor

The unit convert factor.

OnDeserialization(object)

Called when [deserialization].

protected override void OnDeserialization(object sender)

Parameters

sender object

The sender.

ReadAMGeometryAndForceFile(Document, string, string, TMatrix, out Dictionary<VectorBase, VectorBase>, out Dictionary<VectorBase, VectorBase>)

Read AM geometry and force file

public static void ReadAMGeometryAndForceFile(Document doc, string strGeometryAMFilePath, string strForceAMFilePath, TMatrix transform, out Dictionary<VectorBase, VectorBase> startToEndPointStator, out Dictionary<VectorBase, VectorBase> startToEndPointRotor)

Parameters

doc Document

The document.

strGeometryAMFilePath string

The AM geometry file path

strForceAMFilePath string

The AM force file path

transform TMatrix

The transform

startToEndPointStator Dictionary<VectorBase, VectorBase>

The stator start and end point container.

startToEndPointRotor Dictionary<VectorBase, VectorBase>

The rotor start and end point container.

ReadResultAMFile(Document, string, out MaxwellResultInformation)

Read result AM file

public static void ReadResultAMFile(Document doc, string strResultAMFilePath, out PropertyMotorEMForce.MaxwellResultInformation maxwellResultInformation)

Parameters

doc Document

The document.

strResultAMFilePath string

The force file path.

maxwellResultInformation PropertyMotorEMForce.MaxwellResultInformation

The maxwell result information.

ReadUNVFile(Document, IEnumerable<string>, TMatrix)

Read UNV files

public static IEnumerable<Dictionary<VectorBase, VectorBase>> ReadUNVFile(Document document, IEnumerable<string> filesPath, TMatrix transform)

Parameters

document Document

The document.

filesPath IEnumerable<string>

The force UNV files.

transform TMatrix

The transform.

Returns

IEnumerable<Dictionary<VectorBase, VectorBase>>

ReadUNVFile(Document, string, string[], TMatrix, out Dictionary<VectorBase, VectorBase>[])

Read UNV files

public static void ReadUNVFile(Document doc, string strGeometryUNVFilePath, string[] arForceUNVFilePath, TMatrix transform, out Dictionary<VectorBase, VectorBase>[] startToEndPoint)

Parameters

doc Document

The document.

strGeometryUNVFilePath string

The geometry UNV file.

arForceUNVFilePath string[]

The force UNV files.

transform TMatrix

The transform.

startToEndPoint Dictionary<VectorBase, VectorBase>[]

The start and end point container.

Connect with Ansys