Class CalculatePowerFlow
Last update: 16.07.2025Namespace: VM.Managed.DAFUL.GearTrain
Assembly: VMDGearTrain.dll
Calculate Power Flow
public class CalculatePowerFlow
Inheritance
Extension Methods
LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType), LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType), LinkPropertyItemCache.GetLinkedObjects<T>(object, LinkPropertyType)
Constructors
CalculatePowerFlow()
public CalculatePowerFlow()
Methods
CalculateInputPower(SimulationType, double[], double, string)
Calculates the input power.
public static double[] CalculateInputPower(PowerFlow.SimulationType type, double[] arRPM, double dPower, string strPowerPath)
Parameters
type PowerFlow.SimulationType
The type.
arRPM double[]
The ar RPM.
dPower double
The d power.
strPowerPath string
The string power path.
Returns
double[]
CalculateOutputSpeed(double[], double)
Calculates the output speed.
public static double[] CalculateOutputSpeed(double[] arInputSpeed, double dReductionRatio)
Parameters
arInputSpeed double[]
The ar input speed.
dReductionRatio double
The d reduction ratio.
Returns
double[]
CalculateRPM(SimulationType, double, double, double, double, string, double, double, ref double[], ref double[])
Calculates the RPM.
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.SimulationType
The type.
dInterpol double
The d interpol.
dSign double
The d sign.
dStartSpeed double
The d start speed.
dEndSpeed double
The d end speed.
strUIInputSpeedPath string
The string UI input speed path.
dDuration double
Duration of the d.
dEndTime double
The d end time.
arRPM double[]
The ar RPM.
arTime double[]
The ar time.
Returns
CalculateReductionRatio(IHasPowerLoad, IHasPowerLoad, GearPair[], ref double, ref bool)
Calculates the reduction ratio.
public static double CalculateReductionRatio(IHasPowerLoad inputSS, IHasPowerLoad outputSS, GearPair[] arGearPair, ref double dSign, ref bool ContainsPlanetary)
Parameters
inputSS IHasPowerLoad
The input ss.
outputSS IHasPowerLoad
The output ss.
arGearPair GearPair[]
The ar gear pair.
dSign double
The d sign.
ContainsPlanetary bool
ContainsPlanetary
Returns
CalculateTorque(double, double, double, double[], double[], double[], double, double)
Calculates the torque.
public static List<double[]> CalculateTorque(double dSplit, double dEfficiency, double dSign, double[] arInputSpeed, double[] arInputPower, double[] arTime, double dReductionRatio, double dMaxTorque)
Parameters
dSplit double
The d split.
dEfficiency double
The d efficiency.
dSign double
The d sign.
arInputSpeed double[]
The ar output speed.
arInputPower double[]
The ar input power.
arTime double[]
The ar time.
dReductionRatio double
The reduction ratio.
dMaxTorque double
The Max Torque.
Returns
CalculateTorqueForUserInput(string, double)
Calculates the torque for user input.
public static List<double[]> CalculateTorqueForUserInput(string strTorquePath, double dSign)
Parameters
strTorquePath string
The string torque path.
dSign double
The d sign.
Returns
IsNumeric(string[])
Determines whether the specified number string is numeric.
protected static bool IsNumeric(string[] numStr)
Parameters
numStr string[]
The number string.
Returns
IsNumeric(string)
Determines whether the specified number string is numeric.
protected static bool IsNumeric(string numStr)
Parameters
numStr string
The number string.
Returns
Exceptions
LoadPointDataFile(string)
Loads the point data file.
public static List<double[]> LoadPointDataFile(string strFilePath)
Parameters
strFilePath string
The string file path.