-
Couldn't load subscription status.
- Fork 14
Home
Welcome to the MTB wiki,
MTB (Model Test Bench) is a test bench for automation of custom simulations in both PowerFactory and PSCAD with external visualizing of results. The MTB is meant as a tool to help guide facility owners in checking simulation and plant performance of RMS- and EMT-models in the context of the Danish grid code and the requirements for simulation models. Three sets of predefined cases are available based on the RfG (Requirements for Generators), DCC (Demand Connection Code) and unit-testing, with the option to add custom cases for further testing. The cases will differ depending on the nominal power of the plant and the voltage level to match the cases with either a DSO- or a TSO-connection.
Note: It is not a requirement to utilize the MTB when delivering models to Energinet, the use of the tool does not ensure or guarantee a model's compliance with the requirements neither; the tool is available for public use to investigate model compliance, but it is still the responsibilty of the plant owner, that models are compliant with the requirements applicable at any time and not with the tool itself. Please take your time and go through the MTB README. This contains a lot of information regarding requirements, contribution, contacts and more.
To get started, make use of the quickstart guides below to setup and run the MTB in both PowerFactory and PSCAD.
The 'testcases.xlsx' document should be configured firstly, for a description of this configuration, follow the quickstart guide below.
After 'testcases.xlsx' is configured with model-specific information continue by setting up the test bench for PowerFactory and/or PSCAD. Follow the quickstart guides for either below.
Note: An example setup of the MTB for both PowerFactory and PSCAD can be found in the folder setup_examples. These are purely examples to showcase the setup of the MTB and the models used are not in any way representative of a compliant model or plant.
After running the MTB in PowerFactory and/or PSCAD, you can make use of the integrated Plotter tool for plotting the results. Follow the quickstart guide below.
A number of utility python scripts were added to the MTB to assist with model evaluation. They are:
- PowerFactory wrapper – ”Get Component Data.pfd”
- Python scripts – ”get_component_data_from_powerfactory.py” & ”compare_component_data_with_pscad.py”
This consist of two Python scripts. One in PowerFactory to read all cable and two winding transformer data from the RMS model, calculates the equivalent parameters in PSCAD format, and write it to an Excel workbook. The other PSCAD script, reads in all the cable and two winding transformer data from the EMT model, writes it to the same Excel workbook, and then compare the PSCAD values with the equivalent values calculated from PowerFactory to see if they match.
- PowerFactory wrapper – ” Get DSL Checksums.pfd”
- Python script – ”get_dsl_checksums_from_powerfactory.py”
This Python script reads in all the encrypted DSL models from PowerFactory, and writes the model names and checksums to an Excel workbook.
- PowerFactory wrapper – ”Get Relay Data.pfd”
- Python script – ”get_relay_data_from_powerfactory.py”
This Python script read all the protection data from PowerFactory, and writes their name and settings to an Excel workbook for easier comparison with the protection setting in PSCAD.
- PowerFactory wrapper – ”Check PowerFactory Model.pfd”
- External Python script – ”check_powerfactory_model.py”
The Python script performs various checks in PowerFactory, i.e.
- Compile automatically all relevant dynamic model types – not yet an Energinet requirement
- Check for state variable derivatives less than the tolerance for the initial conditions
- Calculate a balanced loadflow, and flat run
- Calculate an unbalanced loadflow, and flat run
- Check for fixed timestep run
- Check for variable timestep run
For further questions or help, please check if the README or the Quickstart Guides contains the answer.
Otherwise, please contact the Energinet simulation model team: [email protected]