Skip to content

Tools for estimating PV System Curtailment due to inverter tripping, VVAr Response, and VWatt Response

License

Notifications You must be signed in to change notification settings

UNSW-CEEM/Solar-Curtailment

 
 

Repository files navigation

About

This open source tool is written as part of RACE for 2030, Curtailment and Network Voltage Analysis Study (CANVAS) project. The development of the open source tool is supported by funding from Digital Grid Futures Institute (DGFI), University of New South Wales (UNSW).

This tool measures the amount of curtailed energy from a residential or commercial distributed energy resource such as distributed PV (D-PV) and/or battery energy storage system (BESS) via one of the following inverter power quality response modes (PQRM):

  1. Tripping (anti-islanding & limits for sustained operation): Inverter cease to operate during high voltage conditions.
  2. V-VAr Response: High levels of VAr absorbtion and injection limits inverter maximum real power.
  3. V-Watt Response: Inverter linearly reduces its real power output as a function of voltage conditions.

The tool uses the time-series telemetry data of:

  1. Voltage
  2. Real power (D-PV/BESS inverter)
  3. Reactive power (D-PV/BESS inverter)
  4. Global horizontal irradiance (GHI)
  5. Site information (dc and ac capacity of the inverter)

Through analysing this data, the tool aims to answer the questions below:

  1. Does the D-PV inverter trip? If so, how often?
  2. How much energy is lost due to tripping curtailment in kWh/day?
  3. Does the D-PV inverter show V-VAr response?
  4. How much energy is lost due to V-VAr curtailment in kWh/day?
  5. Does the D-PV inverter show V-Watt response?
  6. How much energy is lost due to V-Watt curtailment in kWh/day?

Getting Started

The tool runs completely in python with common libraries using Jupyter Notebook (or user's preferred integrated development environment -IDE).

For quick start,

  1. Download all the required data files and move them into your specific project folder. All the required data files are available in this link. The dataset information are available in this link.
  2. Install Solar-Curtailment package in terminal using "pip install solarcurtailment". This is then imported in the script using "from solarcurtailment import curtailment_calculation"
  3. Adopt the script in this link, and edit the file_path in accordance with the place you save the data files.

Demonstration of the tool use

Currently, the tool can only be demonstrated for D-PV systems as the BESS dataset is confidential as per the non-disclosure agreement (NDA) between project partners. The authors are working to obtain BESS data samples that can be used for the demonstration of the tool.

Input

For a specific date and site, main time-series inputs are: a) D-PV energy and power data, b) D-PV reactive power data, c) Voltage d) Duration of each time-stamp e) Global Horizontal Irrandiance (GHI) data

Sample images demonstrate the required format of D-PV and GHI data can be seen via the images below: image

GHI Data for a certain date (we showed only the relevant column):
image

Other relevant input files are:

  1. Anonomyzed site and connection id for the site extracted from: UniqueCids.csv, consisting of c_id and site_id list for all sites
  2. Connection id details: details_c_id.csv, consisting the detail of the circuit
  3. Site id details: details_site_id.csv, consisting the detail of the site.

Please refer to 'solar curtailment dataset information.docx' under the documentations folder for more information on the required dataset and format.

Once the input data is ready, the tool produces 4 main outputs:

Output 1. Summary Table

Output 1
This summary table shows whether the date is a clear sky day or not, total energy generated in that day, how much is the expected energy generated without curtailment, estimation method used to calculate the expected energy generation, and most importantly:

  1. Tripping response and the associated tripping curtailment
  2. V-VAr response and the associated V-VAr curtailment
  3. V-Watt response and the associated V-Watt curtailment

To illustrate the results from the summary table, we visualize the data into 3 plots as below:

Output 2. GHI Plot

Output 1

This GHI plot shows the irradiance of a certain day.

Output 3. Scatter plot of real power, reactive power, and power factor vs voltage

Output 3
The real power and reactive power is normalized by the Volt-Amp (VA) rating of the inverter, so the maximum value is 1.

For a site with V-VAr response, inverter is expected to absorb/inject VAR according to it's respective V-VAr curve (AS/NZS 4777.2 2015 or 2020).

For a site with V-Watt response, we expect real power to reduce linearly as the voltage increases high voltages as per AS/NZS 4777.2 2015 or 2020. This type of behaviour can be observed in image below when voltages are equal or greater than 251V).

Output 4. Line plot of real power, reactive power, expected real power, power limit, and voltage vs time.

image

This plot provides the daily operation of the D-PV inverter in terms of actual, expected, reactive power and power limit imposed by the V-Watt mode.

High Level Explanation of Curtailment Algorithms

Clear Sky Day Determination

We judge whether a date is a clear sky day or not based on two criteria:

  1. The average change of GHI between two consecutive time-stamps is lower than a certain threshold which suggests there is no or minimum sudden change in GHI. Sudden changes in the GHI indicate cloud cover.
  2. The maximum GHI value is higher than a certain threshold, which must be true if there is no cloud.

Actual Energy Generated Calculation

We calculate actual daily energy generated using the following steps:

  1. Calculate every 1 minutely energy value in Wh using the real power data (you can use any other data in other temporal resolutions too such as 1 second, 5 minutely, 30 minutely etc.)
  2. Sum all the 1 minutely energy values within the day.
  3. Divide it by 1000 to convert the unit into kWh/day.

The difference between this value and the expected energy generated without curtailment is the curtailed energy: curtailed energy = expected energy without curtailment - actual daily energy

Expected Energy Generated Calculation

Once the expected energy is calculated using one of the estimation methods explained below, daily expected energy is calculated in a similar manner as described in the actual energy generated calculation section. The expected power values are obtained using estimation method below:

Estimation Method

To obtain the expected power without any curtailment (power_expected), we use the following steps:

If it is a clear sky day: Use polyfit estimation (see below).
Else if it is not a clear sky day and there is tripping curtailment: Use linear estimation (see below).
Else if it is not a clear sky day and there is no tripping curtailment: Do not estimate, because we cannot be sure whether the reduction in power is due to V-VAr curtailment, V-Watt curtailment, or cloud cover.

Linear Estimation

This method is only used in a non-clear sky day condition with tripping curtailment. Major steps:

  1. Filter the D-PV time series data into times between sunrise and sunset.
  2. Detect the zero power values, which indicates a tripping event.
  3. Detect the ramping down power values before zero values and ramping up power values after zero values, and consider them as tripping event as well.
  4. Detect starting point and end point for each tripping event.
  5. Use points obtained from step 4 to make a linear regression of each tripping event, and use the linear equation to get the estimated power value without curtailment for every tripping event during the corresponding timestamps.
  6. For times other than the tripping event, leave the power expected to be the same with the actual power.

Sample result for the expected power on a non-clear sky day with tripping curtailment can be seen below: image

Polyfit Estimation

This method is only used during a clear-sky day condition to estimate the power without curtailment. To make the polyfit estimate, we first filter points to be used in the polyfit estimation. Necessary steps include:

  1. Filter the D-PV time series data into times between sunrise and sunset. Before sunrise and after sunset, the real power value is zero, so they should not be used for the polyfit estimation.
  2. Filter out curtailed power values because we want the estimation fits the actual power without curtailment (D-PV is expected to generate a parabolic curve in clear sky-day conditions. This is validated through observing the system throughout the year and confirm that it is not exposed to regular shading conditions. We filter the curtailed power because it does not make sense to fit the polyfit estimate with the curtailed power. The method we use:
    a. Seperate the power data into two parts: sunrise until solar noon, and solar noon until sunset.
    b. In the first half of the data (from sunrise until solar noon), we include only the increasing power values between each consecutive time-stamps.
    c. In the second half of the day (solar noon until sunset), we invert the data so the order is from sunset to solar noon
    d. In that second half of the data, we include only increasing power values between each consecutive time-stamps.
  3. Filter to include only decreasing gradient real power value for the previous two steps. In a parabolic curve with concavity facing downward, the slope is always decreasing. In other words, the gradient is always decreasing, meaning the second derivative is always negative. The illustration can be seen below:

image

image

In this image, P3 is filtered out because it is a curtailed power data point (step 2b). P6 is also filtered out because the slope from P4 to P6 is higher than P2 to P4 (step 3).

After filtering the points to be used in the fitting, we then proceed into:
4. Convert the timestamp from datetime object into numerical values for fitting.
5. Fit the power values & numerical timestamp values using a polyfit with degree = 2 (quadratic function).
6. Obtain the values of the expected power by the polyfit for all timestamps, including outside of the times used for the fitting.

The sample filtering & parabolic fit result can be seen below:

image

Tripping Detection

The tripping detection method is in the linear estimation section. We assume there is tripping curtailment whenever inverter cease to operate (sudden drop to zero from a non-zero value between the sunrise and sunset time).

Tripping Curtailed Energy Calculation

For an instance of tripping during a non clear sky day, we calculate the energy generation expected without curtailment using the linear estimation. The amount of curtailment is equal to the energy generation expected minus actual energy generated. For a tripping case in a clear sky day, we replace the linear estimation by the polyfit estimation.

V-VAr Response Detection

The expected V-VAr response example can be seen in the image below taken from AS/NZS 4777.2 2020.
image
At low voltages, the inverter injects reactive power to the grid to increase the local voltages. At high voltages, the inverter absorbs reactive power from the grid to lower the local voltages.

If the V-VAr response of an inverter is not enabled, we expect the reactive power to be zero and the power factor to be 1 at all times. So, our first step is to check whether the site injects or absorbs reactive power more than a certain threshold, which is 100 VAr to account for possible noise, glitches and inaccuracies in the monitoring device and circuit (i.e. need VAr>100 for inverter to be considered to absrob/inject any VArs)

For a site having reactive power more than 100 VAr, we then compare their V-VAr scatter plots against some benchmarks which are V-VAr curve from SAPN TS-129, AS-NZS 4777.2 2015, ENA recommendation – 2019, and AS-NZS 4777.2 2020. The comparison can be done either manually via visual inspection or using an algorithm below:

  1. Obtain the reactive power level in % for each timestamp.
  2. Recheck and correct the polarity in case it is not valid. At low voltage, the system injects reactive power, so the polarity is positive. At high voltage, in contrast, the system absorbs reactive power, so the polarity is negative.
  3. Filter the data points by including only the the negative, decreasing reactive power. In the V-VAr curve response, it is the line between V3 and V4. We filter to perform linear regression and obtain the value of V3 and V4 from the actual data point. Note that we only check this part because voltage below V2 is too low and it is seldom observed in the actual data.
  4. Make a linear regression based on the filtered data points in the previous step.
  5. Obtain the value of V3, which is the voltage where the regression line gives zero reactive power.
  6. Obtian the value of V4, which is the voltage where the regression line gives minimum actual reactive power (the most negative reactive power).
  7. Create two buffer line from the linear regression to take random error into account, which is +- 15% from the regression line result.
  8. We calculate the percentage of actual reactive power data points, where the voltage is between V3 and V4, falling inside the upper and buffer lines made from the previous step.
  9. If V3 & V4 are inside the allowed range based on the 4 standards, and the percentage from step 8 is higher than 80%, we say that the site shows V-VAr response.

The illustration of this process can be seen via the image below: image

IMPORTANT: Please note that, due to some monitoring set-up errors, the raw VAr data needed in the original data-set had to be divided by 60 in order to find the actual one minutely values. This point may be irrelevant for new data-sets that user would like to work with.

V-VAr Curtailment Calculation

Unlike the tripping curtailment, where the site which experiece tripping has energy curtailed due to zero generation, V-VAr enabled sites may not have any energy curtailed. This is because the real power of the inverter may not be limited in the presence of VAr and it depends on the magnitude of absorbed/injected VArs if the real power of the inverter is limited (i.e. V-VAr curtailment). For example for an inverter with 5 kVA limit, absorbtion of 3 kVAr leaves 4 kW real power capacity and energy is only curtailed when inverter can generate more than 4 kW which is calculated based on the GHI (i.e. expected energy generation method above). To calculate the energy curtailed due to V-VAr:

  1. For clear sky day, we use polyfit to estimate the power generated without curtailment.
  2. For a non clear sky day, we multiply ghi data, dc_cap, and eff_system to estimate the PV-system power production.
  3. We filter out instances where inverter isn't absorbing or injecting VArs (there won't be V-VAr curtailment when there is no VAr).
  4. For the remaining instances we compare the real vs. expected generation
  5. We calculate the difference between the actual power production and the expected power production and if there are any discrepancies, we double check with VAr values to confirm V-VAr curtailment.

It is worth to note that the amount of energy curtailed in a non clear sky day is most likely overestimated. This is because it is difficult to be sure whether the curtailment is due to V-VAr response or due to cloud cover.

V-Watt Response Detection

In a V-Watt mode enabled site, the real power limit value will decrease linearly with increasing voltage. The illustration, taken from AS/NZS 4777.2 2020 is shown below.
illustration_vwatt_curve

For convenience, let's call the voltage value where the real power starts decreasing as the threshold voltage. In the picture above, it is denoted as V3. It can vary from 235-255 V according to AS/NZS 4777.2 2020. The voltage will stop decreasing exactly at V4 = 265 V, where the real power limit is 20% of the ac capacity of the inverter (after this voltage, inverter must trip and cease to operate). That is why we need to check the scatter plot of power against voltage and check whether it matches one of the possible V-Watt curve, as the voltage threshold can vary from 235-255 V. The preliminary criteria for V-Watt response detection are:

  1. If it is not a clear sky day, it is inconclusive. This is because in a non clear sky day, we cannot be sure if the decreasing value of real power is due to cloud or due to V-Watt respones.
  2. Else, we check the polyfit quality. If the polyfit quality is not good enough, it is inconclusive as well. This is because the ghi observation station can be far than the actual site location, which makes the clear sky day judgement inaccurate. In that case, it is possible for the script to detect the day as a clear sky day, but the polyfit quality is not good enough because the cloud only covers the site area and not the ghi observation station area.
  3. Else we check whether the dataset contain points where the voltage is more 235 V. If not, it is inconclusive because there are no points to be checked for the V-Watt response, as 235 V is the minimum possible value of threshold value.

If the site passes these preliminary criteria, meaning it is a clear sky day with good polyfit quality and some voltages above the minimum Volt-Watt voltage threshod point (235V), we then check the V-Watt response. For each of the possible V-Watt curve (from 235-255 V threshold voltage), we check the actual data with following steps:

  1. Determine the threshold voltage value, for example, 235 V

  2. Form a V-Watt response curve with the corresponding threshold value. For example, if we have 235 V as the threshold value V3, the maximum real power starts decreases linearly until 265 V, where the real power limit is 20%. We call this curve as Power Limit V-Watt.

  3. Find datapoints where the expected real power is higher than the Power Limit V-Watt. It means there is a possibility of curtailment in these datapoints. These are possible points where V-Watt curtailment is observed (suspect data). An example visualization can be seen below. image

  4. Add buffer for the Power Limit V-Watt curve from the step 2, using 150 watt as distance from the both sides of the curve. Using this step, we obtain the lower buffer and upper buffer which is illustrated below. This helps to eliminate the risk of incorrect conclusions of V-Watt curve due to possible noises in the data.
    image

  5. Then, we count the percentage of datapoints in the suspect data which lie in the buffer range of the V-Watt curve from step 3. The percentage, which we call compliance percentage, is calculated by dividing the number of actual real power points in the buffer range by the total number of actual real power points. If the current compliance percentage is higher than the current best percentage, we renew the best percentage value by this number.
    image

  6. We do step 1-5 through all possible threshold voltage and decide which threshold voltage gives the highest compliance percentage and what is its corresponding compliance percentage value.

We conclude that a certain site is a V-Watt enabled site only if the highest percentage compliance is higher than a percentage threshold, 84% (found through experimentation and visual validation) and the number of actual point lying in the buffer is more than a count threshold, which is 30.

If

  1. The above criteria is not satisfied and
  2. The maximum available voltage of the suspect data is less than 255,

then, it is inconclusive due to insufficient data points. This is because although there is possibility that the site has V-Watt mode enabled site, the voltage threshold value is higher than the maximum available voltage datapoints.

If

  1. The above criteria is not satisfied and
  2. The maximum available voltage of the suspect data is at least 255,

then it is concluded that it is a non V-Watt enabled site.

V-Watt Curtailment Calculation

For a V-Watt enabled site, the curtailed energy is equal to the expected energy generated subtracted by the actual energy generated. The expected energy generated and the actual energy generated are calculated by the time-series power data and time-series expected power data using the Expected Energy Generation Method by polyfit estimation as mentioned before.

Sample File Creation

The raw time series D-PV data is from Solar Analytics, a smart home and D-PV monitoring company, which consists of a monthly data with 500 sites mixed into a file. In this tool, we analyze a specific site for a certain date. So, for testing purpose, we create sample simply by filtering the data for a certain day and certain site.

For convenience, we also process the time series D-PV data by converting the time from UTC time into local time (Adelaide GMT + 9:30).

Similary, the GHI data is monthly. So, we filter it into certain dates for the sample analysis period. We also process the ghi data by adding a timestamp column by combining some columns like year, month ,day, hour, and minute information.

CANVAS Open-Source Tool Limitation & Notes

  1. The tool is currently limited to measuring one type of curtailment mode at a time. Tripping curtailment can't co-exist with other modes however, V-VAr and V-Watt can operate simultaneously. In the studied sites, majority didn't have V-VAr mode enabled so this limitation didn't impact our results. However, as more inverters start complying with both modes, analysis of simultaneous operations of these modes are necessary and this is a primary future research objective.

  2. The data-set doesn't include the actual VA capacity of the inverter, and therefore, we used the AC real power capacity as VA capacity. For some sites, this was an underestimation, as their VA capacity calculated from the real and reactive power exceeded the inverter's AC capacity. This may have resulted in over-estimation of V-VAr curtailment for some inverters as they had higher VA capacity in reality than their assumed VA capacity (AC capacity) in our study.

Related Articles and Papers on the CANVAS Project

  1. https://www.pv-magazine-australia.com/2021/05/24/unsw-digs-the-data-how-much-solar-energy-is-lost-through-automated-inverter-settings/
  2. https://www.abc.net.au/news/science/2022-02-16/solar-how-is-it-affected-by-renewable-energy-curtailment/100830738
  3. https://greenreview.com.au/energy/rooftop-solar-pv-curtailment-raises-fairness-concerns/
  4. https://theconversation.com/solar-curtailment-is-emerging-as-a-new-challenge-to-overcome-as-australia-dashes-for-rooftop-solar-172152
  5. https://www.racefor2030.com.au/wp-content/uploads/2021/11/CANVAS-Succinct-Final-Report_11.11.21.pdf

Contributing

Please read CONTRIBUTING.md for instructions to contribute to this open-source tool.

Project Partners

The project partners of the RACE for 2030 CANVAS project are: AGL, SA Power Networks (SAPN), Solar Analytics, and University of New South Wales (UNSW). The development of the open-source tool was supported by the funding from the Digital Grid Future Institute (DGFI), UNSW.

Authors

  • Baran Yildiz - Lead Chief Investigator & V-VAr Algorithm
  • Naomi M Stringer - Tripping Algorithm
  • Tim Klymenko - V-Watt Algorithm
  • M. Syahman Samhan - Merging of algorithms, Open Source Development & Implementation, Debugging

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

Contact

The tool is aimed to help researchers and future projects which would like to understand and quantify Distributed Energy Resources (DER) curtailment due to different inverter power quality response modes (PQRMs). CANVAS open-source tool welcomes feedback and future collaboration opportunities.

For any questions or enquiries, please contact Dr. Baran Yildiz (baran.yildiz@unsw.edu.au)

About

Tools for estimating PV System Curtailment due to inverter tripping, VVAr Response, and VWatt Response

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 94.2%
  • Python 5.8%