pypsa-meets-earth / pypsa-earth-sec

GNU General Public License v3.0
19 stars 16 forks source link

Include monthly matching of hydrogen #198

Closed energyLS closed 1 year ago

energyLS commented 1 year ago

Closes #194

Changes proposed in this Pull Request

This PR includes the monthly matching constraint of hydrogen

Open Questions:

Testing phase:

Checklist

energyLS commented 1 year ago

The monthly matching is implemented, but it seems not to work correctly: the electricity generation is fully fossil. Questions:

Testing options:

energyLS commented 1 year ago

The monthly matching is implemented, but it seems not to work correctly: the electricity generation is fully fossil. Questions:

* Does the monthly matching influence the electricity generation for local electricity demand, and if so, why?

Testing options:

* set only e.g. PV to the desired technologies to match with hydrogen production and see what happens, which techs are included and which are not?

Debugging provides the following insights:

energyLS commented 1 year ago

LOAD issue is resolved. Monthly matching should work as intended. If the allowed_excess = 3 is set to 1 it highly overbuilds capacity, if set to 3 the results are identical to the scenario without constraint. More testing required @hazemakhalek

hazemakhalek commented 1 year ago

I added the option to include a reference case of 0 exports, With the reference case Constraint: RES_Generation(decision variable) - RES_Generation_reference_case(constant) >= Electrolysis_input(decision variable) - Electrolysis_input_ref_case(constant)

Without the reference case: RES_Generation >= Electrolysis_input

hazemakhalek commented 1 year ago

Would be nice if you check that before I merge @energyLS