Skip to main content

Motion Standalone Preprocessor C# library 2025 R1

Class PowerFlow

Last update: 16.07.2025

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

Power Flow

public class PowerFlow : LinkContainer, IObservableObject, IDisposableObject, ILinkable, IObject, ILinkContainer, IOwned, IHasID, IEventProvider, ILinkContainerEvent, IVerifiable

Inheritance

object ← ObservableObject ← LinkableBase ← LinkContainer ← PowerFlow

Implements

IObservableObject, IDisposableObject, ILinkable, IObject, ILinkContainer, IOwned, IHasID, IEventProvider, ILinkContainerEvent, IVerifiable

Inherited Members

LinkContainer.SetModified(), LinkContainer.raise_OnUpdating(object, LinkEventArgs), LinkContainer.raise_OnUpdate(object, LinkEventArgs), LinkContainer.raise_OnDestroying(object, LinkEventArgs), LinkContainer.raise_OnDestroy(object, LinkEventArgs), LinkContainer.raise_OnAdded(object, AddToDocEventArgs), LinkContainer.raise_OnRemoved(object, RemoveFromDocEventArgs), LinkContainer.GetTargetListForUpdate(), LinkContainer.SkipUpdateObjectImpl(), LinkContainer.Initialize(Unit.ConvertFactor), LinkContainer.SetFlagWhenXMLFile(string, bool), LinkContainer.IsSerializableEvent(Delegate), LinkContainer.CustomGetObjectData(SerializationInfo, StreamingContext), LinkContainer.GetSerializedData(SerializationInfo, StreamingContext), LinkContainer.LinkRequestUpdating(object, LinkEventArgs), LinkContainer.LinkRequestUpdate(object, LinkEventArgs), LinkContainer.LinkRequestDestroying(object, LinkEventArgs), LinkContainer.LinkRequestDestroy(object, LinkEventArgs), LinkContainer.LinkAddedToDocument(object, AddToDocEventArgs), LinkContainer.LinkRemovedFromDocument(object, RemoveFromDocEventArgs), LinkContainer.OnLinkReserved(ILink, object, EventArgs), LinkContainer.CanBeDestroy(object), LinkContainer.DisposeManagedResources(), LinkContainer.SetContainer(IOwned, bool), LinkContainer.OnChildUpdated(object, LinkEventArgs), LinkContainer.OnContainerDestroy(object, LinkEventArgs), LinkContainer.OnDeserialization(object), LinkContainer.Verify(VerifiedResult), LinkContainer.GetCopy(object), LinkContainer.Dispose(bool), LinkContainer.ClearChildInfoBeforeDeserialize, LinkContainer.Container, LinkContainer.Owner, LinkContainer.Document, LinkContainer.ID, LinkContainer.IsChildExternable, LinkContainer.IsExternable, LinkContainer.OnRemoved, LinkContainer.OnAdded, LinkContainer.OnDestroy, LinkContainer.OnDestroying, LinkContainer.OnUpdate, LinkContainer.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(object, LinkPropertyType)

Constructors

PowerFlow()

Initializes a new instance of the class.

public PowerFlow()

PowerFlow(IOwned)

Initializes a new instance of the class.

public PowerFlow(IOwned owner)

Parameters

owner IOwned

The owner object.

Properties

DurationValue

Gets or sets the duration.

public double DurationValue { get; set; }

Property Value

double

EndTimeValue

Gets or sets the end time.

public double EndTimeValue { get; set; }

Property Value

double

GearPairs

Gets or sets the gear sets.

public GearPair[] GearPairs { get; set; }

Property Value

GearPair[]

Exceptions

Exception

GearSet list is null. or GearSet list is null. or GearSet is null.

InputEndSpeedValue

Gets or sets the input end speed.

public double InputEndSpeedValue { get; set; }

Property Value

double

InputPowerFilePath

Gets or sets the input power path.

public string InputPowerFilePath { get; set; }

Property Value

string

InputPowerValue

Gets or sets the input power.

public double InputPowerValue { get; set; }

Property Value

double

InputShaftSet

Gets or sets the input shaft set.

public IHasPowerLoad InputShaftSet { get; set; }

Property Value

IHasPowerLoad

InputShaftSetInfos

Gets or sets the input shaft set information.

public InputShaftSetInfo[] InputShaftSetInfos { get; set; }

Property Value

InputShaftSetInfo[]

Exceptions

Exception

InputShaftSetInfo list is null. or InputShaftSetInfo list is null. or InputShaftSetInfo is null.

InputSpeedFilePath

Gets or sets the input speed path.

public string InputSpeedFilePath { get; set; }

Property Value

string

InputStartSpeedValue

Gets or sets the input start speed.

public double InputStartSpeedValue { get; set; }

Property Value

double

IsExternable

Gets a value indicating whether this instance is Externable.

public override bool IsExternable { get; }

Property Value

bool

IsUseCW

Gets or sets a value indicating whether this instance is cw.

public bool IsUseCW { get; set; }

Property Value

bool

MaxTorqueValue

Gets or sets the max torque.

public double MaxTorqueValue { get; set; }

Property Value

double

NameOfResult

Gets or sets the name of the result.

public string NameOfResult { get; set; }

Property Value

string

NumberOfInterpolation

Gets or sets the number of interpolation.

public double NumberOfInterpolation { get; set; }

Property Value

double

OutputShaftSetInfos

Gets or sets the output shaft set information.

public OutputShaftSetInfo[] OutputShaftSetInfos { get; set; }

Property Value

OutputShaftSetInfo[]

Exceptions

Exception

OutputShaftSetInfo list is null. or OutputShaftSetInfo list is null. or OutputShaftSetInfo is null.

SamplingFrequencyValue

Gets or sets the sampling frequency.

public uint SamplingFrequencyValue { get; set; }

Property Value

uint

TMScenarioFile

Gets or sets the TM scenario file.

public string TMScenarioFile { get; set; }

Property Value

string

TypeOfSimulation

Gets or sets the type.

public PowerFlow.SimulationType TypeOfSimulation { get; set; }

Property Value

PowerFlow.SimulationType

UsableOutputShaftSetInfos

Gets the usable output shaftset information

public OutputShaftSetInfo[] UsableOutputShaftSetInfos { get; }

Property Value

OutputShaftSetInfo[]

VehicleSimulatorResultFile

Gets or sets the vehicle simulator result file.

public string VehicleSimulatorResultFile { get; set; }

Property Value

string

_InputShaftSet

Gets or sets the _ input shaft set.

public Linker<ihaspowerload> _InputShaftSet { get; set; }

Property Value

LinkerIHasPowerLoad&gt;

Methods

AddGearSetForPair(GearPair)

Adds the gear set for pair.

public void AddGearSetForPair(GearPair gp)

Parameters

gp GearPair

The gp.

AddInputShaftSetInfo(IHasPowerLoad)

Add to input shaft set information.

public InputShaftSetInfo AddInputShaftSetInfo(IHasPowerLoad ss)

Parameters

ss IHasPowerLoad

The input shaft set.

Returns

InputShaftSetInfo

AddOutputShaftSetInfo(IHasPowerLoad)

Add to output shaft set information.

public OutputShaftSetInfo AddOutputShaftSetInfo(IHasPowerLoad ss)

Parameters

ss IHasPowerLoad

The output shaft set.

Returns

OutputShaftSetInfo

ClearInput()

Clears input data.

public void ClearInput()

ClearOutput()

Clears output data.

public void ClearOutput()

GetInputSplineValue(Document3D, (string, SplineValue)[], string)

public static SplineValue GetInputSplineValue(Document3D doc, (string, SplineValue)[] splineTuple, string strShaftSet)

Parameters

doc Document3D

splineTuple (string, SplineValue)[]

strShaftSet string

Returns

SplineValue

GetOutputSplineValue(Document3D, (string, SplineValue)[], string)

public static SplineValue GetOutputSplineValue(Document3D doc, (string, SplineValue)[] splineTuple, string strShaftSet)

Parameters

doc Document3D

splineTuple (string, SplineValue)[]

strShaftSet string

Returns

SplineValue

GetSplineValueFromResultFile(string)

Gets spline value from TM scenario file.

public static (string, SplineValue)[] GetSplineValueFromResultFile(string strResultScenarioFile)

Parameters

strResultScenarioFile string

Returns

(string, SplineValue)[]

GetSplineValueWithPowerLoad((string, SplineValue)[], string)

Gets the spline value with power load

public static SplineValue GetSplineValueWithPowerLoad((string, SplineValue)[] splineTuple, string strPowerLoad)

Parameters

splineTuple (string, SplineValue)[]

The spline tuple

strPowerLoad string

The power load name

Returns

SplineValue

OnDeserialization(object)

Called when [deserialization].

protected override void OnDeserialization(object sender)

Parameters

sender object

The sender.

Remove(IHasPowerLoad, PowerLoad)

Removes the power load information.

public void Remove(IHasPowerLoad ss, PowerLoad pl)

Parameters

ss IHasPowerLoad

The shaftset.

pl PowerLoad

The power load.

RemoveGearSetForPair(GeometryInfoBase)

Removes the gear set for pair.

public void RemoveGearSetForPair(GeometryInfoBase geometryInfoBase)

Parameters

geometryInfoBase GeometryInfoBase

The geometry info

RemoveInputShaftSetInfo(InputShaftSetInfo)

Removes the input shaft set information.

public void RemoveInputShaftSetInfo(InputShaftSetInfo info)

Parameters

info InputShaftSetInfo

The information.

RemoveOutputShaftSetInfo(OutputShaftSetInfo)

Removes the output shaft set information.

public void RemoveOutputShaftSetInfo(OutputShaftSetInfo info)

Parameters

info OutputShaftSetInfo

The information.

Connect with Ansys