Add Dc Bus Voltage info in the Config.cs

This commit is contained in:
atef 2023-09-07 17:23:48 +02:00
parent 31ad48e77e
commit 9510d0b47e
1 changed files with 79 additions and 29 deletions

View File

@ -14,23 +14,16 @@ public class Config //TODO: let IE choose from config files (Json) and connect t
private static readonly JsonSerializerOptions JsonOptions = new() { WriteIndented = true }; private static readonly JsonSerializerOptions JsonOptions = new() { WriteIndented = true };
public required Double MinSoc { get; set; } public required Double MinSoc { get; set; }
public required UnixTime LastEoc { get; set; } public required UnixTime LastEoc { get; set; }
public required Double PConstant { get; set; } public required Double PConstant { get; set; }
public required Double GridSetPoint { get; set; } public required Double GridSetPoint { get; set; }
public required Double BatterySelfDischargePower { get; set; } public required Double BatterySelfDischargePower { get; set; }
public required Double HoldSocZone { get; set; } public required Double HoldSocZone { get; set; }
public required DevicesConfig IslandMode { get; set; }
public required Double MaxDcLinkVoltageFromAcDc { get; set; } public required DevicesConfig GridTie { get; set; }
public required Double MinDcLinkVoltageFromAcDc { get; set; } public required Double MaxBatteryChargingCurrent { get; set; }
public required Double ReferenceDcLinkVoltageFromAcDc { get; set; } public required Double MaxBatteryDischargingCurrent { get; set; }
public required Double LowerDcLinkVoltageFromDc { get; set; }
public required Double ReferenceDcLinkVoltageFromDc { get; set; }
public required Double UpperDcLinkVoltageFromDc { get; set; }
public required Double MaxBatteryChargingCurrent { get; set; }
public required Double MaxBatteryDischargingCurrent { get; set; }
public required Double MaxChargeBatteryVoltage { get; set; } public required Double MaxChargeBatteryVoltage { get; set; }
public required Double MinDischargeBatteryVoltage { get; set; } public required Double MinDischargeBatteryVoltage { get; set; }
@ -49,12 +42,40 @@ public class Config //TODO: let IE choose from config files (Json) and connect t
GridSetPoint = 0, GridSetPoint = 0,
BatterySelfDischargePower = 200, BatterySelfDischargePower = 200,
HoldSocZone = 1, // TODO: find better name, HoldSocZone = 1, // TODO: find better name,
MinDcLinkVoltageFromAcDc = 690, IslandMode = new()
ReferenceDcLinkVoltageFromAcDc = 750, {
MaxDcLinkVoltageFromAcDc = 810, AcDc = new ()
LowerDcLinkVoltageFromDc = 50, {
ReferenceDcLinkVoltageFromDc = 750, MinDcLinkVoltage = 690,
UpperDcLinkVoltageFromDc = 50, ReferenceDcLinkVoltage = 750,
MaxDcLinkVoltage = 810,
},
DcDc = new ()
{
UpperDcLinkVoltage = 50,
LowerDcLinkVoltage = 50,
ReferenceDcLinkVoltage = 750,
},
},
GridTie = new()
{
AcDc = new ()
{
MinDcLinkVoltage = 720,
ReferenceDcLinkVoltage = 750,
MaxDcLinkVoltage = 810,
},
DcDc = new ()
{
UpperDcLinkVoltage = 50,
LowerDcLinkVoltage = 50,
ReferenceDcLinkVoltage = 750,
},
},
MaxBatteryChargingCurrent = 210, MaxBatteryChargingCurrent = 210,
MaxBatteryDischargingCurrent = 210, MaxBatteryDischargingCurrent = 210,
MaxChargeBatteryVoltage = 57, MaxChargeBatteryVoltage = 57,
@ -81,12 +102,41 @@ public class Config //TODO: let IE choose from config files (Json) and connect t
GridSetPoint = 0, GridSetPoint = 0,
BatterySelfDischargePower = 200, BatterySelfDischargePower = 200,
HoldSocZone = 1, // TODO: find better name, HoldSocZone = 1, // TODO: find better name,
MinDcLinkVoltageFromAcDc = 690, IslandMode = new()
ReferenceDcLinkVoltageFromAcDc = 750, {
MaxDcLinkVoltageFromAcDc = 810, AcDc = new ()
LowerDcLinkVoltageFromDc = 50, {
ReferenceDcLinkVoltageFromDc = 750, MinDcLinkVoltage = 690,
UpperDcLinkVoltageFromDc = 50, ReferenceDcLinkVoltage = 750,
MaxDcLinkVoltage = 810,
},
DcDc = new ()
{
UpperDcLinkVoltage = 50,
LowerDcLinkVoltage = 50,
ReferenceDcLinkVoltage = 750,
},
},
GridTie = new()
{
AcDc = new ()
{
MinDcLinkVoltage = 720,
ReferenceDcLinkVoltage = 750,
MaxDcLinkVoltage = 780,
},
DcDc = new ()
{
UpperDcLinkVoltage = 20,
LowerDcLinkVoltage = 20,
ReferenceDcLinkVoltage = 750,
},
},
MaxBatteryChargingCurrent = 210, MaxBatteryChargingCurrent = 210,
MaxBatteryDischargingCurrent = 210, MaxBatteryDischargingCurrent = 210,
MaxChargeBatteryVoltage = 57, MaxChargeBatteryVoltage = 57,