2023-02-26 14:39:55 +00:00
|
|
|
using static DecimalMath.DecimalEx;
|
|
|
|
|
2023-02-26 09:38:28 +00:00
|
|
|
namespace InnovEnergy.Lib.Units.Composite;
|
|
|
|
|
2023-04-04 08:23:29 +00:00
|
|
|
|
|
|
|
#pragma warning disable CS8618
|
|
|
|
|
2023-03-01 09:52:21 +00:00
|
|
|
public record Ac3Bus
|
2023-02-26 09:38:28 +00:00
|
|
|
{
|
2023-04-04 08:23:29 +00:00
|
|
|
public AcPhase L1 { get; init; }
|
|
|
|
public AcPhase L2 { get; init; }
|
|
|
|
public AcPhase L3 { get; init; }
|
|
|
|
public Frequency Frequency { get; init; }
|
2023-03-01 07:05:57 +00:00
|
|
|
|
2023-02-26 14:39:55 +00:00
|
|
|
public ApparentPower ApparentPower => L1.ApparentPower + L2.ApparentPower + L3.ApparentPower;
|
|
|
|
public ReactivePower ReactivePower => L1.ReactivePower + L2.ReactivePower + L3.ReactivePower;
|
|
|
|
public Power ActivePower => L1.ActivePower + L2.ActivePower + L3.ActivePower;
|
2023-03-01 07:05:57 +00:00
|
|
|
public Angle Phi => ATan2(ReactivePower, ActivePower);
|
2023-02-26 09:38:28 +00:00
|
|
|
}
|