Minimum Working Examples

create_mwe

Create a minimum working example using fine.

create_expansion_example

Create an expansion example using fine.

emission_objective

Create an emission constrain example using fine.

chp_example

Create a combined heat and power example using fine.

storage_example

Create a storage example using fine.

double_transformer_emission_objective

Create a example with two transformer components using fine.

create_multicommodity

Create a multi flow grid example using fine.

single_chp_emission_objective

Create a single combined heat and power example with emissions constrained using fine.

tsa_one_year_example

Create an one year timeseries example using fine.

py - hardcoded

py_hard is a tessif module for giving examples on how to create an fine energy system.

It collects minimum working examples, meaningful working examples and full fledged use case wrappers for common scenarios.

tessif.examples.data.fine.py_hard.create_mwe(directory=None, filename=None, save=False)[source]

Create a minimum working example using fine.

Creates a simple energy system simulation to potentially store it on disc in directory as

filename

Parameters:
  • directory (str, default=None) –

    String path the created energy system is stored in.

    If set to None (default) tessif.frused.paths.write_dir/fine/mwe will be the chosen directory.

  • filename (str, default=None) –

    String name of the file the results are stored in.

    If set to None (default) filename will be mwe_FINE.

  • save (boolean, default=False) – Specifies if the data should be stored to an excel spreadsheet`.

Returns:

optimized_es – Energy system carrying the optimization results.

Return type:

fine energy system model

tessif.examples.data.fine.py_hard.create_expansion_example(directory=None, filename=None, save=False)[source]

Create an expansion example using fine.

Creates a simple energy system simulation to potentially store it on disc in directory as

filename

Parameters:
  • directory (str, default=None) –

    String path the created energy system is stored in.

    If set to None (default) tessif.frused.paths.write_dir/fine/expansion_example will be the chosen directory.

  • filename (str, default=None) –

    String name of the file the results are stored in.

    If set to None (default) filename will be expansion_example_FINE.

  • save (boolean, default=False) – Specifies if the data should be stored to an excel spreadsheet`.

Returns:

optimized_es – Energy system carrying the optimization results.

Return type:

fine energy system model

tessif.examples.data.fine.py_hard.emission_objective(directory=None, filename=None, save=False)[source]

Create an emission constrain example using fine.

Creates a simple energy system simulation to potentially store it on disc in directory as

filename

Parameters:
  • directory (str, default=None) –

    String path the created energy system is stored in.

    If set to None (default) tessif.frused.paths.write_dir/fine/emission_objective will be the chosen directory.

  • filename (str, default=None) –

    String name of the file the results are stored in.

    If set to None (default) filename will be emission_objective_FINE.

  • save (boolean, default=False) – Specifies if the data should be stored to an excel spreadsheet`.

Returns:

optimized_es – Energy system carrying the optimization results.

Return type:

fine energy system model

tessif.examples.data.fine.py_hard.chp_example(directory=None, filename=None, save=False)[source]

Create a combined heat and power example using fine.

Creates a simple energy system simulation to potentially store it on disc in directory as

filename

Parameters:
  • directory (str, default=None) –

    String path the created energy system is stored in.

    If set to None (default) tessif.frused.paths.write_dir/fine/chp will be the chosen directory.

  • filename (str, default=None) –

    String name of the file the results are stored in.

    If set to None (default) filename will be chp_FINE.

  • save (boolean, default=False) – Specifies if the data should be stored to an excel spreadsheet`.

Returns:

optimized_es – Energy system carrying the optimization results.

Return type:

fine energy system model

tessif.examples.data.fine.py_hard.storage_example(directory=None, filename=None, save=False)[source]

Create a storage example using fine.

Creates a simple energy system simulation to potentially store it on disc in directory as

filename

Parameters:
  • directory (str, default=None) –

    String path the created energy system is stored in.

    If set to None (default) tessif.frused.paths.write_dir/fine/storage_example will be the chosen directory.

  • filename (str, default=None) –

    String name of the file the results are stored in.

    If set to None (default) filename will be storage_example_FINE.

  • save (boolean, default=False) – Specifies if the data should be stored to an excel spreadsheet`.

Returns:

optimized_es – Energy system carrying the optimization results.

Return type:

fine energy system model

tessif.examples.data.fine.py_hard.double_transformer_emission_objective(directory=None, filename=None, save=False)[source]

Create a example with two transformer components using fine.

Creates a simple energy system simulation to potentially store it on disc in directory as

filename

Parameters:
  • directory (str, default=None) –

    String path the created energy system is stored in.

    If set to None (default) tessif.frused.paths.write_dir/fine/double_chp_objective will be the chosen directory.

  • filename (str, default=None) –

    String name of the file the results are stored in.

    If set to None (default) filename will be double_chp_objective_FINE.

  • save (boolean, default=False) – Specifies if the data should be stored to an excel spreadsheet`.

Returns:

optimized_es – Energy system carrying the optimization results.

Return type:

fine energy system model

tessif.examples.data.fine.py_hard.create_multicommodity(directory=None, filename=None, save=False)[source]

Create a multi flow grid example using fine.

Creates a simple energy system simulation to potentially store it on disc in directory as

filename

Parameters:
  • directory (str, default=None) –

    String path the created energy system is stored in.

    If set to None (default) tessif.frused.paths.write_dir/fine/multi_commodity will be the chosen directory.

  • filename (str, default=None) –

    String name of the file the results are stored in.

    If set to None (default) filename will be multi_commodity_FINE.

  • save (boolean, default=False) – Specifies if the data should be stored to an excel spreadsheet`.

Returns:

optimized_es – Energy system carrying the optimization results.

Return type:

fine energy system model

tessif.examples.data.fine.py_hard.single_chp_emission_objective(directory=None, filename=None, save=False)[source]

Create a single combined heat and power example with emissions constrained using fine.

Creates a simple energy system simulation to potentially store it on disc in directory as

filename

Parameters:
  • directory (str, default=None) –

    String path the created energy system is stored in.

    If set to None (default) tessif.frused.paths.write_dir/fine/single_chp_obj will be the chosen directory.

  • filename (str, default=None) –

    String name of the file the results are stored in.

    If set to None (default) filename will be single_chp_obj.

  • save (boolean, default=False) – Specifies if the data should be stored to an excel spreadsheet`.

Returns:

optimized_es – Energy system carrying the optimization results.

Return type:

fine energy system model

tessif.examples.data.fine.py_hard.tsa_one_year_example(directory=None, filename=None, save=False, tsa=False)[source]

Create an one year timeseries example using fine.

Creates a simple energy system simulation to potentially store it on disc in directory as

filename

Parameters:
  • directory (str, default=None) –

    String path the created energy system is stored in.

    If set to None (default) tessif.frused.paths.write_dir/fine/one_year will be the chosen directory.

  • filename (str, default=None) –

    String name of the file the results are stored in.

    If set to None (default) filename will be one_year_FINE.

  • save (boolean, default=False) – Specifies if the data should be stored to an excel spreadsheet.

  • tsa (boolean, default=False) – Specifies if the data should be aggregated for faster optimization or not.

Returns:

optimized_es – Energy system carrying the optimization results.

Return type:

fine energy system model