Skip to content

Commit

Permalink
Updates to the COMBTECH and HYDROGEN equations to make sure Søren's a…
Browse files Browse the repository at this point in the history
…dditions work
  • Loading branch information
Ida Græsted Jensen committed Jun 20, 2019
1 parent f703f0f commit 50a577f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
3 changes: 2 additions & 1 deletion base/addons/combtech/bb4/combtech_balbase4.inc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
* Equations for addon combtech used in Balbase3 model definition
* Equations for addon combtech used in Balbase4 model definition

QCOMBFUP

Expand All @@ -24,3 +24,4 @@ QHCOMBGSHAREK1
QHCOMBGSHAREK12
QCOMBFSHAREK1
QCOMBFSHAREK12
QGKE_UP_ADD
4 changes: 2 additions & 2 deletions base/addons/combtech/bb4/combtech_eqndecdef.inc
Original file line number Diff line number Diff line change
Expand Up @@ -182,10 +182,10 @@ QCOMBFSHAREK12(IY411,IA,IGCOMB1,IGCOMB2,IS3,T)$(IAGK_HASORPOT(IY411,IA,IGCOMB2)
;

*"Capacity adjustment constraint on electricity generation from biogas upgraded plants (MW)"
QGKE_UP_ADD(IY411,IA,IGCOMB1,IS3,T)..
QGKE_UP_ADD(IY411,IA,IGCOMB1,IS3,T)$(IAGK_HASORPOT(IY411,IA,IGCOMB1))..

VGE_T(IY411,IA,IGCOMB1,IS3,T)+ SUM(IGCOMB2$GGCOMB(IGCOMB1,IGCOMB2),(VGE_T(IY411,IA,IGCOMB2,IS3,T)*(1+HYDROGEN_H2TOF(IGCOMB2))))
=L=
GKFX(IY411,IA,IGCOMB1)+VGKNACCUMNET(IY411,IA,IGCOMB1)

;
;
1 change: 1 addition & 0 deletions base/addons/hydrogen/bb4/hydrogen_balbase4.inc
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
QHYDROGEN_HGETOH2
QHYDROGEN_GGEHTOH2
QHYDROGEN_HGEHTOH2
QHYDROGEN_H2TOEH
QHYDROGEN_EQ
QHYDROGEN_EQ_AREA
QHYDROGEN_STOMAXCON
Expand Down
3 changes: 2 additions & 1 deletion base/addons/hydrogen/bb4/hydrogen_eqndecdef.inc
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ QHYDROGEN_EQ(IY411,IR,IS3,T)..
IHYDROGEN_DH2_REGION_T_Y(IY411,IR,IS3,T)+
SUM(IA$RRRAAA(IR,IA),IHYDROGEN_DH2_AREA_T_Y(IY411,IA,IS3,T))
+ SUM(IAGK_HASORPOT(IY411,IA,IHYDROGEN_GH2FUEL) $(RRRAAA(IR,IA)),VGE_T(IY411,IA,IHYDROGEN_GH2FUEL,IS3,T)/GDATA(IHYDROGEN_GH2FUEL,'GDFE'))
*IDA new additions
+ SUM(IAGK_HASORPOT(IY411,IA,IHYDROGEN_GH2UP) $(RRRAAA(IR,IA)),HYDROGEN_H2TOF(IHYDROGEN_GH2UP)*VGF_T(IY411,IA,IHYDROGEN_GH2UP,IS3,T))
- VHYDROGEN_QH2EQ(IY411,IR,IS3,T,'IMINUS') + VHYDROGEN_QH2EQ(IY411,IR,IS3,T,'IPLUS')
;
Expand All @@ -77,6 +76,8 @@ QHYDROGEN_EQ_AREA(IY411,IA,IS3,T)$(IHYDROGEN_DH2_AREA_T_Y(IY411,IA,IS3,T))..
- SUM(IHYDROGEN_GH2STO$(IAGK_HASORPOT(IY411,IA,IHYDROGEN_GH2STO)),VHYDROGEN_STOLOADT(IY411,IA,IHYDROGEN_GH2STO,IS3,T))
=G=
IHYDROGEN_DH2_AREA_T_Y(IY411,IA,IS3,T)
+ SUM(IHYDROGEN_GH2FUEL$IAGK_HASORPOT(IY411,IA,IHYDROGEN_GH2FUEL),VGE_T(IY411,IA,IHYDROGEN_GH2FUEL,IS3,T)/GDATA(IHYDROGEN_GH2FUEL,'GDFE'))
+ SUM(IHYDROGEN_GH2UP$IAGK_HASORPOT(IY411,IA,IHYDROGEN_GH2UP),HYDROGEN_H2TOF(IHYDROGEN_GH2UP)*VGF_T(IY411,IA,IHYDROGEN_GH2UP,IS3,T))
- VHYDROGEN_QH2EQ(IY411,IA,IS3,T,'IMINUS') + VHYDROGEN_QH2EQ(IY411,IA,IS3,T,'IPLUS')
;

Expand Down

0 comments on commit 50a577f

Please sign in to comment.