15 lines
345 B
C#
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,
|
|
};
|
|
} |