public static Power operator /(MassFlow massFlow, BrakeSpecificFuelConsumption bsfc) { return(Power.FromWatts(massFlow.KilogramsPerSecond / bsfc.KilogramsPerJoule)); }
/// <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))); }
/// <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))); }
/// <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)); }