Minimum Working Examples
Create a minimum working example using |
|
Create an expansion example using |
|
Create an emission constrain example using |
|
Create a combined heat and power example using |
|
Create a storage example using |
|
Create a example with two transformer components using |
|
Create a multi flow grid example using |
|
Create a single combined heat and power example with emissions constrained using |
|
Create an one year timeseries example using |
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
directoryas- 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 bemwe_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
directoryasfilename- 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 beexpansion_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
directoryas- 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 beemission_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
directoryasfilename- 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 bechp_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
directoryas- 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 bestorage_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
directoryasfilename- 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 bedouble_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
directoryasfilename- 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 bemulti_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
directoryasfilename- 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 besingle_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
directoryasfilename- 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 beone_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