CO2 storage cost and reverse pipeline flow are paid to the model instead of charged

Aperta
#893 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python
Ambito
backend, databases

Direzione di ricerca

Start with workflow/scripts/add_extra_components.py, especially add_co2_storage and add_co2_network, and reproduce the objective changes described using PyPSA 1.3.0. Trace how Store dispatch and reverse Link flow contribute to the objective, then compare modeling options for charging storage and pipeline flow correctly. Done when storage and either pipeline direction increase the objective by their stated per tonne costs.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug
Version Checks
  • This bug exists on the develop branch of PyPSA-USA.
The Issue

With co2: storage: true, the cost of storing CO2 lowers the objective instead of raising it.

add_co2_storage puts the storage cost (USD/tCO2) on the marginal_cost of the co2 storage Store. PyPSA multiplies a Store's marginal_cost by its dispatch p, which is negative while the store fills. A store that only fills therefore earns its "cost" on every tonne injected.

The CO2 pipelines have the same problem in one direction. add_co2_network builds each pipeline as a single Link with p_min_pu=-1 and marginal_cost=4, so flow from bus1 to bus0 is paid 4 USD/t rather than charged.

Effects:

  • CCS plants are subsidised by the storage cost of their node (about 3.5 USD/MWh for a CCGT at 10 USD/t) rather than charged it.
  • Nodes with the highest storage "cost" are the most attractive. The county data goes up to 243 USD/t, where DAC plus storage could pay for itself (not tested).
Steps To Reproduce

On pypsa 1.3.0, a generator feeding a Link that sends 0.35 t/MWh to a capture bus with an extendable Store, 140 t injected in total:

Store marginal_cost Objective
0 4000
10 2600

The objective falls by 10 USD/t x 140 t. For the Link, 20 t of reverse flow at marginal_cost=4 lowers the objective by 80.

Suggested Fix

Charge the storage cost on something that only flows one way, e.g. a Link from the capture bus to a separate storage bus with the cost as its marginal_cost (this Link can also carry an injection-rate limit). Model the pipelines as two one-way Links that share capacity, or as a bidirectional Link with the cost on absolute flow.

Lingua principale
Python
Stelle
154
Fork
58
Merge medio
3g 9h
PR unite (30g)
51

Preparare l'ambiente

  • Nessun Dockerfile né file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di PyPSA/pypsa-usa

Tutte le issue di PyPSA/pypsa-usa

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.