Building model: Difference between revisions
Jump to navigation
Jump to search
(→Calculations: emissions and exposure moved here) |
|||
Line 33: | Line 33: | ||
"rateBuildings", # Percentage of renovations and other relative changes per year | "rateBuildings", # Percentage of renovations and other relative changes per year | ||
# "eventyear", # A dummy variable to combine time periods to numerical time axis. | # "eventyear", # A dummy variable to combine time periods to numerical time axis. | ||
" | "year" # A data.frame of years for which observations are calculated. This requires timepoints function. | ||
)), | )), | ||
formula = function(...) { | formula = function(...) { | ||
Line 39: | Line 39: | ||
stock <- stockBuildings * heatingShares * efficiencyShares | stock <- stockBuildings * heatingShares * efficiencyShares | ||
if(!" | if(!"Built" %in% colnames(stock@output)) { # Make a duplicate of Time because Built is needed later. | ||
marginals <- colnames(stock@output)[stock@marginal] | |||
stock@output$ | stock@output$Built <- stock@output$Time | ||
stock@marginal <- colnames(stock@output) %in% c(marginals, "Built") | |||
} | } | ||
#### Changes in building stock due to construction etc. | |||
# | # change <- changeBuildings | ||
change <- timepoints(changeBuildings, obsyear, sumtimecol = FALSE) # Cumulative changes at certain timepoints. | |||
stock@output$Time <- as.numeric(as.character(stock@output$Time)) | |||
stock@output$Built <- as.numeric(as.character(stock@output$Built)) | |||
change <- timepoints( | |||
stock@output <- orbind(stock, change) | stock@output <- orbind(stock, change) | ||
stock@output$Age <- stock@output$Time - stock@output$Built | |||
stock@marginal <- colnames(stock@output) %in% c( | |||
"Age", | |||
colnames(stock@output)[stock@marginal], | |||
# | colnames(changeBuildings@output)[changeBuildings@marginal] | ||
) | |||
stock <- unkeep(stock, prevresults = TRUE, sources = TRUE) | |||
# nonrenovated <- oapply(stock, cols = character(), FUN = sum) # Simplify row structure | |||
# if("Renovation" %in% colnames(nonrenovated@output)) {nonrenovated@output <- subset( | |||
# nonrenovated@output, | |||
# Renovation == "None", | |||
# colnames(nonrenovated@output) != "Renovation" | |||
# )} | |||
reno <- nonrenovated * renovationShares | |||
reno <- | |||
# Floor area of renovations in ten years. Combine with continuous index Age. | # Floor area of renovations in ten years. Combine with continuous index Age. | ||
reno <- continuousOps( | reno <- continuousOps(stock, renovationRate, '*') * renovationShares * 10 | ||
reno@output$ | reno@output$Built <- reno@output$Time # Renovation is the new event. | ||
reno <- unkeep(reno, cols = c("Age", " | reno <- unkeep(reno, cols = c("Age", "Time"), sources = TRUE, prevresults = TRUE) | ||
temp2 <- orbind(temp1 * 1, reno * -1) # Equal amount stops being non-renovated. | temp2 <- orbind(temp1 * 1, reno * -1) # Equal amount stops being non-renovated. | ||
Line 83: | Line 79: | ||
temp2$Renovation <- as.factor(temp2$Renovation) | temp2$Renovation <- as.factor(temp2$Renovation) | ||
temp3 <- | temp3 <- Ovariable(output = temp2)) # Temp3: Like Temp2 but ovariable | ||
temp3 <- unkeep(temp3, sources = TRUE, prevresults = TRUE) | temp3 <- unkeep(temp3, sources = TRUE, prevresults = TRUE) | ||
# temp3@output <- fillna(temp3@output, marginals = colnames(temp3@output)[temp3@marginal]) # WHY THIS? CANNOT FILLNA AMOUNTS! | |||
# colnames(temp3@output)[colnames(temp3@output) == "City area"] <- "City.area" | |||
# temp4: Drop redundant time indices | # temp4: Drop redundant time indices | ||
temp4 <- oapply(temp3, cols = c(" | temp4 <- oapply(temp3, cols = c("Built", "Age"), FUN = "sum", na.rm = TRUE) | ||
# temp4@output <- temp4@output[!is.na(result(temp4)) , ] | |||
# Calculate cumulative events at timepoints defined by obsyear. | # Calculate cumulative events at timepoints defined by obsyear. |
Revision as of 15:50, 16 February 2015
Moderator:Jouni (see all) |
|
Upload data
|
Question
How to estimate the size of the building stock of a city, including heating properties, renovations etc? The situation is followed over time, and different policies can be implemented.
Answer
For examples of model use, see Building stock in Kuopio and Climate change policies and health in Kuopio.
Rationale
Calculations
Dependencies
- Exposure to PM2.5 in Finland
- OpasnetUtils/Drafts
- Energy use of buildings
- Ovariables used or produced and example pages where they are used:
- Building stock in Kuopio
- buildingStock, # Current building stock
- renovation, # Percentage of renovations per year
- renovationShares, # Fraction of renovation type when renovation is done.
- construction, # Construction rate in the future
- constructionAreas,
- buildingTypes, # A dummy variable to combine two different indices: Building and Building2
- heatingShares, # Heating types of current buildings
- heatingSharesNew, # Heating types of the buildings in the future
- buildings,
- Energy use of buildings
- energyUse,
- efficienciesNew, # Energy efficiencies in the future
- savingPotential,
- Climate change policies and health in Kuopio
- eventyear, # A dummy variable to combine time periods to numerical time axis.
- efficiencies, # Energy efficiencies of current buildings
- obsyear # Years for which observations are calculated. This requires timepoints function.
- Building stock in Kuopio
See also
- Building stock in Kuopio
- Building stock in Europe
- Building data availability in Kuopio
- Energy balance
- Greenhouse gas emissions in Kuopio
- heande:File:2013 10 29 - Exposure-Response Functions.xlsx
- heande:Health impact assessment framework
- heande:File:2013 10 29 WP6.2 Agreed ER.doc
- heande:Urgenche: Workpackage Exposure, Health, and Well-being
- heande:File:WP6 Deliverable 6 1.doc
- Land use in Kuopio