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

@ -20,15 +20,8 @@ public class Config //TODO: let IE choose from config files (Json) and connect t
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 ReferenceDcLinkVoltageFromAcDc { 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 MaxBatteryChargingCurrent { get; set; }
public required Double MaxBatteryDischargingCurrent { get; set; } public required Double MaxBatteryDischargingCurrent { 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,