Built form, urban climate and building energy modelling: case-studies in Rome and Antofagasta

The energy performance of urban buildings is affected by multiple climate phenomena such as heat island intensity, wind flow, solar obstructions and infrared radiation exchange in urban canyons, but a modelling procedure to account for all of them in building performance simulation is still missing. This paper contributes to fill this gap by describing a chain strategy to model urban boundary conditions suitable for annual simulations using dynamic thermal simulation tools. The methodology brings together existing physical and empirical climate models and it is applied to 10 case studies in Rome (Italy) and Antofagasta (Chile). The results show that urban climate varies significantly across a city depending on the density of urban texture and its impact on the annual energy demand depends on the region's climate. The urban shadows are crucial in cooling-dominated climates (Antofagasta) while the urban heat island intensity is more important in temperate climates (Rome). Abbreviations: ACH: Air change per hour; BPS: Building Performance Simulation; BS: British Standard; CNV: Controlled natural ventilation; H/W: height-to-width ratio of urban canyons; L/W: length-to-width ratio of urban canyons; UHI: Urban Heat Island; UWG: Urban Weather Generator model


Introduction
Urban areas play a central role in the current environmental and climate crisis (Burdett and Sudjic 2007). According to many studies, urban environments have a negative impact on building energy performance, especially in cooling dominated climates (Crawley 2008). This is particularly important considering the huge increase in energy demand for air conditioning that is projected for the next future, due to income growth and climate change (Isaac and van Vuuren 2009;Lundgren and Kjellstrom 2013). For example, in many South and South-east Asian metropolis, the building cooling energy demand is estimated to increase by more than 40-fold in 2100 compared to 2000 (Giridharan and Emmanuel 2018).
Urban areas influence building energy performance through multiple climate and energy effects. The scarcity of green areas and water, the density of buildings and the presence of anthropogenic heat sources such as traffic and HVAC systems cause an increase of air temperature, known as the urban heat island (UHI) effect (Kolokotroni and Giridharan 2008;Palme, Carrasco, and Lobato 2016;Oke et al. 2017;Salvati, Palme, and Inostroza 2017). Furthermore, the complex geometry of the urban surface decreases the solar access of building facades (Chatzipoulka, Compagnon, and Nikolopoulou 2016), modifies the wind speed and direction (Di Bernardino et al. 2015;Nardecchia et al. 2018) and reduces the infrared radiation exchange between buildings and their surroundings (Chatzipoulka, Nikolopoulou, and Allegrini, Dorer, and Carmeliet 2016;Vallati et al. 2017).
These effects have contrasting impacts on buildings' cooling and heating demand. Therefore, the resulting net energy impact of urban environments depends on the climate type (Palme, Inostroza, and Salvati 2018), the density of urban context (Salvati, Coch, and Morganti 2017;Salvati et al. 2019) and the function, form and construction characteristics of buildings (Futcher, Kershaw, and Mills 2013;Futcher, Mills, and Emmanuel 2018;. For these reasons, the energy performance of urban environments has gained more attention by researchers from different disciplines, so that urban building energy modelling has been recently defined a 'nascent field' of research (Reinhart and Cerezo Davila 2016). The studies in this field use different tools and procedures depending on the scale and objective of the analysis.
Tools and methods have been developed for estimating building energy loads at the city scale. These are normally divided into two categories: top-down and bottom-up approaches (Frayssinet et al. 2018). The top-down approach is statistically based and uses city-level or regional-level data to estimate the spatial distribution of energy consumption across a city based on macroeconomic indicators such as population density and income, energy price, urban morphology etc. The bottom-up models calculate the energy consumption at the city level starting from each individual building and can be either statistically-based or physically-based or hybrid models (Kavgic et al. 2010).
To increase the precision of bottom-up approaches, some methodologies have been proposed to include local climate in the energy performance simulations of buildings in urban contexts (Lauzet et al. 2019). However, in most of the cases, only a subset of the urban climate modifications are included in the analysis. Several studies focused on the impact of urban air temperature increase -i.e. the UHI intensity -on buildings' energy demand, using both measured and modelled urban air temperatures to force dynamic thermal simulations. In Mediterranean cities, the UHI intensity was found to increase the sensible cooling demand of residential buildings by 12% -74% (Salvati, Coch, and Cecere 2017;Zinzi, Carnielo, and Mattoni 2018). In tropical climates, the increase of buildings' cooling demand due to the UHI effect is estimated to be around 8% to 10% (Chan 2011;Ignatius, Wong, and Jusuf 2016). In London, UK, the UHI intensity is estimated to increase the cooling demand of office buildings up to 25% and to decrease the heating demand up to 22% (Watkins et al. 2002).
Many studies also highlighted that the energy impact of the UHI effect varies across a city (Kolokotroni et al. 2012;Zinzi and Carnielo 2017), due to significant intra-urban air temperature variabilities determined by changes in urban fabric (Stewart and Oke 2012;Kolokotroni and Giridharan 2008;Salvati et al. 2019). A recent review reported that the energy impact of the UHI intensity may vary between 10% and 120% for cooling load increase and between 3% and 45% for heating load decrease (Li et al. 2019) due to inter-city temperature variations.
Other studies proved that there are strong interdependencies between urban morphology, urban microclimate and building energy performance (Steemers et al. 1998;Ratti, Baker, and Steemers 2005;Allegrini, Dorer, and Carmeliet 2012;Salvati, Coch, and Cecere 2015;Chatzipoulka and Nikolopoulou 2018;Palme, Inostroza, and Salvati 2018). These studies show that the UHI intensity is just one of the climate modifications induced by urban environments. In dense and compact urban textures, a prominent role is played by the shadows from surrounding buildings, which determine substantial variations of the cooling demand of both residential and office buildings (Salvati, Coch, and Morganti 2017;Futcher, Mills, and Emmanuel 2018;Palme, Inostroza, and Salvati 2018).
Some studies focused on the infrared radiation exchange in urban environments, showing that low sky view factors and higher surface temperatures cause a further increase in the cooling demand of urban buildings (Allegrini, Dorer, and Carmeliet 2012;Vallati et al. 2017;. Other studies highlighted that the potential for night cooling ventilation is strongly reduced in urban areas due to higher air temperatures and reduced wind speeds in urban canyons (Kolokotroni, Giannitsaris, and Watkins 2006). However, the canyon effect on wind flow was also found to reduce buildings' heating demands, due to the impact on pressure coefficients and thus infiltration and air change rates (Georgakis and Santamouris 2006;Khoshdel et al. 2017).
Considering these results, all the climate modifications determined by an urban context should be accounted for when performing building performance simulations (BPS). Since these take place at different scales, different tools and methodologies are necessary to model their overall impact on building energy performance . To this purpose, some coupling techniques between building energy models and microclimate CFD models have been proposed (Yang et al. 2012;Lauzet et al. 2017Lauzet et al. , 2019. However, these have some limitations, including the need of expert knowledge of CFD simulation and coupling techniques, an increase in simulation costs and a very high computational time (which only allows simulation of short periods, usually few days). A modelling methodology to account for all the urban microclimate modifications in the estimation of the annual energy demand of buildings in urban context is still missing.
To fill this gap, this paper proposes a chain strategy to model urban boundary conditions suitable for annual simulations using dynamic thermal simulation tools. The proposed methodology brings together a set of physical and empirical models to calculate the air temperature, wind speed, solar access and surface temperature modifications determined by an urban context. The methodology is conceived for urban canyons with high heightto-width ratios and it is designed to generate climate outputs that are compatible with commonly used dynamic thermal simulation tools; in this paper TRNSYS is used.
The paper is structured as described in the follow: Section 2 describes the models used to calculate the urban climate outputs and the steps to use them as input to TRNSYS calculations. Section 3 describes the application of the modelling methodology to ten urban textures of Rome and Antofagasta used as case studies. Section 4 presents the results of the case studies, which include the urban climate modifications determined by built form and their impact on buildings' energy performance (i.e. cooling, heating and annual demand). Section 5 discusses the results highlighting the variation of the net energy impact of built form depending on the climate type and density of urban texture.

Materials and methods
The modelling methodology proposed in this study uses validated models to define the microclimate conditions of an urban context to be used as inputs to BPS with TRNSYS v17. The modelling chain procedure is outlined in Section 2.1, where the proposed models are introduced. The models are then described in more detail in Sections 2.2-2.6.

Modelling chain procedure
The proposed modelling chain procedure consists of two phases ( Figure 1). First, the urban geometry parameters required in the climate calculations are computed. These are used to model the climate variables of urban textures, namely air temperature, relative humidity, surfaces' temperature, obstruction angles on facades and urban wind speed. Following that, the modelled outputs are linked to TRNSYS calculations in three different ways: (1) by using modified weather files, (2) by defining shadow masks for the building surfaces and (3) by linking spreadsheet files in the corresponding TRNSYS type (i.e. the hourly urban surface temperature for long wave radiation exchange and the apartment air change per hour due to wind-driven ventilation). The urban air temperature, relative humidity and surface temperature of surrounding buildings are generated by the Urban Weather Generator model Mao et al. 2017Mao et al. , 2018, version V4.
The solar obstruction on facades is computed on simplified geometrical models of the urban area using the horizontal and vertical solar obstruction angles ( Figure 2).
The wind speed attenuation in urban canyons is calculated considering the higher roughness of the urban area and the canyon effect. The calculations are based on empirical models, which apply to different urban situations depending on the geometry and orientation of the canyon and the wind speed and direction at the meteorological station ( Figure 3).

Urban air temperatures and surface temperatures with UWG
The urban air temperatures and surface temperatures of walls and roads are calculated using the MATLAB version of UWG V4. 1 UWG generates urban weather files from hourly weather data measured at operational weather stations. The urban weather file has modified values of air temperature and humidity to capture the local heat island intensity of an urban area .
UWG is an urban canopy model including a building energy model. UWG uses several input parameters for the calculation of the neighbourhood-scale UHI intensity. Among these, the urban morphology parameters have been found to be crucial to the UHI intensity estimation (Nakano et al. 2015;Palme, Carrasco, and Lobato 2016;Salvati, Coch, and Cecere 2016;Mao et al. 2017;Salvati et al. 2019). Three urban morphology parameters are used to characterize an urban context: • Site coverage ratio (ρ): ratio of the building footprints area to the urban site area Based on these, UWG calculates the average width and height of urban canyons in the area. An advantage of UWG compared to CFD models is that it takes into account the anthropogenic heat released into the atmosphere by buildings and traffic. The daily profile of the sensible heat due to traffic is set as an input parameter, while the waste heat from buildings' HVAC system is calculated as proportional to the energy consumption of each building type in the area (i.e. residential, commercial, offices etc.).
The surface temperature and air temperature calculated by UWG are based on an Urban Canopy and Building Energy Model described in detail in the reference publications by Bueno and Mao (Bueno et al. 2011;Mao et al. 2017). The canyon air temperature accounts for the heat fluxes from walls, windows and the road and the anthropogenic heat fluxes due to exfiltration and waste heat from building HVAC systems and traffic. The external surface temperatures of walls and roads are calculated based on the building energy balance, the incoming solar radiationcalculated assuming and average canyon orientation -and the longwave radiation among walls, road and the sky.

Solar obstructions on building facades
The average solar access of building facades is calculated on simplified geometrical models of urban textures. The simplified models consist of square-plan buildings arranged on an orthogonal street network and have the same average density of the real urban textures, namely the same values of the morphology parameters (ρ, VH, H). The size of the buildings and the distance  between them (a and b in Figure 2) are calculated based on the following equations (Masson 2000; Each urban context is thus transformed in a representative morphological environment whose values of a, b, and H give the same site coverage ratio and facade-to-site ratio of the real urban texture. The simulated building is assumed to be in the centre of the representative morphological environment and the horizontal and vertical obstruction angles γ and δ are calculated in the middle of each floor, as represented in Figure 2. The angles γ and δ are used to define the shadow masks of the transparent and the opaque surfaces in the TRNSYS models. The shadow masks can be defined in TRNSYS with a desired angular step of description.

Long wave exchanges
In TRNSYS 17, the infrared radiation exchange between surfaces is calculated considering the temperature of the building walls and two fictive temperatures, namely the fictive sky temperature (obtained as a function of sky cloudiness) and another temperature for the opposite surface with respect to the sky.
For an urban context, we defined this second temperature as the Urban Surface temperature (T UrbSurf ) calculated by Equation (5): Where T wall and T road are the surface temperature of walls and roads calculated by UWG, VF w is the view factor between the building facade and the surrounding buildings' facades and VF road is the view factor between the building facade and the road. The view factors are calculated on the simplified models for each floor and used in TRNSYS for the infrared radiation exchange of the external surfaces of the building. The T UrbSurf is used for the long-wave radiation exchange between the building facades and the surrounding urban environment, while the fictive sky temperature is used for the long-wave radiation exchange with the sky, proportionally to the facade' sky view factor.

Urban wind speed
The wind speed in urban environment is calculated from the undisturbed wind speed by applying different models and attenuation coefficients according to the location of the area within the city and the urban canyon geometry and orientation with respect to the undisturbed wind direction. The calculation methodology is based on the models proposed by the European project URBVENT (Ghiaus et al. 2004) with few modifications (Figure 3). This approach allows the generation of hourly annual data to substitute the undisturbed wind speed data in the weather files used in BPS. 2 Different calculation methods are applied depending on the urban canyon geometry and the undisturbed wind speed above the canyon. The first method applies to canyons with low height-to-width (H/W) ratios or length-to-width (L/W) ratios. The second method applies to deep canyons (i.e. with H/W ratio higher than 0.7) and wind speed above the canyon higher than 4 m/s and the third method applies to deep canyons with wind speed above the canyon lower than 4 m/s.
(1) Canyon/not canyon situation The first check for urban wind speed calculation is to verify whether there is a canyon situation or not. Two conditions determine a canyon situation: (i) the ratio of the height of the buildings to the width of the street -or the canyon aspect ratio H/W -is more than 0.7 and (ii) the ratio of the street lengthdistance between main intersections -to the street width is less than 20. These thresholds values identify the starting of the skimming flow according to Oke (1988), namely when the bulk of the flow above the building arrays does not enter the canyon. When the canyon H/W ratio is below 0.7, there is a wake-interference flow or isolated obstacle regime for low ratios.
Urban areas without canyon situations can be low-density developments or small-grain urban structures where the presence of many crossroads at short distance cancel the canyon effect. In these situations, the URBVENT suggested a rule of thumb, namely a terrain correcting factor to modify the undisturbed wind speed values (Ghiaus et al. 2004, 60).
In this study, instead, the urban wind speed in these situations is calculated using the power law as included in the current British Standard (BS) (British Standards Institution 1991) for natural ventilation design. The power law expression is based on wind measurements in urban canyons and open sites in the UK over the period 1965-73 (Caton 1977). It allows the calculation of the hourly wind speed at a datum height from the undisturbed wind speed at the meteorological station, considering the roughness of different types of terrain, including urban areas, using Equation (6): Where Z is the datum height (m), V is the mean wind speed at datum height (m/s), V m is the mean wind speed at the meteorological station (m/s), k and α are coefficients that depend on the terrain roughness reported in Table 1. For a 'not canyon situation', the 'urban' coefficients reported in Table 1 are used.
(2) Canyon situation and wind speed lower than 4 m/s: When a canyon exists and the wind speed above the canyon is low, the air circulation is mainly triggered by thermal phenomena, but no coupling is established between the flow on top of the buildings and the flow within the canyon. The wind speed above the canyon is calculated from the undisturbed values applying expression (6) for Z equal to 1.2 H.
The threshold value to establish the coupling varies from about 2 m/s for canyons with H/W ratios of about 1 (Nakamura and Oke 1988) to higher wind speed of about 4-5 m/s for canyons with higher aspect ratios (Santamouris, Georgakis, and Niachou 2008). In these situations, the airflow within the canyon is scattered and characterized by significant fluctuations that are very difficult to predict. Studies showed that the mean wind speed can be predicted with sufficient accuracy using datadriven models, such as the model proposed by Santamouris, Georgakis, and Niachou (2008) and used in this study. The model was developed based on an extensive experimental campaign in different canyons in Athens in 2001. The values of the more probable wind speed in deep urban canyons as a function of the prevailing thermal and inertia phenomena are presented in Tables 2 and 3. The flow is considered parallel if the wind direction is within ±20 degrees with respect to the canyon axis. For perpendicular or oblique flows, different values correspond to the windward and leeward facades; the average value is assumed as the mean canyon wind speed in this work.
It has to be highlighted that this methodology can be considered valid within the limits of the experiment reported by the authors, namely aspect ratios between 1.7 and 3.25. This means that it is suitable for deep canyons located in regions that have similar solar irradiation compared to Athens.  (3) Canyon situation and wind speed greater than 4 m/s: When the wind speed above the canyon is greater than 4 m/s, coupling is established between the flow on top of the buildings and within the canyon. In this case, the canyon wind speed is calculated using the Nicholson model for parallel flows and the Yamartino's and Hotchkiss & Harlow models (Hotchkiss and Harlow 1973;Yamartino and Wiegand 1986) for perpendicular or oblique flows. This methodology was validated by Georgakis and Santamouris with numerical simulations .
For parallel flows, the canyon wind speed profile is calculated according to expressions (7) (Nicholson 1975;Georgakis and Santamouris 2008): Where Z is the datum height from ground in which wind speed is calculated, U 0 is the canyon wind speed at Z = 0 and Z 2 is the roughness length for the obstructed sub-layer calculated with expression (8): Where Z 0 is the aerodynamic roughness length of the area (reference values in Table 4) and H is the average buildings height. The value of U 0 for expression (7) is derived by using expression (9) (Nicholson 1975): Where V H is the wind speed at the building height, calculated with the power law. The expression (7) is valid to calculate wind speed within the canyon when the coupling is established and the wind flow is parallel to the canyon axis; the power law reported in expression (6) is applied instead when the calculation height (Z) is higher than the average building height.
When the coupling is established (for wind speed higher than 4 m/s in deep canyons) and the flow is not parallel, cross-canyon vortices or helical flow are generated along the canyon. In this case, the total wind speed inside the canyon is calculated as the resulting of the along canyon-axis component (u), the cross canyon axis component (v) and the vertical component (w) as proposed and validated by Georgakis and Santamouris (2008), namely: Where W t is the total wind speed in the canyon and W h the air velocity inside the canyon at horizontal level given by expression (10): The vertical (w) and cross canyon-axis (v) components are calculated according to Hotchkiss and Harlow (1973) with expressions (11) and (12): Where: where Z is the height from the ground in which we want to calculate urban canyon wind speed.

Wind-inducted building air change rate methodology
The decrease of natural ventilation potential in urban environments is considered in the modelling methodology by setting the air change per hour (ACH) of each space in the building as a function of the urban wind speed.
The ACHs values are defined dividing the hourly airflow rates [m 3 /h] by the built volume [m 3 ], assuming a net floor height of 2.7 m. The hourly airflow rates are calculated according to expression (12), considering the flowrates(average hourly values) induced by wind forces on the considered openings -see also (Allard 1998;Grosso 2017) and the method described in (Chiesa and Grosso 2017b): Where v (w) is the hourly wind velocity at the window height, c + p and c − p are the pressure coefficients of the considered openings, c d is the opening discharge coefficient here assumed as 0.6 (Chiesa and Grosso 2017a), A is the net opening area and the subscript numbers are the progressive opening distribution between inlet and outlet one. In the case-study analysis (Section 3), all the openings on the same facade are considered together as one single inlet or outlet window/grid, to be in accordance with the geometry of the TRNSYS models.
The hourly wind velocities for the estimation of the ACH values are calculated for each location and floor height using the models described in Section 2.5.
The pressure coefficients (C p ) are defined according to the simplified-parametric-model approach described in Grosso (2017); this method considers the geometric ratio of the building and the incident angle of wind to determine the coefficients values on each facade. The mentioned approach combines tabular data (building size ratios) and parametric-equations (wind incident angles) to provide an average pressure coefficient for each facade. For each hour, the average C p value for each facade is calculated and used to populate expression (12) and the difference between the C p values of adjacent facades is defined for each space.
As a general assumption, the tabular and parametricequation methods for C p calculation are considered more suitable for small buildings, with a limited number of floors and with openings located in the central part of the facades. On the other hand, when CFD values are not available, the pressure coefficients for BPS are normally calculated using similar methods to the one adopted in this study, i.e. tabular, parametric and database values. CFD calculations and wind tunnel experiments can provide a much more accurate distribution of the pressure coefficients over building facades. Nevertheless, these two approaches are costly, require a significant computation/analysis time and specific expertise and instruments that are not common among practitioners. Parametric regressionbased models such as the one proposed by Swami and Chandra (1987) are more suitable for architectural design. However, this method is not able to estimate the vertical or horizontal distribution of coefficients and it does not consider urban context parameters such as area density or surrounding building heights. Only very few tools are able to calculate the distribution of pressure coefficients on facades (Costola, Blocken, and Hensen 2009); these are the Cp generator (TNO) (Knoll, Phaff, and de Gids 1995) and the CpCalc+ tool (Grosso 1992), which is also used in ESPr -see also (Ramponi, Angelotti, and Blocken 2014).
Considering the aim of the proposed methodology and in accordance with several other studies (i.e. AIVC tables), we adopted the tabular approach for the case studies analysed in this paper (Section 3), considering the hourly values of wind direction and incident angles on facades.
A further modelling assumption is that the share of windows area devoted to CNV (Controlled Natural Ventilation) is 50%. This is a typical assumption in the CNV design of residential buildings for either manually or activated (e.g. by linear actuators) windows opening for natural ventilation of spaces. The CNV-devoted window type is supposed to be awning type (net opening area equal to 30%), being a frequently adopted solution thanks to high controllability levels, rain protection, security by intrusions, and low draft risk (Holzer and Psomas 2018).
In the TRNSYS models, the windows are placed only on the main facade and the cross ventilation effect is generated by opposite windows and devoted grids positioned on the adjacent walls.

Case study analysis
The aim of the case study analysis is to investigate the variability of urban microclimate conditions determined by different built forms across a city and the relative energy impact on buildings' energy demand in different climate regions. The modelling chain procedure described in Section 2 is thus applied to analyse the energy demand of residential buildings located in five urban textures of Rome, Italy (Mediterranean climate) and Antofagasta, Chile (Subtropical Desert Climate).

Building performance simulation (BPS) workflow
The annual energy demand of two building typologies was simulated in open-rural conditions and in the five urban textures of each city.
The annual energy demand of the two building typologies in open-rural conditions are simulated without considering any urban effect and using the typical weather files used for building energy simulations for each city. After that, urban simulations are performed for the same typologies using the microclimate boundary conditions corresponding to the different urban textures. The urban simulations are performed in sequence by including one climate modification at the time in order to evaluate their relative impact on the buildings' energy demand. The different climate modifications were added in the following order: (1) shadow masks to account for solar obstructions on facades (2) UWG weather files with urban air temperature and relative humidity (3) urban surface temperatures and view factors for infrared exchange (4) ACH determined by the urban wind speed in each urban texture

Urban textures analysed
The five urban textures examined for each city represent a sample of urban densities which have different impacts on the local urban climate. Table 5 presents the values of the urban parameters used in the calculation of the urban wind speed and UHI intensity. These have been computed over an area of about 250 m length, as suggested for local urban climate studies (Stewart and Oke 2012; Salvati, Coch, and Cecere 2016). The vegetation coverage and anthropogenic heat from buildings and traffic are also important parameters for the UHI calculation by UWG. The vegetation coverage was set to 10% in Rome and 0% in Antofagasta, as indicated by previous studies (Palme, Inostroza, and Salvati 2018;Salvati et al. 2019). The case studies in Rome differ in terms of building typology mix; two of them, Campo Marzio and Tridente, are characterized by a mix of residential, commercial, hotel and office buildings while the other three are residential neighbourhoods. This was included in the UHI estimation by providing the percentage of each building typology, which is used by UWG to calculate the waste heat from HVAC systems. The anthropogenic heat from traffic was also included, considering a two-peak daily profile, with the same peak value equal to 25 W/m 2 in all cases.

Building typologies characteristics
Two building typologies are simulated: detached houses and apartment blocks. These differ for number of floors and ratio of windows-to-wall but have the same U-values for the envelope, as presented in Table 6. In Antofagasta and in northern Chile in general, the common construction system is reinforced concrete, without insulation, with U-values in the range of 3-4 W/m 2 K. Roofs are normally insulated with 40 mm of polystyrene or rock wool, with U-values of 0.8-0.9 W/m 2 K. Windows are single-glazed, with aluminium frame, with typical value of 5.8 W/m 2 K. Thermal codes are evolving in the country and limiting values will be probably introduced in the future.
In Rome, most buildings were built before the introduction of the first building regulations on energy efficiency (law number 373 in 1976 and law number 10 in 1991) and thus present high transmittance values on average. Two of the case studies (Tridente and Campo Marzio) belong to the city' historic centre where the typical construction system is solid stone walls, with average U-values around 2 W/m 2 K or even higher. The other case studies are developments of the 80's and 90's, characterized by cavity walls constructions with no or very little insulation. In most of the buildings, single glazed windows are still used. The last building regulation on energy efficiency mandates much higher performance for the building envelope, with U-values below 0.34 W/m 2 K in Rome. In this study we used U-values that are representative of most of the existing building stock of the two cities. Table 7 presents the HVAC and occupancy input parameters used in the BPS for both cities. The fixed infiltration rate ensures a minimum ACH for indoor air quality. For the calculation of natural ventilation, windows are assumed to be open if the external temperature is in the range 20-26°C, otherwise the wind-induced ACH are considered negligible. The outdoor air temperature range is set to avoid undesired ventilation heat losses during winter and mid seasons or heat gains in summer when cooling is on. It should be noted that air temperatures higher than 26 degrees (but lower than 29-30) could increase thermal comfort in free running buildings, due to the effect of the air speed on the human body. However, this study is focused on building energy use and a fixed set point (26°C) is set for the cooling demand calculation; for this reason, windows are considered closed when the outdoor air temperature is higher than 26°C.

Figure 4 presents a comparison of the climate in Rome and
Antofagasta. The Köppen-Geiger climate classification for the two cities is Csa Mediterranean climate for Rome and Bwk Subtropical Desert Climate for Antofagasta. Rome has a high daily and annual range of air temperature, with much higher summer temperatures and much lower winter temperatures compared to Antofagasta. On the other hand, solar radiation is higher in Antofagasta than in Rome throughout the year. The daily variation of wind speed shows the influence of the ocean in Antofagasta and also the impact of the sea breeze in summer in Rome.
Due to these differences, the urban microclimate modifications and the consequent energy impact on buildings are expected to be different in Rome and Antofagasta.

Boundary microclimate conditions corresponding to different urban textures
The average urban microclimatic conditions generated by the selected morphologies in the hottest month of the year are shown in Figures 5 and 6 for Rome and Antofagasta respectively. The night-time heat island intensity is similar in the two cities, varying between +3.9°C (Campo Marzio) and +2°C (Centocelle) in Rome and +3.5°C (Centro) and +1.6°C (Corvallis) in Antofagasta. Compared to Antofagasta, Rome shows a higher increase in the mean and maximum urban temperatures, which is probably the consequence of the higher diurnal variation of air temperature in Rome (around 17°C) compared to Antofagasta (around 10°C). The texture of Campo Marzio in Rome shows the highest temperature increase throughout the day, equal to +1.6°C on the maximum, +3.0°C on the mean and + 3.9°C on the minimum temperature compared to the airport station. In Antofagasta, the hottest urban texture is Centro, with an increase of +1.3°C on the maximum, +1.4°C on the mean and +3.5°C on the minimum temperature with respect to the airport station.
The results reported in Figures 5 and 6 also show that the daily surface temperature range is reduced in both cities compared to the corresponding rural-open environment, with a decrease in the maximum temperatures due to urban shadows and an increase of the minimum temperatures, due to the low urban sky view factors. The texture Corvallis in Antofagasta shows a higher maximum surface temperature (41.1°C) compared to the other case studies (about 30°C); this is probably due to the low average building height (less that 3 m) of the area, which reduces the beneficial effect of building shading during day time.
The average buildings height is also strongly related to the vertical obstruction angle β and thus the solar obstructions on facades. For similar values of the Site coverage ratio (ρ) -or urban compactness -the sky view factor of building facades decreases significantly with an increase in the average buildings height. This is clear comparing the vertical obstruction percentages of Centocelle, Rome (ρ = 0.34, H = 14.7 m) with the ones in Corvallis, Antofagasta (ρ = 0.30, H = 2.96).
The average wind speed in the urban textures compared to the undisturbed flow is reduced by 38-68% in Rome and by 35-63% in Antofagasta, depending on the location, morphology and orientation of the urban texture. The stacked bars indicate the energy impact of each microclimate modification; the blue bars represent the reduction of the cooling demand in urban textures due to urban shadows compared to the open-rural one (black bars). The other colours show the cooling increase determined by the UHI intensity, the infrared radiation exchange and the wind speed reduction in the urban textures.

Impacts of the urban microclimates on building energy demand
The order of the simulations allowed to highlight the opposing energy outcome of urban shadows compared to the other urban microclimate modifications. The shadows in an urban context reduce cooling demand, while all the other modifications cause an increase. Therefore, the net energy impact of urban context can be positive or negative depending on the urban context and climatic conditions.
The results indicate that in Antofagasta, where summer temperatures are lower than in Rome, the net increase in cooling demand due to UHI intensity is lower than the decrease determined by urban shadows, resulting in a net reduction of the cooling demand in three of the urban textures. In this context, the wind speed reduction plays a decisive role in determining the final building cooling demand.
In Rome, the impact of urban shadows and UHI intensity on cooling demand is similar in magnitude and opposite in contribution (positive the first and negative the latter); therefore, the two effects tend to balance out in most of the cases. However, the ventilation reduction and the urban infrared environment determine a further increase in cooling demand, which results in a net cooling increase in most of the urban textures compared to the rural-open environment. Among the case studies, only the East-West apartment block in Don Bosco showed a net reduction in the cooling demand, while all the other cases showed an increase varying between 5% and 26% for the apartment blocks and 16% and 63% for the detached house (Table 8). The impact of urban climate on building heating demand is generally positive, as highlighted in Table 8. The heating demand is reduced in urban environments thanks to the beneficial impact of UHI intensity. Among the case studies, the highest heating decrease is found for the buildings in Campo Marzio in Rome, the texture with the maximum UHI intensity. Only in Don Bosco the urban context determines an increase in the heating demand despite the UHI intensity, because of the huge impact of urban shadows, It must be noted that these results are for buildings with high U-Values for the building envelope. However, the impact of urban environments on buildings with low U-values is expected to have a similar tendency, given the importance of air temperature and urban shadows on the ventilation/infiltration losses and solar gains, which are crucial for the energy performance of highly insulated buildings. In Rome, the annual energy demand of urban buildings is either higher or lower than the rural one depending on the urban texture morphology (Figure 9). In Tridente and Campo Marzio, the net impact of the urban context is positive, due to the significant reduction in the heating demand determined by the UHI intensity, which balances the negative impact in summer. In all the other cases, instead, the increase in the cooling demand determined by the urban context is higher than the decrease in the heating demand, which causes a net increase in the annual demand compared to rural-open environments. Clearly, the net energy impact could change for more insulated buildings. In Antofagasta, instead, the heating need is approximately zero and the urban heat island intensity has less impact on the annual energy demand. On the other hand, the urban shadows play a crucial role in reducing the cooling demand of urban buildings.

Discussion
The results of the case studies confirmed that urban climate modifies the energy performance of buildings and it should be carefully included in BPS to obtain reliable results for urban environments. In temperate climates, such as in Rome, the urban context determines significant variations in the ratio of the heating and cooling demands, causing an increase in cooling and decrease in heating compared to buildings out of the urban context. In hot-dry climates with high solar radiation, like Antofagasta, the urban context substantially modifies the building cooling demand by modifying solar gains and ventilation potential.
The overall impact of urban climate on building energy performance is thus dependent on the region's climate. More precisely, the results of the case studies showed that the solar obstructions determined by surrounding buildings have a huge impact on the building energy demand in both cities, while the other urban effects are more or less important depending on the climate of the region.
In desert climates, where solar radiation is the main cause of overheating in buildings, the urban heat island intensity in      urban areas has a minor impact, comparable to that of ventilation reduction and infrared radiation exchange. In some cases, the impact of the ventilation decrease is more important than the UHI intensity in determining cooling demand changes.
In the Mediterranean climate of Rome, instead, the UHI intensity and the solar obstructions determined by surrounding buildings have comparable energy impacts, especially in the most compact and dense urban areas. The energy impacts of reduced ventilation and infrared exchange in urban areas are less important in absolute terms, but they are decisive in determining the final net energy impact of built form (if positive or negative), especially in summer.
In both cities, the highest night-time surface and air temperatures were found in the textures with higher site coverage ratios -i.e. urban compactness -such as Campo Marzio and Tridente in Rome and Coviefi and Centro in Antofagasta. On the other hand, the textures with higher building heights showed the maximum decrease of solar radiation on buildings' facades. These two microclimate modifications have opposite impact on buildings' energy demand. These countering effects are well explained by the correlations reported in Figure 11, showing the impact of urban shadows, air temperature increase, urban infrared radiation exchange and wind speed on the building cooling demand as a function of the 'site coverage' of the case studies.
Considering only urban shadows, a negative correlation (R 2 = 0.93) is found between the building cooling demand and the urban compactness. This means that increasing levels of compactness and urban shadows have a positive effect on the cooling energy demand in Rome. However, an opposite positive correlation (R 2 = 0.9159) is found between the urban compactness and the cooling demand when the UHI intensity determined by compact urban textures is considered. For this reason, these two effects tend to balance out in this climate, with a slightly higher weight of the shadows (−24.8 slope) over the UHI intensity (+19.7 slope) for the same compactness of the texture, as similarly found in previous works (Salvati, Coch, and Morganti 2017;Palme, Inostroza, and Salvati 2018). Nevertheless, when all urban climate modifications are included, the cooling demand is found to increase with the increase of urban compactness in Rome. This is because the overlapping impact of UHI intensity, infrared radiation exchange and ventilation (+28.7 slope, R 2 = 0.9786) in compact urban textures is higher than the beneficial effect of shadows.
Despite similar urban microclimate modifications, no correlation was found between urban compactness and building energy demand in Antofagasta. This is explained by the different climate and energy needs in this context compared to Rome. In Antofagasta, the solar radiation is much higher than in Rome, while the daily air temperature range is smaller. For his reason, the most important variable of urban morphology turned out to be the average buildings height, which affects buildings' solar gains and maximum urban air temperatures. A good (R 2 = 0.7171) negative correlation was found between the average buildings height and the cooling energy demand in the case studies analysed ( Figure 12).
Finally, the two building typologies showed the same behaviour in terms of relative variation of the energy demand in urban context as opposite to rural-open environments. However, the relative energy impact is always higher in the detached house compared to the apartment block. This is due to the different shape of the two typologies and the different ratio of the external surface (envelope) to the total built volume. The detached houses have more external surface and are more affected by changes in the outdoor climate than apartment blocks.
Future developments of this research will investigate the weight of different building parameters on the energy performance in urban environments (e.g. thermal mass, insulation, percentage of glazed surfaces, operational schedules etc.).

Conclusion
This study described a modelling methodology to perform energy performance simulations of buildings in urban context, including all the climate modifications determined by urban built form. The methodology is applied to two building typologies in 10 urban textures of Rome and Antofagasta. A chain strategy is proposed, using existing physical and empirical methods to model the air temperature increase, solar obstructions, wind speed decrease and urban infrared environment of different urban textures and to use these outputs as boundary conditions for simulations with TRNSYS.
The case studies results confirmed that all the microclimate modifications contribute to modify the energy demand of urban buildings, but their relative impact depends on the region's climate. In Rome, the local UHI intensity and the shadows from surrounding buildings have the highest energy impact on both the cooling and the heating demand. Their relative impact increases with the increase of the urban texture compactness (or site coverage ratio). The two effects tend to balance out in terms of net energy impact on the annual demand, because buildings in the Mediterranean climate need both heating and cooling energy. However, the urban context is responsible for significant variations in the ratio of the building heating and cooling demands compared to the same building in a rural-open environment. The results also showed that in lowdensity urban textures, where the impact of shadows is reduced, the urban radiant environment and the reduction of wind speed determine a significant increase of the building cooling demand.
In Antofagasta, were cooling is the only energy need, the urban shadows have a higher impact than the UHI intensity on buildings' cooling demand. Therefore, urban context may determine a significant reduction of buildings energy need, especially in urban textures with high buildings height.
The results of the case studies also showed that two morphology parameters -the site coverage ratio and the average building height -can be good predictors of the building energy performance in different urban textures. This could be applied to map the energy performance variability across a city and to foster targeted refurbishment strategies depending on the characteristics of the urban texture.
The presented simulation methodology can be applied to similar urban contexts and other building typologies and it is expected to be useful to architects, planners and modellers in understanding the relationship between urban morphology, urban microclimate and urban building energy performance, so as to improve thermal comfort and energy efficiency at the building and the urban scale.