How to prevent grid charging when using TrackChargeDischargeSchedules in ElectricLoadCenter:Distribution?

Hi there,

I know it is a bit off-topic for this forum. However, maybe somebody can shed light to the challenge.

I have implemented a large-scale photovoltaic (PV) system with battery storage and defined specific schedules for charging and discharging. A relevant portion of the IDF file is provided below.

Thank you very much for your time and assistance. From the documentation and prior discussions, I understand that enabling scheduled battery charging and discharging requires using TrackChargeDischargeSchedules as the Storage Operation Scheme in the ElectricLoadCenter:Distribution object.

However, the issue I am encountering is that TrackChargeDischargeSchedules appears to allow the battery to charge using electricity from the grid, which is not my objective.

In my case, the battery capacity is relatively large. On sunny days, the battery can be fully charged during the scheduled period using PV generation alone. However, I would like to avoid any charging from the grid. If PV production is insufficient (e.g., on cloudy days), I prefer the battery to remain partially charged rather than drawing electricity from the grid.

I would greatly appreciate any guidance on how to configure the system so that the battery follows the specified charging and discharging schedules while being charged exclusively from on-site renewable generation (e.g., PV), without importing electricity from the grid.

Schedule:Compact, ALWAYS_ON, !- Name On/Off, !- Schedule Type Limits Name Through: 12/31, !- Field 1 For: AllDays, !- Field 2 Until: 24:00,1; !- Field 3

ElectricLoadCenter:Storage:Converter, Converter 1, !- Name ALWAYS_ON, !- Availability Schedule Name SimpleFixed, !- Power Conversion Efficiency Method 0.95, !- Simple Fixed Efficiency , !- Design Maximum Continuous Input Power {W} , !- Efficiency Function of Power Curve Name 20, !- Ancillary Power Consumed In Standby {W} , !- Zone Name 0.25; !- Radiative Fraction

ElectricLoadCenter:Storage:LiIonNMCBattery, NMC_Battery, !- Name ALWAYS_ON, !- Availability Schedule Name , !- Zone Name 0.0, !- Radiative Fraction KandlerSmith, !- Lifetime Model 13, !- Number of Cells in Series 80, !- Number of Strings in Parallel 0.7, !- Initial Fractional State of Charge , !- DC to DC Charging Efficiency 80, !- Battery Mass {kg} 10, !- Battery Surface Area {m2} 0.95, !- Maximum Storage State of Charge Fraction 0.20; !- Minimum Storage State of Charge Fraction

ElectricLoadCenter:Inverter:LookUpTable, Electric Load Center Inverter Simple 1, !- Name ALWAYS_ON, !- Availability Schedule Name , !- Zone Name 0.25, !- Radiative Fraction 14000, !- Rated Maximum Continuous Output Power {W} 200.0, !- Night Tare Loss Power {W} 368, !- Nominal Voltage Input {V} 0.839, !- Efficiency at 10% Power and Nominal Voltage 0.897, !- Efficiency at 20% Power and Nominal Voltage 0.916, !- Efficiency at 30% Power and Nominal Voltage 0.931, !- Efficiency at 50% Power and Nominal Voltage 0.934, !- Efficiency at 75% Power and Nominal Voltage 0.930; !- Efficiency at 100% Power and Nominal Voltage

ScheduleTypeLimits, Fraction, !- Name 0.0, !- Lower Limit Value 1.0, !- Upper Limit Value CONTINUOUS; !- Numeric Type

Schedule:Compact, Charge Schedule, !- Name Fraction, !- Schedule Type Limits Name Through: 12/31, !- Field 1 For: AllDays, !- Field 2 Until: 10:00,0.0, !- Field 3 Until: 14:00,1.0, !- Field 5 Until: 24:00,0.0; !- Field 5

Schedule:Compact, Discharge Schedule, !- Name Fraction, !- Schedule Type Limits Name Through: 12/31, !- Field 1 For: AllDays, !- Field 2 Until: 17:00,0.0, !- Field 3 Until: 24:00,1.0; !- Field 5

ElectricLoadCenter:Distribution, Model Load Center Distribution 1, !- Name Electric Load Center Distribution 1 Generators, !- Generator List Name Baseload, !- Generator Operation Scheme Type 0, !- Generator Demand Limit Scheme Purchased Electric Demand Limit {W} , !- Generator Track Schedule Name Scheme Schedule Name , !- Generator Track Meter Scheme Meter Name DirectCurrentWithInverterDCStorage, !- Electrical Buss Type Electric Load Center Inverter Simple 1, !- Inverter Name NMC_Battery, !- Electrical Storage Object Name , !- Transformer Object Name TrackChargeDischargeSchedules, !- Storage Operation Scheme , !- Storage Control Track Meter Name Converter 1, !- Storage Converter Object Name 0.96, !- Maximum Storage State of Charge Fraction 0.04, !- Minimum Storage State of Charge Fraction 5000, !- Design Storage Control Charge Power {W} Charge Schedule, !- Storage Charge Power Fraction Schedule Name 5000, !- Design Storage Control Discharge Power {W} Discharge Schedule, !- Storage Discharge Power Fraction Schedule Name , !- Storage Control Utility Demand Target {W} ; !- Storage Control Utility Demand Target Fraction Schedule Name

Sincerely,
Behnam Mohseni Gharyehsafa
Ireland