2023-02-26 09:38:28 +00:00
|
|
|
namespace InnovEnergy.Lib.Units.Composite;
|
|
|
|
|
2023-06-13 11:03:49 +00:00
|
|
|
public sealed class Ac1Bus
|
2023-02-26 18:19:16 +00:00
|
|
|
{
|
2023-06-13 11:03:49 +00:00
|
|
|
private Ac1Bus()
|
|
|
|
{}
|
2023-02-26 18:19:16 +00:00
|
|
|
|
2023-06-27 11:14:17 +00:00
|
|
|
public required Voltage Voltage { get; init; }
|
|
|
|
public required Current Current { get; init; }
|
|
|
|
public required AcPower Power { get; init; }
|
|
|
|
public required Frequency Frequency { get; init; }
|
2023-04-25 09:27:57 +00:00
|
|
|
|
|
|
|
public static Ac1Bus FromVoltageCurrentFrequencyPhi(Double voltageRms,
|
|
|
|
Double currentRms,
|
|
|
|
Double frequency,
|
|
|
|
Double phi) => new()
|
|
|
|
{
|
|
|
|
Frequency = frequency,
|
|
|
|
Current = currentRms,
|
|
|
|
Voltage = voltageRms,
|
|
|
|
Power = AcPower.FromVoltageCurrentPhi(voltageRms, currentRms, phi)
|
2023-06-13 11:03:49 +00:00
|
|
|
};
|
2023-04-25 09:27:57 +00:00
|
|
|
|
2023-06-22 08:13:21 +00:00
|
|
|
public static Ac1Bus Null => FromVoltageCurrentFrequencyPhi(0, 0, 0, 0);
|
2023-06-13 11:03:49 +00:00
|
|
|
}
|