Model Calibration Methodology
This page provides a detailed overview of the methodology used for network Model Calibration within the Hosting Capacity Module. It yields a table of tap settings for each off-load transformer, which can then be used in future work packages to run time-series modelling with the inferred tap positions. It also produces a set of results per Energy Consumer allowing the comparison between modelled (simulated) and measured (real) voltages, which can be used to validate the model and understand the uncertainty in the model.
Introduction to Model Calibration
Accurate network Model Calibration is a prerequisite for reliable power system analysis and is particularly crucial for voltage regulation studies and determining unknown distribution transformer tap positions. The objective is to ensure that the power flow models generated are an accurate reflection of real-world system conditions, providing a validated baseline for further analysis.
For more information on why network calibration is important, see the page What is Network Model Calibration and why is it useful?
For a step-by-step guide on how to run Model Calibration, see How to Run Network Model Calibration.
Calibration Prerequisites
Required inputs (these should have been automated into your deployment during Hosting Capacity Module deployment):
- Historic power quality data at the Energy Consumer level, which includes measurements of watts (P), vars (Q), and voltages (V). This data is known as PQV data.
For the purposes of Model Calibration, valid voltages are defined as those that are between 180.0 and 263.0 volts (phase to neutral). Any voltage readings outside this range are considered invalid and are excluded from the calibration process. This range is chosen to encompass typical voltage variations in distribution networks while filtering out erroneous or extreme values that could skew the calibration results. These values are hardcoded but can be changed by Zepben if needed; please contact Zepben support for making changes to these values.
Selecting Optimal Time Periods for Calibration
It is not necessary for the PQV data to cover complete weeks, months, or years; rather, it should encompass a range of grid conditions, including minimum, maximum, and typical network loading periods. You may wish to consider running Model Calibration over various times to explore the impacts of different system conditions. Providing data for periods such as 7am, 12pm, 7pm, and 3am could be useful to explore periods of medium demand, high generation, high demand, and low demand respectively.
Calibration can be used for two related but distinct things:
-
Determining a best fit for off-load tap settings (
calibrated_tapstable) For this use case, it will work best using a time of minimum load. This may vary by network, but is typically around 4am. -
Measuring raw results per Energy Consumer highlighting modelled (simulated) and measured (real) voltages, which can be used to highlight impedance errors in the model and for further analysis (the
energy_consumer_meterstable). For this use case, you may want to try a number of different conditions, for periods such as 7am, 12pm, 7pm, and 4am could be useful to explore periods of medium demand, high generation, high demand, and low demand respectively.
Calibration Methodology
The calibration process integrates measured field data with the Hosting Capacity Module's power flow simulation environment through the following steps:
Initiation
The user initiates a Calibration run, specifying the time period and feeders to be calibrated, as per the instructions in the How to Run Network Model Calibration guide.
Work Package Generation and Execution
A work package request is sent to EAS. This follows the same methodology as other work packages, but with some differences in the OpenDSS model setup.
- The OpenDSS model has
measurement_zoneobjects placed at each NMI, unlike in the Hosting Capacity Module's standard power flow model, which only hasmeasurement_zoneobjects at the feeder head and distribution transformer. The service checks if each Energy Consumer has PQV data for the specified time period. If not found, those Energy Consumers are not allocated measurement zones. This more granular approach allows for a direct comparison of modelled voltages against real-world measurements at each Energy Consumer location. This is more computationally intensive and generates more data to store, but is necessary for the calibration process to infer off-load tap positions and validate the model's accuracy. Given that Model Calibration is done only for a single timestep, the computational overhead is acceptable and manageable. - The Calibration flag is set to True, allowing the model to enter calibration mode.
The Work Package is run via the Hosting Capacity Service as usual. Several results tables are generated.
-
Results are streamed to the specific
energy_meter_voltages_rawtable, where theconducting_equipment_mridaligns with theenergy_consumer_mrid(supply point) and can then be used as part of the automated analysis to infer off-load tap changer positions and 'calibrate' the model. This is unlike the standard HCM, where energy_meter_voltages_raw is off by default, as it would generate too much data for standard use. -
The simulated voltages are stored in the
energy_consumer_meterstable, with themeter_group_idbeing the name given to the calibration work package.
Off-Load Tap Position Determination
For each transformer, the process is as:
- Determine which Energy Consumers are downstream of the transformer
- Get the calculated voltage results for each of those Energy Consumers from the work package run above.
- Get all the PQV data for each of those Energy Consumers
In some cases, PQV data may be structured as three-phase but effectively represent only a single-phase connection, with invalid or placeholder data recorded for the other phases. To ensure accuracy, any phase voltage falling outside the valid range of 180.0 to 263.0 volts is excluded from analysis. The average voltage for the Energy Consumer is then calculated using only the remaining valid phase values.
Each Energy Consumer can have multiple NMIs, each NMI can have multiple meters, and each meter can be multi-phase. We aggregate all these via a simple average to produce a single voltage value per Energy Consumer. The Energy Consumer represents the closest electrical connection point to the customer premise; it is typically where the network responsibility boundary point is located.
For the purposes of Off-Load Tap Position determination, voltages are filtered to ones that have valid results in both simulated and real voltages for a given Energy Consumer. If the real (measured) values are valid but the simulated results were invalid, that Energy Consumer voltage pair (real and simulated) are excluded from the Off-Load Tap Position process, and vice versa.
-
Calculate the overall transformer average real voltage using the PQV data for all customers under that transformer (simple average).
-
Calculate the overall transformer average simulated voltage using the HCM results for all customers under that transformer (simple average).
-
Compare these two voltages and get a percentage difference for each transformer.
-
The tap positions will be adjusted according to this table:
The tap adjustment is calculated using 'current tap positions', which are either drawn from the CIM model if present, or if not present, are assumed to be a nominal tap position, which will be a preset common default value for many distribution transformers.
| Delta Percent Range | Tap Adjustment | Description |
|---|---|---|
| Greater than 11.25% | Current Tap Position + 4 | Very large positive delta, increase tap by 4 positions and log that it exceeds the maximum adjustment threshold. |
| 8.75% to 11.25% | Current Tap Position + 4 | Large positive delta, increase tap by 4 positions. |
| 6.25% to 8.75% | Current Tap Position + 3 | Moderately large positive delta, increase tap by 3 positions. |
| 3.75% to 6.25% | Current Tap Position + 2 | Medium positive delta, increase tap by 2 positions. |
| 1.25% to 3.75% | Current Tap Position + 1 | Small positive delta, increase tap by 1 position. |
| -1.25% to 1.25% | Current Tap Position | Delta is near zero, no adjustment. |
| -3.75% to -1.25% | Current Tap Position - 1 | Small negative delta, decrease tap by 1 position. |
| -6.25% to -3.75% | Current Tap Position - 2 | Medium negative delta, decrease tap by 2 positions. |
| -8.75% to -6.25% | Current Tap Position - 3 | Large negative delta, decrease tap by 3 positions. |
| Less than -8.75% | Current Tap Position - 3 | Very large negative delta, decrease tap by 3 positions and log that it exceeds the maximum adjustment threshold. |
- The outcomes are stored in the
calibrated_tapstable. A full breakdown of the columns is found at Input Tables. Note that although the table is an 'output' of this process, it is also an 'input' to future work packages that wish to use the calibrated tap positions, and is thus stored in the Input Tables section of the database.
If all Energy Consumers under a transformer have invalid voltages, the tap position is not adjusted, and the transformer is not included in the calibrated_taps table. A warning is placed in the logs if this happens.
Using the Calibrated Tap Positions
The calibrated_taps can be called within the ModelConfig of a Work Package using the "transformerTapSettings" parameter, using the name of the calibration work package as the value. This will then apply the calibrated tap positions to the OpenDSS model for that work package, allowing for time-series modelling with the inferred tap positions.
When running a Work Package with a specified list of Calibrated Taps via transformerTapSettings, if a transformer is not present in the calibrated_taps table, it will use the value in the CIM model, or if that is not present, will default to a nominal tap position, which will be a preset common default value for many distribution transformers.
Raw Results
The Calibration process generates a table that contains the real and simulated voltages for each Energy Consumer, along with the calculated voltage deltas. This can include invalid voltages (e.g., NaN values) if the simulated or real voltages were not valid for that Energy Consumer. These will have been not considered in the Off-Load Tap Position determination step, but are included here for completeness and further analysis.
This table is called calibration_meter_results. A breakdown of the columns is found at Output Tables.
Further analysis of the relationship between demand and voltage error can provide insights into the uncertainty of the impedance model; however, no built-in tools are included for this analysis.