8000 annual_heat_demand and sum of demand as result of bdew.HeatBuilding() differ slightly · Issue #33 · oemof/oemof-demand · GitHub
[go: up one dir, main page]

Skip to content

annual_heat_demand and sum of demand as result of bdew.HeatBuilding() differ slightly #33

Open

Description

@MaGering

If you check the result, which is returned by bdew.HeatBuilding(), you'll find that its sum differs slightly from your input in annual_heat_demand.

To reproduce this, you can add these two lines to heat_demand_example.py here after calling bdew.HeatBuilding() for a single family housing ('efh'):

    result_annual_heat_demand = sum(demand["efh"])
    print("Sum of heat demand 'efh': ", result_annual_heat_demand)

Activity

  1. p-snft commented on Jan 15, 2021

    @p-snft
    Member

    To simplify discussion for those who cannot run the code right away: What are the numbers?

  2. MaGering commented on Jan 15, 2021

    @MaGering
    ContributorAuthor

    If you pass annual_heat_demand=25000 and shlp_type='EFH', then you'll get sum(demand["efh"]) = 25001.458160603575

  3. p-snft commented on Jan 16, 2021

    @p-snft
    Member

    I think, this inaccuracy is quite expected when using floating point numbers. If it's really necessary, it might be mitigated but not avoided.

  4. self-assigned this
    on Jan 23, 2021
  5. p-snft commented on Jan 23, 2021

    @p-snft
    Member

    I found that the results in this area in the code are pretty sensitive to code changes. Maybe, it is possible to reduce the inaccuracy.

  6. added this to the Release v0.2 milestone on Jan 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    0