WRF-Comfort: simulating microscale variability in outdoor heat stress at the city scale with a mesoscale model

. Urban overheating and its ongoing exacerbation due to global warming and urban development lead to increased exposure to urban heat and increased thermal discomfort and heat stress. To quantify thermal stress, speciﬁc indices have been proposed that depend on air temperature, mean radiant temperature (MRT), wind speed, and relative humidity. While temperature and humidity vary on scales of hundreds of meters, MRT and wind speed are strongly affected by individual buildings and trees and vary on the meter scale. Therefore, most numerical thermal comfort studies apply microscale models to limited spatial domains (commonly representing urban neighborhoods with building blocks) with resolutions on the order of 1 m and a few hours of simulation. This prevents the analysis of the impact of city-scale adaptation and/or mitigation strategies on thermal stress and comfort. To solve this problem, we develop a methodology


Introduction
The combination of urban development and climate change has increased heat exposure in cities in recent decades (Tuholske et al., 2021), and a continuation of these trends in the 21st century would be difficult to offset locally from an air temperature perspective (Broadbent et al., 2020;Krayenhoff et al., 2018;Zhao et al., 2021).Adaptation options that target contributions to heat exposure other than the air temperature, such as radiation (e.g., via shade) and wind (e.g., via improved street ventilation), should therefore be considered.The quantification of these contributions relative to air temperature requires the application of comprehensive thermophysiological heat stress metrics such as the universal thermal climate index, UTCI (Jendritzky et al., 2012); the A. Martilli et al.: WRF-Comfort physiological equivalent temperature, PET (Höppe, 1999); or the standard effective temperature, SET (Gagge et al., 1986).Moreover, exposure to heat hazards is moderated by infrastructure-based and social/mobility-based adaptations to heat and by buildings and associated cooling mechanisms.
Here, the focus is the development of a tool to quantify the outdoor component of heat exposure in cities, accounting for all relevant meteorological variables.
Heat exposure in urban areas is affected by several meteorological variables that vary on different spatial and temporal scales (Nazarian et al., 2022).While temperature and humidity vary on spatial scales on the order of hundreds of meters, shortwave and longwave radiation and wind speed are strongly affected by individual buildings and vary on the scale of a few meters.For this reason, most numerical thermal comfort studies in urban areas apply microscale models with resolutions on the order of 1 m and spatial domains that are limited to an urban block or neighborhood (Nazarian et al., 2017;Zhang et al., 2022;Geletič et al., 2018).While these studies include substantial detail on the microscale, they are computationally very expensive and therefore can only be applied to a few neighborhoods, and they neglect the interactions with larger-scale meteorological phenomena (e.g., land/sea breezes, mountain/valley winds, and urban breezes) that often play a relevant role in outdoor thermal comfort and its variation across cities.On the other hand, contemporary mesoscale numerical models can be applied to the whole urban area and surrounding regions and therefore capture these larger-scale phenomena but have spatial resolutions of several hundred meters at best.These models use a grid mesh that does not resolve buildings and is therefore too coarse to capture the fine-scale variation in radiation and wind flow of relevance to outdoor heat exposure and ultimately thermal comfort.
The objective of this work is to fill the aforementioned gap by developing a model that includes the most crucial capabilities of microscale assessments of thermal exposure within mesoscale models.This new model will quantify the spatial variability (i.e., statistical representation of the microscale distribution) for longwave and shortwave radiation as well as wind speed within each mesoscale grid square.Subsequently, it will capture the range of thermal exposure, as quantified by the UTCI and SET thermal stress metrics, within each urban grid square across a city at each time of day.The focus here is on the range of thermal exposure, such that we identify the cool and hot spots within the grid cell without having to resolve the entire spatial distribution.We argue that this represents the most crucial information for heat management and urban design interventions as it identifies whether people can move and search for optimal thermal conditions.For example, if hot spots are experiencing extreme heat stress but the cool spots are at slight heat stress, pedestrians have the opportunity and autonomy to seek shade and thermal respite (i.e., temporal and spatial autonomy as described in Nazarian et al., 2019).Conversely, if the conditions in the cool spot are already in extreme heat stress, this can be used to inform urban design interventions or heat advisories to vulnerable populations to avoid being outside at that place and time.Overall, representing the range of heat exposure on the neighborhood scale while covering regional-scale phenomena is key to human-centric assessments of urban overheating (Nazarian et al., 2022).
The new model is embedded in the multilayer urban canopy parameterization BEP-BEM (Martilli et al., 2002;Salamanca et al., 2010), which simulates the local-scale meteorological effects of the grid-average urban morphology within the Weather Research and Forecasting (WRF) mesoscale model (Skamarock et al., 2021;version 4.3 has been used in this study).Here, BEP-BEM is extended to quantify the spatial variation in the mean radiant temperature and wind speed within the grid square at the pedestrian level.To our knowledge, three schemes in the published literature have attempted to capture thermal exposure in an urban canopy model.Pigliautile et al. (2020) implemented a scheme to estimate human thermal exposure in the Princeton single-layer urban canopy model.However, the scheme has not been run within a mesoscale model.Jin et al. (2022) calculate urban mean radiant temperature (MRT) in a mesoscale model, while Lemonsu et al. (2015) and Leroyer et al. (2018) assess UTCI in mesoscale modeling applications within Paris and Toronto, respectively.Moreover, Giannaros et al. (2018Giannaros et al. ( , 2023) ) made an offline coupling of WRF-BEP-BEM with RayMan (Matzarakis et al., 2007).However, none of these approaches account for the within-grid spatial variation in wind speed, and their assessment of subgrid spatial variation in radiation exposure (i.e., mean radiant temperature) is limited.Here, we further extend the BEP-BEM model embedded in the WRF mesoscale model to overcome these limitations and better assess spatial variation in thermal exposure within each urban grid square.
In Sect.2, the methodology is described in detail, with a focus on model development and implementation in WRF.In Sect.3, we present an example of the type of outputs that can be produced.In Sect.4, the limitations of the approach are discussed.Conclusions are in Sect. 5.

Methodology
The most complete thermal stress indices invariably depend on four meteorological variables: air temperature, mean radiant temperature (MRT), relative humidity, and wind speed.Among these, MRT and wind speed have the largest spatial variability in the urban canopy, and this variability is often captured with 3D microscale models of urban airflow and radiative heat transfer.On the mesoscale, however, it is not feasible to incorporate such models, motivating the simplified urban canopy parameterizations developed here.Below we detail how the BEP-BEM urban canopy model is modified to (a) introduce a simplified model for MRT variation within a mesoscale grid cell (Sect.2.1) and (b) parameterize airflow variability (Sect.2.2) in the urban canopy within a grid cell and make a simple estimate of air temperature variability.These meteorological parameters are then used to estimate the subgrid-scale variation in thermal stress indices (Sect.2.3), namely SET and UTCI, as two of the most commonly used indices for outdoor environments (Potchter et al., 2018).Lastly, we discuss how multi-scale temporal and spatial variabilities in thermal exposure can be effectively communicated using the outcomes of the updated WRF-BEP-BEM model.

A simplified model for MRT variability in the urban canopy
The mean radiant temperature is a measure of the total radiation flux absorbed by the human body, including both shortwave (from the sun, either directly or after reflection on the walls or road) and longwave (emitted from solid bodies like walls or road or from the sky) radiation.Whether pedestrians are shaded or in the sunshine as well as their distance from warm surfaces emitting radiation are therefore very important.BEP-BEM applies a simple urban morphology: two street canyons of different orientations, each with the same street width and building height distribution on each side of the canyon (Martilli et al., 2002).To capture the withingrid spatial extremes of mean radiant temperature, we assess pedestrian locations at the center of the street for two canyon orientations considered in BEP-BEM and at positions located at a distance of 1.5 m from the building wall on each side of the street, representing the sidewalks.Thus, there are six positions (three for each street direction) in each urban grid square where we compute the mean radiant temperature (shown for the example of north-south and east-west streets in Fig. 1).For shortwave and longwave radiation exchange, the standard BEP view factor and shading routines (Martilli et al., 2002) are used to estimate the amount of shortwave (direct and diffuse) and longwave radiation reaching a vertical segment that is 1.80 m tall and located in each of the previously mentioned six positions (Fig. 1; Appendix A).The reflection of shortwave radiation and emission and reflection of longwave radiation from both building walls and the street surface are accounted for via these view factors.The pedestrian is "transparent" from the perspective of the urban facets, meaning that its presence does not alter the shortwave and longwave radiation reaching the building walls and road.
The mean radiant temperature is computed by weighting the radiation reaching each side of the vertical segment by 0.44 and the radiation reaching the downward-and upward-facing (at 1.80 m height) surfaces of the pedestrian by 0.06 each.This approach follows the six-directional weighting method (Thorsson et al., 2007) and aggregates the four lateral weightings of 0.22 into two lateral weightings of 0.44 since BEP-BEM is a two-dimensional model (e.g., the streets are con- sidered infinitely long).Namely, the following applies: where, for a N-S-oriented street, i = 1, 2 is for the vertical sides of the pedestrian looking east and west and i = 3, 4 is for the top and bottom, respectively.Therefore, W 1,2 = 0.44 and W 3,4 = 0.06, while the absorptivity of the pedestrian in the shortwave and longwave, a K (the absorption coefficient for shortwave radiation of the human body) and a L (the absorption coefficient for longwave radiation, or emissivity, of the human body), respectively, are a K =0.7 and a L = 0.97.K 1,2 and L 1,2 are the shortwave and longwave radiation reaching the vertical segment; K 3,4 and L 3,4 are shortwave and longwave radiation reaching the top and bottom, respectively; and σ is the Stefan-Boltzmann constant (see Appendix A for details about how the radiation components are computed).
The diurnal progression of the mean radiant temperature computed by this new model in BEP-BEM is subsequently compared with that obtained from TUF-Pedestrian, a more detailed three-dimensional model that has been evaluated against measurements (Lachapelle et al., 2022;Jiang et al., 2023).TUF-Pedestrian is configured with identical input parameters and meteorological forcing and with long canyons that approximate the two-dimensional BEP-BEM canyon geometry.The new model clearly captures the relevant details of the diurnal progression of MRT at all six locations (Fig. 2), with a mean absolute difference of 3.4 K and a root mean square difference of 4.3 K across all locations.A comparison of the shortwave radiation loading on the pedestrian between the two models reveals very good agreement (Appendix B; Figs.B1 and B2), considering the highly simplified urban morphology used by BEP-BEM, with the biggest errors limited to short periods of time; thus, most of the model disagreement arises from differences between longwave loading on the pedestrian as a result of different methods for the computation of surface temperature between the models.Overall, https://doi.org/10.

Parameterize airflow variability in the urban canopy
Mesoscale models solve conservation equations for the three components of momentum.From these, it is possible to derive the spatially averaged wind velocity in each grid cell at the grid resolution of the mesoscale model, commonly on the order of 300 m-1 km.The spatially averaged wind velocity in the urban canopy, V , close to the pedestrian height (∼ 2.5 m), is the square root of the sum of the spatial average of the two horizontal components, u and v (neglecting the vertical component, which is usually at least 1 or 2 orders of magnitude smaller than the horizontal): where V air is the volume of the grid cell occupied by air (e.g., without the buildings).However, the wind velocity calculated in mesoscale models is different from the average wind speed that would be experienced by a person in the grid cell.This is better represented by the spatial average of the wind speed, U (e.g., the modulus of the vector), written as To assess the impact of airflow on human thermal comfort, the wind speed should be estimated from the wind velocity computed in the mesoscale models.Additionally, it is critical to parameterize and estimate the spatial variability in mean wind speed in the urban canopy.Accounting for these factors, the range of wind speed variability at the pedestrian level is estimated, which is critical for the quantification of spatial variability in outdoor thermal stress and comfort.
Here, we describe the parameterization of (a) wind-speedto-velocity ratio and (b) wind speed distribution based on urban density parameters.Data are considered from over 173 microscale computational fluid dynamics (CFD) simulations of urban airflow over realistic and idealized urban configurations, spanning a wide range of building plan area (λ P ), frontal area (λ F ), and wall area (λ w ) densities representative of realistic urban neighborhoods in different types of cities. CFD simulations are conducted using large-eddy simulations (LES; 162 cases) and Reynolds-averaged Navier-Stokes (RANS; 11 cases) schemes detailed in Appendix C.
Spatial averages of mean wind velocity ( V ) and speed ( U ) and its spatial standard deviation (σ U ) are computed at a horizontal cross section at pedestrian height for each CFD simulation and used to derive parameterizations (Fig. 3).An additional data point is added at λ P = λ w = 0, ensuring that wind speed is equal to wind velocity, and its standard deviation is set to zero for the non-urban case.It is important to remark here that we are dealing with the standard deviation of the spatial distribution of the mean wind speed.With the term "mean", we indicate the result of an ensemble (over many realizations) or a time average (over timescales larger than the turbulence timescale but smaller than the timescale of the mesoscale motions) but not a spatial average.The urban canopy is, in fact, spatially heterogeneous, and, for this reason, the time and ensemble averages are different than the spatial average.Only when λ P = λ w = 0 (e.g., there are no buildings) and the horizontal homogeneity is recovered must the variability be zero.This σ U , therefore, should not be confounded with the turbulent σ , which indicates the variability in instantaneous wind speed induced by turbulent motions, which is indeed not zero even when there are no buildings.
Parameterizations are derived (shown in Fig. 3) for two density parameters, (λ P = A p /A tot and λ w = A w /A tot , where A p is the area of the horizontal surface occupied by buildings or the roof area; A w is the area of vertical, i.e., wall, surfaces; and A tot is the total horizontal area).We find that λ w better predicts mean wind speed and its spatial variability at the pedestrian height because it represents both horizontal and vertical heterogeneities in the urban canopy.Note that λ F has not been included in the study, given the difficulty of estimating it for real urban areas and to translate it to the simplified 2D urban morphology used by BEP-BEM.In any case, λ F is closely related to λ w .Therefore, the following parameterizations are implemented at the pedestrian height as a function of the wall area density, λ w : σ U = U (0.25λ 0.55 w ). (5) We, therefore, assign the following three values of wind speed in each grid cell: Note that here we consider the three values to be equally likely in order to realistically span the range of possible values that the wind speed can take in each grid cell.Since UTCI has been designed for 10 m wind speeds, a simple log law is used to rescale wind speed at 10 m before passing it to the UTCI routine.

Calculation of the thermal comfort index
To represent the subgrid spatial variability in air temperature, detailed CFD simulations are not available, so we simply use a variability of 1 °C, which we consider to be a conservative where Temp WRF is the air temperature provided by WRF.
We therefore have, for each urban grid cell, three values of wind speed, three values of temperature, and six values of mean radiant temperature.No variability in the absolute humidity is considered, but the relative humidity is computed using the three values of air temperature.
Based on the variation in these meteorological variables, assumed to be uncorrelated, 54 possible combinations of the air temperature, mean radiant temperature, and wind speed values can be formed.For each one of these combinations, we calculate the corresponding SET or UTCI value.Based on the resulting distribution, we estimate the value of the 10th, 50th, and 90th percentile of SET or UTCI for each grid square (at each output time).Increasing the number of points where the mean radiant temperature is computed or adding https://doi.org/10.5194/gmd-17-5023-2024 Geosci.Model Dev., 17, 5023-5039, 2024 more values for the wind speed does not change the values of the percentiles significantly (not shown).
3 Characterization of thermal comfort in regional-scale models: Madrid case To illustrate the capabilities of the new scheme, a typical heat wave day in the city of Madrid (Spain) is simulated with WRF.Madrid is located on a plateau at 500-700 m a.s.l. in the middle of the Iberian Peninsula.It experiences hot summers, with frequent heat waves that increasingly cause severe heat stress in the population, and it is therefore considered a relevant case study.Four nested domains have been used, with resolutions of 27, 9, 3, and 1 km, respectively.The city morphology (Fig. 4) is derived from high-resolution lidar data that cover most of the metropolitan area of Madrid (Martilli et al., 2022), while the morphology of the surrounding towns is determined based on Local Climate Zone maps (Brousse et al., 2016).It is also important to mention that the city is located on a hilly terrain, with higher elevations in the NW part of the urban area (around 700 m a.s.l.), which drop to 500 m a.s.l. or less in the SE.Moreover, there are two topographical depressions on the two sides of the city center caused by the rivers Jarama and Manzanares (for a detailed description of the topography, see also Martilli et al., 2022, where the same setup was used).Other model configurations are the NOAH vegetation model for the nonurban grid points and the Bougeault and Lacarrere (1989) planetary boundary layer (PBL) scheme for turbulence pa- rameterization.WRF coupled with BEP-BEM has previously been successfully used to simulate a heat wave period in Madrid (Salamanca et al., 2012).The period used in this paper is 3 d (14-16 July 2015).In particular, the analysis will focus on 15 July, when the maximum simulated temperature was above 40 °C.More information about the validation and a sensitivity study to select the optimal setup can be found in Rodriguez-Sanchez (2020).

Subgrid-scale variability in MRT and thermal comfort
In order to understand how urban morphology affects the simulated heat stress, we focus on two grid points with very different urban morphology.One is located in the dense core of the city, with a building plan area density of λ P = 0.69, and a height-to-width ratio (H /W ) of 1.6.The second is located in the southern part of the urban area, in a residential neighborhood with a much lower building density (λ P = 0.2) and a H /W of 0.1.In Fig. 5, the diurnal evolution of the mean radiant temperature in the six points (three per street direction) is presented for the high-urban-density point and the low-urbandensity point.During the daytime, the impact of the shadowing is clear, with reduced mean radiant temperature in the high-density point compared to the more exposed lowdensity point.On the other hand, during nighttime, the reduced sky-view factor in the high-density point slows down the cooling compared to the more open low-density location.This behavior helps to explain the heat stress index (Fig. 6), which is introduced here as an example of an index that can be computed with standard outputs from meteorological models, i.e., without information related to the radiation environment (e.g., MRT) and urban morphology.The air temperature indicates hotter values during both the day and the night in the high-urban-density point compared to the low-density location.The heat index, which considers air temperature and humidity only and does not include mean radiant temperature or wind, shows the same tendency.On the other hand, the UTCI behavior communicates a different and more complete result.In the low-density neighborhood, more exposed to the sun, the UTCI shows a stronger subgrid spatial variability, in particular during the morning and afternoon, with the potential for stronger heat stress than in the high-density neighborhood.During nighttime, the spatial variability is reduced due to reduced MRT variation as the shadowing effect disappears, and higher UTCI values are found at the high-urban-density location.This difference in behavior between the two locations can also be seen in Fig. 7, where the fractions of the 10th percentile of UTCI values (i.e., representative of one of the coolest spots in the grid cell) and the 90th percentile (i.e., one of the hottest) in the different heat stress regimes are shown for the two points.Here we can see that in the low-density urban point, the cool location is in a comfortable UTCI range most of the time, while the hot (90th percentile UTCI) sub grid location is under stress most of the time.On the other hand, less variability is present in the high-density neighborhood, with fewer extreme values, and most of the time it is in the strong or moderate heat stress regime for both the cool and hot locations within the grid square.This kind of detail is not available from the heat index distribution which does not account for the mean radiant temperature, wind, or their variabilities (Fig. 8).

City-scale maps of outdoor thermal comfort and heat stress indicators
The previous analysis helps to understand the spatial distribution of the different variables presented in Figs. 9 at 10 at 16:00 UTC (note that Madrid is at a longitude of 3°W, so UTC is essentially equal to solar time).In the dense city center, the distribution of 2 m air temperature at 09:00 UTC shows a hot region, with cooler areas in the less dense regions around it.This effect is due to the fact that in the dense region, the reduced sky-view factor of the streets (high H /W ) as well as the larger thermal storage capacity in the buildings reduce the nocturnal cooling and increase the vertical mixing https://doi.org/10.5194/gmd-17-5023-2024Geosci.Model Dev., 17, 5023-5039, 2024 in that part of the city compared to the surroundings.Such a difference is still visible in the morning.The higher temperatures in the SE part of the urban area and cool temperatures in the NW are the result of the topographical differences.The spatial distribution of air temperature is qualitatively similar to the spatial distribution of the 10th percentile of UTCI (e.g., the cool spot in the grid cell) even if the differences between the center and the surrounding urban areas are not as intense as for 2 m air temperature.On the other hand, the 90th-percentile map (hot spot) shows a completely different pattern; in the city center, at that time of the day, the whole street is still in the shadow, while in the surrounding, less dense urban areas there are points completely exposed to the sun.As a comparison, the map of surface temperature (a variable often used to represent the spatial distribution of heat in cities) as seen from a satellite, i.e., based only on a weighted average of roof, street, and vegetation temperatures (see full equations in Martilli et al., 2021), does not show a clear pattern, and it is uncorrelated with the other maps.This is a clear indication that this variable should not be used for the assessment of the heat hazard or heat stress in urban areas.At 16:00 UTC, the air temperature again shows higher values in the city center, lower values in the urban surroundings, and a gradient from hotter SE values at lower elevations to cooler NW at higher elevations (Fig. 10).Such a tendency is present also for the 10th percentile (cool spot) but with less variability.The 90th percentile map (hot spot) indicates that the area with elevated heat stress extends well beyond the city center, including lower-density regions that, even if they have lower air temperatures, are fully exposed to the sun.Finally, as it was the case for 09:00 UTC, the surface temperatures have a map uncorrelated with neither the air temperatures nor the UTCI maps.

Limitations
The main limitation of the approach we propose here to account for the subgrid variability in mean radiant temperature is the idealization of the urban morphology adopted by the urban canopy parameterization BEP-BEM.This consists of representing the urban morphology as a series of infinite urban canyons, all with the same width, separated by buildings of constant width and variable building height.Two street orientations are considered for each grid cell: north-south and east-west.The dimensions of the buildings and street canyons are determined so that the building plan area density, the density of urban vertical surfaces per horizontal area, and the mean building heights are equal to those of the real morphology of the grid cell.As a result, the total surface areas of walls, roads, and roofs in the idealized morphology used by BEP-BEM closely approximate the corresponding surface areas in the real neighborhood, and -to a certain extent -the street and buildings of the idealized morphology can be considered representatives of an average street and set of buildings present in the grid cell.The advantage of this approach, common among the most widely used urban canopy parameterizations (Masson, 2000;Kusaka et al., 2001), is that it allows for accurate estimation of shadowing and radiation trapping effects in the urban canopy with low computational cost, without considering the real urban morphology.Keeping the computational cost low was an essential requirement considering the computational resources that were available when these urban canopy parameterizations were developed (about 20 years ago).With today's computational resources, there may be potential for accounting for more complexity in the urban morphology.However, this would require deep changes in the structure of the urban canopy parameterization BEP-BEM that are beyond the scope of the present article.For this reason, we decided to keep the idealized morphol-  ogy of BEP-BEM and estimate the mean radiant temperature in six locations representative of the middle of the street and the sidewalks.So, the mean radiant temperatures computed are representatives of those six points of an "average" street in the grid cell.Indeed, in a grid cell of a mesoscale model (that typically has a size on the order of 1 km 2 ) there is a variety of street and building dimensions and orientations, so the present approach cannot capture the full spatial variability in mean radiant temperature, a variability that increases with the heterogeneity of the real urban morphology.Nevertheless, it represents a step forward since it accounts for the range (and to some extent, the variability) of mean radiant temperature within the average idealized street canyon that can be reasonably considered the most likely street typology within the grid cell, something that previous approaches do not do.Overall, the current approach is likely to accurately quantify the mean radiant temperature of at least one average shaded pedestrian and one average sunlit pedestrian (during periods with direct shortwave irradiance) and thus capture the largest source of spatial variation in both MRT and UTCI (Middel and Krayenhoff, 2019).Another limitation of the approach presented here is the lack of street trees.Currently, work is in progress to introduce trees in the version of BEP-BEM implemented in WRF via implementation of the BEP-Tree model (Krayenhoff et al., 2020) and in this way account for their impacts on mean radiant temperature as well as on air temperature, humidity, and wind.
The approach used to estimate the mean wind speed and its subgrid variability is grounded on a large number of CFD simulations over a variety of urban morphologies.Indeed, as shown in Fig. 3, the subgrid variability in wind speed can be quite large and certainly strongly influenced by the relative arrangements of buildings and streets.So, the approach presented here likely underestimates the subgrid variability in wind speed -and this is why we decided to give the same likelihood to the three values of wind speed estimated in Eq. ( 6) instead of assuming a Gaussian or Weibull distribution of the probabilities of wind speed in the grid cell.To fully capture this variability, a complete coupling between the mesoscale model and a detailed CFD model would be https://doi.org/10.5194/gmd-17-5023-2024 Geosci.Model Dev., 17, 5023-5039, 2024 needed -something that we may be able to do in the near future but is still unavailable with the current computational resources.Another limitation of the present approach is that the CFD simulations used to build the database from which the parameterization has been derived are all for a neutral atmosphere, so thermal effects on wind speed and its subgrid variability are neglected.

Conclusions
A new parameterization to quantify intra-neighborhood heat stress variability in urban areas using a mesoscale model is presented.This approach is based on two primary develop-ments: (1) calculation of mean radiant temperature at several locations within the idealized urban morphology used by the urban canopy model BEP-BEM and (2) parameterization of mean wind speed and its subgrid spatial variability as a function of the local urban morphology and the mean wind velocity computed by the WRF mesoscale model using relations developed from a large suite of CFD simulations over a range of realistic and idealized urban neighborhoods.
The components of the new parameterization have been validated against microscale model results.From this approach, the subgrid variability in a heat stress index (i.e., UTCI or SET) can be computed for every grid point, permitting quantification of the heat exposure at both cool and hot locations within each grid square at each time.The new parameterization has been implemented in the multilayer scheme BEP-BEM in WRF and used to simulate a heat wave day over Madrid (Spain) as proof of concept.The results of this initial application demonstrate the following: i.The new parameterization gives information that is more suitable for the evaluation of heat stress than the air temperature due to it being based on an index (UTCI or SET) that also combines air humidity, wind speed, and mean radiant temperature.
ii.The new parameterization provides substantively more information than air temperature alone (or any other index that does not account for the mean radiant temperature).It provides information about the subgrid variability (such that heat stress in both cool and hot locations in each grid square is quantified).To our knowledge, this has not been done before with a mesoscale model.
iii.The results for the investigated case indicate a strong intra-urban variability, both in air temperature and UTCI values, that can be linked to the differences in urban morphology and elevation above sea level.The ability to assess the differential impacts of urban morphology on heat stress is key to the provision of guidance for urban planning strategies that mitigate urban overheating.
iv. Nadir-view surface temperature (i.e., as seen from a satellite-mounted remote sensor) is poorly correlated with both air temperature and UTCI maps, indicating that despite its ubiquitous use at present, it is unlikely to https://doi.org/10.5194/gmd-17-5023-2024Geosci.Model Dev., 17, 5023-5039, 2024 be an adequate metric for heat impact assessment studies.
Finally, we consider that this new development introduces a new methodology for deploying mesoscale models to assess urban overheating mitigation strategies.
Appendix A: Computation of radiation for mean radiant temperature As explained in the text, the mean radiant temperature on the pedestrian level is represented using Eq. ( 1).The full expression of the longwave radiation components for the vertical faces of the pedestrian (L 1 , L 2 ) for the case of an urban morphology with buildings of constant height and walls with no windows is as follows: where (see Fig. A1) ψ 1i,p is the view factor from wall section i of building 1 to side 1 of the pedestrian.ε W is the emissivity of the wall.R1 1W i is the longwave radiation reaching section i of the wall of building 1. T 1i is the surface temperature of section i of the wall of building 1. ψ 1G,p is the view factor from the ground (or street) to side 1 of the pedestrian.ε G is the emissivity of the ground.R1 G is the longwave radiation reaching the ground (street).T G is the surface temperature of the ground (street).ψ 1S,p is the view factor from the sky to side 1 of the pedestrian.R1 S is the longwave radiation from the sky and σ is the Stefan-Boltzmann constant.Similar meaning applies for side and building 2. The values of the surface temperatures and the longwave radiations are computed with BEP-BEM.The view factors are estimated based on Eqs.(A13)-(A19) of Martilli et al. (2002) using a height for the pedestrian of 1.8 m.
For the longwave radiation reaching the top of the pedestrian, we made the simple assumption that it is equal to the radiation coming from the sky, L 3 = Rl S , while for the longwave radiation reaching the bottom of the pedestrian, the assumption is that it is equal to the radiation emitted and reflected by the ground or G .We consider that these assumptions are reasonable, giving that the contribution of the radiation reaching the top and bottom of the pedestrian is only 6 % each to the final value of the mean radiant temperature.A similar approach is followed for the shortwave radiation, leading to where Rs 1W i is the shortwave radiation reaching section i of the wall of building 1. α i albedo of section i of the wall of the building.Rs G is the shortwave radiation reaching the ground.α G is the albedo of the ground.Rs 1S is the shortwave radiation from the sun directly reaching side 1 of the pedestrian, computed using Eq.(A10) of Martilli et al. (2002), with the height of the pedestrian of 1.8 m.The meaning is similar for side and wall 2.
Regarding the radiation reaching the top of the pedestrian, K 3 , for simplicity only, the radiation coming directly from the sun is considered without accounting for the reflection from the walls.So, the value is zero if the pedestrian is in full shadow, and to estimate it, the formula used is from Eq. (A11) of Martilli et al. (2002).The value of the radiation reaching the bottom of the pedestrian is the value reflected by the ground or K 3 = α G Rs G , Table C1.Details of CFD microscale simulation cases considered in this study.Simulations are classified based on the configuration (urban form) used.These classifications include UA (uniform height with aligned configuration), US (uniform height with staggered configuration), VA (variable height with aligned configuration), VS (variable height with staggered configuration), UR (uniform height with realistic configuration), and VR-WD (variable height with realistic configuration and multiple wind directions considered).Coceal et al., 2007) and wind tunnel experiments (Brown et al., 2001).The computational domain is discretized using the second-order central differences (Piacsek and Williams, 1970), where the horizontal grid spacing is uniform and the vertical spacing follows the staggered Arakawa C-grid.The minimal storage scheme is employed in the time integration to solve the filtered prognostic incompressible Boussinesq equations, where the pressure perturbation was calculated using Poisson's equation and was solved by the FFTW scheme (Frigo and Johnson, 1998).FFTW is a C subroutine library for computing the discrete Fourier transform (DFT) in one or more dimensions.The RANS dataset is derived from steady-state CFD-RANS simulations performed with the realizable k-ε turbulence model (STAR-CCM+; Siemens, 2023) over realistic urban areas.The size of the computational domains is determined following the best practice guideline of COST Action 732 (Franke et al., 2010).The horizontal area covers around 1-1.5 km 2 and the domain top is at around 8H , H being the mean height of buildings.The resolution of the ir-regular polyhedral mesh used in all CFD-RANS simulations goes from 0.5 m close to buildings to 6 m out of the built-up area, which results in between 3 and 8 million grid points depending on the complexity of the geometry.Inlet vertical profiles for wind speed, turbulent kinetic energy (k), and its dissipation (ε) are established in neutral atmospheric conditions.The evaluation of the CFD-RANS simulations was addressed in previous studies, with more information provided in previous publications.
Author contributions.AM, NN, and ESK designed the methodology; AM developed the model code; AM and ARS performed the mesoscale simulations; JaL and ESK performed the TUF-3D simulations; JiL, ER, BS, and JLS performed the microscale LES and RANS simulations; NN prepared the figures; and AM, NN, and ESK prepared the paper with contributions from all co-authors.

Figure 1 .
Figure 1.Two street directions (E-W canyon on the left; N-S canyon on the right) and pedestrian locations considered for Mean Radiant Temperature calculations.

Figure 2 .
Figure 2. Comparison of diurnal variation in mean radiant temperature (MRT) between the new model in BEP-BEM and TUF-Pedestrian for each of the six locations in Fig. 1.TUF pedestrian acts here as a reference.

Figure 3 .
Figure 3. Relationship between 1 − V / U (c, d) and σ U / U (a, b) and two morphological parameters, λ P (a, c) and λ w (b, d), based on the CFD simulations.Dots represent the average of the value among all the simulations that share the same morphological parameter and the vertical bar indicates the standard deviation.The dashed line and the formula indicate the best fit.

Figure 4 .
Figure 4. Map of the plan area building density over the Madrid region.The map is oriented so that left is west and up is north; the size is 50 × 50 km.The underlying map was created with © Open-StreetMap contributors 2023.Distributed under the Open Data Commons Open Database License (ODbL) v1.0.

Figure 5 .
Figure 5.Diurnal evolution of MRT for 6 points in the urban canopy.Panels (a) and (b) (white background) correspond to a grid point with the highest building density in the center of Madrid (λ P = 0.69), while panels (c) and (d) (with a grey background) show MRT in a low-density neighborhood (λ P = 0.19).The left column is for a N-S street, while the right column shows an E-W street.

Figure 6 .
Figure 6.Diurnal evolution of UTCI compared with 2 m air temperature and heat index calculated from air temperature and relative humidity at each grid point).The UTCI boxplot at each hour represents the subgrid-scale distribution calculated based on six MRT, three wind speed, and three air temperature values (54 combinations in total).The horizontal lines represent the thermal comfort zones for UTCI (i.e., above +46 °C: extreme heat stress; +38 to +46 °C: very strong heat stress; +32 to +38 °C: strong heat stress; +26 to +32 °C: moderate heat stress; and +9 to +26 °C: no thermal stress).

Figure 7 .
Figure 7. From top to bottom, the frequency of UTCI class over a 24 h period, for a subgrid location that is cooler (i.e., 10th percentile of UTCI in the urban canopy; a, b) and for a subgrid location that is hotter (i.e., 90th percentile of UTCI in the urban canopy; c, d) for the high-density (a, c) and low-density (b, d) points.

Figure 8 .
Figure 8. Same as Fig. 7 but for the heat index.

Figure 9 .
Figure9.Spatial maps at 09:00 UTC for 2 m air temperature (top-left); surface temperature (top-right); UTCI cool spot, e.g., the 10 percentile of UTCI captured in the urban canopy model (bottom-left); and UTCI hot spot, e.g., 90 percentile of UTCI in the urban canopy (bottomright).Surface temperature is equivalent to that seen by a nadir-view satellite sensor (i.e., an area-weighted average of the canopy ground temperature, roof temperature, and vegetation temperature in non-urban fractions is considered).The underlying maps were created with © OpenStreetMap contributors 2023.Distributed under the Open Data Commons Open Database License (ODbL) v1.0.

Figure 10 .
Figure 10.Same as Fig. 9 but at 16:00 UTC.The underlying maps were created with © OpenStreetMap contributors 2023.Distributed under the Open Data Commons Open Database License (ODbL) v1.0.

Figure A1 .
Figure A1.Schematic of the street canyon.
Model Classification H mean (m) H max (m) λ p range Number of sim.0625, 0.64]) and height variability (H std = [0 m, 2.8 m, 5.6 m]).Simulations are conducted in the Parallelized Large-Eddy Simulation Model (PALM version r4554) (Maronga et al., 2020) following the same setup in Nazarian et al. (2020), which validated results against direct numerical simulation (