> ## 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 CalculatePowerFlow

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

Calculate Power Flow

```csharp theme={null}
public class CalculatePowerFlow
```

#### Inheritance

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

#### Extension Methods

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

## Constructors

### CalculatePowerFlow()

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

## Methods

### CalculateInputPower(SimulationType, double\[], double, string)

Calculates the input power.

```csharp theme={null}
public static double[] CalculateInputPower(PowerFlow.SimulationType type, double[] arRPM, double dPower, string strPowerPath)
```

#### Parameters

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

The type.

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

The ar RPM.

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

The d power.

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

The string power path.

#### Returns

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

### CalculateOutputSpeed(double\[], double)

Calculates the output speed.

```csharp theme={null}
public static double[] CalculateOutputSpeed(double[] arInputSpeed, double dReductionRatio)
```

#### Parameters

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

The ar input speed.

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

The d reduction ratio.

#### Returns

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

### CalculateRPM(SimulationType, double, double, double, double, string, double, double, ref double\[], ref double\[])

Calculates the RPM.

```csharp theme={null}
public static bool CalculateRPM(PowerFlow.SimulationType type, double dInterpol, double dSign, double dStartSpeed, double dEndSpeed, string strUIInputSpeedPath, double dDuration, double dEndTime, ref double[] arRPM, ref double[] arTime)
```

#### Parameters

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

The type.

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

The d interpol.

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

The d sign.

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

The d start speed.

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

The d end speed.

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

The string UI input speed path.

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

Duration of the d.

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

The d end time.

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

The ar RPM.

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

The ar time.

#### Returns

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

### CalculateReductionRatio(IHasPowerLoad, IHasPowerLoad, GearPair\[], ref double, ref bool)

Calculates the reduction ratio.

```csharp theme={null}
public static double CalculateReductionRatio(IHasPowerLoad inputSS, IHasPowerLoad outputSS, GearPair[] arGearPair, ref double dSign, ref bool ContainsPlanetary)
```

#### Parameters

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

The input ss.

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

The output ss.

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

The ar gear pair.

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

The d sign.

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

ContainsPlanetary

#### Returns

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

### CalculateTorque(double, double, double, double\[], double\[], double\[], double, double)

Calculates the torque.

```csharp theme={null}
public static List<double[]> CalculateTorque(double dSplit, double dEfficiency, double dSign, double[] arInputSpeed, double[] arInputPower, double[] arTime, double dReductionRatio, double dMaxTorque)
```

#### Parameters

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

The d split.

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

The d efficiency.

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

The d sign.

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

The ar output speed.

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

The ar input power.

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

The ar time.

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

The reduction ratio.

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

The Max Torque.

#### Returns

[List](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1)\<[double](https://learn.microsoft.com/dotnet/api/system.double)\[]>

### CalculateTorqueForUserInput(string, double)

Calculates the torque for user input.

```csharp theme={null}
public static List<double[]> CalculateTorqueForUserInput(string strTorquePath, double dSign)
```

#### Parameters

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

The string torque path.

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

The d sign.

#### Returns

[List](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1)\<[double](https://learn.microsoft.com/dotnet/api/system.double)\[]>

### IsNumeric(string\[])

Determines whether the specified number string is numeric.

```csharp theme={null}
protected static bool IsNumeric(string[] numStr)
```

#### Parameters

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

The number string.

#### Returns

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

### IsNumeric(string)

Determines whether the specified number string is numeric.

```csharp theme={null}
protected static bool IsNumeric(string numStr)
```

#### Parameters

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

The number string.

#### Returns

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

#### Exceptions

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

### LoadPointDataFile(string)

Loads the point data file.

```csharp theme={null}
public static List<double[]> LoadPointDataFile(string strFilePath)
```

#### Parameters

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

The string file path.

#### Returns

[List](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1)\<[double](https://learn.microsoft.com/dotnet/api/system.double)\[]>
