Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
remind
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jerome Hilaire
remind
Commits
ebab344b
Commit
ebab344b
authored
5 years ago
by
Michaja Pehl
Browse files
Options
Downloads
Patches
Plain Diff
add changes to o37_emiInd calculation to account for SE manifold, needs
testing
parent
6ae994a0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!51
fix calculation of industry CO2/CCS emissions
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
core/equations.gms
+21
-19
21 additions, 19 deletions
core/equations.gms
core/sets.gms
+5
-11
5 additions, 11 deletions
core/sets.gms
modules/37_industry/fixed_shares/postsolve.gms
+6
-0
6 additions, 0 deletions
modules/37_industry/fixed_shares/postsolve.gms
with
32 additions
and
30 deletions
core/equations.gms
+
21
−
19
View file @
ebab344b
...
@@ -172,10 +172,11 @@ $endif
...
@@ -172,10 +172,11 @@ $endif
***---------------------------------------------------------------------------
***---------------------------------------------------------------------------
*' Transformation from secondary to final energy:
*' Transformation from secondary to final energy:
***---------------------------------------------------------------------------
***---------------------------------------------------------------------------
q_transSe2fe(t,regi,se2fe(enty,enty2,te))..
q_transSe2fe(t,regi,se2fe(entySE,entyFE,te)) ..
pm_eta_conv(t,regi,te) * vm_demSe(t,regi,enty,enty2,te)
pm_eta_conv(t,regi,te)
=e=
* vm_demSE(t,regi,entySE,entyFE,te)
vm_prodFe(t,regi,enty,enty2,te)
=e=
vm_prodFE(t,regi,entySE,entyFE,te)
;
;
...
@@ -506,34 +507,35 @@ q_emiTeDetail(t,regi,enty,enty2,te,enty3)$( emi2te(enty,enty2,te,enty3)
...
@@ -506,34 +507,35 @@ q_emiTeDetail(t,regi,enty,enty2,te,enty3)$( emi2te(enty,enty2,te,enty3)
*' Total energy-emissions:
*' Total energy-emissions:
***--------------------------------------------------
***--------------------------------------------------
*mh calculate total energy system emissions for each region and timestep:
*mh calculate total energy system emissions for each region and timestep:
q_emiTe(t,regi,emiTe(enty))..
q_emiTe(t,regi,emiTe(enty))
..
vm_emiTe(t,regi,enty)
vm_emiTe(t,regi,enty)
=e=
=e=
***
emissions from fuel combustion
!!
emissions from fuel combustion
sum(emi2te(enty2,enty3,te,enty),
sum(emi2te(enty2,enty3,te,enty),
vm_emiTeDetail(t,regi,enty2,enty3,te,enty)
vm_emiTeDetail(t,regi,enty2,enty3,te,enty)
)
)
***
emissions from non-conventional fuel extraction
!!
emissions from non-conventional fuel extraction
+ sum(emi2fuelMine(enty,enty2,rlf),
+ sum(emi2fuelMine(enty,enty2,rlf),
p_cint(regi,enty,enty2,rlf)
p_cint(regi,enty,enty2,rlf)
* vm_fuExtr(t,regi,enty2,rlf)
* vm_fuExtr(t,regi,enty2,rlf)
)$( c_cint_scen eq 1 )
)$( c_cint_scen eq 1 )
*** emissions from conventional fuel extraction
!! emissions from conventional fuel extraction
+ sum(pe2rlf(enty3,rlf2),sum(enty2,
+ sum((pe2rlf(enty3,rlf2),enty2)$( pm_fuExtrOwnCons(regi,enty,enty2) gt 0 ),
(p_cintraw(enty2)
p_cintraw(enty2)
* pm_fuExtrOwnCons(regi, enty2, enty3)
* pm_fuExtrOwnCons(regi,enty2,enty3)
* vm_fuExtr(t,regi,enty3,rlf2)
* vm_fuExtr(t,regi,enty3,rlf2)
)$(pm_fuExtrOwnCons(regi, enty, enty2) gt 0)
)
))
!! Industry CCS emissions
*** Industry CCS emissions
- sum(emiMac2mac(emiInd37_fuel,enty2),
- sum(emiMac2mac(emiInd37_fuel,enty2),
vm_emiIndCCS(t,regi,emiInd37_fuel)
vm_emiIndCCS(t,regi,emiInd37_fuel)
)$( sameas(enty,"co2") )
)$( sameas(enty,"co2") )
!! Valve from cco2 capture step, to mangage if capture capacity and CCU/CCS
*** LP, Valve from cco2 capture step, to mangage if capture capacity and CCU/CCS
capacity don't have the same lifetime
!!
capacity don't have the same lifetime
+ v_co2capturevalve(t,regi)$( sameas(enty,"co2") )
+ v_co2capturevalve(t,regi)$( sameas(enty,"co2") )
*** JS CO2 from short-term CCU
!! CO2 from short-term CCU
+ sum(teCCU2rlf(te2,rlf), vm_co2CCUshort(t,regi,"cco2","ccuco2short",te2,rlf) )
+ sum(teCCU2rlf(te2,rlf),
vm_co2CCUshort(t,regi,"cco2","ccuco2short",te2,rlf)
)
;
;
***------------------------------------------------------
***------------------------------------------------------
...
...
This diff is collapsed.
Click to expand it.
core/sets.gms
+
5
−
11
View file @
ebab344b
...
@@ -1939,23 +1939,16 @@ steps "iterator for MAC steps"
...
@@ -1939,23 +1939,16 @@ steps "iterator for MAC steps"
*** Helpful constructs: alias
*** Helpful constructs: alias
***-----------------------------------------------------------------------------
***-----------------------------------------------------------------------------
***-----------------------------------------------------------------------------
***-----------------------------------------------------------------------------
alias(t,t2);
alias(t,t2,t3);
alias(t,t3);
alias(tall,tall2,tall3);
alias(tall,tall2);
alias(tall,tall3);
alias(ttot,ttot2);
alias(ttot,ttot2);
alias(opTimeYr,opTimeYr2);
alias(opTimeYr,opTimeYr2);
alias(teVRE,teVRE2);
alias(teVRE,teVRE2);
alias(teLoc,teLoc2);
alias(teLoc,teLoc2);
alias(all_te,all_te2);
alias(all_te,all_te2);
alias(te,te2);
alias(te,te2
,te3
);
alias(all_enty,all_enty2);
alias(all_enty,all_enty2);
alias(enty,enty2);
alias(enty,enty2,enty3,enty4,enty5,enty6,enty7);
alias(enty,enty3);
alias(enty,enty4);
alias(enty,enty5);
alias(enty,enty6);
alias(enty,enty7);
alias(entyPE,entyPE2);
alias(entyPE,entyPE2);
alias(entySe,entySe2);
alias(entySe,entySe2);
alias(entyFe,entyFe2);
alias(entyFe,entyFe2);
...
@@ -2522,5 +2515,6 @@ es2ppfen(all_esty,all_in) "matching ES in ESM to ppfEn in MACRO"
...
@@ -2522,5 +2515,6 @@ es2ppfen(all_esty,all_in) "matching ES in ESM to ppfEn in MACRO"
alias(ccs2te,ccs2te2);
alias(ccs2te,ccs2te2);
alias(pe2se,pe2se2);
alias(pe2se,pe2se2);
alias(se2fe,se2fe2);
*** EOF ./core/sets.gms
*** EOF ./core/sets.gms
This diff is collapsed.
Click to expand it.
modules/37_industry/fixed_shares/postsolve.gms
+
6
−
0
View file @
ebab344b
...
@@ -17,6 +17,12 @@ loop (enty$( sameas(enty,"co2") OR sameas(enty,"cco2") ),
...
@@ -17,6 +17,12 @@ loop (enty$( sameas(enty,"co2") OR sameas(enty,"cco2") ),
* p37_shIndFE(regi,in,secInd37)
* p37_shIndFE(regi,in,secInd37)
)
)
* p37_fctEmi(entyFE)
* p37_fctEmi(entyFE)
!! share of SE in FE production
* ( vm_prodFE.l(ttot,regi,entySE,entyFE,te2)
/ sum(se2fe2(entySE2,entyFE,te3),
vm_prodSE.l(ttot,regi,entySE2,entyFE,te3)
)
)
)
)
!! share of PE in SE production
!! share of PE in SE production
* ( vm_prodSE.l(ttot,regi,entyPE,entySE,te)
* ( vm_prodSE.l(ttot,regi,entyPE,entySE,te)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment