> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Class PowerFlow

Namespace: [VM.Managed.DAFUL.GearTrain](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.DAFUL.GearTrain)\
Assembly: VMDGearTrain.dll

Power Flow

```csharp theme={null}
public class PowerFlow : LinkContainer, IObservableObject, IDisposableObject, ILinkable, IObject, ILinkContainer, IOwned, IHasID, IEventProvider, ILinkContainerEvent, IVerifiable
```

#### Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ←
ObservableObject ←
LinkableBase ←
LinkContainer ←
[PowerFlow](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.DAFUL.GearTrain.PowerFlow.md)

#### 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)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkProperties_System_Object_VM_Models_Pre_LinkPropertyType_),
[LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkPropertiesAndValues_System_Object_VM_Models_Pre_LinkPropertyType_),
[LinkPropertyItemCache.GetLinkedObjects\<T>(object, LinkPropertyType)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkedObjects__1_System_Object_VM_Models_Pre_LinkPropertyType_)

## Constructors

### PowerFlow()

Initializes a new instance of the [PowerFlow](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.DAFUL.GearTrain.PowerFlow.md) class.

```csharp theme={null}
public PowerFlow()
```

### PowerFlow(IOwned)

Initializes a new instance of the [PowerFlow](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.DAFUL.GearTrain.PowerFlow.md) class.

```csharp theme={null}
public PowerFlow(IOwned owner)
```

#### Parameters

`owner` IOwned

The owner object.

## Properties

### DurationValue

Gets or sets the duration.

```csharp theme={null}
public double DurationValue { get; set; }
```

#### Property Value

[double](https://learn.microsoft.com/dotnet/api/system.double)

### EndTimeValue

Gets or sets the end time.

```csharp theme={null}
public double EndTimeValue { get; set; }
```

#### Property Value

[double](https://learn.microsoft.com/dotnet/api/system.double)

### GearPairs

Gets or sets the gear sets.

```csharp theme={null}
public GearPair[] GearPairs { get; set; }
```

#### Property Value

[GearPair](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.DAFUL.GearTrain.GearPair.md)\[]

#### Exceptions

[Exception](https://learn.microsoft.com/dotnet/api/system.exception)

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

### InputEndSpeedValue

Gets or sets the input end speed.

```csharp theme={null}
public double InputEndSpeedValue { get; set; }
```

#### Property Value

[double](https://learn.microsoft.com/dotnet/api/system.double)

### InputPowerFilePath

Gets or sets the input power path.

```csharp theme={null}
public string InputPowerFilePath { get; set; }
```

#### Property Value

[string](https://learn.microsoft.com/dotnet/api/system.string)

### InputPowerValue

Gets or sets the input power.

```csharp theme={null}
public double InputPowerValue { get; set; }
```

#### Property Value

[double](https://learn.microsoft.com/dotnet/api/system.double)

### InputShaftSet

Gets or sets the input shaft set.

```csharp theme={null}
public IHasPowerLoad InputShaftSet { get; set; }
```

#### Property Value

[IHasPowerLoad](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.DAFUL.GearTrain.IHasPowerLoad.md)

### InputShaftSetInfos

Gets or sets the input shaft set information.

```csharp theme={null}
public InputShaftSetInfo[] InputShaftSetInfos { get; set; }
```

#### Property Value

[InputShaftSetInfo](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.DAFUL.GearTrain.InputShaftSetInfo.md)\[]

#### Exceptions

[Exception](https://learn.microsoft.com/dotnet/api/system.exception)

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

### InputSpeedFilePath

Gets or sets the input speed path.

```csharp theme={null}
public string InputSpeedFilePath { get; set; }
```

#### Property Value

[string](https://learn.microsoft.com/dotnet/api/system.string)

### InputStartSpeedValue

Gets or sets the input start speed.

```csharp theme={null}
public double InputStartSpeedValue { get; set; }
```

#### Property Value

[double](https://learn.microsoft.com/dotnet/api/system.double)

### IsExternable

Gets a value indicating whether this instance is Externable.

```csharp theme={null}
public override bool IsExternable { get; }
```

#### Property Value

[bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### IsUseCW

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

```csharp theme={null}
public bool IsUseCW { get; set; }
```

#### Property Value

[bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### MaxTorqueValue

Gets or sets the max torque.

```csharp theme={null}
public double MaxTorqueValue { get; set; }
```

#### Property Value

[double](https://learn.microsoft.com/dotnet/api/system.double)

### NameOfResult

Gets or sets the name of the result.

```csharp theme={null}
public string NameOfResult { get; set; }
```

#### Property Value

[string](https://learn.microsoft.com/dotnet/api/system.string)

### NumberOfInterpolation

Gets or sets the number of interpolation.

```csharp theme={null}
public double NumberOfInterpolation { get; set; }
```

#### Property Value

[double](https://learn.microsoft.com/dotnet/api/system.double)

### OutputShaftSetInfos

Gets or sets the output shaft set information.

```csharp theme={null}
public OutputShaftSetInfo[] OutputShaftSetInfos { get; set; }
```

#### Property Value

[OutputShaftSetInfo](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.DAFUL.GearTrain.OutputShaftSetInfo.md)\[]

#### Exceptions

[Exception](https://learn.microsoft.com/dotnet/api/system.exception)

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

### SamplingFrequencyValue

Gets or sets the sampling frequency.

```csharp theme={null}
public uint SamplingFrequencyValue { get; set; }
```

#### Property Value

[uint](https://learn.microsoft.com/dotnet/api/system.uint32)

### TMScenarioFile

Gets or sets the TM scenario file.

```csharp theme={null}
public string TMScenarioFile { get; set; }
```

#### Property Value

[string](https://learn.microsoft.com/dotnet/api/system.string)

### TypeOfSimulation

Gets or sets the type.

```csharp theme={null}
public PowerFlow.SimulationType TypeOfSimulation { get; set; }
```

#### Property Value

[PowerFlow](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.DAFUL.GearTrain.PowerFlow.md).[SimulationType](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.DAFUL.GearTrain.PowerFlow.SimulationType.md)

### UsableOutputShaftSetInfos

Gets the usable output shaftset information

```csharp theme={null}
public OutputShaftSetInfo[] UsableOutputShaftSetInfos { get; }
```

#### Property Value

[OutputShaftSetInfo](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.DAFUL.GearTrain.OutputShaftSetInfo.md)\[]

### VehicleSimulatorResultFile

Gets or sets the vehicle simulator result file.

```csharp theme={null}
public string VehicleSimulatorResultFile { get; set; }
```

#### Property Value

[string](https://learn.microsoft.com/dotnet/api/system.string)

### \_InputShaftSet

Gets or sets the \_ input shaft set.

```csharp theme={null}
public Linker<IHasPowerLoad> _InputShaftSet { get; set; }
```

#### Property Value

Linker\<[IHasPowerLoad](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.DAFUL.GearTrain.IHasPowerLoad.md)>

## Methods

### AddGearSetForPair(GearPair)

Adds the gear set for pair.

```csharp theme={null}
public void AddGearSetForPair(GearPair gp)
```

#### Parameters

`gp` [GearPair](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.DAFUL.GearTrain.GearPair.md)

The gp.

### AddInputShaftSetInfo(IHasPowerLoad)

Add to input shaft set information.

```csharp theme={null}
public InputShaftSetInfo AddInputShaftSetInfo(IHasPowerLoad ss)
```

#### Parameters

`ss` [IHasPowerLoad](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.DAFUL.GearTrain.IHasPowerLoad.md)

The input shaft set.

#### Returns

[InputShaftSetInfo](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.DAFUL.GearTrain.InputShaftSetInfo.md)

### AddOutputShaftSetInfo(IHasPowerLoad)

Add to output shaft set information.

```csharp theme={null}
public OutputShaftSetInfo AddOutputShaftSetInfo(IHasPowerLoad ss)
```

#### Parameters

`ss` [IHasPowerLoad](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.DAFUL.GearTrain.IHasPowerLoad.md)

The output shaft set.

#### Returns

[OutputShaftSetInfo](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.DAFUL.GearTrain.OutputShaftSetInfo.md)

### ClearInput()

Clears input data.

```csharp theme={null}
public void ClearInput()
```

### ClearOutput()

Clears output data.

```csharp theme={null}
public void ClearOutput()
```

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

```csharp theme={null}
public static SplineValue GetInputSplineValue(Document3D doc, (string, SplineValue)[] splineTuple, string strShaftSet)
```

#### Parameters

`doc` Document3D

`splineTuple` ([string](https://learn.microsoft.com/dotnet/api/system.string), SplineValue)\[]

`strShaftSet` [string](https://learn.microsoft.com/dotnet/api/system.string)

#### Returns

SplineValue

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

```csharp theme={null}
public static SplineValue GetOutputSplineValue(Document3D doc, (string, SplineValue)[] splineTuple, string strShaftSet)
```

#### Parameters

`doc` Document3D

`splineTuple` ([string](https://learn.microsoft.com/dotnet/api/system.string), SplineValue)\[]

`strShaftSet` [string](https://learn.microsoft.com/dotnet/api/system.string)

#### Returns

SplineValue

### GetSplineValueFromResultFile(string)

Gets spline value from TM scenario file.

```csharp theme={null}
public static (string, SplineValue)[] GetSplineValueFromResultFile(string strResultScenarioFile)
```

#### Parameters

`strResultScenarioFile` [string](https://learn.microsoft.com/dotnet/api/system.string)

#### Returns

([string](https://learn.microsoft.com/dotnet/api/system.string), SplineValue)\[]

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

Gets the spline value with power load

```csharp theme={null}
public static SplineValue GetSplineValueWithPowerLoad((string, SplineValue)[] splineTuple, string strPowerLoad)
```

#### Parameters

`splineTuple` ([string](https://learn.microsoft.com/dotnet/api/system.string), SplineValue)\[]

The spline tuple

`strPowerLoad` [string](https://learn.microsoft.com/dotnet/api/system.string)

The power load name

#### Returns

SplineValue

### OnDeserialization(object)

Called when \[deserialization].

```csharp theme={null}
protected override void OnDeserialization(object sender)
```

#### Parameters

`sender` [object](https://learn.microsoft.com/dotnet/api/system.object)

The sender.

### Remove(IHasPowerLoad, PowerLoad)

Removes the power load information.

```csharp theme={null}
public void Remove(IHasPowerLoad ss, PowerLoad pl)
```

#### Parameters

`ss` [IHasPowerLoad](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.DAFUL.GearTrain.IHasPowerLoad.md)

The shaftset.

`pl` [PowerLoad](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.DAFUL.GearTrain.PowerLoad.md)

The power load.

### RemoveGearSetForPair(GeometryInfoBase)

Removes the gear set for pair.

```csharp theme={null}
public void RemoveGearSetForPair(GeometryInfoBase geometryInfoBase)
```

#### Parameters

`geometryInfoBase` [GeometryInfoBase](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.DAFUL.GearTrain.GeometryInfoBase.md)

The geometry info

### RemoveInputShaftSetInfo(InputShaftSetInfo)

Removes the input shaft set information.

```csharp theme={null}
public void RemoveInputShaftSetInfo(InputShaftSetInfo info)
```

#### Parameters

`info` [InputShaftSetInfo](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.DAFUL.GearTrain.InputShaftSetInfo.md)

The information.

### RemoveOutputShaftSetInfo(OutputShaftSetInfo)

Removes the output shaft set information.

```csharp theme={null}
public void RemoveOutputShaftSetInfo(OutputShaftSetInfo info)
```

#### Parameters

`info` [OutputShaftSetInfo](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.DAFUL.GearTrain.OutputShaftSetInfo.md)

The information.
