Skip to content

Commit

Permalink
Residential and commercial floor space.
Browse files Browse the repository at this point in the history
  • Loading branch information
robinhasse committed Jan 25, 2023
1 parent 6a36fda commit e8ba2bf
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
10 changes: 10 additions & 0 deletions modules/36_buildings/simple/datainput.gms
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,25 @@ pm_cesdata_sigma(ttot,"enhgab")$ (ttot.val eq 2040) = 3;


*** floor space demand for reporting
* RH, Jan 2023: if clauses to maintain backwards compatibility with old input data for a while
Parameter
$call "awk -F ',' '$0 !~ /^\*/ { exit NF }' ./modules/36_buildings/simple/input/p36_floorspace_scen.cs4r"
$ifthenE.resComFloor1 (errorLevel)eq(5)
p36_floorspace_scen(tall, all_regi, all_demScen, secBuild36) "floorspace, in buildings simple realization only used for reporting at the moment, not in optimization itself"
$else.resComFloor1
p36_floorspace_scen(tall, all_regi, all_demScen) "floorspace, in buildings simple realization only used for reporting at the moment, not in optimization itself"
$endif.resComFloor1
/
$ondelim
$include "./modules/36_buildings/simple/input/p36_floorspace_scen.cs4r"
$offdelim
/
;
$ifthenE.resComFloor2 (errorLevel)eq(5)
p36_floorspace(ttot,regi,secBuild36) = p36_floorspace_scen(ttot,regi,"%cm_demScen%",secBuild36) * 1e-3; !! from million to billion m2
$else.resComFloor2
p36_floorspace(ttot,regi) = p36_floorspace_scen(ttot,regi,"%cm_demScen%") * 1e-3; !! from million to billion m2
$endif.resComFloor2


*** UE demand for reporting
Expand Down
5 changes: 5 additions & 0 deletions modules/36_buildings/simple/declarations.gms
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,12 @@

Parameters
p36_CESMkup(ttot,all_regi,all_in) "parameter for those CES markup cost accounted as investment cost in the budget [trUSD/CES input]"
$call "awk -F ',' '$0 !~ /^\*/ { exit NF }' ./modules/36_buildings/simple/input/p36_floorspace_scen.cs4r"
$ifthenE.resComFloor0 (errorLevel)eq(5)
p36_floorspace(tall,all_regi,secBuild36) "buildings floorspace, billion m2, in simple realization only used for reporting"
$else.resComFloor0
p36_floorspace(tall,all_regi) "buildings floorspace, billion m2, in simple realization only used for reporting"
$endif.resComFloor0
p36_uedemand_build(tall,all_regi,all_in) "useful energy demand in buildings in TWh/a, in simple realization only used for reporting"
;

Expand Down
7 changes: 7 additions & 0 deletions modules/36_buildings/simple/sets.gms
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,13 @@ Sets
feelhpb
feheb
/

secBuild36 "Buildings subsectors, only for floor space reporting"
/
buildings
residential
commercial
/
;

cal_ppf_buildings_dyn36(ppfen_buildings_dyn36) = YES;
Expand Down

0 comments on commit e8ba2bf

Please sign in to comment.