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

17 lines
342 B
C#

using InnovEnergy.Lib.Units.Power;
namespace InnovEnergy.Lib.Units.Composite;
public record DcBus
{
public required Voltage Voltage { get; init; }
public required Current Current { get; init; }
public DcPower Power => Voltage * Current;
public static DcBus Zero => new()
{
Voltage = 0,
Current = 0,
};
}