Skip to content

Commit

Permalink
Merge pull request #1381 from 0UmfHxcvx5J7JoaOhFSs5mncnisTJJ6q/fix/re…
Browse files Browse the repository at this point in the history
…move_unused_industry_output

addendum to #1354: carry changes over to fixed_shares
  • Loading branch information
0UmfHxcvx5J7JoaOhFSs5mncnisTJJ6q authored Aug 21, 2023
2 parents 733070d + 7b7d5d9 commit 1e39009
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 29 deletions.
1 change: 0 additions & 1 deletion modules/37_industry/fixed_shares/declarations.gms
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ Parameters
o37_cementProcessEmissions(ttot,all_regi,all_enty) "cement process emissions [GtC/a]"
o37_CESderivatives(ttot,all_regi,all_in,all_in) "derivatives of production CES function"
o37_demFeIndSub(ttot,all_regi,all_enty,all_enty,secInd37,all_emiMkt) "FE demand per industry subsector, FE carrier, SE carrier, emissions market"
o37_demFeIndSub_SecCC(ttot,all_regi,secInd37) "FE per subsector whose emissions can be captured, helper parameter for calculation of industry captured CO2"

!! empty parameters from subsectors
pm_energy_limit(all_in) "" / /
Expand Down
37 changes: 21 additions & 16 deletions modules/37_industry/fixed_shares/postsolve.gms
Original file line number Diff line number Diff line change
Expand Up @@ -25,22 +25,27 @@ o37_demFeIndSub(ttot,regi,entySe,entyFe,secInd37,emiMkt)
= sum(fe2ppfEn37(entyFe,in), p37_shIndFE(regi,in,secInd37))
* vm_demFeSector_afterTax.l(ttot,regi,entySe,entyFe,"indst",emiMkt);

*** FE per subsector whose emissions can be captured (helper parameter for
*** calculation of industry captured CO2 below)
o37_demFeIndSub_SecCC(ttot,regi,secInd37)
= sum((se2fe(entySe,entyFe,te),macBaseInd37(entyFe,secInd37),
sector2emiMkt("indst",emiMkt)),
o37_demFeIndSub(ttot,regi,entySe,entyFe,secInd37,emiMkt)
);

*** industry captured CO2
pm_IndstCO2Captured(ttot,regi,entySe,entyFe,secInd37,emiMkt)$(
entyFeCC37(entyFe) AND o37_demFeIndSub_SecCC(ttot,regi,secInd37)
AND macBaseInd37(entyFe,secInd37))
= sum( secInd37_2_emiInd37(secInd37,emiInd37)$(emiInd37_fuel(emiInd37)),
vm_emiIndCCS.l(ttot,regi,emiInd37)
*** industry captured fuel CO2
pm_IndstCO2Captured(ttot,regi,entySE,entyFE(entyFEcc37),secInd37,emiMkt)$(
macBaseInd37(entyFE,secInd37)
AND sum(entyFE2, vm_macBaseInd.l(ttot,regi,entyFE2,secInd37)) )
= ( o37_demFEindsub(ttot,regi,entySE,entyFE,secInd37,emiMkt)
* sum(se2fe(entySE2,entyFE,te),
!! collapse entySE dimension, so emission factors apply to all entyFE
!! regardless or origin, and therefore entySEbio and entySEsyn have
!! non-zero emission factors
pm_emifac(ttot,regi,entySE2,entyFE,te,"co2")
)
* o37_demFeIndSub(ttot,regi,entySe,entyFe,secInd37,emiMkt)
/ o37_demFeIndSub_SecCC(ttot,regi,secInd37);
) !! subsector emissions (smokestack, i.e. including biomass & synfuels)

* ( sum(secInd37_2_emiInd37(secInd37,emiInd37(emiInd37_fuel)),
vm_emiIndCCS.l(ttot,regi,emiInd37)
) !! subsector captured energy emissions

/ sum(entyFE2,
vm_macBaseInd.l(ttot,regi,entyFE2,secInd37)
) !! subsector total energy emissions
) !! subsector capture share
;

*** EOF ./modules/37_industry/fixed_shares/postsolve.gms
1 change: 0 additions & 1 deletion modules/37_industry/subsectors/declarations.gms
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ $endif.process_based_steel
o37_demFeIndTotEn(ttot,all_regi,all_enty,all_emiMkt) "total FE per energy carrier and emissions market in industry (sum over subsectors)"
o37_shIndFE(ttot,all_regi,all_enty,secInd37,all_emiMkt) "share of subsector in FE industry energy carriers and emissions markets"
o37_demFeIndSub(ttot,all_regi,all_enty,all_enty,secInd37,all_emiMkt) "FE demand per industry subsector"
o37_demFeIndSub_SecCC(ttot,all_regi,secInd37) "FE per subsector whose emissions can be captured, helper parameter for calculation of industry captured CO2"

$ifThen.CESMkup not "%cm_CESMkup_ind%" == "standard"
p37_CESMkup_input(all_in) "markup cost parameter read in from config for CES levels in industry to influence demand-side cost and efficiencies in CES tree [trUSD/CES input]" / %cm_CESMkup_ind% /
Expand Down
11 changes: 0 additions & 11 deletions modules/37_industry/subsectors/postsolve.gms
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,6 @@ o37_demFeIndSub(ttot,regi,entySe,entyFe,secInd37,emiMkt)
* vm_demFeSector_afterTax.l(ttot,regi,entySe,entyFe,"indst",emiMkt)
);

*** FE per subsector whose emissions can be captured (helper parameter for
*** calculation of industry captured CO2 below)
*** NOTE: not used for pm_IndstCO2Captured anymore since it did not take into
*** account the different emission factors of FE carriers. But used in remind2,
*** so kept for backwards compatibility.
o37_demFeIndSub_SecCC(ttot,regi,secInd37)
= sum((se2fe(entySe,entyFe,te),macBaseInd37(entyFe,secInd37),
sector2emiMkt("indst",emiMkt)),
o37_demFeIndSub(ttot,regi,entySe,entyFe,secInd37,emiMkt)
);

*** industry captured fuel CO2
pm_IndstCO2Captured(ttot,regi,entySE,entyFE(entyFEcc37),secInd37,emiMkt)$(
macBaseInd37(entyFE,secInd37)
Expand Down

0 comments on commit 1e39009

Please sign in to comment.