Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev/feedstocks review #6

Closed
wants to merge 56 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
6086222
add lower bound on feso/feli/fega in chemicals FE input for feedstocks
0UmfHxcvx5J7JoaOhFSs5mncnisTJJ6q Oct 6, 2021
4c646c6
Merge branch 'dev/chemicals_feedstock_share' of https://github.com/0U…
mellamoSimon Dec 7, 2021
3b4dda1
adds a factor to discount (non-energy) feedstocks from emissions acco…
mellamoSimon Jan 14, 2022
d787eb6
Merge branch 'remindmodel:develop' into feedstocks-emissions
mellamoSimon Jan 20, 2022
82081ae
Please enter the commit message for your changes. Lines starting
mellamoSimon Jan 20, 2022
8c7f07c
Merge branch 'feedstocks-emissions' of https://github.com/mellamoSimo…
mellamoSimon Jan 20, 2022
576be8b
debug mappings in non-energy feedstock flows 2(gitshow)
mellamoSimon Jan 20, 2022
8833a78
add emissions from non-energy feedstocks in the chemicals sector
mellamoSimon Feb 3, 2022
f093da3
fix subsetting of sums of feedstocks implementation to only apply equ…
Feb 17, 2022
b6da625
add some parameters for checking the newly introduced FE w/o non-ener…
Feb 17, 2022
374064e
Merge pull request #1 from fschreyer/feedstocks-emissions
mellamoSimon Feb 21, 2022
3c8d6ef
remove feedstock carbon in industry from carbon that can be captured
Feb 25, 2022
c20ec68
initialize pm_emifacNonEnergy for all years via ttot
Feb 25, 2022
f701461
minor description update
mellamoSimon Mar 3, 2022
6d27211
add constraint that baseline runs should only use fossil feedstocks i…
Mar 9, 2022
cf5e671
add small penalty cost on fuel switching between biogenic and synthet…
Mar 9, 2022
d5c0d05
Merge pull request #2 from fschreyer/feedstocks-emissions
mellamoSimon Mar 17, 2022
c5fa360
correct emissions accounting of feedstock carbon: substract non-fossi…
Mar 23, 2022
2baede0
correct entySeSyn set to contain only synthetic liquids, gases SE car…
Mar 23, 2022
f5698a2
correct FE2CES industry balance equation for feedstocks supply, such …
Mar 23, 2022
f5b9a66
add futher parameters in industry module to check correct implementa…
Mar 23, 2022
fd19be3
clean up the code a bit
mellamoSimon Mar 23, 2022
eaee352
Merge branch 'feedstocks-emissions' into feedstocks-emissions
mellamoSimon Jun 7, 2022
0269115
Merge pull request #3 from fschreyer/feedstocks-emissions
mellamoSimon Jun 9, 2022
eafe50c
resolve conflicts with main trunk
mellamoSimon Jun 9, 2022
d7dba4d
Merge branch 'remindmodel:develop' into feedstocks-updated
mellamoSimon Jun 14, 2022
f7786ef
Merge branch 'remindmodel:develop' into feedstocks-updated
mellamoSimon Jun 15, 2022
1bed621
fix remaining conflict
mellamoSimon Jun 15, 2022
fe3617c
Merge branch 'feedstocks-updated' of https://github.com/mellamoSimon/…
mellamoSimon Jun 15, 2022
3518dbb
Merge branch 'develop' of https://github.com/mellamoSimon/remind-1 in…
mellamoSimon Jul 19, 2022
aeb68e9
add section break for feedstock balances
mellamoSimon Aug 2, 2022
2d23164
clean up industry code, remove entySe2entyFe set, reset main.gms
0UmfHxcvx5J7JoaOhFSs5mncnisTJJ6q Aug 3, 2022
637280e
Merge branch 'remindmodel:develop' into feedstocks-updated
mellamoSimon Aug 8, 2022
76598cd
delete canceling terms in main balance of industry/subsectors
mellamoSimon Aug 30, 2022
8ad444d
fix file ending
chroetz Aug 25, 2022
0b5d50c
read in regionalized emission factors for feedstocks in chemicals sec…
mellamoSimon Sep 26, 2022
cfb93d4
fixes to read in feedstocks emissions data
mellamoSimon Sep 27, 2022
dfd92b0
fix sets in q37_demFeFeedstockChemIndst that calculates feedstocks
mellamoSimon Oct 24, 2022
39296c3
define feedstocks emi factors for synfuels and biofuels too and restr…
mellamoSimon Nov 10, 2022
2722c76
fix conflicts with develop branch
mellamoSimon Nov 25, 2022
6d426a8
Merge branch 'develop' of github.com:mellamoSimon/remind-1 into feeds…
mellamoSimon Dec 13, 2022
ace0c5a
Merge branch 'develop' of github.com:mellamoSimon/remind-1 into feeds…
mellamoSimon Dec 15, 2022
b3dc515
Merge branch 'develop' of github.com:mellamoSimon/remind-1 into feeds…
mellamoSimon Jan 3, 2023
66713eb
Merge branch 'develop' of https://github.com/remindmodel/remind into …
mellamoSimon Feb 20, 2023
a6819d4
littel message for clean up
mellamoSimon Feb 20, 2023
a17adfa
Merge branch 'develop' of github.com:remindmodel/remind into feedstoc…
mellamoSimon Feb 23, 2023
c7acd43
Merge branch 'develop' of github.com:mellamoSimon/remind-1 into feeds…
mellamoSimon May 5, 2023
fe1df9e
Merge branch 'develop' of github.com:remindmodel/remind into feedstoc…
mellamoSimon Jun 2, 2023
39b0d27
fix path to input file with emissions factors for chemical processes
mellamoSimon Jun 7, 2023
a4fc992
add feedstock emi factors file to core\input\files and fix path in co…
mellamoSimon Jun 8, 2023
ab3813c
modify paths for internal testing
mellamoSimon Jun 22, 2023
a24287c
Merge branch 'feedstocks-updated' of https://github.com/0UmfHxcvx5J7J…
mellamoSimon Jun 23, 2023
8b6a7aa
Merge branch 'michaja-feedstocks-updated' into feedstocks-updated, so…
mellamoSimon Jun 23, 2023
9aa92ef
UNFINISHED: add plastics incineration emissions and plastic carbon re…
mellamoSimon Aug 15, 2023
9019040
bugfix incineration of plastics
mellamoSimon Aug 18, 2023
3573494
boyscout readability
0UmfHxcvx5J7JoaOhFSs5mncnisTJJ6q Sep 13, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion config/default.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ cfg$regionmapping <- "config/regionmappingH12.csv"
### Additional (optional) region mapping, so that those validation data can be loaded that contain the corresponding additional regions.
cfg$extramappings_historic <- ""
#### Current input data revision (<mainrevision>.<subrevision>) ####
cfg$inputRevision <- "6.501"
cfg$inputRevision <- "6.54APT-2023-06-11"

#### Current CES parameter and GDX revision (commit hash) ####
cfg$CESandGDXversion <- "7c6249fa1d775d0e1a4ce1602fc321b47c2a33be"
Expand Down
51 changes: 51 additions & 0 deletions config/scenario_config_rev3p0p0_fdstk.csv

Large diffs are not rendered by default.

34 changes: 34 additions & 0 deletions core/datainput.gms
Original file line number Diff line number Diff line change
Expand Up @@ -1461,6 +1461,40 @@ pm_emifac(ttot,regi,"seliqfos","fehos","tdfoshos","co2") = p_ef_dem(regi,"fehos"
pm_emifac(ttot,regi,"seliqfos","fepet","tdfospet","co2") = p_ef_dem(regi,"fepet") / (sm_c_2_co2*1000*sm_EJ_2_TWa); !! GtC/TWa
pm_emifac(ttot,regi,"seliqfos","fedie","tdfosdie","co2") = p_ef_dem(regi,"fedie") / (sm_c_2_co2*1000*sm_EJ_2_TWa); !! GtC/TWa

***------ Read in emission factors for process emissions in chemicals sector---
*' calculated using IEA data on feedstocks flows and UNFCCC data on chem sector process emissions
***TO DO: remove the "*" by modif the input file (fegas instead of gases, etc.)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What exactly is going to be removed? What stays?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wanted to remove the * here: parameter f_nechem_emissionFactors(ttot,all_regi,*) because I don't know if using that trick is proper coding for us. This means introducing some changes in data preparation in mrremind that I was postponing for the final cleaning before merging. Or can I just leave it like that?

*** "non-energy emission factors [GtC per ZJ]"
parameter f_nechem_emissionFactors(ttot,all_regi,*)
/
$ondelim
$include "./core/input/f_nechem_emissionFactors.cs4r"
$offdelim
/
;

pm_emifacNonEnergy(ttot,regi,'segafos','fegas','indst','co2') = f_nechem_emissionFactors(ttot,regi,"gases") / s_zj_2_twa;
pm_emifacNonEnergy(ttot,regi,'seliqfos','fehos','indst','co2') = f_nechem_emissionFactors(ttot,regi,"liquids") / s_zj_2_twa;
pm_emifacNonEnergy(ttot,regi,'sesofos','fesos','indst','co2') = f_nechem_emissionFactors(ttot,regi,"solids") / s_zj_2_twa;

pm_emifacNonEnergy(ttot,regi,'segabio','fegas','indst','co2') = f_nechem_emissionFactors(ttot,regi,"gases") / s_zj_2_twa;
pm_emifacNonEnergy(ttot,regi,'seliqbio','fehos','indst','co2') = f_nechem_emissionFactors(ttot,regi,"liquids") / s_zj_2_twa;
pm_emifacNonEnergy(ttot,regi,'sesobio','fesos','indst','co2') = f_nechem_emissionFactors(ttot,regi,"solids") / s_zj_2_twa;

pm_emifacNonEnergy(ttot,regi,'segasyn','fegas','indst','co2') = f_nechem_emissionFactors(ttot,regi,"gases") / s_zj_2_twa;
pm_emifacNonEnergy(ttot,regi,'seliqsyn','fehos','indst','co2') = f_nechem_emissionFactors(ttot,regi,"liquids") / s_zj_2_twa;
Comment on lines +1476 to +1485

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use double quotes, as per coding style.


***------ Read in projections for incineration rates of plastic waste---
*** "incineration rates [fraction]"
parameter f_incinerationShares(ttot,all_regi) "incineration rate of plastic waste"
/
$ondelim
$include "./core/input/f_incinerationShares.cs4r"
$offdelim
/
;
pm_incinerationRate(ttot,all_regi)=f_incinerationShares(ttot,all_regi);

*** some balances are not matching by small amounts;
*** the differences are cancelled out here!!!
pm_cesdata(ttot,regi,in,"offset_quantity")$(ttot.val ge 2005) = 0;
Expand Down
12 changes: 12 additions & 0 deletions core/declarations.gms
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,16 @@ p_extRegiccsinjecrateRegi(ext_regi) "Regional CCS inject
pm_dataeta(tall,all_regi,all_te) "regional eta data"
p_emi_quan_conv_ar4(all_enty) "conversion factor for various gases to GtCeq"
pm_emifac(tall,all_regi,all_enty,all_enty,all_te,all_enty) "emission factor by technology for all types of emissions in emiTe"
pm_emifacNonEnergy(ttot,all_regi,all_enty,all_enty,emi_sectors,all_enty) "emission factor for non-energy fedstocks. For now only for Chemicals Industry [GtC per TWa]"
pm_incinerationRate(ttot,all_regi) "share of plastic waste that gets incinerated [fraction]"
pm_omeg (all_regi,opTimeYr,all_te) "technical depreciation parameter, gives the share of a capacity that is still usable after tlt. [none/share, value between 0 and 1]"
p_aux_lifetime(all_regi,all_te) "auxiliary parameter for calculating life times, calculated externally in excel sheet"
pm_pedem_res(ttot,all_regi,all_te) "Demand for pebiolc residues, needed for enhancement of residue potential [TWa]"
p_ef_dem(all_regi,all_enty) "Demand side emission factor of final energy carriers [MtCO2/EJ]"

*** share of plastic waste that is incinerated REDUNDANT; DELETE ME

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tip: use one marker comment (like FIXME or TODO) and describe what to change. You have at least DELETE ME and TO DO. Good luck remembering and finding all of them.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ouch, yeah

pm_incinerationShares(ttot,all_regi) "Share of plastic waste that gets incinerated [fraction]"

pm_secBioShare(ttot,all_regi,all_enty,emi_sectors) "share of biomass per carrier for each sector"

p_avCapFac2015(all_regi,all_te) "average capacity factor of non-bio renewables in 2015 in REMIND"
Expand Down Expand Up @@ -389,6 +394,7 @@ vm_prodPe(ttot,all_regi,all_enty) "pe production. [TWa, Urani
vm_demSe(ttot,all_regi,all_enty,all_enty,all_te) "se demand. [TWa]"
vm_prodSe(tall,all_regi,all_enty,all_enty,all_te) "se production. [TWa]"
vm_prodFe(ttot,all_regi,all_enty,all_enty,all_te) "fe production. [TWa]"
vm_demFENonEnergySector(ttot,all_regi,all_enty,all_enty,emi_sectors,all_emiMkt) "energy flows of non-energy feedstocks [TWa]"
vm_demFeSector(ttot,all_regi,all_enty,all_enty,emi_sectors,all_emiMkt) "fe demand per sector and emission market. Taxes should be applied to this variable or variables closer to the supply side whenever possible so the marginal prices include the tax effects. [TWa]"
vm_demFeSector_afterTax(ttot,all_regi,all_enty,all_enty,emi_sectors,all_emiMkt) "fe demand per sector and emission market after tax. Demand sectors should use this variable in their fe balance equations so demand side marginals include taxes effects. [TWa]"
v_costFu(ttot,all_regi) "fuel costs"
Expand Down Expand Up @@ -421,6 +427,12 @@ v_shGasLiq_fe(ttot,all_regi,emi_sectors) "share of gases and liquids

vm_emiCdrAll(ttot,all_regi) "all CDR emissions"

vm_FeedstocksCarbon(ttot,all_regi,all_enty,all_enty,all_emiMkt) "carbon contained in chemical feedstocks [GtC]"
vm_plasticsCarbon(ttot,all_regi,all_enty,all_enty,all_emiMkt) "carbon contained in plastics [GtC]"
vm_feedstockEmiUnknownFate(ttot,all_regi,all_enty,all_enty,all_emiMkt) "carbon contained in plastics with unknown fate (assumed to go back into the atmosphere) [GtC]"
vm_incinerationEmi(ttot,all_regi,all_enty,all_enty,all_emiMkt) "Emissions from incineration of plastic waste [GtC]"
vm_nonIncineratedPlastics(ttot,all_regi,all_enty,all_enty,all_emiMkt) "carbon contained in plastics that are not incinerated [GtC]"
Comment on lines +430 to +434

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could use a little more rigour in the naming and describing. Five variables, that are all defined over the same sets -- notably all_emiMkt, so they all look like emissions.

And it is not apparent what the different fates of plastics are. They can be incinerated, they can not be incinerated (that is landfilled?), and is there something else happening to them (unknown). or is there some part of plastics for which we do not know what happens to them?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ups yeah, one description is wrong. I'll extend them so it's more clear


v_changeProdStartyearAdj(ttot,all_regi,all_te) "Absolute effect size of changing output with respect to the reference run for each te"
vm_changeProdStartyearCost(ttot,all_regi,all_te) "Costs for changing output with respect to the reference run for each te"

Expand Down
123 changes: 81 additions & 42 deletions core/equations.gms
Original file line number Diff line number Diff line change
Expand Up @@ -511,26 +511,33 @@ q_emiTe(t,regi,emiTe(enty))..
*' from secondary to final energy transformation (some air pollutants), or
*' transformations within the chain of CCS steps (Leakage).
***-----------------------------------------------------------------------------

q_emiTeDetailMkt(t,regi,enty,enty2,te,enty3,emiMkt)$(emi2te(enty,enty2,te,enty3) OR (pe2se(enty,enty2,te) AND sameas(enty3,"cco2")) ) ..
q_emiTeDetailMkt(t,regi,enty,enty2,te,enty3,emiMkt)$(
emi2te(enty,enty2,te,enty3)
OR (pe2se(enty,enty2,te) AND sameas(enty3,"cco2")) ) ..
vm_emiTeDetailMkt(t,regi,enty,enty2,te,enty3,emiMkt)
=e=
sum(emi2te(enty,enty2,te,enty3),
(
sum(pe2se(enty,enty2,te),
pm_emifac(t,regi,enty,enty2,te,enty3)
* vm_demPE(t,regi,enty,enty2,te)
)
+ sum((ccs2Leak(enty,enty2,te,enty3),teCCS2rlf(te,rlf)),
pm_emifac(t,regi,enty,enty2,te,enty3)
* vm_co2CCS(t,regi,enty,enty2,te,rlf)
)
)$(sameas(emiMkt,"ETS"))
+ sum(se2fe(enty,enty2,te),
( sum(pe2se(enty,enty2,te),
pm_emifac(t,regi,enty,enty2,te,enty3)
* sum(sector$(entyFe2Sector(enty2,sector) AND sector2emiMkt(sector,emiMkt)), vm_demFeSector(t,regi,enty,enty2,sector,emiMkt))
)
)
* vm_demPE(t,regi,enty,enty2,te)
)
+ sum((ccs2Leak(enty,enty2,te,enty3),teCCS2rlf(te,rlf)),
pm_emifac(t,regi,enty,enty2,te,enty3)
* vm_co2CCS(t,regi,enty,enty2,te,rlf)
)
)$( sameas(emiMkt,"ETS") )
+ sum(se2fe(enty,enty2,te),
pm_emifac(t,regi,enty,enty2,te,enty3)
* sum(sector$( entyFe2Sector(enty2,sector)
AND sector2emiMkt(sector,emiMkt) ),
vm_demFeSector(t,regi,enty,enty2,sector,emiMkt)
!! substract FE used for non-energy purposes (as feedstocks) so it does
!! not create energy-related emissions
- sum(entyFe2sector2emiMkt_NonEn(enty2,sector,emiMkt),
vm_demFENonEnergySector(t,regi,enty,enty2,sector,emiMkt))
)
)
)
;

***--------------------------------------------------
Expand Down Expand Up @@ -558,44 +565,76 @@ q_emiEnFuelEx(t,regi,emiTe(enty))..
***--------------------------------------------------
*' Total energy-emissions per emission market, region and timestep
***--------------------------------------------------
q_emiTeMkt(t,regi,emiTe(enty),emiMkt)..
q_emiTeMkt(t,regi,emiTe(enty),emiMkt) ..
vm_emiTeMkt(t,regi,enty,emiMkt)
=e=
*** emissions from fuel combustion
!! emissions from fuel combustion
sum(emi2te(enty2,enty3,te,enty),
vm_emiTeDetailMkt(t,regi,enty2,enty3,te,enty,emiMkt)
)
*** energy emissions fuel extraction
+ v_emiEnFuelEx(t,regi,enty)$(sameas(emiMkt,"ETS"))
*** Industry CCS emissions
- ( sum(emiMac2mac(emiInd37_fuel,enty2),
vm_emiIndCCS(t,regi,emiInd37_fuel)
)$( sameas(enty,"co2") )
)$(sameas(emiMkt,"ETS"))
*** LP, Valve from cco2 capture step, to mangage if capture capacity and CCU/CCS capacity don't have the same lifetime
+ ( v_co2capturevalve(t,regi)$( sameas(enty,"co2") ) )$(sameas(emiMkt,"ETS"))
*** JS CO2 from short-term CCU (short term CCU co2 is emitted again in a time period shorter than 5 years)
!! energy emissions fuel extraction
+ v_emiEnFuelEx(t,regi,enty)$(sameas(emiMkt,"ETS"))
!! Industry CCS emissions
- ( sum(emiMac2mac(emiInd37_fuel,enty2),
vm_emiIndCCS(t,regi,emiInd37_fuel)
)$( sameas(enty,"co2") )
)$(sameas(emiMkt,"ETS") )
!! substract carbon from biogenic or synthetic origin contained in
!! plastics that don't get incinerated ("plastic removals")
- sum(entyFe2sector2emiMkt_NonEn(entyFe,"indst",emiMkt),
sum(se2fe(entySe,entyFe,te)$( entySeBio(entySe) OR entySeSyn(entySe) ),
vm_nonIncineratedPlastics(t,regi,entySe,entyFe,emiMkt)
)
)$( sameas(enty,"co2") )
!! add emissions from plastics incineration. CHECK FOR DOUBLE-COUNTING RISK

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another instance where FIXME would have been safer.

+ sum(entyFe2sector2emiMkt_NonEn(entyFe,"indst",emiMkt),
sum(se2fe(entySe,entyFe,te),
vm_incinerationEmi(t,regi,entySe,entyFe,emiMkt)
)
)$( sameas(enty,"co2") )
!! add emissions from chemical feedstock with unknown fate
+ sum(entyFe2sector2emiMkt_NonEn(entyFe,"indst",emiMkt),
sum(se2fe(entySe,entyFe,te),
vm_feedstockEmiUnknownFate(t,regi,entySe,entyFe,emiMkt)
)
)$( sameas(enty,"co2") )
!! Valve from cco2 capture step, to mangage if capture capacity and CCU/CCS
!! capacity don't have the same lifetime
+ v_co2capturevalve(t,regi)$( sameas(enty,"co2") AND sameas(emiMkt,"ETS") )
!! CO2 from short-term CCU (short term CCU co2 is emitted again in a time
!! period shorter than 5 years)
+ sum(teCCU2rlf(te2,rlf),
vm_co2CCUshort(t,regi,"cco2","ccuco2short",te2,rlf)$( sameas(enty,"co2") )
)$(sameas(emiMkt,"ETS"))
vm_co2CCUshort(t,regi,"cco2","ccuco2short",te2,rlf)$( sameas(enty,"co2") )
)$(sameas(emiMkt,"ETS"))
;

***--------------------------------------------------
*' Total emissions
***--------------------------------------------------
q_emiAllMkt(t,regi,emi,emiMkt)..
q_emiAllMkt(t,regi,emi,emiMkt) ..
vm_emiAllMkt(t,regi,emi,emiMkt)
=e=
vm_emiTeMkt(t,regi,emi,emiMkt)
*** Non-energy sector emissions. Note: These are emissions from all MAC curves.
*** So, this includes fugitive emissions, which are sometimes also subsumed under the term energy emissions.
+ sum(emiMacSector2emiMac(emiMacSector,emiMac(emi))$macSector2emiMkt(emiMacSector,emiMkt),
vm_emiMacSector(t,regi,emiMacSector)
)
*** CDR from CDR module
+ vm_emiCdr(t,regi,emi)$(sameas(emi,"co2") AND sameas(emiMkt,"ETS"))
*** Exogenous emissions
+ pm_emiExog(t,regi,emi)$(sameas(emiMkt,"other"))
=e=
vm_emiTeMkt(t,regi,emi,emiMkt)
!! Non-energy sector emissions. Note: These are emissions from all MAC
!! curves. So, this includes fugitive emissions, which are sometimes also
!! subsumed under the term energy emissions.
+ sum((emiMacSector2emiMac(emiMacSector,emiMac(emi)),
macSector2emiMkt(emiMacSector,emiMkt)),
vm_emiMacSector(t,regi,emiMacSector)
)
!! CDR from CDR module
+ vm_emiCdr(t,regi,emi)$( sameas(emi,"co2") AND sameas(emiMkt,"ETS") )
!! Exogenous emissions
+ pm_emiExog(t,regi,emi)$( sameas(emiMkt,"other") )
!! non energy emi from chem sector (process emissions from feedstocks):
+ sum((entyFe2sector2emiMkt_NonEn(entyFe,sector,emiMkt),
se2fe(entySe,entyFe,te)),
vm_demFENonEnergySector(t,regi,entySe,entyFe,sector,emiMkt)
* pm_emifacNonEnergy(t,regi,entySe,entyFe,sector,emi)
)
!!emissions from plastics incineration

!!emissions from chemical feedstock with unknown fate (assumed to go into the atmosphere)
;


Expand Down
1 change: 1 addition & 0 deletions core/input/files
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ p_adj_deltacapoffset.cs4r
p_boundCapCCSindicator.cs4r
p_boundEmi.cs4r
p_emiFossilFuelExtr.cs4r
f_nechem_emissionFactors.cs4r
p_emineg_econometric.cs3r
pm_histCap.cs3r
p_histCapFac.cs4r
Expand Down
24 changes: 10 additions & 14 deletions core/input/generisdata_emi.prn

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you change this file intentionally, or was that some merging error?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging error

Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
*** SOF ./core/input/generisdata_emi.prn
*TA* This file includes the emission factors of secondary energy production technologies given in GtC per ZJ (ie 10^9tC per 10^9TJ)
*RP* the emission factors for oil were reduced from 20 to 18.4 to represent
*** that a share of oil is not burned but rather converted into long-lived
*** goods (bitumen->tar for streets, durable plastics - most of plastics is
*** quickly burned, but some remains unburnt for decades) - "carbonstored".
*TA* This file includes the emission factors of secondary energy production technologies given in GtC per ZJ (ie 10^9tC per 10^9TJ)
*** NB: reduction calculated based on values in manual to IEA CO2 emissions statistics (2007).
*JeS* emission factors for n2o are in Tg N per TWa (native remind units)
*DK* biomass N2O emissions are taken care via p_efFossilFuelExtr in q_macBase in core/equations.gms
Expand Down Expand Up @@ -35,15 +31,15 @@ pebiolc.seel.bioigccc -20.0 20.0
pebiolc.seel.bioigcc
pebiolc.segabio.biogasc -9.5 9.5
pebiolc.seliqbio.bioftcrec -12.0 12.0
pebiolc.seh2.bioh2c -22.5 22.5
pebiolc.seel.biochp
pebiolc.seh2.bioh2
pebiolc.sehe.biohp
pebiolc.sesobio.biotr
pebiolc.sesobio.biotrmod
pebiolc.segabio.biogas
peoil.seliqfos.refliq 18.4
peoil.seel.dot 18.4 0.01892
pebiolc.seh2.bioh2c -22.5 22.5 0.12614
pebiolc.seel.biochp 0.12614
pebiolc.seh2.bioh2 0.12614
pebiolc.sehe.biohp 0.12614
pebiolc.sesobio.biotr 0.12614
pebiolc.sesobio.biotrmod 0.12614
pebiolc.segabio.biogas 0.12614
peoil.seliqfos.refliq 20
peoil.seel.dot 20 0.01892
seh2.segasyn.h22ch4 0.395
seh2.seliqsyn.MeOH 0.53

Expand Down
19 changes: 16 additions & 3 deletions core/sets.gms
Original file line number Diff line number Diff line change
Expand Up @@ -1737,9 +1737,8 @@ entySeBio(all_enty) "biomass secondary energy types"

entySeSyn(all_enty) "synfuel secondary energy types"
/
seliqbio "secondary energy liquids from biomass"
sesobio "secondary energy solids from biomass"
segabio "secondary energy gas from biomass"
seliqsyn "secondary energy synthetic liquids from H2"
segasyn "secondary energy synthetic gas from H2"
/

entySeFos(all_enty) "secondary energy types from fossil primary energy"
Expand Down Expand Up @@ -2099,6 +2098,14 @@ macSector2emiMkt(all_enty,all_emiMkt) "mapping mac sectors to emission markets"
co2luc.other
co2cement_process.ETS
/

entyFE2sector2emiMkt_NonEn(all_enty,emi_sectors,all_emiMkt) "combinations of FE type, sector and emissions markets existing for FE non-energy use"
/
fesos . indst . ETS
fehos . indst . ETS
fegas . indst . ETS
/

ccsCo2(all_enty) "only cco2 (???)"
/
cco2
Expand Down Expand Up @@ -2489,8 +2496,14 @@ se2fe(all_enty,all_enty,all_te) "map secondary energy to end-use energy using
seliqsyn.fedie.tdsyndie
seh2.feh2t.tdh2t
/


sefe(all_enty,all_enty) "map secondary energy to final energy"
//

fete(all_enty,all_te) "map final energy to technologies"
//

fe2ue(all_enty,all_enty,all_te) "map FE carriers to ES via appliances"
//

Expand Down
6 changes: 6 additions & 0 deletions modules/02_welfare/utilitarian/declarations.gms
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ $endif.inconv
$IFTHEN.INCONV_bioSwitch "%cm_INCONV_PENALTY_FESwitch%" == "on"
p02_inconvPen_Switch_Track(ttot,all_regi) "Parameter to track magnitude of inconvenience penalty for bio/synfuel share switching [share of consumption]"
$ENDIF.INCONV_bioSwitch

p02_inconvPen_NonEn_Switch_Track(ttot,all_regi) "Parameter to track magnitude of inconvenience penalty for bio/synfuel non-energy fuel switching [share of consumption]"
;

***-------------------------------------------------------------------------------
Expand All @@ -44,6 +46,9 @@ $IFTHEN.INCONV_bioSwitch "%cm_INCONV_PENALTY_FESwitch%" == "on"
v02_NegInconvPenFeBioSwitch(ttot,all_regi,all_enty,all_enty,emi_sectors,all_emiMkt) "Negative inconvenience penalty in the welfare function for bio/synfuel shares switch between sectors and emissions markets"
v02_PosInconvPenFeBioSwitch(ttot,all_regi,all_enty,all_enty,emi_sectors,all_emiMkt) "Positive inconvenience penalty in the welfare function for bio/synfuel shares switch between sectors and emissions markets"
$ENDIF.INCONV_bioSwitch

v02_NegInconvPenNonEnSwitch(ttot,all_regi,all_enty,all_enty,emi_sectors,all_emiMkt) "Negative inconvenience penalty in the welfare function for fuel switching between biomass/synfuel in non-energy use"
v02_PosInconvPenNonEnSwitch(ttot,all_regi,all_enty,all_enty,emi_sectors,all_emiMkt) "Positive inconvenience penalty in the welfare function for fuel switching between biomass/synfuel in non-energy use"
;

***-------------------------------------------------------------------------------
Expand All @@ -62,6 +67,7 @@ $IFTHEN.INCONV_bioSwitch "%cm_INCONV_PENALTY_FESwitch%" == "on"
q02_inconvPenFeBioSwitch(ttot,all_regi,all_enty,all_enty,all_te,emi_sectors,all_emiMkt) "Calculate the inconvenience penalty to avoid switching biomass and synfuel shares in hydrocarbons in buildings, transport and industry and emissions markets if costs are relatively close"
$ENDIF.INCONV_bioSwitch

q02_inconvPenNonEnSwitch(ttot,all_regi,all_enty,all_enty,all_te,emi_sectors,all_emiMkt) "Calculate the inconvenience penalty to avoid switching biomass and synfuel shares in FE non-energy use"
;

*** EOF ./modules/02_welfare/utilitarian/declarations.gms
Loading