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

Deficits show up in hourly calculations but not in yearly node #1389

Closed
mabijkerk opened this issue Jan 25, 2024 · 11 comments · Fixed by #1404
Closed

Deficits show up in hourly calculations but not in yearly node #1389

mabijkerk opened this issue Jan 25, 2024 · 11 comments · Fixed by #1404
Assignees

Comments

@mabijkerk
Copy link
Member

Background
When I open a blank nl2019 scenario on master, the deficits for households and buildings are 0.0 PJ. See the households_space_heater_deficit:

Screenshot 2024-01-25 at 13 28 49

When I however open the deficits table, it shows that there are deficits for apartments between 2005 and present:

Deficits in space heating per residence type and construction period 2526230

Issue
This means that the FEVER_DEMAND_CURVE and the FEVER_PRODUCTION_CURVE for households_useful_demand_for_space_heating_apartments_2005_present are not equal. These are subtracted from each other in the query absolute_deficit_useful_demand_for_space_heating_apartments_2005_present.

Solution
I am not sure how this should be solved. Some interesting points to note:

  • The households_useful_demand_for_space_heating_apartments_2005_present is the first of the existing households in the space_heating_consumer_order
  • The deficits do increase with infinity in the screenshot above, even though they are 0 PJ in both present and future
  • If I set the gas combi boiler to 100% and then back again to 84% (without using the reset button), the deficits disappear
@mabijkerk
Copy link
Member Author

mabijkerk commented Jan 30, 2024

Data-initialisation now shows 0 deficits in a blank scenario, nice work @noracato! I do still spot a minor issue however. Opening a blank scenario now produces -0 deficits:

image

@mabijkerk
Copy link
Member Author

mabijkerk commented Jan 30, 2024

Additionally, when I introduce deficits and then set the amount of decimals to 1, this seems to have no affect. For example:

      %td{:data => {:decimals => 1, :gquery => "relative_deficit_useful_demand_for_space_heating_apartments_before_1945", :graph => :future}}
      %td{:data => {:decimals => 1, :gquery => "relative_deficit_useful_demand_for_space_heating_detached_houses_before_1945", :graph => :future}}
      %td{:data => {:decimals => 1, :gquery => "relative_deficit_useful_demand_for_space_heating_semi_detached_houses_before_1945", :graph => :future}}
      %td{:data => {:decimals => 1, :gquery => "relative_deficit_useful_demand_for_space_heating_terraced_houses_before_1945", :graph => :future}}

This still produces:

Screenshot 2024-01-30 at 16 58 33

@noracato
Copy link
Member

Additionally, when I introduce deficits and then set the amount of decimals to 1, this seems to have no affect.

That is because the unit of the values is unknown, so the table does not (know how to) scale the values and keeps them as the are.

@mabijkerk
Copy link
Member Author

How can the table know the unit of the values? Especially when there are two unit type values in the same table?

@noracato
Copy link
Member

Sorry, that was unclear of me.

In the interface file, your table does not specify a unit, and therefore the table will not rescale values as it does not what the rules are for the conversion. Hence, giving the table cell a precision of 1 decimal will not do anything, as the table is not doing anything with the number.

@mabijkerk
Copy link
Member Author

So is it possible to set a unit for part of the table?

@noracato
Copy link
Member

Not at the moment unfortunately

@noracato
Copy link
Member

Or we have to rebuild the table in a different way, like for example the plant profitability table

@mabijkerk
Copy link
Member Author

mabijkerk commented Jan 31, 2024

Table is looking great! There is however still an interesting thing going on with the data-initialisation in a blank nl2019 scenario. A tiny amount of deficits occur:

V(households_space_heater_deficit,demand)

0.0001087188720703125

The table then looks like this:
Screenshot 2024-01-31 at 15 20 33

Should I open a new issue for this? The negative deficit is strange enough that it should be solved at some point. The issue however seems so marginal that is more of a nice-to-solve at some point than a must-have now.

@mabijkerk
Copy link
Member Author

mabijkerk commented Jan 31, 2024

It is still something worth investigating in my opinion, because in a blank DE_germany scenario, some deficits are quite significant:
Screenshot 2024-01-31 at 15 27 05

If is set any of the technologies at 100% in that scenario, no deficits occur. This suggests that it is not related to the technology capacities, but to the initialisation.

V(households_space_heater_deficit,demand)

5,096,004,925.676771

@noracato
Copy link
Member

Interesting!

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 a pull request may close this issue.

2 participants