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

HeatPipeline as new custom component #619

Draft
wants to merge 13 commits into
base: dev
Choose a base branch
from

Conversation

joroeder
Copy link
Member

@joroeder joroeder commented Jun 21, 2019

This PR should implement a new custom component called HeatPipeline.
In #618 there is a short describtion of the aim of the component.

hp = solph.custom.HeatPipeline(
    label='heat_pipe',
    inputs={b_heat_0: solph.Flow()},
    outputs={b_heat_1: solph.Flow(
        # nominal_value=250,
        nominal_value=None,
        investment=solph.Investment(ep_costs=100,
                                    maximum=250),
                                  )},
    heat_loss_factor=0.0002,
    length=200.0,
    conversion_factors={b_heat_1: 0.8}
    )
  • Single-In-single-out component
  • constant power loss, which is calculated by nominal_value * length * heat_loss_factor
  • option of putting conversion factors like regular Transformer

to do

@joroeder joroeder added this to the v0.3.2 milestone Jun 21, 2019
@joroeder joroeder self-assigned this Jun 21, 2019
@coveralls
Copy link

Coverage Status

Coverage remained the same at 94.275% when pulling 4efe40a on features/add_dhs_pipeline_component into 784eabb on dev.

2 similar comments
@coveralls
Copy link

Coverage Status

Coverage remained the same at 94.275% when pulling 4efe40a on features/add_dhs_pipeline_component into 784eabb on dev.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 94.275% when pulling 4efe40a on features/add_dhs_pipeline_component into 784eabb on dev.

@joroeder
Copy link
Member Author

hey, you will find an example for district-heating network optimization in order to give an idea about what you can use heatpipeline for ...

https://github.com/quarree100/dhs_optimization

It although uses the 'NonConvexInvestmentFlow' of #636
At the moment, there is missing a constant offset not just for costs, but althougt the losses, something like:

P_loss = P_invest * f_loss + f_loss_fix * invest_status

where invest_status is the binary variable of the nonconvex investment.

@codecov
Copy link

codecov bot commented Apr 6, 2020

Codecov Report

Merging #619 into dev will not change coverage by %.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##              dev     #619   +/-   ##
=======================================
  Coverage   92.15%   92.15%           
=======================================
  Files          13       13           
  Lines        1377     1377           
  Branches      326      326           
=======================================
  Hits         1269     1269           
  Misses         62       62           
  Partials       46       46           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update aa68ca6...8a0ce68. Read the comment docs.

@joroeder joroeder modified the milestones: v0.4.0, v0.4.1 Apr 27, 2020
@p-snft p-snft marked this pull request as draft December 14, 2020 15:54
@p-snft p-snft modified the milestones: v0.4.3, v0.4.4 May 26, 2021
@uvchik uvchik modified the milestones: v0.4.5, v0.5.1 May 20, 2022
@p-snft p-snft modified the milestones: v0.5.1, v0.5.2 Aug 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants