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

25 lines
657 B
C#

namespace InnovEnergy.Lib.Units.Composite;
public record Ac1Bus : AcPhase
{
protected Ac1Bus() {}
public Frequency Frequency { get; protected init; }
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)
};
}