2023-06-13 11:03:49 +00:00
|
|
|
using InnovEnergy.Lib.Units.Power;
|
|
|
|
|
2023-03-01 09:52:21 +00:00
|
|
|
namespace InnovEnergy.Lib.Units.Composite;
|
|
|
|
|
2023-09-01 06:54:46 +00:00
|
|
|
public record DcBus
|
2023-03-01 09:52:21 +00:00
|
|
|
{
|
2023-08-31 12:16:09 +00:00
|
|
|
public required Voltage Voltage { get; init; }
|
|
|
|
public required Current Current { get; init; }
|
|
|
|
|
|
|
|
public DcPower Power => Voltage * Current;
|
2023-05-04 07:36:30 +00:00
|
|
|
|
2023-09-01 06:54:46 +00:00
|
|
|
public static DcBus Zero => new()
|
2023-08-31 12:16:09 +00:00
|
|
|
{
|
|
|
|
Voltage = 0,
|
|
|
|
Current = 0,
|
|
|
|
};
|
2023-03-01 09:52:21 +00:00
|
|
|
}
|