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

15 lines
329 B
C#

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