Innovenergy_trunk/csharp/Lib/Units/Composite/DcBus.cs

15 lines
345 B
C#

namespace InnovEnergy.Lib.Units.Composite;
public record DcBus : Bus
{
protected DcBus() {}
public ActivePower Power { get; protected init; }
public static DcBus FromVoltageCurrent(Voltage voltage, Current current) => new()
{
Voltage = voltage,
Current = current,
Power = current.Value * voltage.Value,
};
}