Simulating Through Tessif
Carrying out simulations through tessif is handled by the
simulate module. It provides simulation wrappers for all of the
supported models. Following sections provide detailed information on how to use
them.
Note
The current support of the various simulation capabilities can be
gauged and expanded using the tessif.simulate module.
Fundamentally all simulation wrappers work the same way:
They read in a data source provided via the parameter
pathThey parse the data according to the parser provided via the parameter
parserThey simulate the read-in and parsed energy system using additonal arguments provided by the parameters qualifying as kwargs
omf
omf stands for oemof and is one of the 3rd party libraries usable via tessif. It’s simulation wrapper can be accessed via:
from tessif.simulate import omf as simulate_oemof
A simple example can be realized using tessif’s example hub (utilizing an Excel-Spreadsheet as source and tessif’s corresponding parser):
from tessif.simulate import omf as simulate_oemof
from tessif.parse import xl_like
from tessif.frused.paths import example_dir
import os
es = simulate_oemof(
path=os.path.join(example_dir,
'data', 'omf', 'xlsx', 'energy_system.xlsx'),
parser=xl_like)
tsf
tsf stands for tessif and represents tessif’s built-in energy system simulation capabilities.
It’s simulation wrapper can be accessed via:
from tessif.simulate import tsf as simulate_tsf
A simple example can be realized using tessif’s example hub (utilizing a folder of config files as source and tessif’s corresponding parser):
from tessif.simulate import tsf as simulate_tessif
from tessif.parse import flat_config_folder
from tessif.frused.paths import example_dir
import os
es = simulate_tessif(
path=os.path.join(example_dir, 'tsf', 'cfg', 'flat', 'basic'),
parser=flat_config_folder)