quintel / refinery

Calculates node demands and edge shares for sparse energy graphs.
2 stars 0 forks source link

ET-Engine-style calculated overflows #5

Closed dennisquintel closed 11 years ago

dennisquintel commented 11 years ago

Background of this challenge.

In the current ET-Engine, sometimes we have to match an set demand with a set production, e.g.:

[A] <-- [B] <-- [C]

Where A is e.g. set to 100 and C is set to 200. Needless to say, this poses a challenge for converter B.

This happens in the model every time when the demand is set by the User or the Statistical Bureau, but e.g. also the number of CHPs that produce 'so much' heat is also set by the User/Statistical Bureau.

How ET-Engine deals with this

Structure

An 'overflow' converter need to exist, with two directed edges connecting converter B that needs to balance A and C.

The 'overflow' converter can provide extra energy, or usurp extra energy.

image

Calculated values

In all cases, through converter B the flow supposed to as big as the biggest demand/production from A or C.

Below we show:

image

Then, B should become 200, and E 100

image

Suppose A > C

image

Then, also B should become 200, and E 100, but D and F get different values:

image

Including @andremedeiros and @ChaelKruip in this discussion