Skip to content

Commit

Permalink
Merge pull request pik-piam#489 from mellamoSimon/feedstocks-final
Browse files Browse the repository at this point in the history
Add reporting and calculations for energy and emissions from chemical feedstocks and plastics
  • Loading branch information
mellamoSimon authored Dec 18, 2023
2 parents eec8ce9 + 7e24a6d commit 09b72be
Show file tree
Hide file tree
Showing 6 changed files with 720 additions and 83 deletions.
442 changes: 383 additions & 59 deletions R/reportEmi.R

Large diffs are not rendered by default.

252 changes: 232 additions & 20 deletions R/reportFE.R

Large diffs are not rendered by default.

13 changes: 12 additions & 1 deletion inst/markdown/compareScenarios2/cs2_01_summary.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ items <- c(
showAreaAndBarPlots(data, items, orderVars = "user", scales = "fixed")
```

## FE Industry by carrier
## FE Industry by carrier (incl. non-energy use)

```{r FE Industry by carrier}
items <- c(
Expand Down Expand Up @@ -212,6 +212,17 @@ items <- c(
showAreaAndBarPlots(data, items, orderVars = "user", scales = "fixed")
```


## FE Non-energy Use by carrier

```{r FE Non-energy Use by carrier}
items <- c(
"FE|Non-energy Use|Industry|Solids",
"FE|Non-energy Use|Industry|Liquids",
"FE|Non-energy Use|Industry|Gases")
showAreaAndBarPlots(data, items)
```

## SE Electricity by carrier

```{r SE Electricity by carrier}
Expand Down
46 changes: 43 additions & 3 deletions inst/markdown/compareScenarios2/cs2_03_emissions.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,10 @@ items <- c(
"Emi|CO2|Energy|Supply|Non-electric",
"Emi|CO2|Energy|Supply|Electricity w/ couple prod",
"Emi|CO2|CDR|DACCS",
"Emi|CO2|CDR|EW")
"Emi|CO2|CDR|EW",
"Emi|CO2|Plastics incineration",
"Emi|CO2|Feedstocks unknown fate"
)
showAreaAndBarPlots(data, items, tot, scales = "fixed")
```

Expand Down Expand Up @@ -229,8 +232,45 @@ showLinePlots(data, "Emi|CO2|Energy|Demand|Transport|International Bunkers")

```{r CO2 Process Emissions}
items <- c(
"Emi|CO2|Industrial Processes", # scenario
"Emi|CO2|FFaI|Industry|Process") # historical
"Emi|CO2|Industrial Processes"#, # scenario
# "Emi|CO2|FFaI|Industry|Process"
) # historical
showLinePlots(data, items)
```

```{r CO2 Process Emissions}
tot <- c("Emi|CO2|Industrial Processes")
items <- c(
"Emi|CO2|Industrial Processes|Chemicals",
"Emi|CO2|Industrial Processes|Cement"
)
showAreaAndBarPlots(data, items, tot, scales = "fixed")
```

### Process Emissions Cement

```{r}
items <- c(
"Emi|CO2|Industrial Processes|Cement",
"Emi|CO2|Industrial Processes|Minerals" # to display historical data from UNFCCC
)
showLinePlots(data, items)
```


### Process Emissions Chemicals

```{r}
items <- c(
"Emi|CO2|Industrial Processes|Chemicals")
showLinePlots(data, items)
```

### Process Emissions Metals

```{r}
items <- c(
"Emi|CO2|Industrial Processes|Metals")
showLinePlots(data, items)
```

Expand Down
26 changes: 26 additions & 0 deletions inst/markdown/compareScenarios2/cs2_05_energy_demand.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,13 @@ items <- c(
showAreaAndBarPlots(data, items, tot, scales = "fixed")
```

### FE Total Chemicals
```{r FE Total Chemicals}
items <- c(
"FE|Industry|Chemicals")
showLinePlots(data, items)
```

### FE mix Other Industry
```{r FE mix Other Industry}
tot <- "FE|Industry|Other Industry"
Expand All @@ -231,6 +238,25 @@ showLinePlots(data, "FE|Industry|Chemicals")
showLinePlots(data, c("FE|Industry|Other Industry", "FE|Industry|other"))
```


### FE|Non-energy Use|Industry per carrier and SE origin

```{r}
tot <- "FE|Non-energy Use|Industry"
items <- c(
"FE|Non-energy Use|Industry|Solids|Fossil",
"FE|Non-energy Use|Industry|Solids|Biomass",
"FE|Non-energy Use|Industry|Liquids|Fossil",
"FE|Non-energy Use|Industry|Liquids|Biomass",
"FE|Non-energy Use|Industry|Liquids|Hydrogen",
"FE|Non-energy Use|Industry|Gases|Fossil",
"FE|Non-energy Use|Industry|Gases|Biomass",
"FE|Non-energy Use|Industry|Gases|Hydrogen")
showAreaAndBarPlots(data, items, tot)
```



### Specific Energy Consumption
```{r}
# estimated values for thermodynamic limits are hard coded here. Could be
Expand Down
24 changes: 24 additions & 0 deletions inst/markdown/compareScenarios2/cs2_09_carbon_management.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,27 @@ showAreaAndBarPlots(data,
'Carbon Management|Usage'),
tot = 'Carbon Management|Carbon Capture')
```

# Materials

## Total plastics production
```{r }
showLinePlots(data, "Carbon Management|Materials|Plastics")
```

## Plastics production by origin
```{r }
showAreaAndBarPlots(data,
vars = c("Carbon Management|Materials|Plastics|Fossil",
"Carbon Management|Materials|Plastics|Biomass",
"Carbon Management|Materials|Plastics|Synfuels"),
scales = "fixed")
```

## Plastics production by fate
```{r }
showAreaAndBarPlots(data,
vars = c("Carbon Management|Materials|Plastics|Incineration",
"Carbon Management|Materials|Plastics|Other destination"),
scales = "fixed")
```

0 comments on commit 09b72be

Please sign in to comment.