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 a Model Calibration work package, see How to Run a Model Calibration Work Package.
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
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 Methodology
The calibration process integrates measured field data with the Hosting Capacity Module's OpenDSS power flow simulation environment through the following steps:
Initiation
The user initiates a calibration work package, specifying the time period and feeders to be calibrated, as per the instructions in the How to Run a Model Calibration Work Package 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 normal. Several results tables are generated.
-
Results are streamed to the specific
energy_meter_voltages_rawtable, where theconducting_equipment_mridlines up 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.
The calibration workflow does not track failures within the work package. The likely failure modes are no results appearing in the results database or completely invalid voltages on one or more phases. The post-loadflow tasks are left to deal with these cases.
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
There are often situations where the PQV data is technically 3 phase, but it is really just a single phase, with junk data in the other phases. In cases where any phase voltage is invalid (outside the range of 180.0 to 263.0 volts), that phase is excluded from the calculations, and just valid phase values are used to calculate the average voltage for that Energy Consumer.
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.
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.
-
Calculate the overall transformer average simulated voltage using the OpenDSS results for all customers under that transformer.
-
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 4, which is a 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.
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 tap position of 4.
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.