Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

District_EMS_Controller #322

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
Open

Conversation

Hoppe-J
Copy link
Contributor

@Hoppe-J Hoppe-J commented Mar 5, 2024

just a small implementation of a list of "used" outputs of ems component.

Problem was when simulating an ems on district level with 2 households which should recieve the same amount of surplus electricity and households have the same tags and sourceweights in connection with ems. The target output of the district ems is just working for household 1. This is due to the functions "sort_source_weights_and_components" and "get_dynamic_output" in ems_controller modell while searching for outputs based on tags and sourceweight.
With the "new" list, outputs are saved and can't used twice.

Add a new compononettype for defining surplus in districts

…rict level and hp are in "contracting" of district) with building ems
- implement list in "get_dynamic_output" function in dynamic_component.py with "used" outputs due to get the right outputs if tag and sourceweights are equal --> without list only one output will be used if tags and sourceweight have the same values --> for ems on district level it will be important to have the same tags and sourceweight for some buildings

- implment list and componenttype in controller_l2_energy_management_system.py
@Hoppe-J Hoppe-J changed the title JHo_District_EMS_Controller District_EMS_Controller Mar 5, 2024
deliver a constante temperature or thermal power in every single time step
- new function in dynamic_component.py to get all outputs
- implement new function in ems controller_l2_energy_management_system.py to loop every output if there the source weight are equal --> no additional list or string splitting anymore
# Conflicts:
#	hisim/components/controller_l2_energy_management_system.py
- change label for outputs in dynamic_component.py back to old version due to conflicts in creating outputs with equal tag and source weight --> label of newest version write the same attribute so outputs will be overwritten if they have same tag and weights
# Conflicts:
#	hisim/components/controller_l2_energy_management_system.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant