es2mapping

Tessif subpackage to transform the repsective simulation model representation of an (optimized) energy system into a mapping keyed and valued as subsequent postprocessing requires. Namely:

  • map attributes to node and edges

  • filter out only the results needed

  • do (simple) postprocessing calculations to create sensible energy system mappings

Mapping in this conntext refers to data mappings.

The heavy lifting of the transformation is done by a respective base.ESTransformer subclass specifically designed for the energy system simulation model type used. It extracts and transforms the data into a dictionairy.

The beforementioned approach results in following benefits:

  1. Developing additional child classes for ESTransformer and a ‘mapping to energy system’ transform module in mapping2es or tsf is enough to support new, yet unsupported energy system simulation tools. (Refer also to Adding New Models)

  2. All operations commonly performed on graph like networks (system of nodes and edges) can be executed on the energy system because after transformation it is easily parsed to tools like:

    • NetworkX

    • Others might list here in the future

  3. This potentially allows to transform different energy system simulation model types into one another (As of September 2019 though this seems to be a long way down the road.)

Also refer to tessif.examples to see examples for the mentioned “benefits”.

tessif.transform.es2mapping.compile_result_data_representation(optimized_es, software, node)[source]

Convenience wrapper to compile result data representation.

Explicitly reproduces the result data representation table as stated in the lead author’s phd thesis in ‘Theory’ -> ‘Graph Theory Tools’ -> ‘Result Data Representation’

Parameters: