Building model: Difference between revisions

From Opasnet
Jump to navigation Jump to search
Line 60: Line 60:
out <- orbind(out, renovations)
out <- orbind(out, renovations)
out$Renovation <- as.factor(out$Renovation)
out$Renovation <- as.factor(out$Renovation)
out <- as.data.frame(as.table(tapply( # Remove indices that are no longer needed
temp2 <- EvalOutput(Ovariable("temp2", data = out))
out$Result,  
temp2 <- unkeep(temp2, sources = TRUE, prevresults = TRUE)
INDEX = out[marginals[!marginals %in% c("Constructed", "Renovationyear", "Age")]],  
temp2@output <- fillna(temp2@output, marginals = colnames(temp2@output)[temp2@marginal])
FUN = "sum",  
temp2 <- oapply(temp2, cols = c("Constructed", "Renovationyear", "Age"), FUN = "sum", na.rm = TRUE)
na.rm = TRUE
# out <- as.data.frame(as.table(tapply( # Remove indices that are no longer needed
)))
# out$Result,  
# INDEX = out[marginals[!marginals %in% c("Constructed", "Renovationyear", #"Age")]],  
# FUN = "sum",  
# na.rm = TRUE
# )))
out$Eventyear <- as.numeric(levels(out$Eventyear)[out$Eventyear])
out$Eventyear <- as.numeric(levels(out$Eventyear)[out$Eventyear])
# tapply (and therefore oapply) changes continuous indices to factors! Must change back by hand.
# tapply (and therefore oapply) changes continuous indices to factors! Must change back by hand.
Line 90: Line 94:
# Calculate the cumulative impact of the events on building stock to given years
# Calculate the cumulative impact of the events on building stock to given years


timepoints <- function(X, obstimes) {
timepoints <- function(X, obsyear) {
# Function timepoints takes an event list and turns that into existing crosscutting situations at  
# Function timepoints takes an event list and turns that into existing crosscutting situations at  
# timepoints defined by years.
# timepoints defined by years.
# X must be an ovariable with index Year.
# X must be an ovariable with index Eventyear.
# obstimes must be a vector of years.
# obsyear must be a vector of years.
out <- data.frame()
out <- data.frame()


for(i in obstimes) {
for(i in obsyear) {
out <- rbind(out, data.frame(
out <- rbind(out, data.frame(
Obstime = i,  
Year = i,  
X@output[X@output$Year <= i , ]
X@output[X@output$Eventyear <= i , ]
))
))
}
}
X@output <- out
X@output <- out
X@marginal <- c(TRUE, X@marginal) # Add Obstime to marginal
X@marginal <- c(TRUE, X@marginal) # Add Year to marginal
return(X)
return(X)

Revision as of 06:26, 12 February 2014



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 an example, see Baseline building stock.

Rationale

Calculations

+ Show code

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