2023-03-01 09:52:21 +00:00
|
|
|
namespace InnovEnergy.Lib.Units.Composite;
|
|
|
|
|
2023-04-25 09:27:57 +00:00
|
|
|
public class DcBus : Bus
|
2023-03-01 09:52:21 +00:00
|
|
|
{
|
2023-04-25 09:27:57 +00:00
|
|
|
public Double Power { get; internal init; }
|
|
|
|
|
|
|
|
public static DcBus FromVoltageCurrent(Double voltage, Double current) => new()
|
|
|
|
{
|
|
|
|
Voltage = voltage,
|
|
|
|
Current = current,
|
|
|
|
Power = current * voltage,
|
|
|
|
};
|
2023-03-01 09:52:21 +00:00
|
|
|
}
|