rl-institut / smooth

Simulation framework for non-linear state-dependant energy systems
Other
6 stars 7 forks source link

Feature free intervaltime subbranch #180

Closed j-brendel closed 4 years ago

j-brendel commented 4 years ago

This pull request is on hold. It is being replaced by 3 individual PRs: #181, #183 and #184

This pull request incorporates some changes. It makes PR #155 obsolete.

  1. The interval time can now be adjusted, solving issues #159 and #152
  2. There is a new component "variable_grid"
  3. There is a new component "variable_battery"

Therefore the following changes have been made;

  1. The components "component.py", "component_battery.py", "component_sink.py", and "component_supply.py" and the file "example_plotting_dicts.py" have been corrected. The underlying idea is, that all flows in oemof are designed as time dependent (like Power: W/kW) and automatically adjusted to the intervaltime. Until now flows in smooth have been written as in absolute values (like Energy: Wh/kWh). This commit changes this for the mentioned files, (all?) other components will have to be changed accordingly in order to be able to change the interval time and still get correct outputs. As long as one calculates in hours (interval_time = 60) all components will produce correct outputs.

plot_results.py has been changed to account for different interval times by Stefan in PR #175 and I incorporated these changes here in order to avoid merge conflicts.

  1. The new component "variable_grid" has been written, so that the optimizer (run_optimization) can optimize the type of grid connection (grid_level). Therefore different levels can be efined regarding their output_max and capex.

  2. Similarly the component "variable_battery" can be used in order for the optimizer to select the best suited battery.

j-brendel commented 4 years ago

This PR was replaced by 3 individual PRs: #181, #183 and #184