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

15 lines
329 B
C#
Raw Normal View History

2023-03-01 09:52:21 +00:00
namespace InnovEnergy.Lib.Units.Composite;
public class DcBus : Bus
2023-03-01 09:52:21 +00:00
{
2023-05-04 07:36:30 +00:00
private DcBus() {}
2023-05-04 07:36:30 +00:00
public ActivePower Power { get; internal init; }
public static DcBus FromVoltageCurrent(Voltage voltage, Current current) => new()
{
Voltage = voltage,
Current = current,
Power = current * voltage,
};
2023-03-01 09:52:21 +00:00
}