Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Detailed grid in the LtmApi - introduction

This section introduces the use of detailed grid functionality (Samnett) in the LtmApi.

The detailed grid functionality implemented in LTM_core is documented in Samnett input file references.

The LtmApi simplifies the process of defining detailed grid models by reducing the amount of required input while preserving the information needed by EMPS. The objective is to make grid modelling as simple as possible without sacrificing physical representation or simulation accuracy.

Prerequisites for detailed grid modelling

The following assumptions apply:

Activation of the detailed grid functionality in the LtmApi

The Areas object has a boolean attribute has_detailed_grid. The attribute must be set to true for all areas in the AC-grid. When has_detailed_grid is set to true, the area becomes part of the detailed grid representation. The attribute is used for the following purposes:

Define AC-grid areas

Four areas in the AC-grid containing detailed grid and two areas outside the AC-grid

"areas": [
    {
        "name": "thermal2"
    },
    {
        "name": "numedal",
        "has_detailed_grid": true
    },
    {
        "name": "tev",
        "has_detailed_grid": true
    },
    {
        "name": "otra",
        "has_detailed_grid": true
    },
    {
        "name": "osen",
        "has_detailed_grid": true
    },
    {
        "name": "thermal1"
    }
],

The global_settings object provides two detailed-grid-specific options:

Detailed grid objects

The following objects are used to define the detailed grid model. Required objects are shown in bold.

Objects in detailed grid

Object nameDescription
run_configRun configuration options for the simulation
busbarConnection point in the electrical network. Used to distribute load, generation and market resources within an area.
monitored_network_elementDefines monitored transmission constraints and transfer capacities between areas. An MNE may represent a single network element or a combination of multiple elements.
lineAn element connecting two busbars.
hvdc_connectionRepresents an existing dcline as a HVDC connection within the detailed grid model.
two_winding_transformersTransfers AC power between two busbars and allows voltage transformation between voltage levels.
lineoutageDefines temporary outages of transmission lines. PTDF matrices are recalculated when the grid topology changes. Outages may also modify MNE capacities.

Recipe for defining the detailed grid

Conceptually, a detailed grid model consists of three parts:

The workflow described below follows this structure.

  1. Activate detailed grid functionality as described in Activation of the detailed grid functionality in the LtmApi.

  2. Define the simulation settings using the run_config object.

  3. Define the network topology using line and two_winding_transformer objects.

  4. Define busbars with non-default load, generation or market-step allocations using busbar objects.

  5. Define monitored interconnections and transfer limits using monitored_network_element objects.

  6. Optionally define HVDC connections using hvdc_connection objects.

  7. Optionally define transmission outages using lineoutage objects.

Grid validation

The LtmApi includes detailed grid validation.

The electrical network must form a single connected topology. Isolated busbars, disconnected subnetworks and missing transmission elements that split the grid into multiple islands are not permitted and will result in validation errors.

LtmApi to EMPS v10

The LtmApi automatically generates the detailed grid input files required by EMPS and LTM_core.

Six areas TEV, Otra, Numedal, Osen, Termal1 and Thermal2