15 lines
381 B
C#
15 lines
381 B
C#
namespace InnovEnergy.Lib.Units.Composite;
|
|
|
|
public record DcPhase(Voltage Voltage, Current Current) : Phase(Voltage, Current)
|
|
{
|
|
public Power Power => Current * Voltage;
|
|
|
|
public static DcPhase operator +(DcPhase left, DcPhase right)
|
|
{
|
|
var v = (left.Voltage + right.Voltage) / 2m;
|
|
var i = left.Current + right.Current;
|
|
|
|
return new DcPhase(v, i);
|
|
}
|
|
|
|
} |