2023-02-26 18:19:16 +00:00
|
|
|
|
2023-02-26 09:38:28 +00:00
|
|
|
namespace InnovEnergy.Lib.Units.Composite;
|
|
|
|
|
2023-05-24 10:04:01 +00:00
|
|
|
public record Ac1Bus : AcPhase
|
2023-02-26 18:19:16 +00:00
|
|
|
{
|
2023-05-24 10:04:01 +00:00
|
|
|
protected Ac1Bus() {}
|
|
|
|
|
|
|
|
public Frequency Frequency { get; protected init; }
|
2023-02-26 18:19:16 +00:00
|
|
|
|
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-05-24 10:04:01 +00:00
|
|
|
};
|
2023-04-25 09:27:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|