Пример #1
0
 public static Power operator /(MassFlow massFlow, BrakeSpecificFuelConsumption bsfc)
 {
     return(Power.FromWatts(massFlow.KilogramsPerSecond / bsfc.KilogramsPerJoule));
 }
Пример #2
0
 /// <summary>
 ///     Gets a <see cref="Power" /> from this <see cref="PowerRatio" /> (which is a power level relative to one watt).
 /// </summary>
 /// <remarks>
 ///     Provides a nicer syntax for converting a power ratio back to a power.
 ///     <example>
 ///         <c>var power = powerRatio.ToPower();</c>
 ///     </example>
 /// </remarks>
 public Power ToPower()
 {
     // P(W) = 1W * 10^(P(dBW)/10)
     return(Power.FromWatts(Math.Pow(10, DecibelWatts / 10)));
 }
Пример #3
0
 /// <summary>
 ///     Gets a <see cref="Power" /> from a <see cref="PowerRatio" /> (which is a power level relative to one watt).
 /// </summary>
 /// <param name="powerRatio">The power level relative to one watt.</param>
 public static Power ToPower(PowerRatio powerRatio)
 {
     // P(W) = 1W * 10^(P(dBW)/10)
     return(Power.FromWatts(Math.Pow(10, powerRatio._decibelWatts / 10)));
 }
Пример #4
0
 /// <summary>Get <see cref="Power"/> from <see cref="Speed"/> times <see cref="Force"/>.</summary>
 public static Power operator *(Speed speed, Force force)
 {
     return(Power.FromWatts(force.Newtons * speed.MetersPerSecond));
 }