Building model: Difference between revisions

From Opasnet
Jump to navigation Jump to search
Line 17: Line 17:
===Calculations===
===Calculations===


<rcode name='initiate' label='Initiate variables' embed=1>
<rcode name='initiate' label='Initiate variables (only for developers)' embed=1 graphics=1>
library(OpasnetUtils)
library(OpasnetUtils)


Line 29: Line 29:
"changeBuildings", # Construction or demolition rate as floor-m2. Indices Efficiency and  
"changeBuildings", # Construction or demolition rate as floor-m2. Indices Efficiency and  
# Heating should be included here, if used.
# Heating should be included here, if used.
# "buildingTypes", # A dummy variable to combine two different indices: Building and Building2
"renovationShares", # Fraction of renovation type when renovation is done.
"renovationShares", # Fraction of renovation type when renovation is done.
"rateBuildings", # Percentage of renovations and other relative changes per year
"renovationRate", # Rate of renovation (fraction per time unit)
"year" # A data.frame of years for which observations are calculated. This requires timepoints function.
"obstime" # one-column data.frame about the years to be used in output. Time column name must be the same
# as in RenovationShares.
)),
)),
formula = function(...) {
formula = function(...) {
# ######## Current building stock
# stock <- stockBuildings * heatingShares * efficiencyShares
# #### Changes in building stock due to construction etc.
# change <- timepoints(changeBuildings, obsyear, sumtimecol = FALSE) # Cumulative changes at certain timepoints.


#### Calculate cb ie. those buildings that were built between Time-1 and Time.
#### Calculate cb ie. those buildings that were built between Time-1 and Time.
Line 58: Line 51:


cb <- stockBuildings * heatingShares * efficiencyShares
cb <- stockBuildings * heatingShares * efficiencyShares
# colnames(cb@output)[colnames(cb@output) == "Time"] <- "Startyear"
# Add buildings from stock and buildings from construction data
# Add buildings from stock and buildings from construction data
Line 73: Line 65:
reno@marginal <- colnames(reno@output) %in% marginals
reno@marginal <- colnames(reno@output) %in% marginals


reno@output <- reno@output[result(reno) != 0 , ] # Zeros are meaningless
reno <- reno * renovationRate # continuousOps(reno, renovationRate, '*') FIX continuousOps before using
reno <- reno * renovationRate # continuousOps(reno, renovationRate, '*') FIX continuousOps before using
# reno@output$Startyear <- reno@output$Time # Renovation is the new event.
reno <- oapply(reno, cols = c("Age", "Time"), FUN = sum)
reno <- oapply(reno, cols = c("Age", "Time"), FUN = sum)
# reno <- timepoints(reno, obstime) # Accumulate over observation time.


out <- reno * -1 # Equal amount stops being non-renovated.
out <- reno * -1 # Equal amount stops being non-renovated.
out@output$Renovation <- "None"
out@output$Renovation <- "None"
# out@output$Renovation <- as.factor(out@output$Renovation)
out <- orbind2(out, reno) # Renovated buildings
out <- orbind2(out, reno) # Temp2: Construction + renovation in data.frame
colnames(cb@output)[colnames(cb@output) == "Time"] <- "Startyear"
out <- orbind2(
out,  
cb * Ovariable( # Add non-renovated buildings
output = data.frame(Renovation = "None", Result = 1),
marginal = c(TRUE, FALSE)
)
)


for(i in colnames(reno@output)[reno@marginal]) {
######## NA in indices will ruin timepoints. Therefore must do fillna but with warning.
out[[i]][is.na(out[[i]])] <- "Not known"
 
b <- character()
for(i in colnames(out@output)[out@marginal]) {if(any(is.na(out@output[[i]]))) b <- c(b, i)}
if(length(b) > 0) {
out@output <- fillna(out@output, b)
warning("Missing values had to be filled by function fillna in indices: ", b, "\n")
}
}
out <- timepoints(out, obstime) # Accumulate over observation time.


return(out)
return(out)

Revision as of 21:05, 17 February 2015



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

Causal diagram of the building model.

Calculations

+ Show code

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.


See also

Urgenche research project 2011 - 2014: city-level climate change mitigation
Urgenche pages

Urgenche main page · Category:Urgenche · Urgenche project page (password-protected)

Relevant data
Building stock data in Urgenche‎ · Building regulations in Finland · Concentration-response to PM2.5 · Emission factors for burning processes · ERF of indoor dampness on respiratory health effects · ERF of several environmental pollutions · General criteria for land use · Indoor environment quality (IEQ) factors · Intake fractions of PM · Land use in Urgenche · Land use and boundary in Urgenche · Energy use of buildings

Relevant methods
Building model · Energy balance · Health impact assessment · Opasnet map · Help:Drawing graphs · OpasnetUtils‎ · Recommended R functions‎ · Using summary tables‎

City Kuopio
Climate change policies and health in Kuopio (assessment) · Climate change policies in Kuopio (plausible city-level climate policies) · Health impacts of energy consumption in Kuopio · Building stock in Kuopio · Cost curves for energy (prioritization of options) · Energy balance in Kuopio (energy data) · Energy consumption and GHG emissions in Kuopio by sector · Energy consumption classes (categorisation) · Energy consumption of heating of buildings in Kuopio · Energy transformations (energy production and use processes) · Fuels used by Haapaniemi energy plant · Greenhouse gas emissions in Kuopio · Haapaniemi energy plant in Kuopio · Land use in Kuopio · Building data availability in Kuopio · Password-protected pages: File:Heat use in Kuopio.csv · Kuopio housing

City Basel
Buildings in Basel (password-protected)

Energy balances
Energy balance in Basel · Energy balance in Kuopio · Energy balance in Stuttgart · Energy balance in Suzhou


References