<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD Journal Publishing with OASIS Tables v3.0 20080202//EN" "journalpub-oasis3.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:oasis="http://docs.oasis-open.org/ns/oasis-exchange/table" xml:lang="en" dtd-version="3.0">
  <front>
    <journal-meta><journal-id journal-id-type="publisher">GMD</journal-id><journal-title-group>
    <journal-title>Geoscientific Model Development</journal-title>
    <abbrev-journal-title abbrev-type="publisher">GMD</abbrev-journal-title><abbrev-journal-title abbrev-type="nlm-ta">Geosci. Model Dev.</abbrev-journal-title>
  </journal-title-group><issn pub-type="epub">1991-9603</issn><publisher>
    <publisher-name>Copernicus Publications</publisher-name>
    <publisher-loc>Göttingen, Germany</publisher-loc>
  </publisher></journal-meta>
    <article-meta>
      <article-id pub-id-type="doi">10.5194/gmd-13-1335-2020</article-id><title-group><article-title>Overview of the PALM model system 6.0</article-title><alt-title>The PALM model system 6.0</alt-title>
      </title-group><?xmltex \runningtitle{The PALM model system 6.0}?><?xmltex \runningauthor{B.~Maronga et~al.}?>
      <contrib-group>
        <contrib contrib-type="author" corresp="yes" rid="aff1 aff2">
          <name><surname>Maronga</surname><given-names>Björn</given-names></name>
          <email>maronga@muk.uni-hannover.de</email>
        </contrib>
        <contrib contrib-type="author" corresp="no" rid="aff3">
          <name><surname>Banzhaf</surname><given-names>Sabine</given-names></name>
          
        </contrib>
        <contrib contrib-type="author" corresp="no" rid="aff4">
          <name><surname>Burmeister</surname><given-names>Cornelia</given-names></name>
          
        </contrib>
        <contrib contrib-type="author" corresp="no" rid="aff5">
          <name><surname>Esch</surname><given-names>Thomas</given-names></name>
          
        </contrib>
        <contrib contrib-type="author" corresp="no" rid="aff6">
          <name><surname>Forkel</surname><given-names>Renate</given-names></name>
          
        <ext-link>https://orcid.org/0000-0001-6452-344X</ext-link></contrib>
        <contrib contrib-type="author" corresp="no" rid="aff7">
          <name><surname>Fröhlich</surname><given-names>Dominik</given-names></name>
          
        <ext-link>https://orcid.org/0000-0002-5360-5930</ext-link></contrib>
        <contrib contrib-type="author" corresp="no" rid="aff8">
          <name><surname>Fuka</surname><given-names>Vladimir</given-names></name>
          
        </contrib>
        <contrib contrib-type="author" corresp="no" rid="aff1">
          <name><surname>Gehrke</surname><given-names>Katrin Frieda</given-names></name>
          
        <ext-link>https://orcid.org/0000-0003-4482-8240</ext-link></contrib>
        <contrib contrib-type="author" corresp="no" rid="aff9">
          <name><surname>Geletič</surname><given-names>Jan</given-names></name>
          
        <ext-link>https://orcid.org/0000-0002-0904-3133</ext-link></contrib>
        <contrib contrib-type="author" corresp="no" rid="aff1">
          <name><surname>Giersch</surname><given-names>Sebastian</given-names></name>
          
        <ext-link>https://orcid.org/0000-0002-4966-4436</ext-link></contrib>
        <contrib contrib-type="author" corresp="no" rid="aff1">
          <name><surname>Gronemeier</surname><given-names>Tobias</given-names></name>
          
        <ext-link>https://orcid.org/0000-0001-5985-0024</ext-link></contrib>
        <contrib contrib-type="author" corresp="no" rid="aff1">
          <name><surname>Groß</surname><given-names>Günter</given-names></name>
          
        </contrib>
        <contrib contrib-type="author" corresp="no" rid="aff5">
          <name><surname>Heldens</surname><given-names>Wieke</given-names></name>
          
        <ext-link>https://orcid.org/0000-0001-6209-5664</ext-link></contrib>
        <contrib contrib-type="author" corresp="no" rid="aff10">
          <name><surname>Hellsten</surname><given-names>Antti</given-names></name>
          
        </contrib>
        <contrib contrib-type="author" corresp="no" rid="aff1 aff20 aff21">
          <name><surname>Hoffmann</surname><given-names>Fabian</given-names></name>
          
        <ext-link>https://orcid.org/0000-0001-5136-0653</ext-link></contrib>
        <contrib contrib-type="author" corresp="no" rid="aff11">
          <name><surname>Inagaki</surname><given-names>Atsushi</given-names></name>
          
        </contrib>
        <contrib contrib-type="author" corresp="no" rid="aff12">
          <name><surname>Kadasch</surname><given-names>Eckhard</given-names></name>
          
        </contrib>
        <contrib contrib-type="author" corresp="no" rid="aff1">
          <name><surname>Kanani-Sühring</surname><given-names>Farah</given-names></name>
          
        </contrib>
        <contrib contrib-type="author" corresp="no" rid="aff13">
          <name><surname>Ketelsen</surname><given-names>Klaus</given-names></name>
          
        </contrib>
        <contrib contrib-type="author" corresp="no" rid="aff6">
          <name><surname>Khan</surname><given-names>Basit Ali</given-names></name>
          
        <ext-link>https://orcid.org/0000-0002-9467-1758</ext-link></contrib>
        <contrib contrib-type="author" corresp="no" rid="aff1 aff12">
          <name><surname>Knigge</surname><given-names>Christoph</given-names></name>
          
        </contrib>
        <contrib contrib-type="author" corresp="no" rid="aff1">
          <name><surname>Knoop</surname><given-names>Helge</given-names></name>
          
        <ext-link>https://orcid.org/0000-0002-8810-8184</ext-link></contrib>
        <contrib contrib-type="author" corresp="no" rid="aff9">
          <name><surname>Krč</surname><given-names>Pavel</given-names></name>
          
        <ext-link>https://orcid.org/0000-0001-7710-712X</ext-link></contrib>
        <contrib contrib-type="author" corresp="no" rid="aff14">
          <name><surname>Kurppa</surname><given-names>Mona</given-names></name>
          
        <ext-link>https://orcid.org/0000-0003-2538-1068</ext-link></contrib>
        <contrib contrib-type="author" corresp="no" rid="aff15">
          <name><surname>Maamari</surname><given-names>Halim</given-names></name>
          
        </contrib>
        <contrib contrib-type="author" corresp="no" rid="aff7">
          <name><surname>Matzarakis</surname><given-names>Andreas</given-names></name>
          
        <ext-link>https://orcid.org/0000-0003-3076-555X</ext-link></contrib>
        <contrib contrib-type="author" corresp="no" rid="aff6">
          <name><surname>Mauder</surname><given-names>Matthias</given-names></name>
          
        <ext-link>https://orcid.org/0000-0002-8789-163X</ext-link></contrib>
        <contrib contrib-type="author" corresp="no" rid="aff15">
          <name><surname>Pallasch</surname><given-names>Matthias</given-names></name>
          
        </contrib>
        <contrib contrib-type="author" corresp="no" rid="aff4">
          <name><surname>Pavlik</surname><given-names>Dirk</given-names></name>
          
        </contrib>
        <contrib contrib-type="author" corresp="no" rid="aff16">
          <name><surname>Pfafferott</surname><given-names>Jens</given-names></name>
          
        </contrib>
        <contrib contrib-type="author" corresp="no" rid="aff9">
          <name><surname>Resler</surname><given-names>Jaroslav</given-names></name>
          
        <ext-link>https://orcid.org/0000-0003-3847-7624</ext-link></contrib>
        <contrib contrib-type="author" corresp="no" rid="aff17">
          <name><surname>Rissmann</surname><given-names>Sascha</given-names></name>
          
        </contrib>
        <contrib contrib-type="author" corresp="no" rid="aff3 aff22 aff23">
          <name><surname>Russo</surname><given-names>Emmanuele</given-names></name>
          
        <ext-link>https://orcid.org/0000-0002-2149-5685</ext-link></contrib>
        <contrib contrib-type="author" corresp="no" rid="aff17 aff18">
          <name><surname>Salim</surname><given-names>Mohamed</given-names></name>
          
        <ext-link>https://orcid.org/0000-0001-7838-6124</ext-link></contrib>
        <contrib contrib-type="author" corresp="no" rid="aff1">
          <name><surname>Schrempf</surname><given-names>Michael</given-names></name>
          
        </contrib>
        <contrib contrib-type="author" corresp="no" rid="aff1">
          <name><surname>Schwenkel</surname><given-names>Johannes</given-names></name>
          
        <ext-link>https://orcid.org/0000-0002-3985-4498</ext-link></contrib>
        <contrib contrib-type="author" corresp="no" rid="aff1">
          <name><surname>Seckmeyer</surname><given-names>Gunther</given-names></name>
          
        </contrib>
        <contrib contrib-type="author" corresp="no" rid="aff17">
          <name><surname>Schubert</surname><given-names>Sebastian</given-names></name>
          
        <ext-link>https://orcid.org/0000-0001-5683-3894</ext-link></contrib>
        <contrib contrib-type="author" corresp="no" rid="aff1">
          <name><surname>Sühring</surname><given-names>Matthias</given-names></name>
          
        </contrib>
        <contrib contrib-type="author" corresp="no" rid="aff1 aff4">
          <name><surname>von Tils</surname><given-names>Robert</given-names></name>
          
        </contrib>
        <contrib contrib-type="author" corresp="no" rid="aff19 aff24">
          <name><surname>Vollmer</surname><given-names>Lukas</given-names></name>
          
        </contrib>
        <contrib contrib-type="author" corresp="no" rid="aff1">
          <name><surname>Ward</surname><given-names>Simon</given-names></name>
          
        </contrib>
        <contrib contrib-type="author" corresp="no" rid="aff19 aff25">
          <name><surname>Witha</surname><given-names>Björn</given-names></name>
          
        </contrib>
        <contrib contrib-type="author" corresp="no" rid="aff19">
          <name><surname>Wurps</surname><given-names>Hauke</given-names></name>
          
        </contrib>
        <contrib contrib-type="author" corresp="no" rid="aff5">
          <name><surname>Zeidler</surname><given-names>Julian</given-names></name>
          
        <ext-link>https://orcid.org/0000-0001-9444-2296</ext-link></contrib>
        <contrib contrib-type="author" corresp="no" rid="aff1">
          <name><surname>Raasch</surname><given-names>Siegfried</given-names></name>
          
        </contrib>
        <aff id="aff1"><label>1</label><institution>Institute of Meteorology and Climatology, Leibniz University Hannover, Hannover, Germany</institution>
        </aff>
        <aff id="aff2"><label>2</label><institution>Geophysical Institute, University of Bergen, Bergen, Norway</institution>
        </aff>
        <aff id="aff3"><label>3</label><institution>Institut für Meteorologie, Freie Universität Berlin, Berlin, Germany</institution>
        </aff>
        <aff id="aff4"><label>4</label><institution>GEO-NET Environmental Services GmbH, Hannover, Germany</institution>
        </aff>
        <aff id="aff5"><label>5</label><institution>German Aerospace Center (DLR), German Remote Sensing Data Center (DFD), Oberpfaffenhofen, Germany</institution>
        </aff>
        <aff id="aff6"><label>6</label><institution>Karlsruhe Institute of Technology, IMK-IFU, Garmisch-Partenkirchen, Germany</institution>
        </aff>
        <aff id="aff7"><label>7</label><institution>Research Center Human Biometeorology, Deutscher Wetterdienst, Freiburg, Germany</institution>
        </aff>
        <aff id="aff8"><label>8</label><institution>Department of Atmospheric Physics, Faculty of Mathematics and Physics, Charles University, Prague, Czech Republic</institution>
        </aff>
        <aff id="aff9"><label>9</label><institution>Institute of Computer Science, The Czech Academy of Sciences, Prague, Czech Republic</institution>
        </aff>
        <aff id="aff10"><label>10</label><institution>Finnish Meteorological Institute, Helsinki, Finland</institution>
        </aff>
        <aff id="aff11"><label>11</label><institution>School of Environment and Society, Tokyo Institute of Technology, Tokyo, Japan</institution>
        </aff>
        <aff id="aff12"><label>12</label><institution>Deutscher Wetterdienst, Offenbach, Germany</institution>
        </aff>
        <aff id="aff13"><label>13</label><institution>Software Consultant, Berlin, Germany</institution>
        </aff>
        <aff id="aff14"><label>14</label><institution>Institute for Atmospheric and Earth System Research/Physics, Faculty of Science, University of Helsinki, Helsinki, Finland</institution>
        </aff>
        <aff id="aff15"><label>15</label><institution>Ingenieurgesellschaft Prof. Dr. Sieker mbH, Hoppegarten, Germany</institution>
        </aff>
        <aff id="aff16"><label>16</label><institution>Hochschule Offenburg, Offenburg, Germany</institution>
        </aff>
        <aff id="aff17"><label>17</label><institution>Geography Department, Humboldt-Universität zu Berlin, Berlin,  Germany</institution>
        </aff>
        <aff id="aff18"><label>18</label><institution>Faculty of Energy Engineering, Aswan University, Aswan, Egypt</institution>
        </aff>
        <aff id="aff19"><label>19</label><institution>Carl von Ossietzky Universität Oldenburg, ForWind – Research Center of Wind Energy, Oldenburg, Germany</institution>
        </aff>
        <aff id="aff20"><label>a</label><institution>currently at: Cooperative Institute for Research in Environmental Sciences, University of Colorado Boulder, <?xmltex \hack{\break}?>Boulder, CO, USA</institution>
        </aff>
        <aff id="aff21"><label>b</label><institution>currently at: NOAA Earth Systems Research Laboratory, Chemical Sciences Division, Boulder, CO, USA</institution>
        </aff>
        <aff id="aff22"><label>c</label><institution>currently at: Oeschger Centre for Climate Change Research, University of Bern, Bern, Switzerland</institution>
        </aff>
        <aff id="aff23"><label>d</label><institution>currently at: Climate and Environmental Physics, Physics Institute, University of Bern, Bern, Switzerland</institution>
        </aff>
        <aff id="aff24"><label>e</label><institution>currently at: Fraunhofer Institute for Wind Energy Systems, Oldenburg, Germany</institution>
        </aff>
        <aff id="aff25"><label>f</label><institution>currently at: energy &amp; meteo systems GmbH, Oldenburg, Germany</institution>
        </aff>
      </contrib-group>
      <author-notes><corresp id="corr1">Björn Maronga (maronga@muk.uni-hannover.de)</corresp></author-notes><pub-date><day>20</day><month>March</month><year>2020</year></pub-date>
      
      <volume>13</volume>
      <issue>3</issue>
      <fpage>1335</fpage><lpage>1372</lpage>
      <history>
        <date date-type="received"><day>13</day><month>April</month><year>2019</year></date>
           <date date-type="rev-request"><day>7</day><month>June</month><year>2019</year></date>
           <date date-type="rev-recd"><day>12</day><month>November</month><year>2019</year></date>
           <date date-type="accepted"><day>19</day><month>January</month><year>2020</year></date>
      </history>
      <permissions>
        <copyright-statement>Copyright: © 2020 Björn Maronga et al.</copyright-statement>
        <copyright-year>2020</copyright-year>
      <license license-type="open-access"><license-p>This work is licensed under the Creative Commons Attribution 4.0 International License. To view a copy of this licence, visit <ext-link ext-link-type="uri" xlink:href="https://creativecommons.org/licenses/by/4.0/">https://creativecommons.org/licenses/by/4.0/</ext-link></license-p></license></permissions><self-uri xlink:href="https://gmd.copernicus.org/articles/13/1335/2020/gmd-13-1335-2020.html">This article is available from https://gmd.copernicus.org/articles/13/1335/2020/gmd-13-1335-2020.html</self-uri><self-uri xlink:href="https://gmd.copernicus.org/articles/13/1335/2020/gmd-13-1335-2020.pdf">The full text article is available as a PDF file from https://gmd.copernicus.org/articles/13/1335/2020/gmd-13-1335-2020.pdf</self-uri>
      <abstract><title>Abstract</title>
    <p id="d1e664">In this paper, we describe the PALM model system 6.0. PALM (formerly an abbreviation for Parallelized Large-eddy Simulation Model and now an independent name) is a Fortran-based code and has been applied for studying  a variety of atmospheric and oceanic boundary layers for about 20 years. The model is optimized for use on massively parallel computer architectures. This is a follow-up paper to the PALM 4.0 model description in <xref ref-type="bibr" rid="bib1.bibx73" id="text.1"/>. During the last years, PALM has been significantly improved and now offers a variety of new components. In particular, much effort was made to enhance the model with components needed for applications in urban environments, like fully interactive land surface and radiation schemes, chemistry, and an indoor model. This paper serves as an overview paper of the PALM 6.0 model system and we describe its current model core. The individual components for urban applications, case studies, validation runs, and issues with suitable input data are presented and discussed in a series of companion papers in this special issue.</p>
  </abstract>
    </article-meta>
  </front>
<body>
      

<?pagebreak page1336?><sec id="Ch1.S1" sec-type="intro">
  <label>1</label><title>Introduction</title>
      <p id="d1e679">Since the early 1970s, the turbulence-resolving so-called large-eddy simulation (LES) technique has been increasingly employed for studying the atmospheric boundary layer (ABL) at large Reynolds numbers. While the earliest studies were performed at coarse grid spacings on the order of 100 m <xref ref-type="bibr" rid="bib1.bibx22 bib1.bibx23" id="paren.2"/>, today's supercomputers  allow for large domain runs at fine grid spacings of 1–10 m <xref ref-type="bibr" rid="bib1.bibx54 bib1.bibx90 bib1.bibx116" id="paren.3"><named-content content-type="pre">e.g.,</named-content><named-content content-type="post">among many others</named-content></xref> or even less <xref ref-type="bibr" rid="bib1.bibx118 bib1.bibx71 bib1.bibx69" id="paren.4"/>. LES models solve the three-dimensional prognostic equations for momentum, temperature, humidity, and other scalar quantities (such a chemical species). The principle of LES dictates a separation of scales. Turbulence scales larger than a chosen filter width are being directly resolved by LES models, while the effect of smaller turbulence scales on the resolved scales is fully parameterized within a so-called subgrid-scale (SGS) model. The filter width strongly depends on the phenomenon to be studied and must be chosen in such a way that at least 90 % of the turbulence energy can be resolved <xref ref-type="bibr" rid="bib1.bibx39" id="paren.5"/>.</p>
      <p id="d1e698">In a precursor paper <xref ref-type="bibr" rid="bib1.bibx73" id="paren.6"/>, we gave an overview of the Parallelized Large-eddy Simulation Model (PALM) version 4.0. PALM is a Fortran-based code and has been applied for a variety of atmospheric and oceanic boundary layers for about 20 years. The model is optimized for use on massively parallel computer architectures but can be used in principle also on small workstations and notebooks. The model domain is discretized in space using finite differences and equidistant horizontal grid spacings. The parallelization of the code is achieved by a 2-D domain decomposition method along the <inline-formula><mml:math id="M1" display="inline"><mml:mi>x</mml:mi></mml:math></inline-formula> and <inline-formula><mml:math id="M2" display="inline"><mml:mi>y</mml:mi></mml:math></inline-formula> directions on a Cartesian grid with (usually) equally sized subdomains. Ghost layers are added at the side boundaries of the subdomains in order to account for the local data dependencies, which are caused by the need to compute finite differences at these positions. A Cartesian topography (complex terrain and buildings) is available in PALM, which is based on the mask method <xref ref-type="bibr" rid="bib1.bibx12" id="paren.7"/> and allows for explicitly resolving solid obstacles such as buildings and orography. PALM also has an ocean option, allowing for studying the ocean mixed layer where the sea surface is defined at the top of the model, and which includes a prognostic equation for salinity.</p>
      <p id="d1e721">Furthermore, PALM has offered several embedded models which were described in the precursor paper, namely bulk cloud microphysics parameterizations, a Lagrangian particle model (LPM) which can be used for studying dispersion processes in turbulent flows, or as a Lagrangian cloud model (LCM) employing the superdroplet approach. Moreover, a plant canopy model can be used to study effects of plants as obstacles on the flow. A 1-D version of PALM can be switched on in order to generate steady-state wind profiles for 3-D model initialization.</p>
      <p id="d1e724">Due to the enormous amount of data that come along with computationally expensive LES (in terms of the number of grid points and short time steps), the data handling plays a key role for the performance of LES models and for data analysis during post-processing. PALM is optimized to pursue the strategy of performing data operations like time or domain averaging to a great extent online instead of postpone such operations to a post-processing step. In this way, the data output (e.g., of huge 4-D data or temporal averages) can be significantly reduced. In order to allow the user to perform their own calculations during runtime, a user interface offers a wide range of possibilities, e.g., for defining user-defined output quantities. PALM allows data output for different quantities as time series, (horizontally averaged) vertical profiles, 2-D cross sections, 3-D volume data, and masked data. All data output files are in netCDF format, which can be processed by a variety of public domain and commercial software. The only exception is data output from the LPM, which is output in Fortran binary format for a better performance. For details about PALM's specifics, application scenarios, and validation runs, see <xref ref-type="bibr" rid="bib1.bibx73" id="text.8"/> and references therein.</p>
      <p id="d1e731">In the present paper, we describe the PALM model system version 6.0. Since version 4.0, the code has undergone massive changes and improvements. Above all, new components for applications of PALM in urban environments, so-called PALM-4U (PALM for urban applications) components, have been added in the scope of the Urban Climate Under Change [UC]<inline-formula><mml:math id="M3" display="inline"><mml:msup><mml:mi/><mml:mn mathvariant="normal">2</mml:mn></mml:msup></mml:math></inline-formula> framework funded by the German Federal Ministry of Education and Research <xref ref-type="bibr" rid="bib1.bibx97 bib1.bibx74" id="paren.9"/>. Besides, a turbulence closure based on the Reynolds-averaged Navier–Stokes (RANS) equations was added, enabling PALM to not only run in<?pagebreak page1337?> turbulence-resolving (i.e., LES) but also in RANS mode where the full turbulence spectrum is parameterized. Originally, the name PALM referred to its parallelization as a special feature of the model. Nowadays, however, most of the existing LES models are parallelized.</p>
      <p id="d1e746">Moreover, with the RANS mode implemented, PALM is more than an LES model, rendering the full name of the model inappropriate. As the name PALM has been established in the research community, we thus decided to drop the full name and use the abbreviation PALM as a proper name from now on. The model is now referred to as the PALM model system, consisting of the PALM model core and the PALM-4U components. For the motivation for developing the PALM-4U components and a description of model developments done within [UC]<inline-formula><mml:math id="M4" display="inline"><mml:msup><mml:mi/><mml:mn mathvariant="normal">2</mml:mn></mml:msup></mml:math></inline-formula>, the reader is referred to <xref ref-type="bibr" rid="bib1.bibx74" id="text.10"/>. As the model core in version 4.0 was described in detail in the precursor paper, we will focus here on the changes in the model core and give an overview of all the new components that have been added to the model. The individual new PALM-4U components, case studies, validation studies, and issues with suitable input data are presented and discussed in a series of companion papers in this special issue.</p>
      <p id="d1e761">The paper is organized as follows: Sect. <xref ref-type="sec" rid="Ch1.S2"/> deals with the description of the model core, while Sect. <xref ref-type="sec" rid="Ch1.S3"/> and Sect. <xref ref-type="sec" rid="Ch1.S4"/> give details about the embedded modules in the PALM core and the PALM-4U components, respectively. Sect. <xref ref-type="sec" rid="Ch1.S5"/> provides technical details, including recent developments in model operation, data structure of surface elements, I/O data handling, and optimization. The paper closes with conclusions in Sect. <xref ref-type="sec" rid="Ch1.S6"/>. Note that all symbols that will be introduced in the following are also listed in Tables <xref ref-type="table" rid="Ch1.T1"/>–<xref ref-type="table" rid="Ch1.T8"/>.</p>

<?xmltex \floatpos{p}?><table-wrap id="Ch1.T1" specific-use="star"><?xmltex \currentcnt{1}?><label>Table 1</label><caption><p id="d1e782">List of general model parameters.</p></caption><oasis:table frame="topbot"><oasis:tgroup cols="3">
     <oasis:colspec colnum="1" colname="col1" align="left"/>
     <oasis:colspec colnum="2" colname="col2" align="left"/>
     <oasis:colspec colnum="3" colname="col3" align="left"/>
     <oasis:thead>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1">Symbol</oasis:entry>
         <oasis:entry colname="col2">Value</oasis:entry>
         <oasis:entry colname="col3">Description</oasis:entry>
       </oasis:row>
     </oasis:thead>
     <oasis:tbody>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M5" display="inline"><mml:mrow><mml:msub><mml:mi>c</mml:mi><mml:mn mathvariant="normal">0</mml:mn></mml:msub><mml:mo>,</mml:mo><mml:msub><mml:mi>c</mml:mi><mml:mn mathvariant="normal">1</mml:mn></mml:msub><mml:mo>,</mml:mo><mml:msub><mml:mi>c</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub><mml:mo>,</mml:mo><mml:msub><mml:mi>c</mml:mi><mml:mn mathvariant="normal">3</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2">0.55, 1.44, 1.92, 1.44</oasis:entry>
         <oasis:entry colname="col3">Model constants in RANS turbulence parameterization</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M6" display="inline"><mml:mrow><mml:msub><mml:mi>c</mml:mi><mml:mi mathvariant="normal">p</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M7" display="inline"><mml:mrow><mml:mn mathvariant="normal">1005</mml:mn><mml:mspace linebreak="nobreak" width="0.125em"/><mml:mrow class="unit"><mml:mi mathvariant="normal">J</mml:mi><mml:mspace linebreak="nobreak" width="0.125em"/><mml:msup><mml:mi mathvariant="normal">kg</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup><mml:mspace linebreak="nobreak" width="0.125em"/><mml:msup><mml:mi mathvariant="normal">K</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">Specific heat capacity of dry air at constant pressure</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M8" display="inline"><mml:mi>g</mml:mi></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M9" display="inline"><mml:mrow><mml:mn mathvariant="normal">9.81</mml:mn><mml:mspace width="0.125em" linebreak="nobreak"/><mml:mrow class="unit"><mml:mi mathvariant="normal">m</mml:mi><mml:mspace width="0.125em" linebreak="nobreak"/><mml:msup><mml:mi mathvariant="normal">s</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">2</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">Gravitational acceleration</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M10" display="inline"><mml:mrow><mml:msub><mml:mi>l</mml:mi><mml:mi mathvariant="normal">v</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M11" display="inline"><mml:mrow><mml:mn mathvariant="normal">2.5</mml:mn><mml:mo>×</mml:mo><mml:msup><mml:mn mathvariant="normal">10</mml:mn><mml:mn mathvariant="normal">6</mml:mn></mml:msup><mml:mspace width="0.125em" linebreak="nobreak"/><mml:mrow class="unit"><mml:mi mathvariant="normal">J</mml:mi><mml:mspace width="0.125em" linebreak="nobreak"/><mml:msup><mml:mi mathvariant="normal">kg</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">Specific latent heat of vaporization</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M12" display="inline"><mml:mrow><mml:mi>P</mml:mi><mml:mi>r</mml:mi></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2">1</oasis:entry>
         <oasis:entry colname="col3">Prandtl number in RANS turbulence parameterization</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M13" display="inline"><mml:mrow><mml:msub><mml:mi>p</mml:mi><mml:mn mathvariant="normal">0</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2">1000 <inline-formula><mml:math id="M14" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">hPa</mml:mi></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">Reference air pressure</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M15" display="inline"><mml:mrow><mml:msub><mml:mi>R</mml:mi><mml:mi mathvariant="normal">d</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M16" display="inline"><mml:mrow><mml:mn mathvariant="normal">287</mml:mn><mml:mspace width="0.125em" linebreak="nobreak"/><mml:mrow class="unit"><mml:mi mathvariant="normal">J</mml:mi><mml:mspace width="0.125em" linebreak="nobreak"/><mml:msup><mml:mi mathvariant="normal">kg</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup><mml:mspace linebreak="nobreak" width="0.125em"/><mml:msup><mml:mi mathvariant="normal">K</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">Specific gas constant for dry air</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M17" display="inline"><mml:mrow><mml:msub><mml:mi>R</mml:mi><mml:mi mathvariant="normal">v</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M18" display="inline"><mml:mrow><mml:mn mathvariant="normal">461.51</mml:mn><mml:mspace linebreak="nobreak" width="0.125em"/><mml:mrow class="unit"><mml:mi mathvariant="normal">J</mml:mi><mml:mspace linebreak="nobreak" width="0.125em"/><mml:msup><mml:mi mathvariant="normal">kg</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup><mml:mspace linebreak="nobreak" width="0.125em"/><mml:msup><mml:mi mathvariant="normal">K</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">Specific gas constant for water vapor</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M19" display="inline"><mml:mrow><mml:msub><mml:mi>S</mml:mi><mml:mn mathvariant="normal">0</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M20" display="inline"><mml:mrow><mml:mn mathvariant="normal">1368</mml:mn><mml:mspace linebreak="nobreak" width="0.125em"/><mml:mrow class="unit"><mml:mi mathvariant="normal">W</mml:mi><mml:mspace width="0.125em" linebreak="nobreak"/><mml:msup><mml:mi mathvariant="normal">m</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">2</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">Solar constant</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M21" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">α</mml:mi><mml:mi mathvariant="normal">Ch</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2">0.018</oasis:entry>
         <oasis:entry colname="col3">Charnock constant</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M22" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">ϵ</mml:mi><mml:mi mathvariant="normal">atm</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2">0.8</oasis:entry>
         <oasis:entry colname="col3">Atmospheric emissivity</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M23" display="inline"><mml:mi mathvariant="italic">κ</mml:mi></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2">0.4</oasis:entry>
         <oasis:entry colname="col3">Von Kármán constant</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M24" display="inline"><mml:mi mathvariant="italic">ν</mml:mi></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M25" display="inline"><mml:mrow><mml:mn mathvariant="normal">1.461</mml:mn><mml:mo>×</mml:mo><mml:msup><mml:mn mathvariant="normal">10</mml:mn><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">5</mml:mn></mml:mrow></mml:msup><mml:mrow class="unit"><mml:msup><mml:mi mathvariant="normal">m</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msup><mml:mspace width="0.125em" linebreak="nobreak"/><mml:msup><mml:mi mathvariant="normal">s</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">Kinematic viscosity of air</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M26" display="inline"><mml:mi mathvariant="italic">π</mml:mi></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M27" display="inline"><mml:mrow><mml:mn mathvariant="normal">3.14159</mml:mn><mml:mspace linebreak="nobreak" width="0.33em"/><mml:mi mathvariant="normal">…</mml:mi></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">Pi</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M28" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">σ</mml:mi><mml:mi>e</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2">1.0</oasis:entry>
         <oasis:entry colname="col3">Model constant in RANS turbulence parameterization</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M29" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">σ</mml:mi><mml:mi mathvariant="italic">ϵ</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2">1.3</oasis:entry>
         <oasis:entry colname="col3">Model constant in RANS turbulence parameterization</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M30" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">σ</mml:mi><mml:mi mathvariant="normal">SB</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M31" display="inline"><mml:mrow><mml:mn mathvariant="normal">5.67</mml:mn><mml:mo>×</mml:mo><mml:msup><mml:mn mathvariant="normal">10</mml:mn><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">8</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula> W m<inline-formula><mml:math id="M32" display="inline"><mml:msup><mml:mi/><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">2</mml:mn></mml:mrow></mml:msup></mml:math></inline-formula> K<inline-formula><mml:math id="M33" display="inline"><mml:msup><mml:mi/><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">4</mml:mn></mml:mrow></mml:msup></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">Stefan–Boltzmann constant</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M34" display="inline"><mml:mi mathvariant="normal">Ω</mml:mi></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M35" display="inline"><mml:mrow><mml:mn mathvariant="normal">0.729</mml:mn><mml:mo>×</mml:mo><mml:msup><mml:mn mathvariant="normal">10</mml:mn><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">4</mml:mn></mml:mrow></mml:msup><mml:mspace width="0.125em" linebreak="nobreak"/><mml:mrow class="unit"><mml:mi mathvariant="normal">rad</mml:mi><mml:mspace linebreak="nobreak" width="0.125em"/><mml:msup><mml:mi mathvariant="normal">s</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">Angular velocity of the Earth</oasis:entry>
       </oasis:row>
     </oasis:tbody>
   </oasis:tgroup></oasis:table></table-wrap>

<?xmltex \floatpos{p}?><table-wrap id="Ch1.T2" specific-use="star"><?xmltex \currentcnt{2}?><label>Table 2</label><caption><p id="d1e1462">List of general symbols.</p></caption><oasis:table frame="topbot"><oasis:tgroup cols="3">
     <oasis:colspec colnum="1" colname="col1" align="left"/>
     <oasis:colspec colnum="2" colname="col2" align="left"/>
     <oasis:colspec colnum="3" colname="col3" align="left"/>
     <oasis:thead>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1">Symbol</oasis:entry>
         <oasis:entry colname="col2">Dimension</oasis:entry>
         <oasis:entry colname="col3">Description</oasis:entry>
       </oasis:row>
     </oasis:thead>
     <oasis:tbody>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M36" display="inline"><mml:mi>F</mml:mi></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M37" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">N</mml:mi></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">Random forcing term in parameterization of wave breaking</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M38" display="inline"><mml:mrow><mml:msub><mml:mi>N</mml:mi><mml:mi mathvariant="normal">chem</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"/>
         <oasis:entry colname="col3">Number of chemical species</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M39" display="inline"><mml:mi>s</mml:mi></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M40" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">kg</mml:mi><mml:mspace width="0.125em" linebreak="nobreak"/><mml:msup><mml:mi mathvariant="normal">m</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">3</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">Passive scalar</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M41" display="inline"><mml:mi>T</mml:mi></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M42" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">K</mml:mi></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">Absolute air temperature</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M43" display="inline"><mml:mrow><mml:msub><mml:mi>U</mml:mi><mml:mi mathvariant="normal">s</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M44" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">m</mml:mi><mml:mspace linebreak="nobreak" width="0.125em"/><mml:msup><mml:mi mathvariant="normal">s</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">Wave amplitude in Stokes drift parameterization</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M45" display="inline"><mml:mrow><mml:msub><mml:mi>u</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M46" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">m</mml:mi><mml:mspace linebreak="nobreak" width="0.125em"/><mml:msup><mml:mi mathvariant="normal">s</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">Velocity components (<inline-formula><mml:math id="M47" display="inline"><mml:mrow><mml:msub><mml:mi>u</mml:mi><mml:mn mathvariant="normal">1</mml:mn></mml:msub><mml:mo>=</mml:mo><mml:mi>u</mml:mi><mml:mo>,</mml:mo><mml:msub><mml:mi>u</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub><mml:mo>=</mml:mo><mml:mi>v</mml:mi><mml:mo>,</mml:mo><mml:msub><mml:mi>u</mml:mi><mml:mn mathvariant="normal">3</mml:mn></mml:msub><mml:mo>=</mml:mo><mml:mi>w</mml:mi></mml:mrow></mml:math></inline-formula>)</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M48" display="inline"><mml:mrow><mml:msub><mml:mi>u</mml:mi><mml:mrow><mml:mi mathvariant="normal">g</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M49" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">m</mml:mi><mml:mspace width="0.125em" linebreak="nobreak"/><mml:msup><mml:mi mathvariant="normal">s</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">Geostrophic wind components (<inline-formula><mml:math id="M50" display="inline"><mml:mrow><mml:msub><mml:mi>u</mml:mi><mml:mrow><mml:mi mathvariant="normal">g</mml:mi><mml:mo>,</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:msub><mml:mi>u</mml:mi><mml:mi mathvariant="normal">g</mml:mi></mml:msub><mml:mo>,</mml:mo><mml:msub><mml:mi>u</mml:mi><mml:mrow><mml:mi mathvariant="normal">g</mml:mi><mml:mo>,</mml:mo><mml:mn mathvariant="normal">2</mml:mn></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:msub><mml:mi>v</mml:mi><mml:mi mathvariant="normal">g</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>)</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M51" display="inline"><mml:mrow><mml:msub><mml:mi>u</mml:mi><mml:mi mathvariant="normal">s</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M52" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">m</mml:mi><mml:mspace linebreak="nobreak" width="0.125em"/><mml:msup><mml:mi mathvariant="normal">s</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">Stokes drift velocity</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M53" display="inline"><mml:mrow><mml:msub><mml:mi>u</mml:mi><mml:mi mathvariant="normal">tr</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M54" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">m</mml:mi><mml:mspace width="0.125em" linebreak="nobreak"/><mml:msup><mml:mi mathvariant="normal">s</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">Transport velocity used for radiation boundary conditions at the model outflow</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M55" display="inline"><mml:mrow><mml:msub><mml:mi>x</mml:mi><mml:mi mathvariant="normal">d</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M56" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">m</mml:mi></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">Distance in <inline-formula><mml:math id="M57" display="inline"><mml:mi>x</mml:mi></mml:math></inline-formula> direction used for radiation boundary conditions at the model outflow</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M58" display="inline"><mml:mrow><mml:msub><mml:mi>x</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M59" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">m</mml:mi></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">Coordinate on the Cartesian grid (<inline-formula><mml:math id="M60" display="inline"><mml:mrow><mml:msub><mml:mi>x</mml:mi><mml:mn mathvariant="normal">1</mml:mn></mml:msub><mml:mo>=</mml:mo><mml:mi>x</mml:mi><mml:mo>,</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub><mml:mo>=</mml:mo><mml:mi>y</mml:mi><mml:mo>,</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mn mathvariant="normal">3</mml:mn></mml:msub><mml:mo>=</mml:mo><mml:mi>z</mml:mi></mml:mrow></mml:math></inline-formula>)</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M61" display="inline"><mml:mrow><mml:msub><mml:mi>z</mml:mi><mml:mi mathvariant="normal">w</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M62" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">m</mml:mi></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">Wave height in Stokes drift parameterization</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M63" display="inline"><mml:mi mathvariant="normal">Δ</mml:mi></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M64" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">m</mml:mi></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">Grid spacing</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M65" display="inline"><mml:mrow><mml:mi mathvariant="normal">Δ</mml:mi><mml:mi>x</mml:mi><mml:mo>,</mml:mo><mml:mi mathvariant="normal">Δ</mml:mi><mml:mi>y</mml:mi><mml:mo>,</mml:mo><mml:mi mathvariant="normal">Δ</mml:mi><mml:mi>z</mml:mi></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M66" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">m</mml:mi></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">Grid spacings in <inline-formula><mml:math id="M67" display="inline"><mml:mi>x</mml:mi></mml:math></inline-formula>, <inline-formula><mml:math id="M68" display="inline"><mml:mi>y</mml:mi></mml:math></inline-formula>, and <inline-formula><mml:math id="M69" display="inline"><mml:mi>z</mml:mi></mml:math></inline-formula> directions</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M70" display="inline"><mml:mrow><mml:mi mathvariant="normal">Δ</mml:mi><mml:mi>t</mml:mi></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M71" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">s</mml:mi></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">Time step of the LES model</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M72" display="inline"><mml:mi mathvariant="italic">δ</mml:mi></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"/>
         <oasis:entry colname="col3">Kronecker delta</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M73" display="inline"><mml:mi mathvariant="italic">θ</mml:mi></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M74" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">K</mml:mi></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">Potential temperature</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M75" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">θ</mml:mi><mml:mi mathvariant="normal">v</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M76" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">K</mml:mi></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">Virtual potential temperature</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M77" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">θ</mml:mi><mml:mrow><mml:mi mathvariant="normal">v</mml:mi><mml:mo>,</mml:mo><mml:mi mathvariant="normal">ref</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M78" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">K</mml:mi></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">Reference state of virtual potential temperature</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M79" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">λ</mml:mi><mml:mi mathvariant="normal">w</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M80" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">m</mml:mi></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">Wavelength in Stokes drift parameterization</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M81" display="inline"><mml:mi mathvariant="normal">Π</mml:mi></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"/>
         <oasis:entry colname="col3">Exner function</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M82" display="inline"><mml:mrow><mml:msup><mml:mi mathvariant="italic">π</mml:mi><mml:mo>∗</mml:mo></mml:msup></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M83" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">hPa</mml:mi></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">Perturbation pressure</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M84" display="inline"><mml:mi mathvariant="italic">ρ</mml:mi></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M85" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">kg</mml:mi><mml:mspace linebreak="nobreak" width="0.125em"/><mml:msup><mml:mi mathvariant="normal">m</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">3</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">Density of dry air (basic state)</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M86" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">ρ</mml:mi><mml:mi mathvariant="italic">θ</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M87" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">kg</mml:mi><mml:mspace width="0.125em" linebreak="nobreak"/><mml:msup><mml:mi mathvariant="normal">m</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">3</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">Potential density</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M88" display="inline"><mml:mi mathvariant="italic">ω</mml:mi></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M89" display="inline"><mml:mrow class="unit"><mml:msup><mml:mi mathvariant="normal">s</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">Rotation of velocity</oasis:entry>
       </oasis:row>
     </oasis:tbody>
   </oasis:tgroup></oasis:table></table-wrap>

</sec>
<sec id="Ch1.S2">
  <label>2</label><title>PALM model core</title>
      <p id="d1e2366">In this section, we give a detailed description of the changes of the PALM model core starting from version 4.0. Here, we confine ourselves to the atmospheric version. Details about the ocean version are given by <xref ref-type="bibr" rid="bib1.bibx73" id="text.11"/> and in Sect. <xref ref-type="sec" rid="Ch1.S2.SS4"/>. By default, PALM solves equations for up to seven prognostic variables: the velocity components <inline-formula><mml:math id="M90" display="inline"><mml:mi>u</mml:mi></mml:math></inline-formula>, <inline-formula><mml:math id="M91" display="inline"><mml:mi>v</mml:mi></mml:math></inline-formula>, and <inline-formula><mml:math id="M92" display="inline"><mml:mi>w</mml:mi></mml:math></inline-formula> on a staggered Cartesian grid <xref ref-type="bibr" rid="bib1.bibx33 bib1.bibx3" id="paren.12"><named-content content-type="pre">staggered Arakawa C grid</named-content></xref>, potential temperature <inline-formula><mml:math id="M93" display="inline"><mml:mi mathvariant="italic">θ</mml:mi></mml:math></inline-formula>, SGS turbulence kinetic energy (SGS-TKE) <inline-formula><mml:math id="M94" display="inline"><mml:mi>e</mml:mi></mml:math></inline-formula> (in LES mode), water vapor mixing ratio <inline-formula><mml:math id="M95" display="inline"><mml:mrow><mml:msub><mml:mi>q</mml:mi><mml:mi mathvariant="normal">v</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>, and possibly a passive scalar <inline-formula><mml:math id="M96" display="inline"><mml:mi>s</mml:mi></mml:math></inline-formula>. Note that, in PALM 4.0, it was only possible to use either water vapor or the passive scalar as both used the same prognostic equation in the model code, while both are now fully separated and can be used simultaneously.</p>
<sec id="Ch1.S2.SS1">
  <label>2.1</label><title>Governing equations of the PALM core</title>
      <p id="d1e2440">By default, PALM solves incompressible approximations of the Navier–Stokes equations, either in Boussinesq-approximated form, filtered based on a spatial scale separation approach after <xref ref-type="bibr" rid="bib1.bibx100" id="text.13"/> (described in <xref ref-type="bibr" rid="bib1.bibx73" id="altparen.14"/>), or in an anelastic approximation, in which the flow is treated as incompressible but allowing for density variations with height, while variations in time are not permitted. This enables the application of PALM to simulate atmospheric phenomena that extend throughout the entire troposphere (e.g., deep convection). Both anelastic and Boussinesq-approximated forms are described by a single set of equations that only differ in the treatment of the density <inline-formula><mml:math id="M97" display="inline"><mml:mi mathvariant="italic">ρ</mml:mi></mml:math></inline-formula>. For the Boussinesq form, <inline-formula><mml:math id="M98" display="inline"><mml:mi mathvariant="italic">ρ</mml:mi></mml:math></inline-formula> is set to a constant value (and then drops out of most terms), while the anelastic form results from varying <inline-formula><mml:math id="M99" display="inline"><mml:mi mathvariant="italic">ρ</mml:mi></mml:math></inline-formula> with height during initialization.</p>
      <?pagebreak page1339?><p id="d1e2470">In the following set of equations, angular brackets denote a horizontal domain average. A subscript 0 indicates a surface value. Note that the variables in the equations are implicitly filtered by the discretization (see above), but that the continuous form of the equations is used here for convenience. A double prime indicates SGS variables. The overbar indicates filtered quantities. The equations for the conservation of mass, momentum, thermal internal energy, moisture, and another arbitrary passive scalar quantity, filtered over a grid volume on a Cartesian grid, then read as

                <disp-formula specific-use="gather" content-type="numbered"><mml:math id="M100" display="block"><mml:mtable displaystyle="true"><mml:mlabeledtr id="Ch1.E1"><mml:mtd><mml:mtext>1</mml:mtext></mml:mtd><mml:mtd><mml:mrow><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo>∂</mml:mo><mml:msub><mml:mover accent="true"><mml:mi>u</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mi>j</mml:mi></mml:msub><mml:mi mathvariant="italic">ρ</mml:mi></mml:mrow><mml:mrow><mml:mo>∂</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mi>j</mml:mi></mml:msub></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>=</mml:mo><mml:mn mathvariant="normal">0</mml:mn></mml:mrow></mml:mtd></mml:mlabeledtr><mml:mlabeledtr id="Ch1.E2"><mml:mtd><mml:mtext>2</mml:mtext></mml:mtd><mml:mtd><mml:mrow><mml:mstyle displaystyle="true" class="stylechange"/><mml:mtable class="split" rowspacing="0.2ex" columnspacing="1em" displaystyle="true" columnalign="right left"><mml:mtr><mml:mtd><mml:mrow><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo>∂</mml:mo><mml:msub><mml:mover accent="true"><mml:mi>u</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mi>i</mml:mi></mml:msub></mml:mrow><mml:mrow><mml:mo>∂</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>=</mml:mo></mml:mrow></mml:mtd><mml:mtd><mml:mrow><mml:mo>-</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mn mathvariant="normal">1</mml:mn><mml:mi mathvariant="italic">ρ</mml:mi></mml:mfrac></mml:mstyle><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo>∂</mml:mo><mml:mi mathvariant="italic">ρ</mml:mi><mml:msub><mml:mover accent="true"><mml:mi>u</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mi>i</mml:mi></mml:msub><mml:msub><mml:mover accent="true"><mml:mi>u</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mi>j</mml:mi></mml:msub></mml:mrow><mml:mrow><mml:mo>∂</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mi>j</mml:mi></mml:msub></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>-</mml:mo><mml:msub><mml:mi mathvariant="italic">ε</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mi>j</mml:mi><mml:mi>k</mml:mi></mml:mrow></mml:msub><mml:msub><mml:mi>f</mml:mi><mml:mi>j</mml:mi></mml:msub><mml:msub><mml:mover accent="true"><mml:mi>u</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mi>k</mml:mi></mml:msub><mml:mo>+</mml:mo><mml:msub><mml:mi mathvariant="italic">ε</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mi>j</mml:mi></mml:mrow></mml:msub><mml:msub><mml:mi>f</mml:mi><mml:mn mathvariant="normal">3</mml:mn></mml:msub><mml:msub><mml:mi>u</mml:mi><mml:mrow><mml:mi mathvariant="normal">g</mml:mi><mml:mo>,</mml:mo><mml:mi>j</mml:mi></mml:mrow></mml:msub><mml:mo>-</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mo>∂</mml:mo><mml:mrow><mml:mo>∂</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:mrow></mml:mfrac></mml:mstyle><mml:mfenced close=")" open="("><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:msup><mml:mi mathvariant="italic">π</mml:mi><mml:mo>∗</mml:mo></mml:msup></mml:mrow><mml:mi mathvariant="italic">ρ</mml:mi></mml:mfrac></mml:mstyle></mml:mfenced></mml:mrow></mml:mtd></mml:mtr><mml:mtr><mml:mtd/><mml:mtd><mml:mrow><mml:mo>+</mml:mo><mml:mi>g</mml:mi><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:msub><mml:mover accent="true"><mml:mi mathvariant="italic">θ</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mi mathvariant="normal">v</mml:mi></mml:msub><mml:mo>-</mml:mo><mml:msub><mml:mi mathvariant="italic">θ</mml:mi><mml:mrow><mml:mi mathvariant="normal">v</mml:mi><mml:mo>,</mml:mo><mml:mi mathvariant="normal">ref</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mrow><mml:msub><mml:mi mathvariant="italic">θ</mml:mi><mml:mrow><mml:mi mathvariant="normal">v</mml:mi><mml:mo>,</mml:mo><mml:mi mathvariant="normal">ref</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:mfrac></mml:mstyle><mml:msub><mml:mi mathvariant="italic">δ</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mn mathvariant="normal">3</mml:mn></mml:mrow></mml:msub><mml:mo>-</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mn mathvariant="normal">1</mml:mn><mml:mi mathvariant="italic">ρ</mml:mi></mml:mfrac></mml:mstyle><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mo>∂</mml:mo><mml:mrow><mml:mo>∂</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mi>j</mml:mi></mml:msub></mml:mrow></mml:mfrac></mml:mstyle><mml:mi mathvariant="italic">ρ</mml:mi><mml:mfenced open="(" close=")"><mml:mrow><mml:mover accent="true"><mml:mrow><mml:msubsup><mml:mi>u</mml:mi><mml:mi>i</mml:mi><mml:mrow><mml:mo>′</mml:mo><mml:mo>′</mml:mo></mml:mrow></mml:msubsup><mml:msubsup><mml:mi>u</mml:mi><mml:mi>j</mml:mi><mml:mrow><mml:mo>′</mml:mo><mml:mo>′</mml:mo></mml:mrow></mml:msubsup></mml:mrow><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mo>-</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mn mathvariant="normal">2</mml:mn><mml:mn mathvariant="normal">3</mml:mn></mml:mfrac></mml:mstyle><mml:mi>e</mml:mi><mml:msub><mml:mi mathvariant="italic">δ</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mi>j</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:mfenced><mml:mo>,</mml:mo></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:mrow></mml:mtd></mml:mlabeledtr><mml:mlabeledtr id="Ch1.E3"><mml:mtd><mml:mtext>3</mml:mtext></mml:mtd><mml:mtd><mml:mrow><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo>∂</mml:mo><mml:mover accent="true"><mml:mi mathvariant="italic">θ</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover></mml:mrow><mml:mrow><mml:mo>∂</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>=</mml:mo><mml:mo>-</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mn mathvariant="normal">1</mml:mn><mml:mi mathvariant="italic">ρ</mml:mi></mml:mfrac></mml:mstyle><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo>∂</mml:mo><mml:mi mathvariant="italic">ρ</mml:mi><mml:msub><mml:mover accent="true"><mml:mi>u</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mi>j</mml:mi></mml:msub><mml:mover accent="true"><mml:mi mathvariant="italic">θ</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover></mml:mrow><mml:mrow><mml:mo>∂</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mi>j</mml:mi></mml:msub></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>-</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mn mathvariant="normal">1</mml:mn><mml:mi mathvariant="italic">ρ</mml:mi></mml:mfrac></mml:mstyle><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mo>∂</mml:mo><mml:mrow><mml:mo>∂</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mi>j</mml:mi></mml:msub></mml:mrow></mml:mfrac></mml:mstyle><mml:mfenced open="(" close=")"><mml:mrow><mml:mi mathvariant="italic">ρ</mml:mi><mml:mover accent="true"><mml:mrow><mml:msubsup><mml:mi>u</mml:mi><mml:mi>j</mml:mi><mml:mrow><mml:mo>′</mml:mo><mml:mo>′</mml:mo></mml:mrow></mml:msubsup><mml:msup><mml:mi mathvariant="italic">θ</mml:mi><mml:mrow><mml:mo>′</mml:mo><mml:mo>′</mml:mo></mml:mrow></mml:msup></mml:mrow><mml:mo mathvariant="normal">‾</mml:mo></mml:mover></mml:mrow></mml:mfenced><mml:mo>-</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:msub><mml:mi>l</mml:mi><mml:mi mathvariant="normal">v</mml:mi></mml:msub></mml:mrow><mml:mrow><mml:msub><mml:mi>c</mml:mi><mml:mi mathvariant="normal">p</mml:mi></mml:msub><mml:mi mathvariant="normal">Π</mml:mi></mml:mrow></mml:mfrac></mml:mstyle><mml:msub><mml:mi mathvariant="italic">χ</mml:mi><mml:mrow><mml:msub><mml:mi>q</mml:mi><mml:mi mathvariant="normal">v</mml:mi></mml:msub></mml:mrow></mml:msub></mml:mrow></mml:mtd></mml:mlabeledtr><mml:mlabeledtr id="Ch1.E4"><mml:mtd><mml:mtext>4</mml:mtext></mml:mtd><mml:mtd><mml:mrow><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo>∂</mml:mo><mml:msub><mml:mover accent="true"><mml:mi>q</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mi mathvariant="normal">v</mml:mi></mml:msub></mml:mrow><mml:mrow><mml:mo>∂</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>=</mml:mo><mml:mo>-</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mn mathvariant="normal">1</mml:mn><mml:mi mathvariant="italic">ρ</mml:mi></mml:mfrac></mml:mstyle><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo>∂</mml:mo><mml:mi mathvariant="italic">ρ</mml:mi><mml:msub><mml:mover accent="true"><mml:mi>u</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mi>j</mml:mi></mml:msub><mml:msub><mml:mover accent="true"><mml:mi>q</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mi mathvariant="normal">v</mml:mi></mml:msub></mml:mrow><mml:mrow><mml:mo>∂</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mi>j</mml:mi></mml:msub></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>-</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mn mathvariant="normal">1</mml:mn><mml:mi mathvariant="italic">ρ</mml:mi></mml:mfrac></mml:mstyle><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mo>∂</mml:mo><mml:mrow><mml:mo>∂</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mi>j</mml:mi></mml:msub></mml:mrow></mml:mfrac></mml:mstyle><mml:mfenced open="(" close=")"><mml:mrow><mml:mi mathvariant="italic">ρ</mml:mi><mml:mover accent="true"><mml:mrow><mml:msubsup><mml:mi>u</mml:mi><mml:mi>j</mml:mi><mml:mrow><mml:mo>′</mml:mo><mml:mo>′</mml:mo></mml:mrow></mml:msubsup><mml:msubsup><mml:mi>q</mml:mi><mml:mi mathvariant="normal">v</mml:mi><mml:mrow><mml:mo>′</mml:mo><mml:mo>′</mml:mo></mml:mrow></mml:msubsup></mml:mrow><mml:mo mathvariant="normal">‾</mml:mo></mml:mover></mml:mrow></mml:mfenced><mml:mo>+</mml:mo><mml:msub><mml:mi mathvariant="italic">χ</mml:mi><mml:mrow><mml:msub><mml:mi>q</mml:mi><mml:mi mathvariant="normal">v</mml:mi></mml:msub></mml:mrow></mml:msub></mml:mrow></mml:mtd></mml:mlabeledtr><mml:mlabeledtr id="Ch1.E5"><mml:mtd><mml:mtext>5</mml:mtext></mml:mtd><mml:mtd><mml:mrow><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo>∂</mml:mo><mml:mover accent="true"><mml:mi>s</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover></mml:mrow><mml:mrow><mml:mo>∂</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>=</mml:mo><mml:mo>-</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mn mathvariant="normal">1</mml:mn><mml:mi mathvariant="italic">ρ</mml:mi></mml:mfrac></mml:mstyle><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo>∂</mml:mo><mml:mi mathvariant="italic">ρ</mml:mi><mml:msub><mml:mover accent="true"><mml:mi>u</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mi>j</mml:mi></mml:msub><mml:mover accent="true"><mml:mi>s</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover></mml:mrow><mml:mrow><mml:mo>∂</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mi>j</mml:mi></mml:msub></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>-</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mn mathvariant="normal">1</mml:mn><mml:mi mathvariant="italic">ρ</mml:mi></mml:mfrac></mml:mstyle><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mo>∂</mml:mo><mml:mrow><mml:mo>∂</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mi>j</mml:mi></mml:msub></mml:mrow></mml:mfrac></mml:mstyle><mml:mfenced open="(" close=")"><mml:mrow><mml:mi mathvariant="italic">ρ</mml:mi><mml:mover accent="true"><mml:mrow><mml:msubsup><mml:mi>u</mml:mi><mml:mi>j</mml:mi><mml:mrow><mml:mo>′</mml:mo><mml:mo>′</mml:mo></mml:mrow></mml:msubsup><mml:msup><mml:mi>s</mml:mi><mml:mrow><mml:mo>′</mml:mo><mml:mo>′</mml:mo></mml:mrow></mml:msup></mml:mrow><mml:mo mathvariant="normal">‾</mml:mo></mml:mover></mml:mrow></mml:mfenced><mml:mo>+</mml:mo><mml:msub><mml:mi mathvariant="italic">χ</mml:mi><mml:mi>s</mml:mi></mml:msub><mml:mo>.</mml:mo></mml:mrow></mml:mtd></mml:mlabeledtr></mml:mtable></mml:math></disp-formula>

            Here, <inline-formula><mml:math id="M101" display="inline"><mml:mrow><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mi>j</mml:mi><mml:mo>,</mml:mo><mml:mi>k</mml:mi><mml:mo>∈</mml:mo><mml:mo mathvariant="italic">{</mml:mo><mml:mn mathvariant="normal">1</mml:mn><mml:mo>,</mml:mo><mml:mn mathvariant="normal">2</mml:mn><mml:mo>,</mml:mo><mml:mn mathvariant="normal">3</mml:mn><mml:mo mathvariant="italic">}</mml:mo></mml:mrow></mml:math></inline-formula>. <inline-formula><mml:math id="M102" display="inline"><mml:mrow><mml:msub><mml:mi>u</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> is the velocity components (<inline-formula><mml:math id="M103" display="inline"><mml:mrow><mml:msub><mml:mi>u</mml:mi><mml:mn mathvariant="normal">1</mml:mn></mml:msub><mml:mo>=</mml:mo><mml:mi>u</mml:mi><mml:mo>,</mml:mo><mml:msub><mml:mi>u</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub><mml:mo>=</mml:mo><mml:mi>v</mml:mi><mml:mo>,</mml:mo><mml:msub><mml:mi>u</mml:mi><mml:mn mathvariant="normal">3</mml:mn></mml:msub><mml:mo>=</mml:mo><mml:mi>w</mml:mi></mml:mrow></mml:math></inline-formula>) with location <inline-formula><mml:math id="M104" display="inline"><mml:mrow><mml:msub><mml:mi>x</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> (<inline-formula><mml:math id="M105" display="inline"><mml:mrow><mml:msub><mml:mi>x</mml:mi><mml:mn mathvariant="normal">1</mml:mn></mml:msub><mml:mo>=</mml:mo><mml:mi>x</mml:mi><mml:mo>,</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub><mml:mo>=</mml:mo><mml:mi>y</mml:mi><mml:mo>,</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mn mathvariant="normal">3</mml:mn></mml:msub><mml:mo>=</mml:mo><mml:mi>z</mml:mi></mml:mrow></mml:math></inline-formula>), <inline-formula><mml:math id="M106" display="inline"><mml:mi>t</mml:mi></mml:math></inline-formula> is time, <inline-formula><mml:math id="M107" display="inline"><mml:mrow><mml:msub><mml:mi>f</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:mo>=</mml:mo><mml:mo>(</mml:mo><mml:mn mathvariant="normal">0</mml:mn><mml:mo>,</mml:mo><mml:mn mathvariant="normal">2</mml:mn><mml:mi mathvariant="normal">Ω</mml:mi><mml:mi>cos⁡</mml:mi><mml:mo>(</mml:mo><mml:mi mathvariant="italic">ϕ</mml:mi><mml:mo>)</mml:mo><mml:mo>,</mml:mo><mml:mn mathvariant="normal">2</mml:mn><mml:mi mathvariant="normal">Ω</mml:mi><mml:mi>sin⁡</mml:mi><mml:mo>(</mml:mo><mml:mi mathvariant="italic">ϕ</mml:mi><mml:mo>)</mml:mo><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula> is the Coriolis parameter with <inline-formula><mml:math id="M108" display="inline"><mml:mrow><mml:mi mathvariant="normal">Ω</mml:mi><mml:mo>=</mml:mo><mml:mn mathvariant="normal">0.729</mml:mn><mml:mo>×</mml:mo><mml:msup><mml:mn mathvariant="normal">10</mml:mn><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">4</mml:mn></mml:mrow></mml:msup><mml:mspace linebreak="nobreak" width="0.125em"/><mml:mrow class="unit"><mml:mi mathvariant="normal">rad</mml:mi><mml:mspace width="0.125em" linebreak="nobreak"/><mml:msup><mml:mi mathvariant="normal">s</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:mrow></mml:math></inline-formula> being the Earth's angular velocity and <inline-formula><mml:math id="M109" display="inline"><mml:mi mathvariant="italic">ϕ</mml:mi></mml:math></inline-formula> being the geographical latitude. <inline-formula><mml:math id="M110" display="inline"><mml:mrow><mml:msub><mml:mi>u</mml:mi><mml:mrow><mml:mi mathvariant="normal">g</mml:mi><mml:mo>,</mml:mo><mml:mi>j</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> is the geostrophic wind speed components, <inline-formula><mml:math id="M111" display="inline"><mml:mi mathvariant="italic">ρ</mml:mi></mml:math></inline-formula> is the basic state density of dry air, <inline-formula><mml:math id="M112" display="inline"><mml:mrow><mml:msup><mml:mi mathvariant="italic">π</mml:mi><mml:mo>∗</mml:mo></mml:msup><mml:mo>=</mml:mo><mml:msup><mml:mi>p</mml:mi><mml:mo>∗</mml:mo></mml:msup><mml:mo>+</mml:mo><mml:mstyle displaystyle="false"><mml:mfrac style="text"><mml:mn mathvariant="normal">2</mml:mn><mml:mn mathvariant="normal">3</mml:mn></mml:mfrac></mml:mstyle><mml:mi mathvariant="italic">ρ</mml:mi><mml:mi>e</mml:mi></mml:mrow></mml:math></inline-formula> is the modified perturbation pressure with <inline-formula><mml:math id="M113" display="inline"><mml:mrow><mml:msup><mml:mi>p</mml:mi><mml:mo>∗</mml:mo></mml:msup></mml:mrow></mml:math></inline-formula> being the perturbation pressure and <inline-formula><mml:math id="M114" display="inline"><mml:mrow><mml:mi>e</mml:mi><mml:mo>=</mml:mo><mml:mstyle displaystyle="false"><mml:mfrac style="text"><mml:mn mathvariant="normal">1</mml:mn><mml:mn mathvariant="normal">2</mml:mn></mml:mfrac></mml:mstyle><mml:mover accent="true"><mml:mrow><mml:msubsup><mml:mi>u</mml:mi><mml:mi>i</mml:mi><mml:mrow><mml:mo>′</mml:mo><mml:mo>′</mml:mo></mml:mrow></mml:msubsup><mml:msubsup><mml:mi>u</mml:mi><mml:mi>i</mml:mi><mml:mrow><mml:mo>′</mml:mo><mml:mo>′</mml:mo></mml:mrow></mml:msubsup></mml:mrow><mml:mo mathvariant="normal">‾</mml:mo></mml:mover></mml:mrow></mml:math></inline-formula>, <inline-formula><mml:math id="M115" display="inline"><mml:mrow><mml:mi>g</mml:mi><mml:mo>=</mml:mo><mml:mn mathvariant="normal">9.81</mml:mn><mml:mspace linebreak="nobreak" width="0.125em"/><mml:mrow class="unit"><mml:mi mathvariant="normal">m</mml:mi><mml:mspace width="0.125em" linebreak="nobreak"/><mml:msup><mml:mi mathvariant="normal">s</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">2</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:mrow></mml:math></inline-formula> is the gravitational acceleration, <inline-formula><mml:math id="M116" display="inline"><mml:mi mathvariant="italic">δ</mml:mi></mml:math></inline-formula> is the Kronecker delta, and <inline-formula><mml:math id="M117" display="inline"><mml:mrow><mml:msub><mml:mi>l</mml:mi><mml:mi mathvariant="normal">v</mml:mi></mml:msub><mml:mo>=</mml:mo><mml:mn mathvariant="normal">2.5</mml:mn><mml:mo>×</mml:mo><mml:msup><mml:mn mathvariant="normal">10</mml:mn><mml:mn mathvariant="normal">6</mml:mn></mml:msup><mml:mspace linebreak="nobreak" width="0.125em"/><mml:mrow class="unit"><mml:mi mathvariant="normal">J</mml:mi><mml:mspace linebreak="nobreak" width="0.125em"/><mml:msup><mml:mi mathvariant="normal">kg</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:mrow></mml:math></inline-formula> is the specific latent heat of vaporization. The reference state <inline-formula><mml:math id="M118" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">θ</mml:mi><mml:mrow><mml:mi mathvariant="normal">v</mml:mi><mml:mo>,</mml:mo><mml:mi mathvariant="normal">ref</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> in Eq. (<xref ref-type="disp-formula" rid="Ch1.E2"/>) can be set to be the horizontal average <inline-formula><mml:math id="M119" display="inline"><mml:mrow><mml:mo>〈</mml:mo><mml:msub><mml:mi mathvariant="italic">θ</mml:mi><mml:mi mathvariant="normal">v</mml:mi></mml:msub><mml:mo>〉</mml:mo></mml:mrow></mml:math></inline-formula>, the initial state, or a fixed reference value. Furthermore, <inline-formula><mml:math id="M120" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">χ</mml:mi><mml:mrow><mml:msub><mml:mi>q</mml:mi><mml:mi mathvariant="normal">v</mml:mi></mml:msub></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M121" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">χ</mml:mi><mml:mi>s</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> are source/sink terms of <inline-formula><mml:math id="M122" display="inline"><mml:mrow><mml:msub><mml:mi>q</mml:mi><mml:mi mathvariant="normal">v</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M123" display="inline"><mml:mi>s</mml:mi></mml:math></inline-formula>, respectively. The potential temperature is defined as
            <disp-formula id="Ch1.E6" content-type="numbered"><label>6</label><mml:math id="M124" display="block"><mml:mrow><mml:mi mathvariant="italic">θ</mml:mi><mml:mo>=</mml:mo><mml:mi>T</mml:mi><mml:mo>/</mml:mo><mml:mi mathvariant="normal">Π</mml:mi><mml:mo>,</mml:mo></mml:mrow></mml:math></disp-formula>
          with the absolute temperature <inline-formula><mml:math id="M125" display="inline"><mml:mi>T</mml:mi></mml:math></inline-formula> and the Exner function:
            <disp-formula id="Ch1.E7" content-type="numbered"><label>7</label><mml:math id="M126" display="block"><mml:mrow><mml:mi mathvariant="normal">Π</mml:mi><mml:mo>=</mml:mo><mml:msup><mml:mfenced open="(" close=")"><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mi>p</mml:mi><mml:mrow><mml:msub><mml:mi>p</mml:mi><mml:mn mathvariant="normal">0</mml:mn></mml:msub></mml:mrow></mml:mfrac></mml:mstyle></mml:mfenced><mml:mrow><mml:msub><mml:mi>R</mml:mi><mml:mi mathvariant="normal">d</mml:mi></mml:msub><mml:mo>/</mml:mo><mml:msub><mml:mi>c</mml:mi><mml:mi mathvariant="normal">p</mml:mi></mml:msub></mml:mrow></mml:msup><mml:mo>,</mml:mo></mml:mrow></mml:math></disp-formula>
          with <inline-formula><mml:math id="M127" display="inline"><mml:mi>p</mml:mi></mml:math></inline-formula> being the hydrostatic air pressure, <inline-formula><mml:math id="M128" display="inline"><mml:mrow><mml:msub><mml:mi>p</mml:mi><mml:mn mathvariant="normal">0</mml:mn></mml:msub><mml:mo>=</mml:mo><mml:mn mathvariant="normal">1000</mml:mn></mml:mrow></mml:math></inline-formula> <inline-formula><mml:math id="M129" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">hPa</mml:mi></mml:mrow></mml:math></inline-formula>
a reference pressure, <inline-formula><mml:math id="M130" display="inline"><mml:mrow><mml:msub><mml:mi>R</mml:mi><mml:mi mathvariant="normal">d</mml:mi></mml:msub><mml:mo>=</mml:mo><mml:mn mathvariant="normal">287</mml:mn></mml:mrow></mml:math></inline-formula> <inline-formula><mml:math id="M131" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">J</mml:mi><mml:mspace linebreak="nobreak" width="0.125em"/><mml:msup><mml:mi mathvariant="normal">kg</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup><mml:mspace linebreak="nobreak" width="0.125em"/><mml:msup><mml:mi mathvariant="normal">K</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula> the specific gas constant for dry
air, and <inline-formula><mml:math id="M132" display="inline"><mml:mrow><mml:msub><mml:mi>c</mml:mi><mml:mi mathvariant="normal">p</mml:mi></mml:msub><mml:mo>=</mml:mo><mml:mn mathvariant="normal">1005</mml:mn></mml:mrow></mml:math></inline-formula> <inline-formula><mml:math id="M133" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">J</mml:mi><mml:mspace width="0.125em" linebreak="nobreak"/><mml:msup><mml:mi mathvariant="normal">kg</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup><mml:mspace linebreak="nobreak" width="0.125em"/><mml:msup><mml:mi mathvariant="normal">K</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula> the specific heat of dry air at constant pressure. The virtual potential temperature is defined as
            <disp-formula id="Ch1.E8" content-type="numbered"><label>8</label><mml:math id="M134" display="block"><mml:mrow><mml:msub><mml:mi mathvariant="italic">θ</mml:mi><mml:mi mathvariant="normal">v</mml:mi></mml:msub><mml:mo>=</mml:mo><mml:mi mathvariant="italic">θ</mml:mi><mml:mfenced open="[" close="]"><mml:mrow><mml:mn mathvariant="normal">1</mml:mn><mml:mo>+</mml:mo><mml:mfenced open="(" close=")"><mml:mrow><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:msub><mml:mi>R</mml:mi><mml:mi mathvariant="normal">v</mml:mi></mml:msub></mml:mrow><mml:mrow><mml:msub><mml:mi>R</mml:mi><mml:mi mathvariant="normal">d</mml:mi></mml:msub></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:mfenced><mml:msub><mml:mi>q</mml:mi><mml:mi mathvariant="normal">v</mml:mi></mml:msub><mml:mo>-</mml:mo><mml:msub><mml:mi>q</mml:mi><mml:mi mathvariant="normal">l</mml:mi></mml:msub></mml:mrow></mml:mfenced><mml:mo>,</mml:mo></mml:mrow></mml:math></disp-formula>
          with the specific gas constant for water vapor <inline-formula><mml:math id="M135" display="inline"><mml:mrow><mml:msub><mml:mi>R</mml:mi><mml:mi mathvariant="normal">v</mml:mi></mml:msub><mml:mo>=</mml:mo><mml:mn mathvariant="normal">461.51</mml:mn><mml:mspace width="0.125em" linebreak="nobreak"/><mml:mrow class="unit"><mml:mi mathvariant="normal">J</mml:mi><mml:mspace width="0.125em" linebreak="nobreak"/><mml:msup><mml:mi mathvariant="normal">kg</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup><mml:mspace linebreak="nobreak" width="0.125em"/><mml:msup><mml:mi mathvariant="normal">K</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:mrow></mml:math></inline-formula>, and the liquid water mixing ratio <inline-formula><mml:math id="M136" display="inline"><mml:mrow><mml:msub><mml:mi>q</mml:mi><mml:mi mathvariant="normal">l</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>. For the computation of <inline-formula><mml:math id="M137" display="inline"><mml:mrow><mml:msub><mml:mi>q</mml:mi><mml:mi mathvariant="normal">l</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>, see the descriptions of the embedded cloud microphysical models in Sect. <xref ref-type="sec" rid="Ch1.S3.SS1"/> and <xref ref-type="sec" rid="Ch1.S3.SS4"/>.</p>
</sec>
<sec id="Ch1.S2.SS2">
  <label>2.2</label><title>Turbulence closures</title>
      <p id="d1e3932">By default, PALM employs a 1.5-order closure (LES mode) after <xref ref-type="bibr" rid="bib1.bibx24" id="text.15"/> in the formulation by <xref ref-type="bibr" rid="bib1.bibx81" id="text.16"/> and <xref ref-type="bibr" rid="bib1.bibx94" id="text.17"/> (hereafter referred to as the Deardorff scheme). Details are given in <xref ref-type="bibr" rid="bib1.bibx73" id="text.18"/>. Since version 6.0, an alternative dynamic SGS closure can be used, which will be described in the following. Moreover, two turbulence closures are available in RANS mode (i.e., the full spectrum of turbulence is parameterized): a so-called TKE-<inline-formula><mml:math id="M138" display="inline"><mml:mi>l</mml:mi></mml:math></inline-formula> and a TKE-<inline-formula><mml:math id="M139" display="inline"><mml:mi mathvariant="italic">ϵ</mml:mi></mml:math></inline-formula> closure, where <inline-formula><mml:math id="M140" display="inline"><mml:mi>l</mml:mi></mml:math></inline-formula> is a mixing length and <inline-formula><mml:math id="M141" display="inline"><mml:mi mathvariant="italic">ϵ</mml:mi></mml:math></inline-formula> is the SGS-TKE dissipation rate.</p>

<?xmltex \floatpos{t}?><table-wrap id="Ch1.T3" specific-use="star"><?xmltex \currentcnt{3}?><label>Table 3</label><caption><p id="d1e3979">List of SGS model symbols.</p></caption><oasis:table frame="topbot"><oasis:tgroup cols="3">
     <oasis:colspec colnum="1" colname="col1" align="left"/>
     <oasis:colspec colnum="2" colname="col2" align="left"/>
     <oasis:colspec colnum="3" colname="col3" align="left"/>
     <oasis:thead>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1">Symbol</oasis:entry>
         <oasis:entry colname="col2">Dimension</oasis:entry>
         <oasis:entry colname="col3">Description</oasis:entry>
       </oasis:row>
     </oasis:thead>
     <oasis:tbody>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M142" display="inline"><mml:mrow><mml:msub><mml:mi>c</mml:mi><mml:mo>∗</mml:mo></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"/>
         <oasis:entry colname="col3">Dynamic subgrid-scale coefficient</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M143" display="inline"><mml:mi>e</mml:mi></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M144" display="inline"><mml:mrow class="unit"><mml:msup><mml:mi mathvariant="normal">m</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msup><mml:mspace linebreak="nobreak" width="0.125em"/><mml:msup><mml:mi mathvariant="normal">s</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">2</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">Subgrid-scale turbulence kinetic energy (total turbulent kinetic energy in RANS mode)</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M145" display="inline"><mml:mi>l</mml:mi></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M146" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">m</mml:mi></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">Mixing length</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M147" display="inline"><mml:mrow><mml:msub><mml:mi>l</mml:mi><mml:mi mathvariant="normal">B</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M148" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">m</mml:mi></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">Mixing length after <xref ref-type="bibr" rid="bib1.bibx9" id="text.19"/></oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M149" display="inline"><mml:mrow><mml:msub><mml:mi>l</mml:mi><mml:mi mathvariant="normal">wall</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M150" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">m</mml:mi></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">Minimum mixing length</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M151" display="inline"><mml:mrow><mml:msub><mml:mi>K</mml:mi><mml:mi mathvariant="normal">h</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M152" display="inline"><mml:mrow class="unit"><mml:msup><mml:mi mathvariant="normal">m</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msup><mml:mspace linebreak="nobreak" width="0.125em"/><mml:msup><mml:mi mathvariant="normal">s</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">SGS eddy diffusivity of heat</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M153" display="inline"><mml:mrow><mml:msub><mml:mi>K</mml:mi><mml:mi mathvariant="normal">m</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M154" display="inline"><mml:mrow class="unit"><mml:msup><mml:mi mathvariant="normal">m</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msup><mml:mspace width="0.125em" linebreak="nobreak"/><mml:msup><mml:mi mathvariant="normal">s</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">SGS eddy diffusivity of momentum</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M155" display="inline"><mml:mrow><mml:msub><mml:mi>L</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mi>j</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M156" display="inline"><mml:mrow class="unit"><mml:msup><mml:mi mathvariant="normal">m</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msup><mml:mspace linebreak="nobreak" width="0.125em"/><mml:msup><mml:mi mathvariant="normal">s</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">2</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">Resolved stress tensor</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M157" display="inline"><mml:mrow><mml:msub><mml:mi>S</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mi>j</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M158" display="inline"><mml:mrow class="unit"><mml:msup><mml:mi mathvariant="normal">s</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">Strain tensor</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M159" display="inline"><mml:mrow><mml:msub><mml:mi>T</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mi>j</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M160" display="inline"><mml:mrow class="unit"><mml:msup><mml:mi mathvariant="normal">m</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msup><mml:mspace linebreak="nobreak" width="0.125em"/><mml:msup><mml:mi mathvariant="normal">s</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">2</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">Subtest-scale stress tensor</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M161" display="inline"><mml:mi mathvariant="italic">ϵ</mml:mi></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M162" display="inline"><mml:mrow class="unit"><mml:msup><mml:mi mathvariant="normal">m</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msup><mml:mspace linebreak="nobreak" width="0.125em"/><mml:msup><mml:mi mathvariant="normal">s</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">3</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">SGS-TKE dissipation rate</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M163" display="inline"><mml:mrow><mml:msubsup><mml:mi mathvariant="italic">ν</mml:mi><mml:mo>*</mml:mo><mml:mi mathvariant="normal">T</mml:mi></mml:msubsup></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M164" display="inline"><mml:mrow class="unit"><mml:msup><mml:mi mathvariant="normal">m</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msup><mml:mspace width="0.125em" linebreak="nobreak"/><mml:mi mathvariant="normal">s</mml:mi></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">Subtest-scale viscosity parameter</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M165" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">τ</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mi>j</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M166" display="inline"><mml:mrow class="unit"><mml:msup><mml:mi mathvariant="normal">m</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msup><mml:mspace linebreak="nobreak" width="0.125em"/><mml:msup><mml:mi mathvariant="normal">s</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">2</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">SGS stress tensor</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M167" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">τ</mml:mi><mml:mrow><mml:mi mathvariant="normal">d</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi><mml:mi>j</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M168" display="inline"><mml:mrow class="unit"><mml:msup><mml:mi mathvariant="normal">m</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msup><mml:mspace width="0.125em" linebreak="nobreak"/><mml:msup><mml:mi mathvariant="normal">s</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">2</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">Deviatoric SGS stress tensor</oasis:entry>
       </oasis:row>
     </oasis:tbody>
   </oasis:tgroup></oasis:table></table-wrap>

<sec id="Ch1.S2.SS2.SSS1">
  <label>2.2.1</label><title>Dynamic SGS closure</title>
      <?pagebreak page1340?><p id="d1e4510">The dynamic SGS closure follows <xref ref-type="bibr" rid="bib1.bibx35" id="text.20"/> and <xref ref-type="bibr" rid="bib1.bibx82" id="text.21"/>. In general, the dynamic SGS closure employs the same equations for calculating the SGS fluxes as the Deardorff scheme, assuming that the energy transport by SGS eddies is proportional to the local gradients of the mean resolved quantities and reads

                  <disp-formula specific-use="align" content-type="numbered"><mml:math id="M169" display="block"><mml:mtable displaystyle="true"><mml:mlabeledtr id="Ch1.E9"><mml:mtd><mml:mtext>9</mml:mtext></mml:mtd><mml:mtd><mml:mstyle class="stylechange" displaystyle="true"/></mml:mtd><mml:mtd><mml:mrow><mml:mstyle displaystyle="true" class="stylechange"/><mml:mover accent="true"><mml:mrow><mml:msubsup><mml:mi>u</mml:mi><mml:mi>i</mml:mi><mml:mrow><mml:mo>′</mml:mo><mml:mo>′</mml:mo></mml:mrow></mml:msubsup><mml:msubsup><mml:mi>u</mml:mi><mml:mi>j</mml:mi><mml:mrow><mml:mo>′</mml:mo><mml:mo>′</mml:mo></mml:mrow></mml:msubsup></mml:mrow><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mo>-</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mn mathvariant="normal">2</mml:mn><mml:mn mathvariant="normal">3</mml:mn></mml:mfrac></mml:mstyle><mml:mi>e</mml:mi><mml:msub><mml:mi mathvariant="italic">δ</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mi>j</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mo>-</mml:mo><mml:msub><mml:mi>K</mml:mi><mml:mi mathvariant="normal">m</mml:mi></mml:msub><mml:mfenced open="(" close=")"><mml:mrow><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo>∂</mml:mo><mml:msub><mml:mover accent="true"><mml:mi>u</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mi>i</mml:mi></mml:msub></mml:mrow><mml:mrow><mml:mo>∂</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mi>j</mml:mi></mml:msub></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>+</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo>∂</mml:mo><mml:msub><mml:mover accent="true"><mml:mi>u</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mi>j</mml:mi></mml:msub></mml:mrow><mml:mrow><mml:mo>∂</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:mrow></mml:mfrac></mml:mstyle></mml:mrow></mml:mfenced></mml:mrow></mml:mtd></mml:mlabeledtr><mml:mlabeledtr id="Ch1.E10"><mml:mtd><mml:mtext>10</mml:mtext></mml:mtd><mml:mtd><mml:mstyle displaystyle="true" class="stylechange"/></mml:mtd><mml:mtd><mml:mrow><mml:mstyle displaystyle="true" class="stylechange"/><mml:mover accent="true"><mml:mrow><mml:msubsup><mml:mi>u</mml:mi><mml:mi>i</mml:mi><mml:mrow><mml:mo>′</mml:mo><mml:mo>′</mml:mo></mml:mrow></mml:msubsup><mml:msup><mml:mi mathvariant="italic">θ</mml:mi><mml:mrow><mml:mo>′</mml:mo><mml:mo>′</mml:mo></mml:mrow></mml:msup></mml:mrow><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mo>=</mml:mo><mml:mo>-</mml:mo><mml:msub><mml:mi>K</mml:mi><mml:mi mathvariant="normal">h</mml:mi></mml:msub><mml:mspace width="0.33em" linebreak="nobreak"/><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo>∂</mml:mo><mml:mover accent="true"><mml:mi mathvariant="italic">θ</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover></mml:mrow><mml:mrow><mml:mo>∂</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:mrow></mml:mfrac></mml:mstyle></mml:mrow></mml:mtd></mml:mlabeledtr><mml:mlabeledtr id="Ch1.E11"><mml:mtd><mml:mtext>11</mml:mtext></mml:mtd><mml:mtd><mml:mstyle class="stylechange" displaystyle="true"/></mml:mtd><mml:mtd><mml:mrow><mml:mstyle displaystyle="true" class="stylechange"/><mml:mover accent="true"><mml:mrow><mml:msubsup><mml:mi>u</mml:mi><mml:mi>i</mml:mi><mml:mrow><mml:mo>′</mml:mo><mml:mo>′</mml:mo></mml:mrow></mml:msubsup><mml:msubsup><mml:mi>q</mml:mi><mml:mi mathvariant="normal">v</mml:mi><mml:mrow><mml:mo>′</mml:mo><mml:mo>′</mml:mo></mml:mrow></mml:msubsup></mml:mrow><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mo>=</mml:mo><mml:mo>-</mml:mo><mml:msub><mml:mi>K</mml:mi><mml:mi mathvariant="normal">h</mml:mi></mml:msub><mml:mspace linebreak="nobreak" width="0.33em"/><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo>∂</mml:mo><mml:msub><mml:mover accent="true"><mml:mi>q</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mi mathvariant="normal">v</mml:mi></mml:msub></mml:mrow><mml:mrow><mml:mo>∂</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:mrow></mml:mfrac></mml:mstyle></mml:mrow></mml:mtd></mml:mlabeledtr><mml:mlabeledtr id="Ch1.E12"><mml:mtd><mml:mtext>12</mml:mtext></mml:mtd><mml:mtd><mml:mstyle displaystyle="true" class="stylechange"/></mml:mtd><mml:mtd><mml:mrow><mml:mstyle class="stylechange" displaystyle="true"/><mml:mover accent="true"><mml:mrow><mml:msubsup><mml:mi>u</mml:mi><mml:mi>i</mml:mi><mml:mrow><mml:mo>′</mml:mo><mml:mo>′</mml:mo></mml:mrow></mml:msubsup><mml:msup><mml:mi>s</mml:mi><mml:mrow><mml:mo>′</mml:mo><mml:mo>′</mml:mo></mml:mrow></mml:msup></mml:mrow><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mo>=</mml:mo><mml:mo>-</mml:mo><mml:msub><mml:mi>K</mml:mi><mml:mi mathvariant="normal">h</mml:mi></mml:msub><mml:mspace linebreak="nobreak" width="0.33em"/><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo>∂</mml:mo><mml:mover accent="true"><mml:mi>s</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover></mml:mrow><mml:mrow><mml:mo>∂</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:mrow></mml:mfrac></mml:mstyle><mml:mspace width="0.125em" linebreak="nobreak"/><mml:mo>,</mml:mo></mml:mrow></mml:mtd></mml:mlabeledtr></mml:mtable></mml:math></disp-formula>

              where <inline-formula><mml:math id="M170" display="inline"><mml:mrow><mml:msub><mml:mi>K</mml:mi><mml:mi mathvariant="normal">m</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M171" display="inline"><mml:mrow><mml:msub><mml:mi>K</mml:mi><mml:mi mathvariant="normal">h</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> are the local SGS diffusivities of momentum and heat, respectively. In order to distinguish between different filter operations, the overbar is used to denote variables that are filtered with the horizontal grid spacing <inline-formula><mml:math id="M172" display="inline"><mml:mi mathvariant="normal">Δ</mml:mi></mml:math></inline-formula> in this subsection. While <inline-formula><mml:math id="M173" display="inline"><mml:mrow><mml:msub><mml:mi>K</mml:mi><mml:mi mathvariant="normal">h</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> is calculated as in the Deardorff scheme, a dynamic approach is applied to calculate <inline-formula><mml:math id="M174" display="inline"><mml:mrow><mml:msub><mml:mi>K</mml:mi><mml:mi mathvariant="normal">m</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>, viz.
              <disp-formula id="Ch1.E13" content-type="numbered"><label>13</label><mml:math id="M175" display="block"><mml:mrow><mml:msub><mml:mi>K</mml:mi><mml:mi mathvariant="normal">m</mml:mi></mml:msub><mml:mo>=</mml:mo><mml:msub><mml:mi>c</mml:mi><mml:mo>∗</mml:mo></mml:msub><mml:mspace width="0.125em" linebreak="nobreak"/><mml:msub><mml:mi mathvariant="normal">Δ</mml:mi><mml:mi mathvariant="normal">max</mml:mi></mml:msub><mml:mspace linebreak="nobreak" width="0.125em"/><mml:msqrt><mml:mi>e</mml:mi></mml:msqrt><mml:mo>,</mml:mo></mml:mrow></mml:math></disp-formula>
            where <inline-formula><mml:math id="M176" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="normal">Δ</mml:mi><mml:mi mathvariant="normal">max</mml:mi></mml:msub><mml:mo>=</mml:mo><mml:mo>max⁡</mml:mo><mml:mo>(</mml:mo><mml:msub><mml:mi mathvariant="normal">Δ</mml:mi><mml:mi mathvariant="normal">x</mml:mi></mml:msub><mml:mo>,</mml:mo><mml:msub><mml:mi mathvariant="normal">Δ</mml:mi><mml:mi mathvariant="normal">y</mml:mi></mml:msub><mml:mo>,</mml:mo><mml:msub><mml:mi mathvariant="normal">Δ</mml:mi><mml:mi mathvariant="normal">z</mml:mi></mml:msub><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula>. Unlike in the Deardorff scheme, <inline-formula><mml:math id="M177" display="inline"><mml:mrow><mml:msub><mml:mi>c</mml:mi><mml:mo>∗</mml:mo></mml:msub></mml:mrow></mml:math></inline-formula> is not a fixed value but is calculated at each time step for each grid cell. As for the Deardorff scheme, <inline-formula><mml:math id="M178" display="inline"><mml:mi>e</mml:mi></mml:math></inline-formula> is calculated using a prognostic equation:
              <disp-formula id="Ch1.E14" content-type="numbered"><label>14</label><mml:math id="M179" display="block"><mml:mtable columnspacing="1em" rowspacing="0.2ex" class="split" displaystyle="true" columnalign="right left"><mml:mtr><mml:mtd><mml:mrow><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo>∂</mml:mo><mml:mi>e</mml:mi></mml:mrow><mml:mrow><mml:mo>∂</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>=</mml:mo></mml:mrow></mml:mtd><mml:mtd><mml:mrow><mml:mo>-</mml:mo><mml:msub><mml:mover accent="true"><mml:mi>u</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mi>j</mml:mi></mml:msub><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo>∂</mml:mo><mml:mi>e</mml:mi></mml:mrow><mml:mrow><mml:mo>∂</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mi>j</mml:mi></mml:msub></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>-</mml:mo><mml:mfenced open="(" close=")"><mml:mover accent="true"><mml:mrow><mml:msubsup><mml:mi>u</mml:mi><mml:mi>i</mml:mi><mml:mrow><mml:mo>′</mml:mo><mml:mo>′</mml:mo></mml:mrow></mml:msubsup><mml:msubsup><mml:mi>u</mml:mi><mml:mi>j</mml:mi><mml:mrow><mml:mo>′</mml:mo><mml:mo>′</mml:mo></mml:mrow></mml:msubsup></mml:mrow><mml:mo mathvariant="normal">‾</mml:mo></mml:mover></mml:mfenced><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo>∂</mml:mo><mml:msub><mml:mover accent="true"><mml:mi>u</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mi>i</mml:mi></mml:msub></mml:mrow><mml:mrow><mml:mo>∂</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mi>j</mml:mi></mml:msub></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>+</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mi>g</mml:mi><mml:mrow><mml:msub><mml:mi mathvariant="italic">θ</mml:mi><mml:mrow><mml:mi mathvariant="normal">v</mml:mi><mml:mo>,</mml:mo><mml:mi mathvariant="normal">ref</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:mfrac></mml:mstyle><mml:mover accent="true"><mml:mrow><mml:msubsup><mml:mi>u</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mo>′</mml:mo><mml:mo>′</mml:mo></mml:mrow></mml:msubsup><mml:msup><mml:mi mathvariant="italic">θ</mml:mi><mml:mrow><mml:mo>′</mml:mo><mml:mo>′</mml:mo></mml:mrow></mml:msup></mml:mrow><mml:mo mathvariant="normal">‾</mml:mo></mml:mover></mml:mrow></mml:mtd></mml:mtr><mml:mtr><mml:mtd/><mml:mtd><mml:mrow><mml:mo>-</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mo>∂</mml:mo><mml:mrow><mml:mo>∂</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mi>j</mml:mi></mml:msub></mml:mrow></mml:mfrac></mml:mstyle><mml:mfenced open="[" close="]"><mml:mover accent="true"><mml:mrow><mml:msubsup><mml:mi>u</mml:mi><mml:mi>j</mml:mi><mml:mrow><mml:mo>′</mml:mo><mml:mo>′</mml:mo></mml:mrow></mml:msubsup><mml:mfenced close=")" open="("><mml:mrow><mml:mi>e</mml:mi><mml:mo>+</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:msup><mml:mi>p</mml:mi><mml:mrow><mml:mo>′</mml:mo><mml:mo>′</mml:mo></mml:mrow></mml:msup></mml:mrow><mml:mi mathvariant="italic">ρ</mml:mi></mml:mfrac></mml:mstyle></mml:mrow></mml:mfenced></mml:mrow><mml:mo mathvariant="normal">‾</mml:mo></mml:mover></mml:mfenced><mml:mo>-</mml:mo><mml:mo>(</mml:mo><mml:mn mathvariant="normal">0.19</mml:mn><mml:mo>+</mml:mo><mml:mn mathvariant="normal">0.74</mml:mn><mml:mi>l</mml:mi><mml:mo>/</mml:mo><mml:mi mathvariant="normal">Δ</mml:mi><mml:mo>)</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:msup><mml:mi>e</mml:mi><mml:mrow><mml:mn mathvariant="normal">3</mml:mn><mml:mo>/</mml:mo><mml:mn mathvariant="normal">2</mml:mn></mml:mrow></mml:msup></mml:mrow><mml:mi>l</mml:mi></mml:mfrac></mml:mstyle><mml:mo>,</mml:mo></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
            with <inline-formula><mml:math id="M180" display="inline"><mml:mi>l</mml:mi></mml:math></inline-formula> being a mixing length. Note that, in the SGS closures, <inline-formula><mml:math id="M181" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">θ</mml:mi><mml:mrow><mml:mi mathvariant="normal">v</mml:mi><mml:mo>,</mml:mo><mml:mi mathvariant="normal">ref</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> refers to either a given reference value or the local value of <inline-formula><mml:math id="M182" display="inline"><mml:mover accent="true"><mml:mi mathvariant="italic">θ</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover></mml:math></inline-formula>. The pressure term in Eq. (<xref ref-type="disp-formula" rid="Ch1.E14"/>) is parameterized as
              <disp-formula id="Ch1.E15" content-type="numbered"><label>15</label><mml:math id="M183" display="block"><mml:mrow><mml:mfenced close="]" open="["><mml:mover accent="true"><mml:mrow><mml:msubsup><mml:mi>u</mml:mi><mml:mi>j</mml:mi><mml:mrow><mml:mo>′</mml:mo><mml:mo>′</mml:mo></mml:mrow></mml:msubsup><mml:mfenced open="(" close=")"><mml:mrow><mml:mi>e</mml:mi><mml:mo>+</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:msup><mml:mi>p</mml:mi><mml:mrow><mml:mo>′</mml:mo><mml:mo>′</mml:mo></mml:mrow></mml:msup></mml:mrow><mml:mi mathvariant="italic">ρ</mml:mi></mml:mfrac></mml:mstyle></mml:mrow></mml:mfenced></mml:mrow><mml:mo mathvariant="normal">‾</mml:mo></mml:mover></mml:mfenced><mml:mo>=</mml:mo><mml:mo>-</mml:mo><mml:mn mathvariant="normal">2</mml:mn><mml:msub><mml:mi>K</mml:mi><mml:mi mathvariant="normal">m</mml:mi></mml:msub><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo>∂</mml:mo><mml:mi>e</mml:mi></mml:mrow><mml:mrow><mml:mo>∂</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mi>j</mml:mi></mml:msub></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>.</mml:mo></mml:mrow></mml:math></disp-formula>
            The left-hand side of Eq. (<xref ref-type="disp-formula" rid="Ch1.E9"/>) is called deviatoric subgrid stress. Using the rate of strain tensor <inline-formula><mml:math id="M184" display="inline"><mml:mrow><mml:msub><mml:mi>S</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mi>j</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mn mathvariant="normal">0.5</mml:mn><mml:mfenced open="(" close=")"><mml:mrow><mml:mstyle displaystyle="false"><mml:mfrac style="text"><mml:mrow><mml:mo>∂</mml:mo><mml:msub><mml:mi>u</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:mrow><mml:mrow><mml:mo>∂</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mi>j</mml:mi></mml:msub></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>+</mml:mo><mml:mstyle displaystyle="false"><mml:mfrac style="text"><mml:mrow><mml:mo>∂</mml:mo><mml:msub><mml:mi>u</mml:mi><mml:mi>j</mml:mi></mml:msub></mml:mrow><mml:mrow><mml:mo>∂</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:mrow></mml:mfrac></mml:mstyle></mml:mrow></mml:mfenced></mml:mrow></mml:math></inline-formula>, it can be written as follows:
              <disp-formula id="Ch1.E16" content-type="numbered"><label>16</label><mml:math id="M185" display="block"><mml:mrow><mml:msubsup><mml:mi mathvariant="italic">τ</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mi>j</mml:mi></mml:mrow><mml:mi>d</mml:mi></mml:msubsup><mml:mo>=</mml:mo><mml:msub><mml:mi mathvariant="italic">τ</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mi>j</mml:mi></mml:mrow></mml:msub><mml:mo>-</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:msub><mml:mi mathvariant="italic">τ</mml:mi><mml:mrow><mml:mi>n</mml:mi><mml:mi>n</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mn mathvariant="normal">3</mml:mn></mml:mfrac></mml:mstyle><mml:msub><mml:mi mathvariant="italic">δ</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mi>j</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mo>-</mml:mo><mml:mn mathvariant="normal">2</mml:mn><mml:msub><mml:mi>K</mml:mi><mml:mi mathvariant="normal">m</mml:mi></mml:msub><mml:msub><mml:mover accent="true"><mml:mi>S</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mrow><mml:mi>i</mml:mi><mml:mi>j</mml:mi></mml:mrow></mml:msub><mml:mo>,</mml:mo></mml:mrow></mml:math></disp-formula>
            where we used the summation convention. The subgrid stress can also be expressed as <inline-formula><mml:math id="M186" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">τ</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mi>j</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mover accent="true"><mml:mrow><mml:msub><mml:mi>u</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:msub><mml:mi>u</mml:mi><mml:mi>j</mml:mi></mml:msub></mml:mrow><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mo>-</mml:mo><mml:msub><mml:mover accent="true"><mml:mi>u</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mi>i</mml:mi></mml:msub><mml:msub><mml:mover accent="true"><mml:mi>u</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mi>j</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>. This expression makes clear why the subgrid stress has to be modeled, since only the second term of the right-hand side is known. Following <xref ref-type="bibr" rid="bib1.bibx28" id="text.22"/>, a test filter is introduced, which is <inline-formula><mml:math id="M187" display="inline"><mml:mrow><mml:msup><mml:mi mathvariant="normal">Δ</mml:mi><mml:mi mathvariant="normal">T</mml:mi></mml:msup><mml:mo>=</mml:mo><mml:mn mathvariant="normal">2</mml:mn><mml:mi mathvariant="normal">Δ</mml:mi></mml:mrow></mml:math></inline-formula> in our case. The subgrid stress on the test filter scale then is <inline-formula><mml:math id="M188" display="inline"><mml:mrow><mml:msub><mml:mi>T</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mi>j</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mover accent="true"><mml:mover accent="true"><mml:mrow><mml:msub><mml:mi>u</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:msub><mml:mi>u</mml:mi><mml:mi>j</mml:mi></mml:msub></mml:mrow><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mo stretchy="true" mathvariant="normal">^</mml:mo></mml:mover><mml:mo>-</mml:mo><mml:msub><mml:mover accent="true"><mml:mover accent="true"><mml:mi>u</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mo mathvariant="normal" stretchy="true">^</mml:mo></mml:mover><mml:mi>i</mml:mi></mml:msub><mml:msub><mml:mover accent="true"><mml:mover accent="true"><mml:mi>u</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mo mathvariant="normal" stretchy="true">^</mml:mo></mml:mover><mml:mi>j</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>, where also the first term on the right-hand side is unknown (the hat denotes a filter operation with the width of the test filter). The difference between subgrid stress on the test filter level and the test-filtered subgrid stress is the resolved stress <inline-formula><mml:math id="M189" display="inline"><mml:mrow><mml:msub><mml:mi>L</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mi>j</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:msub><mml:mi>T</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mi>j</mml:mi></mml:mrow></mml:msub><mml:mo>-</mml:mo><mml:msub><mml:mover accent="true"><mml:mi mathvariant="italic">τ</mml:mi><mml:mo mathvariant="normal" stretchy="true">^</mml:mo></mml:mover><mml:mrow><mml:mi>i</mml:mi><mml:mi>j</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mover accent="true"><mml:mrow><mml:msub><mml:mover accent="true"><mml:mi>u</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mi>i</mml:mi></mml:msub><mml:msub><mml:mover accent="true"><mml:mi>u</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mi>j</mml:mi></mml:msub></mml:mrow><mml:mo mathvariant="normal" stretchy="true">^</mml:mo></mml:mover><mml:mo>-</mml:mo><mml:msub><mml:mover accent="true"><mml:mover accent="true"><mml:mi>u</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mo mathvariant="normal" stretchy="true">^</mml:mo></mml:mover><mml:mi>i</mml:mi></mml:msub><mml:msub><mml:mover accent="true"><mml:mover accent="true"><mml:mi>u</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mo stretchy="true" mathvariant="normal">^</mml:mo></mml:mover><mml:mi>j</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>. Both terms on the right-hand side are known, and <inline-formula><mml:math id="M190" display="inline"><mml:mrow><mml:msub><mml:mi>L</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mi>j</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> can thus be calculated directly by application of the test filter to the resolved velocities on the grid cells. As described in <xref ref-type="bibr" rid="bib1.bibx35" id="text.23"/>, <inline-formula><mml:math id="M191" display="inline"><mml:mrow><mml:msub><mml:mi>c</mml:mi><mml:mo>∗</mml:mo></mml:msub></mml:mrow></mml:math></inline-formula> can be calculated via
              <disp-formula id="Ch1.E17" content-type="numbered"><label>17</label><mml:math id="M192" display="block"><mml:mrow><mml:msub><mml:mi>c</mml:mi><mml:mo>∗</mml:mo></mml:msub><mml:mo>=</mml:mo><mml:mo>-</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:msubsup><mml:mi>L</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mi>j</mml:mi></mml:mrow><mml:mi>d</mml:mi></mml:msubsup><mml:msub><mml:mover accent="true"><mml:mover accent="true"><mml:mi>S</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mo stretchy="true" mathvariant="normal">^</mml:mo></mml:mover><mml:mrow><mml:mi>j</mml:mi><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:msubsup><mml:mi mathvariant="italic">ν</mml:mi><mml:mo>*</mml:mo><mml:mi mathvariant="normal">T</mml:mi></mml:msubsup><mml:msub><mml:mover accent="true"><mml:mover accent="true"><mml:mi>S</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mo mathvariant="normal" stretchy="true">^</mml:mo></mml:mover><mml:mrow><mml:mi>m</mml:mi><mml:mi>n</mml:mi></mml:mrow></mml:msub><mml:msub><mml:mover accent="true"><mml:mover accent="true"><mml:mi>S</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mo mathvariant="normal" stretchy="true">^</mml:mo></mml:mover><mml:mrow><mml:mi>n</mml:mi><mml:mi>m</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>,</mml:mo></mml:mrow></mml:math></disp-formula>
            where <inline-formula><mml:math id="M193" display="inline"><mml:mrow><mml:msubsup><mml:mi mathvariant="italic">ν</mml:mi><mml:mo>*</mml:mo><mml:mi mathvariant="normal">T</mml:mi></mml:msubsup><mml:mo>=</mml:mo><mml:msup><mml:mi mathvariant="normal">Δ</mml:mi><mml:mi mathvariant="normal">T</mml:mi></mml:msup><mml:msup><mml:mfenced close=")" open="("><mml:mrow><mml:msub><mml:mi>L</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo>/</mml:mo><mml:mn mathvariant="normal">2</mml:mn></mml:mrow></mml:mfenced><mml:mn mathvariant="normal">2</mml:mn></mml:msup></mml:mrow></mml:math></inline-formula> is the subtest-scale viscosity. The stability of the simulation is ensured by using dynamic bounds that keep the values of <inline-formula><mml:math id="M194" display="inline"><mml:mrow><mml:msub><mml:mi>c</mml:mi><mml:mo>∗</mml:mo></mml:msub></mml:mrow></mml:math></inline-formula> in the range
              <disp-formula id="Ch1.E18" content-type="numbered"><label>18</label><mml:math id="M195" display="block"><mml:mrow><mml:mo>|</mml:mo><mml:msub><mml:mi>c</mml:mi><mml:mo>∗</mml:mo></mml:msub><mml:mo>|</mml:mo><mml:mo>≤</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mn mathvariant="normal">23</mml:mn><mml:mrow><mml:mn mathvariant="normal">24</mml:mn><mml:msqrt><mml:mn mathvariant="normal">3</mml:mn></mml:msqrt></mml:mrow></mml:mfrac></mml:mstyle><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:msqrt><mml:mi>e</mml:mi></mml:msqrt><mml:mrow><mml:mi mathvariant="normal">Δ</mml:mi><mml:msqrt><mml:mrow><mml:msub><mml:mover accent="true"><mml:mi>S</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mrow><mml:mi>i</mml:mi><mml:mi>j</mml:mi></mml:mrow></mml:msub><mml:msub><mml:mover accent="true"><mml:mi>S</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mrow><mml:mi>j</mml:mi><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:msqrt></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>,</mml:mo></mml:mrow></mml:math></disp-formula>
            as derived by <xref ref-type="bibr" rid="bib1.bibx82" id="text.24"/>. This model does not need artificial limitation of the range of <inline-formula><mml:math id="M196" display="inline"><mml:mrow><mml:msub><mml:mi>c</mml:mi><mml:mo>∗</mml:mo></mml:msub></mml:mrow></mml:math></inline-formula> for stable runs and allows the occurrence of energy backscatter (i.e., negative values of <inline-formula><mml:math id="M197" display="inline"><mml:mrow><mml:msub><mml:mi>K</mml:mi><mml:mi mathvariant="normal">m</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>). Unlike other dynamic models, this formulation of <inline-formula><mml:math id="M198" display="inline"><mml:mrow><mml:msub><mml:mi>c</mml:mi><mml:mo>∗</mml:mo></mml:msub></mml:mrow></mml:math></inline-formula> is not derived using model assumptions for the subgrid stress and the stress on the test filter level but is derived as consequence of stochastic analysis <xref ref-type="bibr" rid="bib1.bibx35 bib1.bibx36" id="paren.25"/>.</p>
</sec>
<sec id="Ch1.S2.SS2.SSS2">
  <label>2.2.2</label><title>RANS turbulence closures</title>
      <p id="d1e5896">For RANS mode, PALM offers two different turbulence closures – a TKE-<inline-formula><mml:math id="M199" display="inline"><mml:mi>l</mml:mi></mml:math></inline-formula> and the standard TKE-<inline-formula><mml:math id="M200" display="inline"><mml:mi mathvariant="italic">ϵ</mml:mi></mml:math></inline-formula> closure <xref ref-type="bibr" rid="bib1.bibx79 bib1.bibx80" id="paren.26"/> – to calculate the eddy diffusivities, which then describe diffusion by the complete turbulence spectrum.
While the TKE-<inline-formula><mml:math id="M201" display="inline"><mml:mi>l</mml:mi></mml:math></inline-formula> closure uses a single prognostic equation to calculate the TKE, the standard TKE-<inline-formula><mml:math id="M202" display="inline"><mml:mi mathvariant="italic">ϵ</mml:mi></mml:math></inline-formula> closure applies an additional prognostic equation for <inline-formula><mml:math id="M203" display="inline"><mml:mi mathvariant="italic">ϵ</mml:mi></mml:math></inline-formula> in addition to the equation for <inline-formula><mml:math id="M204" display="inline"><mml:mi>e</mml:mi></mml:math></inline-formula>.</p>
      <p id="d1e5945">In the TKE-<inline-formula><mml:math id="M205" display="inline"><mml:mi>l</mml:mi></mml:math></inline-formula> closure <xref ref-type="bibr" rid="bib1.bibx43" id="paren.27"><named-content content-type="pre">e.g.,</named-content></xref>, the eddy diffusivities are calculated via <inline-formula><mml:math id="M206" display="inline"><mml:mi>e</mml:mi></mml:math></inline-formula> and <inline-formula><mml:math id="M207" display="inline"><mml:mi>l</mml:mi></mml:math></inline-formula> as

                  <disp-formula specific-use="align" content-type="numbered"><mml:math id="M208" display="block"><mml:mtable displaystyle="true"><mml:mlabeledtr id="Ch1.E19"><mml:mtd><mml:mtext>19</mml:mtext></mml:mtd><mml:mtd><mml:mstyle displaystyle="true" class="stylechange"/></mml:mtd><mml:mtd><mml:mrow><mml:mstyle class="stylechange" displaystyle="true"/><mml:msub><mml:mi>K</mml:mi><mml:mi mathvariant="normal">m</mml:mi></mml:msub><mml:mo>=</mml:mo><mml:msub><mml:mi>c</mml:mi><mml:mn mathvariant="normal">0</mml:mn></mml:msub><mml:mi>l</mml:mi><mml:msqrt><mml:mi>e</mml:mi></mml:msqrt><mml:mo>,</mml:mo></mml:mrow></mml:mtd></mml:mlabeledtr><mml:mlabeledtr id="Ch1.E20"><mml:mtd><mml:mtext>20</mml:mtext></mml:mtd><mml:mtd><mml:mstyle displaystyle="true" class="stylechange"/></mml:mtd><mml:mtd><mml:mrow><mml:mstyle displaystyle="true" class="stylechange"/><mml:msub><mml:mi>K</mml:mi><mml:mi mathvariant="normal">h</mml:mi></mml:msub><mml:mo>=</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:msub><mml:mi>K</mml:mi><mml:mi mathvariant="normal">m</mml:mi></mml:msub></mml:mrow><mml:mi mathvariant="italic">Pr</mml:mi></mml:mfrac></mml:mstyle><mml:mo>,</mml:mo></mml:mrow></mml:mtd></mml:mlabeledtr></mml:mtable></mml:math></disp-formula>

              where <inline-formula><mml:math id="M209" display="inline"><mml:mrow><mml:mi mathvariant="italic">Pr</mml:mi><mml:mo>=</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:math></inline-formula> denotes the Prandtl number and <inline-formula><mml:math id="M210" display="inline"><mml:mrow><mml:msub><mml:mi>c</mml:mi><mml:mn mathvariant="normal">0</mml:mn></mml:msub><mml:mo>=</mml:mo><mml:mn mathvariant="normal">0.55</mml:mn></mml:mrow></mml:math></inline-formula> denotes a model constant. The Prandtl number can be changed to a user-specific value for different stability regimes. Note that, in the case of RANS mode, <inline-formula><mml:math id="M211" display="inline"><mml:mi>e</mml:mi></mml:math></inline-formula> denotes the total turbulent kinetic energy as the full turbulence spectrum is parameterized.
To calculate <inline-formula><mml:math id="M212" display="inline"><mml:mi>e</mml:mi></mml:math></inline-formula>, Eq. (<xref ref-type="disp-formula" rid="Ch1.E14"/>) is modified by introducing gradient approaches for the turbulent transport terms:<?xmltex \hack{\newpage}?>
              <disp-formula id="Ch1.E21" content-type="numbered"><label>21</label><mml:math id="M213" display="block"><mml:mtable rowspacing="0.2ex" columnspacing="1em" class="split" displaystyle="true" columnalign="right left"><mml:mtr><mml:mtd><mml:mrow><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo>∂</mml:mo><mml:mi>e</mml:mi></mml:mrow><mml:mrow><mml:mo>∂</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>=</mml:mo></mml:mrow></mml:mtd><mml:mtd><mml:mrow><mml:mo>-</mml:mo><mml:msub><mml:mover accent="true"><mml:mi>u</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mi>j</mml:mi></mml:msub><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo>∂</mml:mo><mml:mi>e</mml:mi></mml:mrow><mml:mrow><mml:mo>∂</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mi>j</mml:mi></mml:msub></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>+</mml:mo><mml:msub><mml:mi>K</mml:mi><mml:mi mathvariant="normal">m</mml:mi></mml:msub><mml:mfenced open="(" close=")"><mml:mrow><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo>∂</mml:mo><mml:msub><mml:mover accent="true"><mml:mi>u</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mi>i</mml:mi></mml:msub></mml:mrow><mml:mrow><mml:mo>∂</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mi>j</mml:mi></mml:msub></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>+</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo>∂</mml:mo><mml:msub><mml:mover accent="true"><mml:mi>u</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mi>j</mml:mi></mml:msub></mml:mrow><mml:mrow><mml:mo>∂</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:mrow></mml:mfrac></mml:mstyle></mml:mrow></mml:mfenced><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo>∂</mml:mo><mml:msub><mml:mover accent="true"><mml:mi>u</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mi>i</mml:mi></mml:msub></mml:mrow><mml:mrow><mml:mo>∂</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mi>j</mml:mi></mml:msub></mml:mrow></mml:mfrac></mml:mstyle></mml:mrow></mml:mtd></mml:mtr><mml:mtr><mml:mtd/><mml:mtd><mml:mrow><mml:mo>-</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mi>g</mml:mi><mml:mrow><mml:msub><mml:mi mathvariant="italic">θ</mml:mi><mml:mrow><mml:mi mathvariant="normal">v</mml:mi><mml:mo>,</mml:mo><mml:mi mathvariant="normal">ref</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:mfrac></mml:mstyle><mml:msub><mml:mi>K</mml:mi><mml:mi mathvariant="normal">h</mml:mi></mml:msub><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo>∂</mml:mo><mml:msub><mml:mover accent="true"><mml:mi mathvariant="italic">θ</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mi mathvariant="normal">v</mml:mi></mml:msub></mml:mrow><mml:mrow><mml:mo>∂</mml:mo><mml:mi>z</mml:mi></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>+</mml:mo><mml:msub><mml:mi>K</mml:mi><mml:mi>e</mml:mi></mml:msub><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:msup><mml:mo>∂</mml:mo><mml:mn mathvariant="normal">2</mml:mn></mml:msup><mml:mi>e</mml:mi></mml:mrow><mml:mrow><mml:mo>∂</mml:mo><mml:msubsup><mml:mi>x</mml:mi><mml:mi>j</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msubsup></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>-</mml:mo><mml:mi mathvariant="italic">ϵ</mml:mi><mml:mo>.</mml:mo></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
            Here, <inline-formula><mml:math id="M214" display="inline"><mml:mrow><mml:msub><mml:mi>K</mml:mi><mml:mi>e</mml:mi></mml:msub><mml:mo>=</mml:mo><mml:mstyle displaystyle="false"><mml:mfrac style="text"><mml:mrow><mml:msub><mml:mi>K</mml:mi><mml:mi mathvariant="normal">m</mml:mi></mml:msub></mml:mrow><mml:mrow><mml:msub><mml:mi mathvariant="italic">σ</mml:mi><mml:mi>e</mml:mi></mml:msub></mml:mrow></mml:mfrac></mml:mstyle></mml:mrow></mml:math></inline-formula> is the diffusivity of <inline-formula><mml:math id="M215" display="inline"><mml:mi>e</mml:mi></mml:math></inline-formula>, with the model constant <inline-formula><mml:math id="M216" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">σ</mml:mi><mml:mi>e</mml:mi></mml:msub><mml:mo>=</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:math></inline-formula> as default value, and <inline-formula><mml:math id="M217" display="inline"><mml:mi mathvariant="italic">ϵ</mml:mi></mml:math></inline-formula> is calculated as
              <disp-formula id="Ch1.E22" content-type="numbered"><label>22</label><mml:math id="M218" display="block"><mml:mrow><mml:mi mathvariant="italic">ϵ</mml:mi><mml:mo>=</mml:mo><mml:msubsup><mml:mi>c</mml:mi><mml:mn mathvariant="normal">0</mml:mn><mml:mn mathvariant="normal">3</mml:mn></mml:msubsup><mml:mi>e</mml:mi><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:msqrt><mml:mi>e</mml:mi></mml:msqrt><mml:mi>l</mml:mi></mml:mfrac></mml:mstyle><mml:mo>.</mml:mo></mml:mrow></mml:math></disp-formula>
            The mixing length <inline-formula><mml:math id="M219" display="inline"><mml:mi>l</mml:mi></mml:math></inline-formula> is calculated using the mixing length after <xref ref-type="bibr" rid="bib1.bibx9" id="text.28"/> <inline-formula><mml:math id="M220" display="inline"><mml:mrow><mml:msub><mml:mi>l</mml:mi><mml:mi mathvariant="normal">B</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> and the similarity function of momentum <inline-formula><mml:math id="M221" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="normal">Φ</mml:mi><mml:mi mathvariant="normal">m</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> for stable conditions in the formulation of Businger–Dyer <xref ref-type="bibr" rid="bib1.bibx87" id="paren.29"><named-content content-type="pre">see, e.g.,</named-content></xref>:
              <disp-formula id="Ch1.E23" content-type="numbered"><label>23</label><mml:math id="M222" display="block"><mml:mrow><mml:mi>l</mml:mi><mml:mo>=</mml:mo><mml:mfenced close="" open="{"><mml:mtable class="array" columnalign="left left left"><mml:mtr><mml:mtd><mml:mrow><mml:mo>min⁡</mml:mo><mml:mfenced open="(" close=")"><mml:mrow><mml:mstyle displaystyle="false"><mml:mstyle displaystyle="false"><mml:mfrac style="text"><mml:mrow><mml:msub><mml:mi>l</mml:mi><mml:mi mathvariant="normal">B</mml:mi></mml:msub></mml:mrow><mml:mrow><mml:msub><mml:mi mathvariant="normal">Φ</mml:mi><mml:mi mathvariant="normal">m</mml:mi></mml:msub></mml:mrow></mml:mfrac></mml:mstyle></mml:mstyle><mml:mo>,</mml:mo><mml:msub><mml:mi>l</mml:mi><mml:mi mathvariant="normal">wall</mml:mi></mml:msub></mml:mrow></mml:mfenced></mml:mrow></mml:mtd><mml:mtd><mml:mtext>for</mml:mtext></mml:mtd><mml:mtd><mml:mrow><mml:mstyle displaystyle="false"><mml:mstyle displaystyle="false"><mml:mfrac style="text"><mml:mi>z</mml:mi><mml:mi>L</mml:mi></mml:mfrac></mml:mstyle></mml:mstyle><mml:mo>≥</mml:mo><mml:mn mathvariant="normal">0</mml:mn><mml:mspace linebreak="nobreak" width="0.125em"/><mml:mo>,</mml:mo></mml:mrow></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mrow><mml:mo>min⁡</mml:mo><mml:mfenced open="(" close=")"><mml:mrow><mml:msub><mml:mi>l</mml:mi><mml:mi mathvariant="normal">B</mml:mi></mml:msub><mml:mo>,</mml:mo><mml:msub><mml:mi>l</mml:mi><mml:mi mathvariant="normal">wall</mml:mi></mml:msub></mml:mrow></mml:mfenced></mml:mrow></mml:mtd><mml:mtd><mml:mtext>for</mml:mtext></mml:mtd><mml:mtd><mml:mrow><mml:mstyle displaystyle="false"><mml:mstyle displaystyle="false"><mml:mfrac style="text"><mml:mi>z</mml:mi><mml:mi>L</mml:mi></mml:mfrac></mml:mstyle></mml:mstyle><mml:mo>&lt;</mml:mo><mml:mn mathvariant="normal">0</mml:mn><mml:mspace linebreak="nobreak" width="0.125em"/><mml:mo>,</mml:mo></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:mfenced></mml:mrow></mml:math></disp-formula>
            with

                  <disp-formula specific-use="gather" content-type="numbered"><mml:math id="M223" display="block"><mml:mtable displaystyle="true"><mml:mlabeledtr id="Ch1.E24"><mml:mtd><mml:mtext>24</mml:mtext></mml:mtd><mml:mtd><mml:mrow><mml:mstyle class="stylechange" displaystyle="true"/><mml:msub><mml:mi>l</mml:mi><mml:mi mathvariant="normal">B</mml:mi></mml:msub><mml:mo>=</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mi mathvariant="italic">κ</mml:mi><mml:mi>z</mml:mi></mml:mrow><mml:mrow><mml:mn mathvariant="normal">1</mml:mn><mml:mo>+</mml:mo><mml:mstyle displaystyle="false"><mml:mfrac style="text"><mml:mrow><mml:mi mathvariant="italic">κ</mml:mi><mml:mi>z</mml:mi></mml:mrow><mml:mrow><mml:mn mathvariant="normal">0.00027</mml:mn><mml:msup><mml:mfenced close=")" open="("><mml:mrow><mml:msubsup><mml:mi>u</mml:mi><mml:mrow><mml:mi mathvariant="normal">g</mml:mi><mml:mo>,</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow><mml:mn mathvariant="normal">2</mml:mn></mml:msubsup><mml:mo>+</mml:mo><mml:msubsup><mml:mi>u</mml:mi><mml:mrow><mml:mi mathvariant="normal">g</mml:mi><mml:mo>,</mml:mo><mml:mn mathvariant="normal">2</mml:mn></mml:mrow><mml:mn mathvariant="normal">2</mml:mn></mml:msubsup></mml:mrow></mml:mfenced><mml:mn mathvariant="normal">0.5</mml:mn></mml:msup><mml:mi>f</mml:mi></mml:mrow></mml:mfrac></mml:mstyle></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>,</mml:mo><mml:mspace width="0.125em" linebreak="nobreak"/><mml:mtext>and</mml:mtext></mml:mrow></mml:mtd></mml:mlabeledtr><mml:mlabeledtr id="Ch1.E25"><mml:mtd><mml:mtext>25</mml:mtext></mml:mtd><mml:mtd><mml:mrow><mml:mstyle displaystyle="true" class="stylechange"/><mml:msub><mml:mi mathvariant="normal">Φ</mml:mi><mml:mi mathvariant="normal">m</mml:mi></mml:msub><mml:mo>=</mml:mo><mml:mn mathvariant="normal">1</mml:mn><mml:mo>+</mml:mo><mml:mn mathvariant="normal">5</mml:mn><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mi>z</mml:mi><mml:mi>L</mml:mi></mml:mfrac></mml:mstyle><mml:mo>,</mml:mo></mml:mrow></mml:mtd></mml:mlabeledtr></mml:mtable></mml:math></disp-formula>

              where <inline-formula><mml:math id="M224" display="inline"><mml:mrow><mml:mi mathvariant="italic">κ</mml:mi><mml:mo>=</mml:mo><mml:mn mathvariant="normal">0.4</mml:mn></mml:mrow></mml:math></inline-formula> denotes the von Kármán constant, <inline-formula><mml:math id="M225" display="inline"><mml:mi>L</mml:mi></mml:math></inline-formula> the Obukhov length, and <inline-formula><mml:math id="M226" display="inline"><mml:mi>z</mml:mi></mml:math></inline-formula> the height above the surface. The mixing length is limited by <inline-formula><mml:math id="M227" display="inline"><mml:mrow><mml:msub><mml:mi>l</mml:mi><mml:mi mathvariant="normal">wall</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>, which is the distance to the nearest solid surface.</p>
      <?pagebreak page1341?><p id="d1e6650">Aside from the TKE-<inline-formula><mml:math id="M228" display="inline"><mml:mi>l</mml:mi></mml:math></inline-formula> closure, also a standard TKE-<inline-formula><mml:math id="M229" display="inline"><mml:mi mathvariant="italic">ϵ</mml:mi></mml:math></inline-formula> model is available as a turbulence closure.
When choosing the standard TKE-<inline-formula><mml:math id="M230" display="inline"><mml:mi mathvariant="italic">ϵ</mml:mi></mml:math></inline-formula> model, <inline-formula><mml:math id="M231" display="inline"><mml:mrow><mml:msub><mml:mi>K</mml:mi><mml:mi mathvariant="normal">m</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> is calculated via
              <disp-formula id="Ch1.E26" content-type="numbered"><label>26</label><mml:math id="M232" display="block"><mml:mrow><mml:msub><mml:mi>K</mml:mi><mml:mi mathvariant="normal">m</mml:mi></mml:msub><mml:mo>=</mml:mo><mml:msubsup><mml:mi>c</mml:mi><mml:mn mathvariant="normal">0</mml:mn><mml:mn mathvariant="normal">4</mml:mn></mml:msubsup><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:msup><mml:mi>e</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msup></mml:mrow><mml:mi mathvariant="italic">ϵ</mml:mi></mml:mfrac></mml:mstyle><mml:mo>.</mml:mo></mml:mrow></mml:math></disp-formula>
            The modeled TKE is calculated using Eq. (<xref ref-type="disp-formula" rid="Ch1.E21"/>) and an additional prognostic equation is used to calculate <inline-formula><mml:math id="M233" display="inline"><mml:mi mathvariant="italic">ϵ</mml:mi></mml:math></inline-formula>:
              <disp-formula id="Ch1.E27" content-type="numbered"><label>27</label><mml:math id="M234" display="block"><mml:mtable columnspacing="1em" rowspacing="0.2ex" class="split" displaystyle="true" columnalign="right left"><mml:mtr><mml:mtd><mml:mrow><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo>∂</mml:mo><mml:mi mathvariant="italic">ϵ</mml:mi></mml:mrow><mml:mrow><mml:mo>∂</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>=</mml:mo></mml:mrow></mml:mtd><mml:mtd><mml:mrow><mml:mo>-</mml:mo><mml:msub><mml:mi>u</mml:mi><mml:mi>j</mml:mi></mml:msub><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo>∂</mml:mo><mml:mi mathvariant="italic">ϵ</mml:mi></mml:mrow><mml:mrow><mml:mo>∂</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mi>j</mml:mi></mml:msub></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>+</mml:mo><mml:msub><mml:mi>c</mml:mi><mml:mn mathvariant="normal">1</mml:mn></mml:msub><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mi mathvariant="italic">ϵ</mml:mi><mml:mi>e</mml:mi></mml:mfrac></mml:mstyle><mml:msub><mml:mi>K</mml:mi><mml:mi mathvariant="normal">m</mml:mi></mml:msub><mml:mfenced open="(" close=")"><mml:mrow><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo>∂</mml:mo><mml:msub><mml:mover accent="true"><mml:mi>u</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mi>i</mml:mi></mml:msub></mml:mrow><mml:mrow><mml:mo>∂</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mi>j</mml:mi></mml:msub></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>+</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo>∂</mml:mo><mml:msub><mml:mover accent="true"><mml:mi>u</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mi>j</mml:mi></mml:msub></mml:mrow><mml:mrow><mml:mo>∂</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:mrow></mml:mfrac></mml:mstyle></mml:mrow></mml:mfenced><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo>∂</mml:mo><mml:msub><mml:mover accent="true"><mml:mi>u</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mi>i</mml:mi></mml:msub></mml:mrow><mml:mrow><mml:mo>∂</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mi>j</mml:mi></mml:msub></mml:mrow></mml:mfrac></mml:mstyle></mml:mrow></mml:mtd></mml:mtr><mml:mtr><mml:mtd/><mml:mtd><mml:mrow><mml:mo>-</mml:mo><mml:msub><mml:mi>c</mml:mi><mml:mn mathvariant="normal">3</mml:mn></mml:msub><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mi mathvariant="italic">ϵ</mml:mi><mml:mi>e</mml:mi></mml:mfrac></mml:mstyle><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mi>g</mml:mi><mml:mrow><mml:msub><mml:mi mathvariant="italic">θ</mml:mi><mml:mrow><mml:mi mathvariant="normal">v</mml:mi><mml:mo>,</mml:mo><mml:mi mathvariant="normal">ref</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:mfrac></mml:mstyle><mml:msub><mml:mi>K</mml:mi><mml:mi mathvariant="normal">h</mml:mi></mml:msub><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo>∂</mml:mo><mml:msub><mml:mover accent="true"><mml:mi mathvariant="italic">θ</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mi mathvariant="normal">v</mml:mi></mml:msub></mml:mrow><mml:mrow><mml:mo>∂</mml:mo><mml:mi>z</mml:mi></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>+</mml:mo><mml:msub><mml:mi>K</mml:mi><mml:mi mathvariant="italic">ϵ</mml:mi></mml:msub><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:msup><mml:mo>∂</mml:mo><mml:mn mathvariant="normal">2</mml:mn></mml:msup><mml:mi mathvariant="italic">ϵ</mml:mi></mml:mrow><mml:mrow><mml:mo>∂</mml:mo><mml:msubsup><mml:mi>x</mml:mi><mml:mi>j</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msubsup></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>-</mml:mo><mml:msub><mml:mi>c</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:msup><mml:mi mathvariant="italic">ϵ</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msup></mml:mrow><mml:mi>e</mml:mi></mml:mfrac></mml:mstyle><mml:mo>,</mml:mo></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
            where <inline-formula><mml:math id="M235" display="inline"><mml:mrow><mml:msub><mml:mi>K</mml:mi><mml:mi mathvariant="italic">ϵ</mml:mi></mml:msub><mml:mo>=</mml:mo><mml:mstyle displaystyle="false"><mml:mfrac style="text"><mml:mrow><mml:msub><mml:mi>K</mml:mi><mml:mi mathvariant="normal">m</mml:mi></mml:msub></mml:mrow><mml:mrow><mml:msub><mml:mi mathvariant="italic">σ</mml:mi><mml:mi mathvariant="italic">ϵ</mml:mi></mml:msub></mml:mrow></mml:mfrac></mml:mstyle></mml:mrow></mml:math></inline-formula> with <inline-formula><mml:math id="M236" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">σ</mml:mi><mml:mi mathvariant="italic">ϵ</mml:mi></mml:msub><mml:mo>=</mml:mo><mml:mn mathvariant="normal">1.3</mml:mn></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M237" display="inline"><mml:mrow><mml:msub><mml:mi>c</mml:mi><mml:mn mathvariant="normal">1</mml:mn></mml:msub><mml:mo>=</mml:mo><mml:mn mathvariant="normal">1.44</mml:mn></mml:mrow></mml:math></inline-formula>, <inline-formula><mml:math id="M238" display="inline"><mml:mrow><mml:msub><mml:mi>c</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub><mml:mo>=</mml:mo><mml:mn mathvariant="normal">1.92</mml:mn></mml:mrow></mml:math></inline-formula>, and <inline-formula><mml:math id="M239" display="inline"><mml:mrow><mml:msub><mml:mi>c</mml:mi><mml:mn mathvariant="normal">3</mml:mn></mml:msub><mml:mo>=</mml:mo><mml:mn mathvariant="normal">1.44</mml:mn></mml:mrow></mml:math></inline-formula> being model constants <xref ref-type="bibr" rid="bib1.bibx63 bib1.bibx85" id="paren.30"><named-content content-type="pre">e.g.,</named-content></xref>. As the constants <inline-formula><mml:math id="M240" display="inline"><mml:mrow><mml:msub><mml:mi>c</mml:mi><mml:mn mathvariant="normal">0</mml:mn></mml:msub><mml:mo>-</mml:mo><mml:msub><mml:mi>c</mml:mi><mml:mn mathvariant="normal">3</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula> as well as <inline-formula><mml:math id="M241" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">σ</mml:mi><mml:mi>e</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M242" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">σ</mml:mi><mml:mi mathvariant="italic">ϵ</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> depend on the situation studied, they might need to be adjusted by the user.</p>
</sec>
</sec>
<sec id="Ch1.S2.SS3">
  <label>2.3</label><title>Boundary conditions</title>
<sec id="Ch1.S2.SS3.SSS1">
  <label>2.3.1</label><title>Constant flux layer</title>
      <p id="d1e7110">Following Monin–Obukhov similarity theory (MOST), a constant flux layer assumption is used between the surface and the first computational grid level (<inline-formula><mml:math id="M243" display="inline"><mml:mrow><mml:mi>k</mml:mi><mml:mo>=</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:math></inline-formula>, <inline-formula><mml:math id="M244" display="inline"><mml:mrow><mml:msub><mml:mi>z</mml:mi><mml:mi mathvariant="normal">mo</mml:mi></mml:msub><mml:mo>=</mml:mo><mml:mn mathvariant="normal">0.5</mml:mn><mml:mo>⋅</mml:mo><mml:mi mathvariant="normal">Δ</mml:mi><mml:mi>z</mml:mi></mml:mrow></mml:math></inline-formula>). Using roughness lengths for heat, humidity, and momentum (<inline-formula><mml:math id="M245" display="inline"><mml:mrow><mml:msub><mml:mi>z</mml:mi><mml:mrow><mml:mn mathvariant="normal">0</mml:mn><mml:mo>,</mml:mo><mml:mi mathvariant="normal">h</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula>, <inline-formula><mml:math id="M246" display="inline"><mml:mrow><mml:msub><mml:mi>z</mml:mi><mml:mrow><mml:mn mathvariant="normal">0</mml:mn><mml:mo>,</mml:mo><mml:mi mathvariant="normal">q</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula>, and <inline-formula><mml:math id="M247" display="inline"><mml:mrow><mml:msub><mml:mi>z</mml:mi><mml:mn mathvariant="normal">0</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula>, respectively), MOST then provides surface fluxes of momentum (shear stress) and scalar quantities (heat and moisture flux) as bottom boundary conditions. In PALM, it is assumed that MOST can be applied locally, even though there is no theoretical foundation for this assumption. <xref ref-type="bibr" rid="bib1.bibx47" id="text.31"/>, e.g., pointed out that this leads to a systematical overprediction of the mean shear stress. However, this local method has the advantage that surface heterogeneities can be prescribed at the surface, and therefore it has become standard in most contemporary LES codes.</p>
      <p id="d1e7193">The surface layer vertical profile of the horizontal wind velocity <inline-formula><mml:math id="M248" display="inline"><mml:mrow><mml:msub><mml:mi>u</mml:mi><mml:mi mathvariant="normal">h</mml:mi></mml:msub><mml:mo>=</mml:mo><mml:mo>(</mml:mo><mml:msup><mml:mover accent="true"><mml:mi>u</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mn mathvariant="normal">2</mml:mn></mml:msup><mml:mo>+</mml:mo><mml:msup><mml:mover accent="true"><mml:mi>v</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mn mathvariant="normal">2</mml:mn></mml:msup><mml:msup><mml:mo>)</mml:mo><mml:mfrac><mml:mn mathvariant="normal">1</mml:mn><mml:mn mathvariant="normal">2</mml:mn></mml:mfrac></mml:msup></mml:mrow></mml:math></inline-formula> is predicted by MOST through
              <disp-formula id="Ch1.E28" content-type="numbered"><label>28</label><mml:math id="M249" display="block"><mml:mrow><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo>∂</mml:mo><mml:msub><mml:mi>u</mml:mi><mml:mi mathvariant="normal">h</mml:mi></mml:msub></mml:mrow><mml:mrow><mml:mo>∂</mml:mo><mml:mi>z</mml:mi></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>=</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:msub><mml:mi>u</mml:mi><mml:mo>∗</mml:mo></mml:msub></mml:mrow><mml:mrow><mml:mi mathvariant="italic">κ</mml:mi><mml:mi>z</mml:mi></mml:mrow></mml:mfrac></mml:mstyle><mml:msub><mml:mi mathvariant="normal">Φ</mml:mi><mml:mi mathvariant="normal">m</mml:mi></mml:msub><mml:mfenced open="(" close=")"><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mi>z</mml:mi><mml:mi>L</mml:mi></mml:mfrac></mml:mstyle></mml:mfenced><mml:mspace width="0.125em" linebreak="nobreak"/><mml:mo>,</mml:mo></mml:mrow></mml:math></disp-formula>
            where <inline-formula><mml:math id="M250" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="normal">Φ</mml:mi><mml:mi mathvariant="normal">m</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> is the similarity function for momentum in the
formulation of Businger–Dyer <xref ref-type="bibr" rid="bib1.bibx87" id="paren.32"><named-content content-type="pre">see, e.g.,</named-content></xref>:
              <disp-formula id="Ch1.E29" content-type="numbered"><label>29</label><mml:math id="M251" display="block"><mml:mrow><mml:msub><mml:mi mathvariant="normal">Φ</mml:mi><mml:mi mathvariant="normal">m</mml:mi></mml:msub><mml:mo>=</mml:mo><mml:mfenced open="{" close=""><mml:mtable class="array" columnalign="left left left"><mml:mtr><mml:mtd><mml:mrow><mml:mn mathvariant="normal">1</mml:mn><mml:mo>+</mml:mo><mml:mn mathvariant="normal">5</mml:mn><mml:mstyle displaystyle="false"><mml:mstyle displaystyle="false"><mml:mfrac style="text"><mml:mi>z</mml:mi><mml:mi>L</mml:mi></mml:mfrac></mml:mstyle></mml:mstyle></mml:mrow></mml:mtd><mml:mtd><mml:mtext>for</mml:mtext></mml:mtd><mml:mtd><mml:mrow><mml:mstyle displaystyle="false"><mml:mstyle displaystyle="false"><mml:mfrac style="text"><mml:mi>z</mml:mi><mml:mi>L</mml:mi></mml:mfrac></mml:mstyle></mml:mstyle><mml:mo>≥</mml:mo><mml:mn mathvariant="normal">0</mml:mn><mml:mo>,</mml:mo></mml:mrow></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mrow><mml:msup><mml:mfenced close=")" open="("><mml:mrow><mml:mn mathvariant="normal">1</mml:mn><mml:mo>-</mml:mo><mml:mn mathvariant="normal">16</mml:mn><mml:mstyle displaystyle="false"><mml:mstyle displaystyle="false"><mml:mfrac style="text"><mml:mi>z</mml:mi><mml:mi>L</mml:mi></mml:mfrac></mml:mstyle></mml:mstyle></mml:mrow></mml:mfenced><mml:mrow><mml:mo>-</mml:mo><mml:mstyle scriptlevel="+1"><mml:mfrac><mml:mn mathvariant="normal">1</mml:mn><mml:mn mathvariant="normal">4</mml:mn></mml:mfrac></mml:mstyle></mml:mrow></mml:msup></mml:mrow></mml:mtd><mml:mtd><mml:mtext>for</mml:mtext></mml:mtd><mml:mtd><mml:mrow><mml:mstyle displaystyle="false"><mml:mstyle displaystyle="false"><mml:mfrac style="text"><mml:mi>z</mml:mi><mml:mi>L</mml:mi></mml:mfrac></mml:mstyle></mml:mstyle><mml:mo>&lt;</mml:mo><mml:mn mathvariant="normal">0</mml:mn><mml:mo>.</mml:mo></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:mfenced></mml:mrow></mml:math></disp-formula>
            The scaling parameters <inline-formula><mml:math id="M252" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">θ</mml:mi><mml:mo>∗</mml:mo></mml:msub></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M253" display="inline"><mml:mrow><mml:msub><mml:mi>q</mml:mi><mml:mo>∗</mml:mo></mml:msub></mml:mrow></mml:math></inline-formula> are defined by MOST
as
              <disp-formula id="Ch1.E30" content-type="numbered"><label>30</label><mml:math id="M254" display="block"><mml:mtable class="split" columnspacing="1em" rowspacing="0.2ex" displaystyle="true" columnalign="right left"><mml:mtr><mml:mtd/><mml:mtd><mml:mrow><mml:msub><mml:mi mathvariant="italic">θ</mml:mi><mml:mo>∗</mml:mo></mml:msub><mml:mo>=</mml:mo><mml:mo>-</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:msub><mml:mover accent="true"><mml:mrow><mml:msup><mml:mi>w</mml:mi><mml:mrow><mml:mo>′</mml:mo><mml:mo>′</mml:mo></mml:mrow></mml:msup><mml:msup><mml:mi mathvariant="italic">θ</mml:mi><mml:mrow><mml:mo>′</mml:mo><mml:mo>′</mml:mo></mml:mrow></mml:msup></mml:mrow><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mn mathvariant="normal">0</mml:mn></mml:msub></mml:mrow><mml:mrow><mml:msub><mml:mi>u</mml:mi><mml:mo>∗</mml:mo></mml:msub></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>,</mml:mo></mml:mrow></mml:mtd></mml:mtr><mml:mtr><mml:mtd/><mml:mtd><mml:mrow><mml:msub><mml:mi>q</mml:mi><mml:mo>∗</mml:mo></mml:msub><mml:mo>=</mml:mo><mml:mo>-</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:msub><mml:mover accent="true"><mml:mrow><mml:msup><mml:mi>w</mml:mi><mml:mrow><mml:mo>′</mml:mo><mml:mo>′</mml:mo></mml:mrow></mml:msup><mml:msubsup><mml:mi>q</mml:mi><mml:mi mathvariant="normal">v</mml:mi><mml:mrow><mml:mo>′</mml:mo><mml:mo>′</mml:mo></mml:mrow></mml:msubsup></mml:mrow><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mn mathvariant="normal">0</mml:mn></mml:msub></mml:mrow><mml:mrow><mml:msub><mml:mi>u</mml:mi><mml:mo>∗</mml:mo></mml:msub></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>,</mml:mo></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
            with the friction velocity <inline-formula><mml:math id="M255" display="inline"><mml:mrow><mml:msub><mml:mi>u</mml:mi><mml:mo>∗</mml:mo></mml:msub></mml:mrow></mml:math></inline-formula> (defined through the square root of the surface shear stress) as
              <disp-formula id="Ch1.E31" content-type="numbered"><label>31</label><mml:math id="M256" display="block"><mml:mrow><mml:msub><mml:mi>u</mml:mi><mml:mo>∗</mml:mo></mml:msub><mml:mo>=</mml:mo><mml:msup><mml:mfenced open="[" close="]"><mml:mrow><mml:msup><mml:mfenced close=")" open="("><mml:mrow><mml:msub><mml:mover accent="true"><mml:mrow><mml:msup><mml:mi>u</mml:mi><mml:mrow><mml:mo>′</mml:mo><mml:mo>′</mml:mo></mml:mrow></mml:msup><mml:msup><mml:mi>w</mml:mi><mml:mrow><mml:mo>′</mml:mo><mml:mo>′</mml:mo></mml:mrow></mml:msup></mml:mrow><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mn mathvariant="normal">0</mml:mn></mml:msub></mml:mrow></mml:mfenced><mml:mn mathvariant="normal">2</mml:mn></mml:msup><mml:mo>+</mml:mo><mml:msup><mml:mfenced open="(" close=")"><mml:mrow><mml:msub><mml:mover accent="true"><mml:mrow><mml:msup><mml:mi>v</mml:mi><mml:mrow><mml:mo>′</mml:mo><mml:mo>′</mml:mo></mml:mrow></mml:msup><mml:msup><mml:mi>w</mml:mi><mml:mrow><mml:mo>′</mml:mo><mml:mo>′</mml:mo></mml:mrow></mml:msup></mml:mrow><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mn mathvariant="normal">0</mml:mn></mml:msub></mml:mrow></mml:mfenced><mml:mn mathvariant="normal">2</mml:mn></mml:msup></mml:mrow></mml:mfenced><mml:mstyle scriptlevel="+1"><mml:mfrac><mml:mn mathvariant="normal">1</mml:mn><mml:mn mathvariant="normal">4</mml:mn></mml:mfrac></mml:mstyle></mml:msup><mml:mo>.</mml:mo></mml:mrow></mml:math></disp-formula>
            In PALM, <inline-formula><mml:math id="M257" display="inline"><mml:mrow><mml:msub><mml:mi>u</mml:mi><mml:mo>∗</mml:mo></mml:msub></mml:mrow></mml:math></inline-formula> is calculated from <inline-formula><mml:math id="M258" display="inline"><mml:mrow><mml:msub><mml:mi>u</mml:mi><mml:mi mathvariant="normal">h</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> at <inline-formula><mml:math id="M259" display="inline"><mml:mrow><mml:msub><mml:mi>z</mml:mi><mml:mtext>mo</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula>
by vertical integration of Eq. (<xref ref-type="disp-formula" rid="Ch1.E28"/>) over <inline-formula><mml:math id="M260" display="inline"><mml:mi>z</mml:mi></mml:math></inline-formula> from
<inline-formula><mml:math id="M261" display="inline"><mml:mrow><mml:msub><mml:mi>z</mml:mi><mml:mn mathvariant="normal">0</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula> to <inline-formula><mml:math id="M262" display="inline"><mml:mrow><mml:msub><mml:mi>z</mml:mi><mml:mtext>mo</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula>.</p>
      <p id="d1e7682">From Eqs. (<xref ref-type="disp-formula" rid="Ch1.E28"/>), (<xref ref-type="disp-formula" rid="Ch1.E31"/>), and a geometric decomposition of both the wind vector and <inline-formula><mml:math id="M263" display="inline"><mml:mrow><mml:msub><mml:mi>u</mml:mi><mml:mo>*</mml:mo></mml:msub></mml:mrow></mml:math></inline-formula>, it is possible
to derive a formulation for the horizontal wind components, viz.
              <disp-formula id="Ch1.E32" content-type="numbered"><label>32</label><mml:math id="M264" display="block"><mml:mrow><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo>∂</mml:mo><mml:mover accent="true"><mml:mi>u</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover></mml:mrow><mml:mrow><mml:mo>∂</mml:mo><mml:mi>z</mml:mi></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>=</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo>-</mml:mo><mml:msub><mml:mover accent="true"><mml:mrow><mml:msup><mml:mi>u</mml:mi><mml:mrow><mml:mo>′</mml:mo><mml:mo>′</mml:mo></mml:mrow></mml:msup><mml:msup><mml:mi>w</mml:mi><mml:mrow><mml:mo>′</mml:mo><mml:mo>′</mml:mo></mml:mrow></mml:msup></mml:mrow><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mn mathvariant="normal">0</mml:mn></mml:msub></mml:mrow><mml:mrow><mml:msub><mml:mi>u</mml:mi><mml:mo>∗</mml:mo></mml:msub><mml:mi mathvariant="italic">κ</mml:mi><mml:mi>z</mml:mi></mml:mrow></mml:mfrac></mml:mstyle><mml:msub><mml:mi mathvariant="normal">Φ</mml:mi><mml:mi mathvariant="normal">m</mml:mi></mml:msub><mml:mfenced close=")" open="("><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mi>z</mml:mi><mml:mi>L</mml:mi></mml:mfrac></mml:mstyle></mml:mfenced><mml:mspace width="0.25em" linebreak="nobreak"/><mml:mspace linebreak="nobreak" width="0.25em"/><mml:mtext>and</mml:mtext><mml:mspace linebreak="nobreak" width="0.25em"/><mml:mspace width="0.25em" linebreak="nobreak"/><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo>∂</mml:mo><mml:mover accent="true"><mml:mi>v</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover></mml:mrow><mml:mrow><mml:mo>∂</mml:mo><mml:mi>z</mml:mi></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>=</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo>-</mml:mo><mml:msub><mml:mover accent="true"><mml:mrow><mml:msup><mml:mi>v</mml:mi><mml:mrow><mml:mo>′</mml:mo><mml:mo>′</mml:mo></mml:mrow></mml:msup><mml:msup><mml:mi>w</mml:mi><mml:mrow><mml:mo>′</mml:mo><mml:mo>′</mml:mo></mml:mrow></mml:msup></mml:mrow><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mn mathvariant="normal">0</mml:mn></mml:msub></mml:mrow><mml:mrow><mml:msub><mml:mi>u</mml:mi><mml:mo>∗</mml:mo></mml:msub><mml:mi mathvariant="italic">κ</mml:mi><mml:mi>z</mml:mi></mml:mrow></mml:mfrac></mml:mstyle><mml:msub><mml:mi mathvariant="normal">Φ</mml:mi><mml:mi mathvariant="normal">m</mml:mi></mml:msub><mml:mfenced open="(" close=")"><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mi>z</mml:mi><mml:mi>L</mml:mi></mml:mfrac></mml:mstyle></mml:mfenced><mml:mo>.</mml:mo></mml:mrow></mml:math></disp-formula>
            Vertical integration of Eq. (<xref ref-type="disp-formula" rid="Ch1.E32"/>) over <inline-formula><mml:math id="M265" display="inline"><mml:mi>z</mml:mi></mml:math></inline-formula> from <inline-formula><mml:math id="M266" display="inline"><mml:mrow><mml:msub><mml:mi>z</mml:mi><mml:mn mathvariant="normal">0</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula> to
<inline-formula><mml:math id="M267" display="inline"><mml:mrow><mml:msub><mml:mi>z</mml:mi><mml:mtext>mo</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> then yields the surface momentum fluxes
<inline-formula><mml:math id="M268" display="inline"><mml:mrow><mml:msub><mml:mover accent="true"><mml:mrow><mml:msup><mml:mi>u</mml:mi><mml:mrow><mml:mo>′</mml:mo><mml:mo>′</mml:mo></mml:mrow></mml:msup><mml:msup><mml:mi>w</mml:mi><mml:mrow><mml:mo>′</mml:mo><mml:mo>′</mml:mo></mml:mrow></mml:msup></mml:mrow><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mn mathvariant="normal">0</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M269" display="inline"><mml:mrow><mml:msub><mml:mover accent="true"><mml:mrow><mml:msup><mml:mi>v</mml:mi><mml:mrow><mml:mo>′</mml:mo><mml:mo>′</mml:mo></mml:mrow></mml:msup><mml:msup><mml:mi>w</mml:mi><mml:mrow><mml:mo>′</mml:mo><mml:mo>′</mml:mo></mml:mrow></mml:msup></mml:mrow><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mn mathvariant="normal">0</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula>.</p>
      <?pagebreak page1342?><p id="d1e7939">The formulations above all require knowledge of the scaling parameters
<inline-formula><mml:math id="M270" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">θ</mml:mi><mml:mo>∗</mml:mo></mml:msub></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M271" display="inline"><mml:mrow><mml:msub><mml:mi>q</mml:mi><mml:mo>∗</mml:mo></mml:msub></mml:mrow></mml:math></inline-formula>. These are deduced from vertical
integration of
              <disp-formula id="Ch1.E33" content-type="numbered"><label>33</label><mml:math id="M272" display="block"><mml:mrow><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo>∂</mml:mo><mml:mover accent="true"><mml:mi mathvariant="italic">θ</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover></mml:mrow><mml:mrow><mml:mo>∂</mml:mo><mml:mi>z</mml:mi></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>=</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:msub><mml:mi mathvariant="italic">θ</mml:mi><mml:mo>∗</mml:mo></mml:msub></mml:mrow><mml:mrow><mml:mi mathvariant="italic">κ</mml:mi><mml:mi>z</mml:mi></mml:mrow></mml:mfrac></mml:mstyle><mml:msub><mml:mi mathvariant="normal">Φ</mml:mi><mml:mi mathvariant="normal">h</mml:mi></mml:msub><mml:mfenced open="(" close=")"><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mi>z</mml:mi><mml:mi>L</mml:mi></mml:mfrac></mml:mstyle></mml:mfenced><mml:mspace linebreak="nobreak" width="0.25em"/><mml:mspace linebreak="nobreak" width="0.25em"/><mml:mtext>and</mml:mtext><mml:mspace linebreak="nobreak" width="0.25em"/><mml:mspace linebreak="nobreak" width="0.25em"/><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo>∂</mml:mo><mml:msub><mml:mover accent="true"><mml:mi>q</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mi mathvariant="normal">v</mml:mi></mml:msub></mml:mrow><mml:mrow><mml:mo>∂</mml:mo><mml:mi>z</mml:mi></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>=</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:msub><mml:mi>q</mml:mi><mml:mo>∗</mml:mo></mml:msub></mml:mrow><mml:mrow><mml:mi mathvariant="italic">κ</mml:mi><mml:mi>z</mml:mi></mml:mrow></mml:mfrac></mml:mstyle><mml:msub><mml:mi mathvariant="normal">Φ</mml:mi><mml:mi mathvariant="normal">h</mml:mi></mml:msub><mml:mfenced close=")" open="("><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mi>z</mml:mi><mml:mi>L</mml:mi></mml:mfrac></mml:mstyle></mml:mfenced></mml:mrow></mml:math></disp-formula>
            over <inline-formula><mml:math id="M273" display="inline"><mml:mi>z</mml:mi></mml:math></inline-formula> from <inline-formula><mml:math id="M274" display="inline"><mml:mrow><mml:msub><mml:mi>z</mml:mi><mml:mrow><mml:mn mathvariant="normal">0</mml:mn><mml:mo>,</mml:mo><mml:mi mathvariant="normal">h</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> to <inline-formula><mml:math id="M275" display="inline"><mml:mrow><mml:msub><mml:mi>z</mml:mi><mml:mtext>mo</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula>. The similarity
function <inline-formula><mml:math id="M276" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="normal">Φ</mml:mi><mml:mi mathvariant="normal">h</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> is given by
              <disp-formula id="Ch1.E34" content-type="numbered"><label>34</label><mml:math id="M277" display="block"><mml:mrow><mml:msub><mml:mi mathvariant="normal">Φ</mml:mi><mml:mi mathvariant="normal">h</mml:mi></mml:msub><mml:mo>=</mml:mo><mml:mfenced open="{" close=""><mml:mtable class="array" columnalign="left left left"><mml:mtr><mml:mtd><mml:mrow><mml:mn mathvariant="normal">1</mml:mn><mml:mo>+</mml:mo><mml:mn mathvariant="normal">5</mml:mn><mml:mstyle displaystyle="false"><mml:mstyle displaystyle="false"><mml:mfrac style="text"><mml:mi>z</mml:mi><mml:mi>L</mml:mi></mml:mfrac></mml:mstyle></mml:mstyle></mml:mrow></mml:mtd><mml:mtd><mml:mtext>for</mml:mtext></mml:mtd><mml:mtd><mml:mrow><mml:mstyle displaystyle="false"><mml:mstyle displaystyle="false"><mml:mfrac style="text"><mml:mi>z</mml:mi><mml:mi>L</mml:mi></mml:mfrac></mml:mstyle></mml:mstyle><mml:mo>≥</mml:mo><mml:mn mathvariant="normal">0</mml:mn><mml:mo>,</mml:mo></mml:mrow></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mrow><mml:msup><mml:mfenced close=")" open="("><mml:mrow><mml:mn mathvariant="normal">1</mml:mn><mml:mo>-</mml:mo><mml:mn mathvariant="normal">16</mml:mn><mml:mstyle displaystyle="false"><mml:mstyle displaystyle="false"><mml:mfrac style="text"><mml:mi>z</mml:mi><mml:mi>L</mml:mi></mml:mfrac></mml:mstyle></mml:mstyle></mml:mrow></mml:mfenced><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn><mml:mo>/</mml:mo><mml:mn mathvariant="normal">2</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:mtd><mml:mtd><mml:mtext>for</mml:mtext></mml:mtd><mml:mtd><mml:mrow><mml:mstyle displaystyle="false"><mml:mstyle displaystyle="false"><mml:mfrac style="text"><mml:mi>z</mml:mi><mml:mi>L</mml:mi></mml:mfrac></mml:mstyle></mml:mstyle><mml:mo>&lt;</mml:mo><mml:mn mathvariant="normal">0</mml:mn><mml:mo>.</mml:mo></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:mfenced></mml:mrow></mml:math></disp-formula>
            Previously, the implementation of the constant flux layer involved a diagnostic–prognostic equation for <inline-formula><mml:math id="M278" display="inline"><mml:mi>L</mml:mi></mml:math></inline-formula>, based on data from the previous time step. Even though it was found that this method introduces only negligible errors, we decided to revise this procedure and calculate <inline-formula><mml:math id="M279" display="inline"><mml:mi>L</mml:mi></mml:math></inline-formula> based on using a Newton iteration method instead. By doing so, we can achieve a correct value of <inline-formula><mml:math id="M280" display="inline"><mml:mi>L</mml:mi></mml:math></inline-formula> which can be important when the model is coupled to a surface scheme. We also found that this does not increase the computational costs to a significant amount (usually less than 1 %). Starting from PALM 6.0 (revision 3668), Newton iteration is the only available method. The Newton iteration method involves the calculation of a bulk Richardson number <inline-formula><mml:math id="M281" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">Ri</mml:mi><mml:mi mathvariant="normal">b</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>. Depending on whether fluxes are prescribed or Dirichlet boundary conditions are used for temperature and humidity, <inline-formula><mml:math id="M282" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">Ri</mml:mi><mml:mi mathvariant="normal">b</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> is related to <inline-formula><mml:math id="M283" display="inline"><mml:mi>L</mml:mi></mml:math></inline-formula> via
              <disp-formula id="Ch1.E35" content-type="numbered"><label>35</label><mml:math id="M284" display="block"><mml:mrow><mml:msub><mml:mi mathvariant="italic">Ri</mml:mi><mml:mi mathvariant="normal">b</mml:mi></mml:msub><mml:mo>=</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:msub><mml:mi>z</mml:mi><mml:mi mathvariant="normal">mo</mml:mi></mml:msub></mml:mrow><mml:mi>L</mml:mi></mml:mfrac></mml:mstyle><mml:mo>⋅</mml:mo><mml:mfenced open="{" close=""><mml:mtable class="array" columnalign="left left"><mml:mtr><mml:mtd><mml:mstyle displaystyle="false"><mml:mstyle displaystyle="false"><mml:mfrac style="text"><mml:mrow><mml:msub><mml:mi mathvariant="italic">φ</mml:mi><mml:mi mathvariant="normal">h</mml:mi></mml:msub></mml:mrow><mml:mrow><mml:msubsup><mml:mi mathvariant="italic">φ</mml:mi><mml:mi mathvariant="normal">m</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msubsup></mml:mrow></mml:mfrac></mml:mstyle></mml:mstyle></mml:mtd><mml:mtd><mml:mtext>for Dirichlet conditions,</mml:mtext></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mstyle displaystyle="false"><mml:mstyle displaystyle="false"><mml:mfrac style="text"><mml:mn mathvariant="normal">1</mml:mn><mml:mrow><mml:msubsup><mml:mi mathvariant="italic">φ</mml:mi><mml:mi mathvariant="normal">m</mml:mi><mml:mn mathvariant="normal">3</mml:mn></mml:msubsup></mml:mrow></mml:mfrac></mml:mstyle></mml:mstyle></mml:mtd><mml:mtd><mml:mtext>for prescribed fluxes,</mml:mtext></mml:mtd></mml:mtr></mml:mtable></mml:mfenced></mml:mrow></mml:math></disp-formula>
            where
              <disp-formula id="Ch1.E36" content-type="numbered"><label>36</label><mml:math id="M285" display="block"><mml:mrow><mml:msub><mml:mi mathvariant="italic">φ</mml:mi><mml:mi mathvariant="normal">h</mml:mi></mml:msub><mml:mo>=</mml:mo><mml:mi>log⁡</mml:mi><mml:mfenced open="(" close=")"><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:msub><mml:mi>z</mml:mi><mml:mi mathvariant="normal">mo</mml:mi></mml:msub></mml:mrow><mml:mrow><mml:msub><mml:mi>z</mml:mi><mml:mrow><mml:mn mathvariant="normal">0</mml:mn><mml:mo>,</mml:mo><mml:mi mathvariant="normal">h</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:mfrac></mml:mstyle></mml:mfenced><mml:mo>-</mml:mo><mml:msub><mml:mi mathvariant="normal">Ψ</mml:mi><mml:mi mathvariant="normal">h</mml:mi></mml:msub><mml:mfenced open="(" close=")"><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:msub><mml:mi>z</mml:mi><mml:mi mathvariant="normal">mo</mml:mi></mml:msub></mml:mrow><mml:mi>L</mml:mi></mml:mfrac></mml:mstyle></mml:mfenced><mml:mo>+</mml:mo><mml:msub><mml:mi mathvariant="normal">Ψ</mml:mi><mml:mi mathvariant="normal">h</mml:mi></mml:msub><mml:mfenced close=")" open="("><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:msub><mml:mi>z</mml:mi><mml:mrow><mml:mn mathvariant="normal">0</mml:mn><mml:mo>,</mml:mo><mml:mi mathvariant="normal">h</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mi>L</mml:mi></mml:mfrac></mml:mstyle></mml:mfenced><mml:mspace linebreak="nobreak" width="0.125em"/></mml:mrow></mml:math></disp-formula>
            and
              <disp-formula id="Ch1.E37" content-type="numbered"><label>37</label><mml:math id="M286" display="block"><mml:mrow><mml:msub><mml:mi mathvariant="italic">φ</mml:mi><mml:mi mathvariant="normal">m</mml:mi></mml:msub><mml:mo>=</mml:mo><mml:mi>log⁡</mml:mi><mml:mfenced close=")" open="("><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:msub><mml:mi>z</mml:mi><mml:mi mathvariant="normal">mo</mml:mi></mml:msub></mml:mrow><mml:mrow><mml:msub><mml:mi>z</mml:mi><mml:mn mathvariant="normal">0</mml:mn></mml:msub></mml:mrow></mml:mfrac></mml:mstyle></mml:mfenced><mml:mo>-</mml:mo><mml:msub><mml:mi mathvariant="normal">Ψ</mml:mi><mml:mi mathvariant="normal">m</mml:mi></mml:msub><mml:mfenced open="(" close=")"><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:msub><mml:mi>z</mml:mi><mml:mi mathvariant="normal">mo</mml:mi></mml:msub></mml:mrow><mml:mi>L</mml:mi></mml:mfrac></mml:mstyle></mml:mfenced><mml:mo>+</mml:mo><mml:msub><mml:mi mathvariant="normal">Ψ</mml:mi><mml:mi mathvariant="normal">m</mml:mi></mml:msub><mml:mfenced close=")" open="("><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:msub><mml:mi>z</mml:mi><mml:mrow><mml:mn mathvariant="normal">0</mml:mn><mml:mo>,</mml:mo><mml:mi mathvariant="normal">h</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mi>L</mml:mi></mml:mfrac></mml:mstyle></mml:mfenced><mml:mspace linebreak="nobreak" width="0.125em"/></mml:mrow></mml:math></disp-formula>
            are the integrated universal profile stability functions of <inline-formula><mml:math id="M287" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="normal">Ψ</mml:mi><mml:mi mathvariant="normal">m</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M288" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="normal">Ψ</mml:mi><mml:mi mathvariant="normal">h</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> <xref ref-type="bibr" rid="bib1.bibx88 bib1.bibx44" id="paren.33"><named-content content-type="pre">see</named-content></xref>, so that a (bulk) Richardson number can be defined:
              <disp-formula id="Ch1.E38" content-type="numbered"><label>38</label><mml:math id="M289" display="block"><mml:mrow><mml:msub><mml:mi mathvariant="italic">Ri</mml:mi><mml:mi mathvariant="normal">b</mml:mi></mml:msub><mml:mo>=</mml:mo><mml:mfenced open="{" close=""><mml:mtable class="array" columnalign="left left"><mml:mtr><mml:mtd><mml:mstyle displaystyle="false"><mml:mstyle displaystyle="false"><mml:mfrac style="text"><mml:mrow><mml:mi>g</mml:mi><mml:msub><mml:mi>z</mml:mi><mml:mi mathvariant="normal">mo</mml:mi></mml:msub><mml:mfenced open="(" close=")"><mml:mrow><mml:msub><mml:mover accent="true"><mml:mi mathvariant="italic">θ</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mrow><mml:mi mathvariant="normal">v</mml:mi><mml:mo>,</mml:mo><mml:mi mathvariant="normal">mo</mml:mi></mml:mrow></mml:msub><mml:mo>-</mml:mo><mml:msub><mml:mi mathvariant="italic">θ</mml:mi><mml:mrow><mml:mi mathvariant="normal">v</mml:mi><mml:mo>,</mml:mo><mml:mn mathvariant="normal">0</mml:mn></mml:mrow></mml:msub></mml:mrow></mml:mfenced></mml:mrow><mml:mrow><mml:msubsup><mml:mi>u</mml:mi><mml:mi mathvariant="normal">h</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msubsup><mml:msub><mml:mover accent="true"><mml:mi mathvariant="italic">θ</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mi mathvariant="normal">v</mml:mi></mml:msub></mml:mrow></mml:mfrac></mml:mstyle></mml:mstyle></mml:mtd><mml:mtd><mml:mtext>for Dirichlet conditions,</mml:mtext><?xmltex \vspace{10px}?></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mrow><mml:mo>-</mml:mo><mml:mstyle displaystyle="false"><mml:mstyle displaystyle="false"><mml:mfrac style="text"><mml:mrow><mml:mi>g</mml:mi><mml:msub><mml:mi>z</mml:mi><mml:mi mathvariant="normal">mo</mml:mi></mml:msub><mml:msub><mml:mover accent="true"><mml:mrow><mml:msup><mml:mi>w</mml:mi><mml:mrow><mml:mo>′</mml:mo><mml:mo>′</mml:mo></mml:mrow></mml:msup><mml:msubsup><mml:mi mathvariant="italic">θ</mml:mi><mml:mi mathvariant="normal">v</mml:mi><mml:mrow><mml:mo>′</mml:mo><mml:mo>′</mml:mo></mml:mrow></mml:msubsup></mml:mrow><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mn mathvariant="normal">0</mml:mn></mml:msub></mml:mrow><mml:mrow><mml:msup><mml:mi mathvariant="italic">κ</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msup><mml:msubsup><mml:mi>u</mml:mi><mml:mi mathvariant="normal">h</mml:mi><mml:mn mathvariant="normal">3</mml:mn></mml:msubsup><mml:msub><mml:mover accent="true"><mml:mi mathvariant="italic">θ</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mi mathvariant="normal">v</mml:mi></mml:msub></mml:mrow></mml:mfrac></mml:mstyle></mml:mstyle></mml:mrow></mml:mtd><mml:mtd><mml:mtext>for prescribed fluxes.</mml:mtext></mml:mtd></mml:mtr></mml:mtable></mml:mfenced></mml:mrow></mml:math></disp-formula>
            The above equations are solved for <inline-formula><mml:math id="M290" display="inline"><mml:mi>L</mml:mi></mml:math></inline-formula> by finding the root of the function <inline-formula><mml:math id="M291" display="inline"><mml:mrow><mml:msub><mml:mi>f</mml:mi><mml:mi mathvariant="normal">N</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>:
              <disp-formula id="Ch1.E39" content-type="numbered"><label>39</label><mml:math id="M292" display="block"><mml:mrow><mml:msub><mml:mi>f</mml:mi><mml:mi mathvariant="normal">N</mml:mi></mml:msub><mml:mo>=</mml:mo><mml:msub><mml:mi mathvariant="italic">Ri</mml:mi><mml:mi mathvariant="normal">b</mml:mi></mml:msub><mml:mo>-</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:msub><mml:mi>z</mml:mi><mml:mi mathvariant="normal">mo</mml:mi></mml:msub></mml:mrow><mml:mi>L</mml:mi></mml:mfrac></mml:mstyle><mml:mo>⋅</mml:mo><mml:mfenced close="" open="{"><mml:mtable class="array" columnalign="left left"><mml:mtr><mml:mtd><mml:mstyle displaystyle="false"><mml:mstyle displaystyle="false"><mml:mfrac style="text"><mml:mrow><mml:mo>[</mml:mo><mml:msub><mml:mi mathvariant="italic">φ</mml:mi><mml:mi mathvariant="normal">h</mml:mi></mml:msub><mml:mo>]</mml:mo></mml:mrow><mml:mrow><mml:mo>[</mml:mo><mml:msub><mml:mi mathvariant="italic">φ</mml:mi><mml:mi mathvariant="normal">m</mml:mi></mml:msub><mml:msup><mml:mo>]</mml:mo><mml:mn mathvariant="normal">2</mml:mn></mml:msup></mml:mrow></mml:mfrac></mml:mstyle></mml:mstyle></mml:mtd><mml:mtd><mml:mtext>for Dirichlet conditions.</mml:mtext></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mstyle displaystyle="false"><mml:mstyle displaystyle="false"><mml:mfrac style="text"><mml:mrow><mml:mo>[</mml:mo><mml:msub><mml:mi mathvariant="italic">φ</mml:mi><mml:mi mathvariant="normal">h</mml:mi></mml:msub><mml:mo>]</mml:mo></mml:mrow><mml:mrow><mml:mo>[</mml:mo><mml:msub><mml:mi mathvariant="italic">φ</mml:mi><mml:mi mathvariant="normal">m</mml:mi></mml:msub><mml:msup><mml:mo>]</mml:mo><mml:mn mathvariant="normal">3</mml:mn></mml:msup></mml:mrow></mml:mfrac></mml:mstyle></mml:mstyle></mml:mtd><mml:mtd><mml:mtext>for prescribed fluxes.</mml:mtext></mml:mtd></mml:mtr></mml:mtable></mml:mfenced></mml:mrow></mml:math></disp-formula>
            The solution is then given by iteration of
              <disp-formula id="Ch1.E40" content-type="numbered"><label>40</label><mml:math id="M293" display="block"><mml:mrow><mml:msup><mml:mi>L</mml:mi><mml:mrow><mml:mi>n</mml:mi><mml:mo>+</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup><mml:mo>=</mml:mo><mml:msup><mml:mi>L</mml:mi><mml:mi>n</mml:mi></mml:msup><mml:mo>-</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:msub><mml:mi>f</mml:mi><mml:mi mathvariant="normal">N</mml:mi></mml:msub><mml:mo>(</mml:mo><mml:msup><mml:mi>L</mml:mi><mml:mi>n</mml:mi></mml:msup><mml:mo>)</mml:mo></mml:mrow><mml:mrow><mml:msubsup><mml:mi>f</mml:mi><mml:mi mathvariant="normal">N</mml:mi><mml:mo>′</mml:mo></mml:msubsup><mml:mo>(</mml:mo><mml:msup><mml:mi>L</mml:mi><mml:mi>n</mml:mi></mml:msup><mml:mo>)</mml:mo></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>,</mml:mo></mml:mrow></mml:math></disp-formula>
            with iteration step <inline-formula><mml:math id="M294" display="inline"><mml:mi>n</mml:mi></mml:math></inline-formula>, and
              <disp-formula id="Ch1.E41" content-type="numbered"><label>41</label><mml:math id="M295" display="block"><mml:mrow><mml:msubsup><mml:mi>f</mml:mi><mml:mi mathvariant="normal">N</mml:mi><mml:mo>′</mml:mo></mml:msubsup><mml:mo>(</mml:mo><mml:mi>L</mml:mi><mml:mo>)</mml:mo><mml:mo>=</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo>∂</mml:mo><mml:msub><mml:mi>f</mml:mi><mml:mi mathvariant="normal">N</mml:mi></mml:msub></mml:mrow><mml:mrow><mml:mo>∂</mml:mo><mml:mi>L</mml:mi></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>,</mml:mo></mml:mrow></mml:math></disp-formula>
            until <inline-formula><mml:math id="M296" display="inline"><mml:mi>L</mml:mi></mml:math></inline-formula>  meets a convergence criterion.</p>
      <p id="d1e8869">The surface fluxes of sensible and latent heat, as well as the surface shear stress, are then calculated using Eqs. (<xref ref-type="disp-formula" rid="Ch1.E30"/>) and (<xref ref-type="disp-formula" rid="Ch1.E31"/>). Note that for vertically oriented surfaces in combination with an interactive surface model switched on (see Sects. <xref ref-type="sec" rid="Ch1.S3.SS5"/> and <xref ref-type="sec" rid="Ch1.S4.SS5"/>), the surface fluxes are calculated after <xref ref-type="bibr" rid="bib1.bibx61" id="text.34"/> as static stability considerations do not apply for such surface orientations <xref ref-type="bibr" rid="bib1.bibx91" id="paren.35"><named-content content-type="pre">see also</named-content></xref>. Also note that the above formulation can lead to violations of MOST for too-coarse grid spacings in some cases, particularly for setups of stable boundary layers, as the first grid layer might be located in the roughness sublayer of the surface layer. For a discussion of this issue and an improved boundary condition, see <xref ref-type="bibr" rid="bib1.bibx7" id="text.36"/> and <xref ref-type="bibr" rid="bib1.bibx75" id="text.37"/>.</p>
      <p id="d1e8895">In the case of the TKE-<inline-formula><mml:math id="M297" display="inline"><mml:mi mathvariant="italic">ϵ</mml:mi></mml:math></inline-formula> RANS closure, the boundary condition for <inline-formula><mml:math id="M298" display="inline"><mml:mi>e</mml:mi></mml:math></inline-formula>, <inline-formula><mml:math id="M299" display="inline"><mml:mi mathvariant="italic">ϵ</mml:mi></mml:math></inline-formula>, and <inline-formula><mml:math id="M300" display="inline"><mml:mrow><mml:msub><mml:mi>K</mml:mi><mml:mi mathvariant="normal">m</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> are

                  <disp-formula specific-use="align" content-type="numbered"><mml:math id="M301" display="block"><mml:mtable displaystyle="true"><mml:mlabeledtr id="Ch1.E42"><mml:mtd><mml:mtext>42</mml:mtext></mml:mtd><mml:mtd><mml:mstyle displaystyle="true" class="stylechange"/></mml:mtd><mml:mtd><mml:mrow><mml:mstyle displaystyle="true" class="stylechange"/><mml:mi>e</mml:mi><mml:mo>=</mml:mo><mml:mfenced open="(" close=")"><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:msub><mml:mi>u</mml:mi><mml:mo>*</mml:mo></mml:msub></mml:mrow><mml:mrow><mml:msub><mml:mi>c</mml:mi><mml:mn mathvariant="normal">0</mml:mn></mml:msub></mml:mrow></mml:mfrac></mml:mstyle></mml:mfenced><mml:mo>,</mml:mo></mml:mrow></mml:mtd></mml:mlabeledtr><mml:mlabeledtr id="Ch1.E43"><mml:mtd><mml:mtext>43</mml:mtext></mml:mtd><mml:mtd><mml:mstyle displaystyle="true" class="stylechange"/></mml:mtd><mml:mtd><mml:mrow><mml:mstyle displaystyle="true" class="stylechange"/><mml:mi mathvariant="italic">ϵ</mml:mi><mml:mo>=</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:msubsup><mml:mi>u</mml:mi><mml:mo>*</mml:mo><mml:mn mathvariant="normal">3</mml:mn></mml:msubsup></mml:mrow><mml:mrow><mml:mi mathvariant="italic">κ</mml:mi><mml:msub><mml:mi>z</mml:mi><mml:mi mathvariant="normal">mo</mml:mi></mml:msub></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>,</mml:mo></mml:mrow></mml:mtd></mml:mlabeledtr><mml:mlabeledtr id="Ch1.E44"><mml:mtd><mml:mtext>44</mml:mtext></mml:mtd><mml:mtd><mml:mstyle displaystyle="true" class="stylechange"/></mml:mtd><mml:mtd><mml:mrow><mml:mstyle class="stylechange" displaystyle="true"/><mml:msub><mml:mi>K</mml:mi><mml:mi mathvariant="normal">m</mml:mi></mml:msub><mml:mo>=</mml:mo><mml:mi mathvariant="italic">κ</mml:mi><mml:msub><mml:mi>u</mml:mi><mml:mo>*</mml:mo></mml:msub><mml:msub><mml:mi>z</mml:mi><mml:mi mathvariant="normal">mo</mml:mi></mml:msub><mml:msubsup><mml:mi mathvariant="normal">Φ</mml:mi><mml:mi mathvariant="normal">m</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msubsup><mml:mfenced close=")" open="("><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:msub><mml:mi>z</mml:mi><mml:mi mathvariant="normal">mo</mml:mi></mml:msub></mml:mrow><mml:mi>L</mml:mi></mml:mfrac></mml:mstyle></mml:mfenced><mml:mo>.</mml:mo></mml:mrow></mml:mtd></mml:mlabeledtr></mml:mtable></mml:math></disp-formula></p>

<?xmltex \floatpos{t}?><table-wrap id="Ch1.T4"><?xmltex \currentcnt{4}?><label>Table 4</label><caption><p id="d1e9052">List of surface layer symbols.</p></caption><oasis:table frame="topbot"><oasis:tgroup cols="3">
     <oasis:colspec colnum="1" colname="col1" align="left"/>
     <oasis:colspec colnum="2" colname="col2" align="left"/>
     <oasis:colspec colnum="3" colname="col3" align="justify" colwidth="119.501575pt"/>
     <oasis:thead>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1">Symbol</oasis:entry>
         <oasis:entry colname="col2">Dimension</oasis:entry>
         <oasis:entry colname="col3">Description</oasis:entry>
       </oasis:row>
     </oasis:thead>
     <oasis:tbody>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M302" display="inline"><mml:mi>L</mml:mi></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M303" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">m</mml:mi></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">Obukhov length</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M304" display="inline"><mml:mrow><mml:msub><mml:mi>q</mml:mi><mml:mo>∗</mml:mo></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M305" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">kg</mml:mi><mml:mspace width="0.125em" linebreak="nobreak"/><mml:msup><mml:mi mathvariant="normal">kg</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">MOST humidity scale</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M306" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">Ri</mml:mi><mml:mi mathvariant="normal">b</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"/>
         <oasis:entry colname="col3">Bulk Richardson number</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M307" display="inline"><mml:mrow><mml:msub><mml:mi>u</mml:mi><mml:mi mathvariant="normal">h</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M308" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">m</mml:mi><mml:mspace linebreak="nobreak" width="0.125em"/><mml:msup><mml:mi mathvariant="normal">s</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">Absolute value of the horizontal<?xmltex \hack{\hfill\break}?>wind</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M309" display="inline"><mml:mrow><mml:msub><mml:mi>z</mml:mi><mml:mi mathvariant="normal">mo</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M310" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">m</mml:mi></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">Height above the surface where<?xmltex \hack{\hfill\break}?>MOST is applied</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M311" display="inline"><mml:mrow><mml:msub><mml:mi>z</mml:mi><mml:mn mathvariant="normal">0</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M312" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">m</mml:mi></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">Roughness length for momentum</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M313" display="inline"><mml:mrow><mml:msub><mml:mi>z</mml:mi><mml:mrow><mml:mn mathvariant="normal">0</mml:mn><mml:mo>,</mml:mo><mml:mi mathvariant="normal">h</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M314" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">m</mml:mi></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">Roughness length for heat</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M315" display="inline"><mml:mrow><mml:msub><mml:mi>z</mml:mi><mml:mrow><mml:mn mathvariant="normal">0</mml:mn><mml:mo>,</mml:mo><mml:mi mathvariant="normal">q</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M316" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">m</mml:mi></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">Roughness length for moisture</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M317" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">θ</mml:mi><mml:mo>∗</mml:mo></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M318" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">K</mml:mi></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">MOST temperature scale</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M319" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="normal">Φ</mml:mi><mml:mi mathvariant="normal">h</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"/>
         <oasis:entry colname="col3">Similarity function for heat</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M320" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="normal">Φ</mml:mi><mml:mi mathvariant="normal">m</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"/>
         <oasis:entry colname="col3">Similarity function for <?xmltex \hack{\hfill\break}?>momentum</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M321" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="normal">Ψ</mml:mi><mml:mi mathvariant="normal">h</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"/>
         <oasis:entry colname="col3">Integrated similarity function for<?xmltex \hack{\hfill\break}?>heat</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M322" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="normal">Ψ</mml:mi><mml:mi mathvariant="normal">m</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"/>
         <oasis:entry colname="col3">Integrated similarity function for momentum</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M323" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">φ</mml:mi><mml:mi mathvariant="normal">h</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"/>
         <oasis:entry colname="col3">Integrated similarity function<?xmltex \hack{\hfill\break}?>term for heat</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M324" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">φ</mml:mi><mml:mi mathvariant="normal">m</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"/>
         <oasis:entry colname="col3">Integrated similarity function<?xmltex \hack{\hfill\break}?>term for momentum</oasis:entry>
       </oasis:row>
     </oasis:tbody>
   </oasis:tgroup></oasis:table></table-wrap>

</sec>
<sec id="Ch1.S2.SS3.SSS2">
  <label>2.3.2</label><title>Wave-dependent surface roughness</title>
      <p id="d1e9486">As the ocean surface in PALM is assumed to be flat and waves are not explicitly resolved, a Charnock parameterization can be switched on which relates the surface roughness lengths to the friction velocity as described in <xref ref-type="bibr" rid="bib1.bibx8" id="text.38"/>. This accounts for the fact that water surfaces become aerodynamically smooth for low wind speeds. For ocean surfaces, the roughness lengths are thus calculated for each surface grid point as

                  <disp-formula specific-use="gather" content-type="numbered"><mml:math id="M325" display="block"><mml:mtable displaystyle="true"><mml:mlabeledtr id="Ch1.E45"><mml:mtd><mml:mtext>45</mml:mtext></mml:mtd><mml:mtd><mml:mrow><mml:mstyle class="stylechange" displaystyle="true"/><mml:msub><mml:mi>z</mml:mi><mml:mn mathvariant="normal">0</mml:mn></mml:msub><mml:mo>=</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mn mathvariant="normal">0.11</mml:mn><mml:mi mathvariant="italic">ν</mml:mi></mml:mrow><mml:mrow><mml:msub><mml:mi>u</mml:mi><mml:mo>∗</mml:mo></mml:msub></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>+</mml:mo><mml:msub><mml:mi mathvariant="italic">α</mml:mi><mml:mi mathvariant="normal">Ch</mml:mi></mml:msub><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:msubsup><mml:mi>u</mml:mi><mml:mo>∗</mml:mo><mml:mn mathvariant="normal">2</mml:mn></mml:msubsup></mml:mrow><mml:mi>g</mml:mi></mml:mfrac></mml:mstyle><mml:mo>,</mml:mo></mml:mrow></mml:mtd></mml:mlabeledtr><mml:mlabeledtr id="Ch1.E46"><mml:mtd><mml:mtext>46</mml:mtext></mml:mtd><mml:mtd><mml:mrow><mml:mstyle displaystyle="true" class="stylechange"/><mml:msub><mml:mi>z</mml:mi><mml:mrow><mml:mn mathvariant="normal">0</mml:mn><mml:mo>,</mml:mo><mml:mi mathvariant="normal">h</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mn mathvariant="normal">0.4</mml:mn><mml:mi mathvariant="italic">ν</mml:mi></mml:mrow><mml:mrow><mml:msub><mml:mi>u</mml:mi><mml:mo>∗</mml:mo></mml:msub></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>,</mml:mo></mml:mrow></mml:mtd></mml:mlabeledtr><mml:mlabeledtr id="Ch1.E47"><mml:mtd><mml:mtext>47</mml:mtext></mml:mtd><mml:mtd><mml:mrow><mml:mstyle class="stylechange" displaystyle="true"/><mml:msub><mml:mi>z</mml:mi><mml:mrow><mml:mn mathvariant="normal">0</mml:mn><mml:mo>,</mml:mo><mml:mi mathvariant="normal">q</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mn mathvariant="normal">0.62</mml:mn><mml:mi mathvariant="italic">ν</mml:mi></mml:mrow><mml:mrow><mml:msub><mml:mi>u</mml:mi><mml:mo>∗</mml:mo></mml:msub></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>,</mml:mo></mml:mrow></mml:mtd></mml:mlabeledtr></mml:mtable></mml:math></disp-formula>

              with <inline-formula><mml:math id="M326" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">α</mml:mi><mml:mi mathvariant="normal">Ch</mml:mi></mml:msub><mml:mo>=</mml:mo><mml:mn mathvariant="normal">0.0018</mml:mn></mml:mrow></mml:math></inline-formula> being the Charnock constant, and <inline-formula><mml:math id="M327" display="inline"><mml:mrow><mml:mi mathvariant="italic">ν</mml:mi><mml:mo>=</mml:mo><mml:mn mathvariant="normal">1.461</mml:mn><mml:mo>×</mml:mo><mml:msup><mml:mn mathvariant="normal">10</mml:mn><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">5</mml:mn></mml:mrow></mml:msup><mml:mspace linebreak="nobreak" width="0.125em"/><mml:mrow class="unit"><mml:msup><mml:mi mathvariant="normal">m</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msup><mml:mspace width="0.33em" linebreak="nobreak"/><mml:msup><mml:mi mathvariant="normal">s</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:mrow></mml:math></inline-formula> being the kinematic viscosity. Note that this parameterization is designed for large-scale models where waves are a subgrid-scale phenomenon. For fine grid spacings and/or large waves (in amplitude and wavelength), this parameterization can lead to erroneous roughness lengths and should not be switched on without rigorous testing.</p>
</sec>
<sec id="Ch1.S2.SS3.SSS3">
  <label>2.3.3</label><title>Lateral boundary conditions</title>
      <p id="d1e9675">At lateral domain boundaries, various different conditions can be applied, which are listed in Table <xref ref-type="table" rid="Ch1.T9"/>.</p>
      <p id="d1e9680">By default, cyclic boundary conditions apply at all lateral domain boundaries. Choosing an inflow boundary condition at one of the four domain boundaries requires to set an outflow condition at the opposing boundary while keeping the boundaries in perpendicular direction cyclic. An exception<?pagebreak page1343?> is made in the case of model nesting, where inflow/outflow boundary conditions are set dynamically for each individual boundary grid point (see Sect. <xref ref-type="sec" rid="Ch1.S4.SS8"/> and <xref ref-type="sec" rid="Ch1.S4.SS9"/>).</p>
      <p id="d1e9687">The simplest inflow condition is a purely laminar inflow using Dirichlet conditions at either domain boundary. A more sophisticated approach with fully developed turbulence already present at the inflow boundary can be achieved by using the turbulence-recycling method, which is implemented according to <xref ref-type="bibr" rid="bib1.bibx66" id="text.39"/> and <xref ref-type="bibr" rid="bib1.bibx56" id="text.40"/>. The turbulence-recycling method sets a fixed mean inflow condition at one side of the simulation domain and adds a turbulent signal from within the model domain to these mean profiles. This then creates a turbulent inflow <xref ref-type="bibr" rid="bib1.bibx73" id="paren.41"><named-content content-type="pre">see</named-content></xref>. The turbulence-recycling method is currently only available at the left domain boundary, i.e., at <inline-formula><mml:math id="M328" display="inline"><mml:mrow><mml:mi>x</mml:mi><mml:mo>=</mml:mo><mml:mn mathvariant="normal">0</mml:mn></mml:mrow></mml:math></inline-formula>.</p>
      <p id="d1e9713">The downside of the turbulence-recycling method is the requirement of an additional recycling area within the model domain which is purely needed to generate turbulence and cannot be used for data evaluation of the studied phenomenon. To avoid the necessity of including an additional recycling area within the simulation domain, a synthetic turbulence generator can be used instead of the turbulence-recycling method at the inflow boundary <xref ref-type="bibr" rid="bib1.bibx31" id="paren.42"/>. This turbulence generator is based on the method published by <xref ref-type="bibr" rid="bib1.bibx132" id="text.43"/> with the modification of <xref ref-type="bibr" rid="bib1.bibx59" id="text.44"/> for divergence-free inflow. The turbulence-generation method calculates stochastic fluctuations from an arrayed random number. This is realized via given length scales that are added to the mean inflow profiles using a Lund rotation <xref ref-type="bibr" rid="bib1.bibx66" id="paren.45"/> and a given Reynolds stress tensor. In order to apply the synthetic turbulence generator, information on the turbulent length scales for the three wind components in the <inline-formula><mml:math id="M329" display="inline"><mml:mi>x</mml:mi></mml:math></inline-formula>, <inline-formula><mml:math id="M330" display="inline"><mml:mi>y</mml:mi></mml:math></inline-formula>, and <inline-formula><mml:math id="M331" display="inline"><mml:mi>z</mml:mi></mml:math></inline-formula> directions, as well as the Reynolds stress tensor, is required. These information can be either obtained from idealized precursor simulations or from observations <xref ref-type="bibr" rid="bib1.bibx132" id="paren.46"/>. In combination with the offline nesting (see Sect. <xref ref-type="sec" rid="Ch1.S4.SS9"/>), PALM also offers the possibility to compute turbulent length scales and Reynolds stress following the parameterizations described by <xref ref-type="bibr" rid="bib1.bibx93" id="text.47"/>.</p>
      <p id="d1e9759">At the outflow boundary, radiation conditions are used by default for the velocity components as proposed by <xref ref-type="bibr" rid="bib1.bibx86" id="text.48"/>. Velocity components are advected by a transport velocity <inline-formula><mml:math id="M332" display="inline"><mml:mrow><mml:msub><mml:mi>u</mml:mi><mml:mi mathvariant="normal">tr</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> which is calculated from the gradients of the transported velocity components normal to the boundary at the grid points next to the outflow boundary (see also <xref ref-type="bibr" rid="bib1.bibx73" id="altparen.49"/>). The transport velocity is restricted to <inline-formula><mml:math id="M333" display="inline"><mml:mrow><mml:mn mathvariant="normal">0</mml:mn><mml:mo>≤</mml:mo><mml:msub><mml:mi>u</mml:mi><mml:mi mathvariant="normal">tr</mml:mi></mml:msub><mml:mo>≤</mml:mo><mml:mi mathvariant="normal">Δ</mml:mi><mml:mo>/</mml:mo><mml:mi mathvariant="normal">Δ</mml:mi><mml:mi>t</mml:mi></mml:mrow></mml:math></inline-formula>, where <inline-formula><mml:math id="M334" display="inline"><mml:mrow><mml:mi mathvariant="normal">Δ</mml:mi><mml:mi>t</mml:mi></mml:mrow></mml:math></inline-formula> denotes the time step.</p>
      <p id="d1e9814">In cases with weak background wind in a convective boundary layer, it was found that using the radiation condition can lead to instabilities and strong self-intensifying inflow regimes at the outflow boundary <xref ref-type="bibr" rid="bib1.bibx32" id="paren.50"/>. In order to prevent such artificial inflow situations at the outflow boundary, an empirical approach can be used at the outflow boundary, the so-called turbulent outflow condition <xref ref-type="bibr" rid="bib1.bibx32" id="paren.51"/>. Instead of transporting the velocity components via the radiation condition, instantaneous values of <inline-formula><mml:math id="M335" display="inline"><mml:mover accent="true"><mml:mi>u</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover></mml:math></inline-formula>, <inline-formula><mml:math id="M336" display="inline"><mml:mover accent="true"><mml:mi>v</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover></mml:math></inline-formula>, <inline-formula><mml:math id="M337" display="inline"><mml:mover accent="true"><mml:mi>w</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover></mml:math></inline-formula>, <inline-formula><mml:math id="M338" display="inline"><mml:mover accent="true"><mml:mi mathvariant="italic">θ</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover></mml:math></inline-formula>, and <inline-formula><mml:math id="M339" display="inline"><mml:mi>e</mml:mi></mml:math></inline-formula> are taken from a vertical plane situated at a distance <inline-formula><mml:math id="M340" display="inline"><mml:mrow><mml:msub><mml:mi>x</mml:mi><mml:mi mathvariant="normal">d</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> from the outflow boundary which are then mapped to the outflow boundary. By taking the information of the flow field from within the domain, occurring inflow regimes are disturbed and cannot intensify themselves as long as a proper <inline-formula><mml:math id="M341" display="inline"><mml:mrow><mml:msub><mml:mi>x</mml:mi><mml:mi mathvariant="normal">d</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> is chosen which needs to be a fair distance away from the outflow boundary. Note that the turbulent outflow condition can be transformed into the radiation condition, where <inline-formula><mml:math id="M342" display="inline"><mml:mrow><mml:msub><mml:mi>u</mml:mi><mml:mi mathvariant="normal">tr</mml:mi></mml:msub><mml:mo>=</mml:mo><mml:mi mathvariant="normal">Δ</mml:mi><mml:mo>/</mml:mo><mml:mi mathvariant="normal">Δ</mml:mi><mml:mi>t</mml:mi></mml:mrow></mml:math></inline-formula> if <inline-formula><mml:math id="M343" display="inline"><mml:mrow><mml:msub><mml:mi>x</mml:mi><mml:mi mathvariant="normal">d</mml:mi></mml:msub><mml:mo>=</mml:mo><mml:mn mathvariant="normal">0</mml:mn></mml:mrow></mml:math></inline-formula>. As for now, the turbulent outflow condition is only available at the right domain boundary.</p>
</sec>
</sec>
<sec id="Ch1.S2.SS4">
  <label>2.4</label><title>Ocean option</title>
      <p id="d1e9939">PALM's ocean option has been extended to include wave effects to account for the Langmuir circulation, which can be optionally switched on. For this, the momentum equation is modified by including a vortex force and an additional advection by the Stokes drift following the theory by <xref ref-type="bibr" rid="bib1.bibx18" id="text.52"/>, similarly to <xref ref-type="bibr" rid="bib1.bibx78" id="text.53"/> and <xref ref-type="bibr" rid="bib1.bibx107" id="text.54"/>. Furthermore, a simple parameterization of wave-breaking effects has been included. The modified momentum equations for the ocean then reads
            <disp-formula id="Ch1.E48" content-type="numbered"><label>48</label><mml:math id="M344" display="block"><mml:mtable class="split" rowspacing="0.2ex" columnspacing="1em" displaystyle="true" columnalign="right left"><mml:mtr><mml:mtd><mml:mrow><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo>∂</mml:mo><mml:msub><mml:mover accent="true"><mml:mi>u</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mi>i</mml:mi></mml:msub></mml:mrow><mml:mrow><mml:mo>∂</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>=</mml:mo></mml:mrow></mml:mtd><mml:mtd><mml:mrow><mml:mo>-</mml:mo><mml:mo>(</mml:mo><mml:msub><mml:mover accent="true"><mml:mi>u</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mi>j</mml:mi></mml:msub><mml:mo>+</mml:mo><mml:msub><mml:mi>u</mml:mi><mml:mrow><mml:mi mathvariant="normal">s</mml:mi><mml:mo>,</mml:mo><mml:mi>j</mml:mi></mml:mrow></mml:msub><mml:mo>)</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo>∂</mml:mo><mml:msub><mml:mover accent="true"><mml:mi>u</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mi>i</mml:mi></mml:msub></mml:mrow><mml:mrow><mml:mo>∂</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mi>j</mml:mi></mml:msub></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>-</mml:mo><mml:msub><mml:mi mathvariant="italic">ε</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mi>j</mml:mi><mml:mi>k</mml:mi></mml:mrow></mml:msub><mml:msub><mml:mi>f</mml:mi><mml:mi>j</mml:mi></mml:msub><mml:mo>(</mml:mo><mml:msub><mml:mover accent="true"><mml:mi>u</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mi>k</mml:mi></mml:msub><mml:mo>+</mml:mo><mml:msub><mml:mi>u</mml:mi><mml:mrow><mml:mi mathvariant="normal">s</mml:mi><mml:mo>,</mml:mo><mml:mi>k</mml:mi></mml:mrow></mml:msub><mml:mo>)</mml:mo></mml:mrow></mml:mtd></mml:mtr><mml:mtr><mml:mtd/><mml:mtd><mml:mrow><mml:mo>+</mml:mo><mml:msub><mml:mi mathvariant="italic">ε</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mn mathvariant="normal">3</mml:mn><mml:mi>j</mml:mi></mml:mrow></mml:msub><mml:msub><mml:mi>f</mml:mi><mml:mn mathvariant="normal">3</mml:mn></mml:msub><mml:msub><mml:mi>u</mml:mi><mml:mrow><mml:mi mathvariant="normal">g</mml:mi><mml:mo>,</mml:mo><mml:mi>j</mml:mi></mml:mrow></mml:msub><mml:mo>-</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo>∂</mml:mo><mml:msup><mml:mi mathvariant="italic">π</mml:mi><mml:mo>∗</mml:mo></mml:msup></mml:mrow><mml:mrow><mml:mo>∂</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>+</mml:mo><mml:msub><mml:mi mathvariant="italic">ε</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mi>j</mml:mi><mml:mi>k</mml:mi></mml:mrow></mml:msub><mml:msub><mml:mi>u</mml:mi><mml:mrow><mml:mi mathvariant="normal">s</mml:mi><mml:mo>,</mml:mo><mml:mi>j</mml:mi></mml:mrow></mml:msub><mml:msub><mml:mi mathvariant="italic">ω</mml:mi><mml:mi>k</mml:mi></mml:msub></mml:mrow></mml:mtd></mml:mtr><mml:mtr><mml:mtd/><mml:mtd><mml:mrow><mml:mo>-</mml:mo><mml:mi>g</mml:mi><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:msub><mml:mover accent="true"><mml:mi mathvariant="italic">ρ</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mi mathvariant="italic">θ</mml:mi></mml:msub><mml:mo>-</mml:mo><mml:mo>〈</mml:mo><mml:msub><mml:mi mathvariant="italic">ρ</mml:mi><mml:mi mathvariant="italic">θ</mml:mi></mml:msub><mml:mo>〉</mml:mo></mml:mrow><mml:mrow><mml:mo>〈</mml:mo><mml:msub><mml:mi mathvariant="italic">ρ</mml:mi><mml:mi mathvariant="italic">θ</mml:mi></mml:msub><mml:mo>〉</mml:mo></mml:mrow></mml:mfrac></mml:mstyle><mml:msub><mml:mi mathvariant="italic">δ</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mn mathvariant="normal">3</mml:mn></mml:mrow></mml:msub><mml:mo>-</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mo>∂</mml:mo><mml:mrow><mml:mo>∂</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mi>j</mml:mi></mml:msub></mml:mrow></mml:mfrac></mml:mstyle><mml:mfenced open="(" close=")"><mml:mrow><mml:mover accent="true"><mml:mrow><mml:msubsup><mml:mi>u</mml:mi><mml:mi>i</mml:mi><mml:mrow><mml:mo>′</mml:mo><mml:mo>′</mml:mo></mml:mrow></mml:msubsup><mml:msubsup><mml:mi>u</mml:mi><mml:mi>j</mml:mi><mml:mrow><mml:mo>′</mml:mo><mml:mo>′</mml:mo></mml:mrow></mml:msubsup></mml:mrow><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mo>-</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mn mathvariant="normal">2</mml:mn><mml:mn mathvariant="normal">3</mml:mn></mml:mfrac></mml:mstyle><mml:mi>e</mml:mi><mml:msub><mml:mi mathvariant="italic">δ</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mi>j</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:mfenced><mml:mo>+</mml:mo><mml:msub><mml:mi>F</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:mo>,</mml:mo></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
          where <inline-formula><mml:math id="M345" display="inline"><mml:mrow><mml:msub><mml:mi>u</mml:mi><mml:mi mathvariant="normal">s</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> is the Stokes drift velocity, <inline-formula><mml:math id="M346" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">ρ</mml:mi><mml:mi mathvariant="italic">θ</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> the potential density, and <inline-formula><mml:math id="M347" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">ω</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:mo>=</mml:mo><mml:msub><mml:mi mathvariant="italic">ε</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mi>j</mml:mi><mml:mi>k</mml:mi></mml:mrow></mml:msub><mml:mstyle displaystyle="false"><mml:mfrac style="text"><mml:mrow><mml:mo>∂</mml:mo><mml:msub><mml:mi>u</mml:mi><mml:mi>k</mml:mi></mml:msub></mml:mrow><mml:mrow><mml:mo>∂</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mi>j</mml:mi></mml:msub></mml:mrow></mml:mfrac></mml:mstyle></mml:mrow></mml:math></inline-formula> the rotation of the velocity field. <inline-formula><mml:math id="M348" display="inline"><mml:mi>F</mml:mi></mml:math></inline-formula> is a random forcing term that represents the generation of small-scale turbulence by wave breaking. It should be kept in mind that the incompressibility assumption is used in the ocean option. It is assumed that wind stress and wave fields are in the same direction, and that the wave field is steady and monochromatic. The magnitude of the Stokes velocity along the wind stress direction is then given by
            <disp-formula id="Ch1.E49" content-type="numbered"><label>49</label><mml:math id="M349" display="block"><mml:mrow><mml:msub><mml:mi>u</mml:mi><mml:mi mathvariant="normal">s</mml:mi></mml:msub><mml:mo>=</mml:mo><mml:msub><mml:mi>U</mml:mi><mml:mi mathvariant="normal">s</mml:mi></mml:msub><mml:mi>exp⁡</mml:mi><mml:mfenced open="(" close=")"><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mn mathvariant="normal">4</mml:mn><mml:mi mathvariant="italic">π</mml:mi><mml:mi>z</mml:mi></mml:mrow><mml:mrow><mml:msub><mml:mi mathvariant="italic">λ</mml:mi><mml:mi mathvariant="normal">w</mml:mi></mml:msub></mml:mrow></mml:mfrac></mml:mstyle></mml:mfenced><mml:mo>,</mml:mo></mml:mrow></mml:math></disp-formula>
          with <inline-formula><mml:math id="M350" display="inline"><mml:mrow><mml:msub><mml:mi>U</mml:mi><mml:mi mathvariant="normal">s</mml:mi></mml:msub><mml:mo>=</mml:mo><mml:mo>(</mml:mo><mml:mi mathvariant="italic">π</mml:mi><mml:msub><mml:mi>z</mml:mi><mml:mi mathvariant="normal">w</mml:mi></mml:msub><mml:mo>/</mml:mo><mml:mi mathvariant="italic">λ</mml:mi><mml:msup><mml:mo>)</mml:mo><mml:mn mathvariant="normal">2</mml:mn></mml:msup><mml:mo>(</mml:mo><mml:mi>g</mml:mi><mml:msub><mml:mi mathvariant="italic">λ</mml:mi><mml:mi mathvariant="normal">w</mml:mi></mml:msub><mml:mo>/</mml:mo><mml:mn mathvariant="normal">2</mml:mn><mml:mi mathvariant="italic">π</mml:mi><mml:msup><mml:mo>)</mml:mo><mml:mrow><mml:mn mathvariant="normal">1</mml:mn><mml:mo>/</mml:mo><mml:mn mathvariant="normal">2</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula>, where <inline-formula><mml:math id="M351" display="inline"><mml:mrow><mml:msub><mml:mi>z</mml:mi><mml:mi mathvariant="normal">w</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> is the wave height and <inline-formula><mml:math id="M352" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">λ</mml:mi><mml:mi mathvariant="normal">w</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> is the wavelength. The current implementation of wave effects strictly follows <xref ref-type="bibr" rid="bib1.bibx83" id="text.55"/>, in particular the parameterization of wave breaking. Note that <xref ref-type="bibr" rid="bib1.bibx83" id="text.56"/> used an earlier version of PALM, where the programming of the wave effects was completely realized via PALM's user interface.</p>
      <p id="d1e10459">As part of the general code modularization effort, all ocean-related code has been put into one Fortran module, and<?pagebreak page1344?> a separate namelist has been created containing all ocean-related steering parameters.</p>
</sec>
</sec>
<sec id="Ch1.S3">
  <label>3</label><title>Embedded models</title>
      <p id="d1e10471">In this section, we first describe major revisions of the embedded models in the PALM core, namely in the bulk cloud microphysics parameterization (Sect. <xref ref-type="sec" rid="Ch1.S3.SS1"/>) and in the Lagrangian particle model (Sect. <xref ref-type="sec" rid="Ch1.S3.SS3"/>–<xref ref-type="sec" rid="Ch1.S3.SS4"/>). Subsequently, we introduce three new embedded models in PALM 6.0: a fully interactive land surface model (LSM, Sect. <xref ref-type="sec" rid="Ch1.S3.SS5"/>), which can be coupled to two different radiation models (Sect. <xref ref-type="sec" rid="Ch1.S3.SS6"/>), and a parameterization scheme for taking into account the effect of wind turbines (Sect. <xref ref-type="sec" rid="Ch1.S3.SS7"/>).</p>
<sec id="Ch1.S3.SS1">
  <label>3.1</label><title>Bulk cloud microphysics improvements</title>
      <p id="d1e10494">In PALM 4.0, the bulk liquid-phase (i.e., no ice) two-moment microphysics scheme of <xref ref-type="bibr" rid="bib1.bibx104 bib1.bibx105" id="text.57"/> was implemented, which only predicts the rain droplet number concentration (<inline-formula><mml:math id="M353" display="inline"><mml:mrow><mml:msub><mml:mover accent="true"><mml:mi>n</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mi mathvariant="normal">r</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>) and rainwater mixing ratio (<inline-formula><mml:math id="M354" display="inline"><mml:mrow><mml:msub><mml:mover accent="true"><mml:mi>q</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mi mathvariant="normal">r</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>).
This was extended by additional prognostic equations for the cloud droplet number concentration (<inline-formula><mml:math id="M355" display="inline"><mml:mrow><mml:msub><mml:mover accent="true"><mml:mi>n</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mi mathvariant="normal">c</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>) and the cloud water mixing ratio (<inline-formula><mml:math id="M356" display="inline"><mml:mrow><mml:msub><mml:mover accent="true"><mml:mi>q</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mi mathvariant="normal">c</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>) instead of using a fixed value for <inline-formula><mml:math id="M357" display="inline"><mml:mrow><mml:msub><mml:mover accent="true"><mml:mi>n</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mi mathvariant="normal">c</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> and only diagnostically calculated values for <inline-formula><mml:math id="M358" display="inline"><mml:mrow><mml:msub><mml:mover accent="true"><mml:mi>q</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mi mathvariant="normal">c</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>.
The additional prognostic equations are thus given by

                <disp-formula specific-use="align" content-type="numbered"><mml:math id="M359" display="block"><mml:mtable displaystyle="true"><mml:mlabeledtr id="Ch1.E50"><mml:mtd><mml:mtext>50</mml:mtext></mml:mtd><mml:mtd><mml:mstyle class="stylechange" displaystyle="true"/></mml:mtd><mml:mtd><mml:mrow><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo>∂</mml:mo><mml:msub><mml:mover accent="true"><mml:mi>n</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mi mathvariant="normal">c</mml:mi></mml:msub></mml:mrow><mml:mrow><mml:mo>∂</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>=</mml:mo><mml:mo>-</mml:mo><mml:msub><mml:mover accent="true"><mml:mi>u</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mi>j</mml:mi></mml:msub><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo>∂</mml:mo><mml:msub><mml:mover accent="true"><mml:mi>n</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mi mathvariant="normal">c</mml:mi></mml:msub></mml:mrow><mml:mrow><mml:mo>∂</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mi>j</mml:mi></mml:msub></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>-</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mo>∂</mml:mo><mml:mrow><mml:mo>∂</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mi>j</mml:mi></mml:msub></mml:mrow></mml:mfrac></mml:mstyle><mml:mfenced open="(" close=")"><mml:mover accent="true"><mml:mrow><mml:msubsup><mml:mi>u</mml:mi><mml:mi>j</mml:mi><mml:mrow><mml:mo>′</mml:mo><mml:mo>′</mml:mo></mml:mrow></mml:msubsup><mml:msubsup><mml:mi>n</mml:mi><mml:mi mathvariant="normal">c</mml:mi><mml:mrow><mml:mo>′</mml:mo><mml:mo>′</mml:mo></mml:mrow></mml:msubsup></mml:mrow><mml:mo mathvariant="normal">‾</mml:mo></mml:mover></mml:mfenced><mml:mo>+</mml:mo><mml:msub><mml:mi mathvariant="italic">χ</mml:mi><mml:mrow><mml:msub><mml:mi>n</mml:mi><mml:mi mathvariant="normal">c</mml:mi></mml:msub></mml:mrow></mml:msub><mml:mo>,</mml:mo></mml:mrow></mml:mtd></mml:mlabeledtr><mml:mlabeledtr id="Ch1.E51"><mml:mtd><mml:mtext>51</mml:mtext></mml:mtd><mml:mtd><mml:mstyle class="stylechange" displaystyle="true"/></mml:mtd><mml:mtd><mml:mrow><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo>∂</mml:mo><mml:msub><mml:mover accent="true"><mml:mi>q</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mi mathvariant="normal">c</mml:mi></mml:msub></mml:mrow><mml:mrow><mml:mo>∂</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>=</mml:mo><mml:mo>-</mml:mo><mml:msub><mml:mover accent="true"><mml:mi>u</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mi>j</mml:mi></mml:msub><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo>∂</mml:mo><mml:msub><mml:mover accent="true"><mml:mi>q</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mi mathvariant="normal">c</mml:mi></mml:msub></mml:mrow><mml:mrow><mml:mo>∂</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mi>j</mml:mi></mml:msub></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>-</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mo>∂</mml:mo><mml:mrow><mml:mo>∂</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mi>j</mml:mi></mml:msub></mml:mrow></mml:mfrac></mml:mstyle><mml:mfenced close=")" open="("><mml:mover accent="true"><mml:mrow><mml:msubsup><mml:mi>u</mml:mi><mml:mi>j</mml:mi><mml:mrow><mml:mo>′</mml:mo><mml:mo>′</mml:mo></mml:mrow></mml:msubsup><mml:msubsup><mml:mi>q</mml:mi><mml:mi mathvariant="normal">c</mml:mi><mml:mrow><mml:mo>′</mml:mo><mml:mo>′</mml:mo></mml:mrow></mml:msubsup></mml:mrow><mml:mo mathvariant="normal">‾</mml:mo></mml:mover></mml:mfenced><mml:mo>+</mml:mo><mml:msub><mml:mi mathvariant="italic">χ</mml:mi><mml:mrow><mml:msub><mml:mi>q</mml:mi><mml:mi mathvariant="normal">c</mml:mi></mml:msub></mml:mrow></mml:msub><mml:mo>,</mml:mo></mml:mrow></mml:mtd></mml:mlabeledtr></mml:mtable></mml:math></disp-formula>

            with the sink/source terms for <inline-formula><mml:math id="M360" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">χ</mml:mi><mml:mrow><mml:msub><mml:mi>n</mml:mi><mml:mi mathvariant="normal">c</mml:mi></mml:msub></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula>  and
<inline-formula><mml:math id="M361" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">χ</mml:mi><mml:mrow><mml:msub><mml:mi>q</mml:mi><mml:mi mathvariant="normal">c</mml:mi></mml:msub></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> and the SGS fluxes:

                <disp-formula specific-use="align" content-type="numbered"><mml:math id="M362" display="block"><mml:mtable displaystyle="true"><mml:mlabeledtr id="Ch1.E52"><mml:mtd><mml:mtext>52</mml:mtext></mml:mtd><mml:mtd><mml:mstyle displaystyle="true" class="stylechange"/></mml:mtd><mml:mtd><mml:mrow><mml:mstyle class="stylechange" displaystyle="true"/><mml:mover accent="true"><mml:mrow><mml:msubsup><mml:mi>u</mml:mi><mml:mi>j</mml:mi><mml:mrow><mml:mo>′</mml:mo><mml:mo>′</mml:mo></mml:mrow></mml:msubsup><mml:msubsup><mml:mi>n</mml:mi><mml:mi mathvariant="normal">c</mml:mi><mml:mrow><mml:mo>′</mml:mo><mml:mo>′</mml:mo></mml:mrow></mml:msubsup></mml:mrow><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mo>=</mml:mo><mml:mo>-</mml:mo><mml:msub><mml:mi>K</mml:mi><mml:mi mathvariant="normal">h</mml:mi></mml:msub><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo>∂</mml:mo><mml:msub><mml:mover accent="true"><mml:mi>n</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mi mathvariant="normal">c</mml:mi></mml:msub></mml:mrow><mml:mrow><mml:mo>∂</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>,</mml:mo></mml:mrow></mml:mtd></mml:mlabeledtr><mml:mlabeledtr id="Ch1.E53"><mml:mtd><mml:mtext>53</mml:mtext></mml:mtd><mml:mtd><mml:mstyle class="stylechange" displaystyle="true"/></mml:mtd><mml:mtd><mml:mrow><mml:mstyle displaystyle="true" class="stylechange"/><mml:mover accent="true"><mml:mrow><mml:msubsup><mml:mi>u</mml:mi><mml:mi>j</mml:mi><mml:mrow><mml:mo>′</mml:mo><mml:mo>′</mml:mo></mml:mrow></mml:msubsup><mml:msubsup><mml:mi>q</mml:mi><mml:mi mathvariant="normal">c</mml:mi><mml:mrow><mml:mo>′</mml:mo><mml:mo>′</mml:mo></mml:mrow></mml:msubsup></mml:mrow><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mo>=</mml:mo><mml:mo>-</mml:mo><mml:msub><mml:mi>K</mml:mi><mml:mi mathvariant="normal">h</mml:mi></mml:msub><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo>∂</mml:mo><mml:msub><mml:mover accent="true"><mml:mi>q</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mi mathvariant="normal">c</mml:mi></mml:msub></mml:mrow><mml:mrow><mml:mo>∂</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>.</mml:mo></mml:mrow></mml:mtd></mml:mlabeledtr></mml:mtable></mml:math></disp-formula>

            The sink and source terms for <inline-formula><mml:math id="M363" display="inline"><mml:mrow><mml:msub><mml:mover accent="true"><mml:mi>n</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mi mathvariant="normal">c</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M364" display="inline"><mml:mrow><mml:msub><mml:mover accent="true"><mml:mi>q</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mi mathvariant="normal">c</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> include the same microphysical processes as described by <xref ref-type="bibr" rid="bib1.bibx73" id="text.58"/>, namely autoconversion, accretion, and sedimentation of cloud droplets, as well as activation and diffusional growth, which has been newly added.
Accordingly, the source and sink terms are given by

                <disp-formula specific-use="align" content-type="numbered"><mml:math id="M365" display="block"><mml:mtable displaystyle="true"><mml:mlabeledtr id="Ch1.E54"><mml:mtd><mml:mtext>54</mml:mtext></mml:mtd><mml:mtd><mml:mstyle displaystyle="true" class="stylechange"/></mml:mtd><mml:mtd><mml:mrow><mml:mstyle displaystyle="true" class="stylechange"/><?xmltex \hack{\hbox\bgroup\fontsize{9.5}{9.5}\selectfont$\displaystyle}?><mml:msub><mml:mi mathvariant="italic">χ</mml:mi><mml:mrow><mml:msub><mml:mi>n</mml:mi><mml:mi mathvariant="normal">c</mml:mi></mml:msub></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:msub><mml:mfenced close="|" open=""><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo>∂</mml:mo><mml:msub><mml:mover accent="true"><mml:mi>n</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mi mathvariant="normal">c</mml:mi></mml:msub></mml:mrow><mml:mrow><mml:mo>∂</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:mfrac></mml:mstyle></mml:mfenced><mml:mi mathvariant="normal">act</mml:mi></mml:msub><mml:mo>+</mml:mo><mml:msub><mml:mfenced open="" close="|"><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo>∂</mml:mo><mml:msub><mml:mover accent="true"><mml:mi>n</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mi mathvariant="normal">c</mml:mi></mml:msub></mml:mrow><mml:mrow><mml:mo>∂</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:mfrac></mml:mstyle></mml:mfenced><mml:mi mathvariant="normal">evap</mml:mi></mml:msub><mml:mo>+</mml:mo><mml:msub><mml:mfenced close="|" open=""><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo>∂</mml:mo><mml:msub><mml:mover accent="true"><mml:mi>n</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mi mathvariant="normal">c</mml:mi></mml:msub></mml:mrow><mml:mrow><mml:mo>∂</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:mfrac></mml:mstyle></mml:mfenced><mml:mi mathvariant="normal">auto</mml:mi></mml:msub><mml:mo>+</mml:mo><mml:msub><mml:mfenced close="|" open=""><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo>∂</mml:mo><mml:msub><mml:mover accent="true"><mml:mi>n</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mi mathvariant="normal">c</mml:mi></mml:msub></mml:mrow><mml:mrow><mml:mo>∂</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:mfrac></mml:mstyle></mml:mfenced><mml:mi mathvariant="normal">accr</mml:mi></mml:msub><mml:mo>+</mml:mo><mml:msub><mml:mfenced close="|" open=""><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo>∂</mml:mo><mml:msub><mml:mover accent="true"><mml:mi>n</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mi mathvariant="normal">c</mml:mi></mml:msub></mml:mrow><mml:mrow><mml:mo>∂</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:mfrac></mml:mstyle></mml:mfenced><mml:mrow><mml:mi mathvariant="normal">sed</mml:mi><mml:mo>,</mml:mo><mml:mi mathvariant="normal">c</mml:mi></mml:mrow></mml:msub><mml:mo>,</mml:mo><?xmltex \hack{$\egroup}?></mml:mrow></mml:mtd></mml:mlabeledtr><mml:mlabeledtr id="Ch1.E55"><mml:mtd><mml:mtext>55</mml:mtext></mml:mtd><mml:mtd><mml:mstyle displaystyle="true" class="stylechange"/></mml:mtd><mml:mtd><mml:mrow><mml:mstyle displaystyle="true" class="stylechange"/><?xmltex \hack{\hbox\bgroup\fontsize{9.5}{9.5}\selectfont$\displaystyle}?><mml:msub><mml:mi mathvariant="italic">χ</mml:mi><mml:mrow><mml:msub><mml:mi>q</mml:mi><mml:mi mathvariant="normal">c</mml:mi></mml:msub></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:msub><mml:mfenced close="|" open=""><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo>∂</mml:mo><mml:msub><mml:mover accent="true"><mml:mi>q</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mi mathvariant="normal">c</mml:mi></mml:msub></mml:mrow><mml:mrow><mml:mo>∂</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:mfrac></mml:mstyle></mml:mfenced><mml:mstyle scriptlevel="+1"><mml:mtable class="substack"><mml:mtr><mml:mtd><mml:mi mathvariant="normal">cond</mml:mi></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mi mathvariant="normal">evap</mml:mi></mml:mtd></mml:mtr></mml:mtable></mml:mstyle></mml:msub><mml:mo>+</mml:mo><mml:msub><mml:mfenced close="|" open=""><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo>∂</mml:mo><mml:msub><mml:mover accent="true"><mml:mi>q</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mi mathvariant="normal">c</mml:mi></mml:msub></mml:mrow><mml:mrow><mml:mo>∂</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:mfrac></mml:mstyle></mml:mfenced><mml:mi mathvariant="normal">evap</mml:mi></mml:msub><mml:mo>+</mml:mo><mml:msub><mml:mfenced close="|" open=""><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo>∂</mml:mo><mml:msub><mml:mover accent="true"><mml:mi>q</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mi mathvariant="normal">c</mml:mi></mml:msub></mml:mrow><mml:mrow><mml:mo>∂</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:mfrac></mml:mstyle></mml:mfenced><mml:mi mathvariant="normal">auto</mml:mi></mml:msub><mml:mo>+</mml:mo><mml:msub><mml:mfenced close="|" open=""><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo>∂</mml:mo><mml:msub><mml:mover accent="true"><mml:mi>q</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mi mathvariant="normal">c</mml:mi></mml:msub></mml:mrow><mml:mrow><mml:mo>∂</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:mfrac></mml:mstyle></mml:mfenced><mml:mi mathvariant="normal">accr</mml:mi></mml:msub><mml:mo>+</mml:mo><mml:msub><mml:mfenced close="|" open=""><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo>∂</mml:mo><mml:msub><mml:mover accent="true"><mml:mi>q</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mi mathvariant="normal">c</mml:mi></mml:msub></mml:mrow><mml:mrow><mml:mo>∂</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:mfrac></mml:mstyle></mml:mfenced><mml:mrow><mml:mi mathvariant="normal">sed</mml:mi><mml:mo>,</mml:mo><mml:mi mathvariant="normal">c</mml:mi></mml:mrow></mml:msub><mml:mo>.</mml:mo><?xmltex \hack{$\egroup}?></mml:mrow></mml:mtd></mml:mlabeledtr></mml:mtable></mml:math></disp-formula>

            In the following, the source/sink terms for activation, condensation, and evaporation are described. This improved microphysics was recently applied by <xref ref-type="bibr" rid="bib1.bibx101" id="text.59"/> for studying nocturnal radiation fog. Besides this physical improvement, the bulk microphysics is now fully modularized in PALM 6.0.</p>
<sec id="Ch1.S3.SS1.SSS1">
  <label>3.1.1</label><title>Activation of cloud droplets</title>
      <?pagebreak page1345?><p id="d1e11331">As activation is the major source term for <inline-formula><mml:math id="M366" display="inline"><mml:mrow><mml:msub><mml:mover accent="true"><mml:mi>n</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mi mathvariant="normal">c</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>, this process is represented by so-called Twomey-type parameterizations in PALM 6.0, which are available in two modes.
Per default, the number of activated cloud condensation nuclei (CCN) is given by a simple power-law expression:
              <disp-formula id="Ch1.E56" content-type="numbered"><label>56</label><mml:math id="M367" display="block"><mml:mrow><mml:msub><mml:mi>N</mml:mi><mml:mi mathvariant="normal">CCN</mml:mi></mml:msub><mml:mo>=</mml:mo><mml:msub><mml:mi>N</mml:mi><mml:mi mathvariant="normal">a</mml:mi></mml:msub><mml:msubsup><mml:mi>s</mml:mi><mml:mi mathvariant="normal">l</mml:mi><mml:mrow><mml:msub><mml:mi>k</mml:mi><mml:mi mathvariant="normal">act</mml:mi></mml:msub></mml:mrow></mml:msubsup><mml:mo>,</mml:mo></mml:mrow></mml:math></disp-formula>
            where <inline-formula><mml:math id="M368" display="inline"><mml:mrow><mml:msub><mml:mi>N</mml:mi><mml:mi mathvariant="normal">CCN</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> is the number of activated CCN, <inline-formula><mml:math id="M369" display="inline"><mml:mrow><mml:msub><mml:mi>N</mml:mi><mml:mi mathvariant="normal">a</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> is the number concentration of the dry aerosol and the exponent <inline-formula><mml:math id="M370" display="inline"><mml:mrow><mml:msub><mml:mi>k</mml:mi><mml:mi mathvariant="normal">act</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> depending on the type of analyzed aerosol <xref ref-type="bibr" rid="bib1.bibx119" id="paren.60"/>. The supersaturation over a liquid-phase surface is given by <inline-formula><mml:math id="M371" display="inline"><mml:mrow><mml:msub><mml:mi>s</mml:mi><mml:mi mathvariant="normal">l</mml:mi></mml:msub><mml:mo>=</mml:mo><mml:msub><mml:mover accent="true"><mml:mi>q</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mi mathvariant="normal">v</mml:mi></mml:msub><mml:mo>/</mml:mo><mml:msub><mml:mi>q</mml:mi><mml:mrow><mml:mi mathvariant="normal">v</mml:mi><mml:mo>,</mml:mo><mml:mi mathvariant="normal">sat</mml:mi></mml:mrow></mml:msub><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:math></inline-formula>, where <inline-formula><mml:math id="M372" display="inline"><mml:mrow><mml:msub><mml:mi>q</mml:mi><mml:mrow><mml:mi mathvariant="normal">v</mml:mi><mml:mo>,</mml:mo><mml:mi mathvariant="normal">sat</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> stands for the water vapor saturation mixing ratio.
Moreover, a more advanced method considering physiochemical properties of the dry aerosol can be used after <xref ref-type="bibr" rid="bib1.bibx58" id="text.61"/>. Therein, it is assumed that the dry aerosol spectrum follows a log-normal distribution which is given by
              <disp-formula id="Ch1.E57" content-type="numbered"><label>57</label><mml:math id="M373" display="block"><mml:mrow><mml:msub><mml:mi>f</mml:mi><mml:mi mathvariant="normal">d</mml:mi></mml:msub><mml:mo>=</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:msub><mml:mi>N</mml:mi><mml:mi mathvariant="normal">a</mml:mi></mml:msub></mml:mrow><mml:mrow><mml:msqrt><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mi mathvariant="italic">π</mml:mi></mml:mrow></mml:msqrt><mml:mi>ln⁡</mml:mi><mml:msub><mml:mi mathvariant="italic">σ</mml:mi><mml:mi mathvariant="normal">d</mml:mi></mml:msub><mml:msub><mml:mi>r</mml:mi><mml:mi mathvariant="normal">d</mml:mi></mml:msub></mml:mrow></mml:mfrac></mml:mstyle><mml:mi>exp⁡</mml:mi><mml:mfenced open="[" close="]"><mml:mrow><mml:mo>-</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:msup><mml:mi>ln⁡</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msup><mml:mo>(</mml:mo><mml:msub><mml:mi>r</mml:mi><mml:mi mathvariant="normal">d</mml:mi></mml:msub><mml:mo>/</mml:mo><mml:msub><mml:mi>r</mml:mi><mml:mrow><mml:mi mathvariant="normal">d</mml:mi><mml:mo>,</mml:mo><mml:mi mathvariant="normal">av</mml:mi></mml:mrow></mml:msub><mml:mo>)</mml:mo></mml:mrow><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:msup><mml:mi>ln⁡</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msup><mml:msub><mml:mi mathvariant="italic">σ</mml:mi><mml:mi mathvariant="normal">d</mml:mi></mml:msub></mml:mrow></mml:mfrac></mml:mstyle></mml:mrow></mml:mfenced><mml:mo>,</mml:mo></mml:mrow></mml:math></disp-formula>
            where <inline-formula><mml:math id="M374" display="inline"><mml:mrow><mml:msub><mml:mi>r</mml:mi><mml:mi mathvariant="normal">d</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M375" display="inline"><mml:mrow><mml:msub><mml:mi>r</mml:mi><mml:mrow><mml:mi mathvariant="normal">d</mml:mi><mml:mo>,</mml:mo><mml:mi mathvariant="normal">av</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> are the radius and the mean radius of the dry aerosol, respectively. The dispersion of the dry aerosol spectrum is displayed by  <inline-formula><mml:math id="M376" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">σ</mml:mi><mml:mi mathvariant="normal">d</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>.
Hence, the number of activated aerosol is calculated by
              <disp-formula id="Ch1.E58" content-type="numbered"><label>58</label><mml:math id="M377" display="block"><mml:mtable class="split" columnspacing="1em" rowspacing="0.2ex" displaystyle="true" columnalign="right left"><mml:mtr><mml:mtd/><mml:mtd><mml:mrow><mml:msub><mml:mi>N</mml:mi><mml:mtext>CCN</mml:mtext></mml:msub><mml:mo>(</mml:mo><mml:msub><mml:mi>s</mml:mi><mml:mi mathvariant="normal">l</mml:mi></mml:msub><mml:mo>)</mml:mo><mml:mo>=</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:msub><mml:mi>N</mml:mi><mml:mi mathvariant="normal">a</mml:mi></mml:msub></mml:mrow><mml:mn mathvariant="normal">2</mml:mn></mml:mfrac></mml:mstyle><mml:mo>[</mml:mo><mml:mn mathvariant="normal">1</mml:mn><mml:mo>-</mml:mo><mml:mtext>erf</mml:mtext><mml:mo>(</mml:mo><mml:mi>u</mml:mi><mml:mo>)</mml:mo><mml:mo>]</mml:mo><mml:mo>;</mml:mo></mml:mrow></mml:mtd></mml:mtr><mml:mtr><mml:mtd/><mml:mtd><mml:mrow><mml:mi>u</mml:mi><mml:mo>=</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mi>ln⁡</mml:mi><mml:mo>(</mml:mo><mml:msub><mml:mi>s</mml:mi><mml:mn mathvariant="normal">0</mml:mn></mml:msub><mml:mo>/</mml:mo><mml:msub><mml:mi>s</mml:mi><mml:mi mathvariant="normal">l</mml:mi></mml:msub><mml:mo>)</mml:mo></mml:mrow><mml:mrow><mml:msqrt><mml:mn mathvariant="normal">2</mml:mn></mml:msqrt><mml:mi>ln⁡</mml:mi><mml:msub><mml:mi mathvariant="italic">σ</mml:mi><mml:mrow><mml:mi mathvariant="normal">s</mml:mi><mml:mo>,</mml:mo><mml:mi mathvariant="normal">l</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>,</mml:mo></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
            where “erf” is the Gaussian error function, and
              <disp-formula id="Ch1.E59" content-type="numbered"><label>59</label><mml:math id="M378" display="block"><mml:mtable class="split" rowspacing="0.2ex" columnspacing="1em" displaystyle="true" columnalign="right left"><mml:mtr><mml:mtd/><mml:mtd><mml:mrow><mml:msub><mml:mi>s</mml:mi><mml:mn mathvariant="normal">0</mml:mn></mml:msub><mml:mo>=</mml:mo><mml:msubsup><mml:mi>r</mml:mi><mml:mrow><mml:mi mathvariant="normal">d</mml:mi><mml:mo>,</mml:mo><mml:mi mathvariant="normal">av</mml:mi></mml:mrow><mml:mrow><mml:mo>-</mml:mo><mml:mo>(</mml:mo><mml:mn mathvariant="normal">1</mml:mn><mml:mo>+</mml:mo><mml:mi mathvariant="italic">β</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:msubsup><mml:msup><mml:mfenced open="(" close=")"><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mn mathvariant="normal">4</mml:mn><mml:msup><mml:mi>A</mml:mi><mml:mn mathvariant="normal">3</mml:mn></mml:msup></mml:mrow><mml:mrow><mml:mn mathvariant="normal">27</mml:mn><mml:mi>b</mml:mi></mml:mrow></mml:mfrac></mml:mstyle></mml:mfenced><mml:mrow><mml:mn mathvariant="normal">1</mml:mn><mml:mo>/</mml:mo><mml:mn mathvariant="normal">2</mml:mn></mml:mrow></mml:msup><mml:mo>,</mml:mo></mml:mrow></mml:mtd></mml:mtr><mml:mtr><mml:mtd/><mml:mtd><mml:mrow><mml:msub><mml:mi mathvariant="italic">σ</mml:mi><mml:mi>s</mml:mi></mml:msub><mml:mo>=</mml:mo><mml:msubsup><mml:mi mathvariant="italic">σ</mml:mi><mml:mi mathvariant="normal">d</mml:mi><mml:mrow><mml:mn mathvariant="normal">1</mml:mn><mml:mo>+</mml:mo><mml:mi mathvariant="italic">β</mml:mi></mml:mrow></mml:msubsup><mml:mo>.</mml:mo></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
            <inline-formula><mml:math id="M379" display="inline"><mml:mi>A</mml:mi></mml:math></inline-formula> is the Kelvin parameter, and <inline-formula><mml:math id="M380" display="inline"><mml:mi>b</mml:mi></mml:math></inline-formula> and <inline-formula><mml:math id="M381" display="inline"><mml:mi mathvariant="italic">β</mml:mi></mml:math></inline-formula> depend on the chemical composition and physical properties of the soluble part of the dry aerosol.
Both schemes have in common that <inline-formula><mml:math id="M382" display="inline"><mml:mrow><mml:msub><mml:mi>N</mml:mi><mml:mi mathvariant="normal">a</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> must be prescribed and <inline-formula><mml:math id="M383" display="inline"><mml:mrow><mml:msub><mml:mover accent="true"><mml:mi>n</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mi mathvariant="normal">c</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> is calculated as a function of the aerosol concentration and the supersaturation. However, for the latter scheme, the physiochemical properties, such as the mean dry radius, chemical composition, and dispersion of the aerosol spectrum of the aerosol, must be prescribed by the user. The activation rate is then given by
              <disp-formula id="Ch1.E60" content-type="numbered"><label>60</label><mml:math id="M384" display="block"><mml:mrow><mml:msub><mml:mfenced close="|" open=""><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo>∂</mml:mo><mml:mover accent="true"><mml:mrow><mml:msub><mml:mi>n</mml:mi><mml:mi mathvariant="normal">c</mml:mi></mml:msub></mml:mrow><mml:mo mathvariant="normal">‾</mml:mo></mml:mover></mml:mrow><mml:mrow><mml:mo>∂</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:mfrac></mml:mstyle></mml:mfenced><mml:mi mathvariant="normal">act</mml:mi></mml:msub><mml:mo>=</mml:mo><mml:mo movablelimits="false">max⁡</mml:mo><mml:mfenced open="(" close=")"><mml:mrow><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:msub><mml:mi>N</mml:mi><mml:mi mathvariant="normal">CCN</mml:mi></mml:msub><mml:mo>-</mml:mo><mml:mover accent="true"><mml:mrow><mml:msub><mml:mi>n</mml:mi><mml:mi mathvariant="normal">c</mml:mi></mml:msub></mml:mrow><mml:mo mathvariant="normal">‾</mml:mo></mml:mover></mml:mrow><mml:mrow><mml:mi mathvariant="normal">Δ</mml:mi><mml:mi>t</mml:mi></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>,</mml:mo><mml:mn mathvariant="normal">0</mml:mn></mml:mrow></mml:mfenced><mml:mo>,</mml:mo></mml:mrow></mml:math></disp-formula>
            where <inline-formula><mml:math id="M385" display="inline"><mml:mrow><mml:msub><mml:mover accent="true"><mml:mi>n</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mi mathvariant="normal">c</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> is the number of previously activated aerosols that are assumed to be equal to the number of pre-existing droplets and <inline-formula><mml:math id="M386" display="inline"><mml:mrow><mml:mi mathvariant="normal">Δ</mml:mi><mml:mi>t</mml:mi></mml:mrow></mml:math></inline-formula> is the length of the model time step. However, it must be mentioned that in regions with significant autoconversion and accretion growth, the subsequent depletion of <inline-formula><mml:math id="M387" display="inline"><mml:mrow><mml:msub><mml:mover accent="true"><mml:mi>n</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mi mathvariant="normal">c</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> might lead to an overprediction of activation with this method.</p>
</sec>
</sec>
<sec id="Ch1.S3.SS2">
  <label>3.2</label><title>Improved representation of diffusional growth</title>
      <p id="d1e11954">Additionally, for treating condensational growth, a second method (diagnostic approach) apart from the well-established saturation adjustment scheme was implemented <xref ref-type="bibr" rid="bib1.bibx73" id="paren.62"><named-content content-type="pre">see</named-content></xref>.
This method diagnoses the current supersaturation from the fields of <inline-formula><mml:math id="M388" display="inline"><mml:mover accent="true"><mml:mi>T</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover></mml:math></inline-formula> and <inline-formula><mml:math id="M389" display="inline"><mml:mrow><mml:msub><mml:mover accent="true"><mml:mi>q</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mi mathvariant="normal">v</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>. Subsequently, the diagnosed supersaturation is used for calculating the condensation and evaporation rates for cloud droplets, which is given by <xref ref-type="bibr" rid="bib1.bibx57" id="paren.63"/>
            <disp-formula id="Ch1.E61" content-type="numbered"><label>61</label><mml:math id="M390" display="block"><mml:mrow><mml:msub><mml:mfenced open="" close="|"><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo>∂</mml:mo><mml:msub><mml:mover accent="true"><mml:mi>q</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mi mathvariant="normal">c</mml:mi></mml:msub></mml:mrow><mml:mrow><mml:mo>∂</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:mfrac></mml:mstyle></mml:mfenced><mml:mstyle scriptlevel="+1"><mml:mtable class="substack"><mml:mtr><mml:mtd><mml:mi mathvariant="normal">cond</mml:mi></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mi mathvariant="normal">evap</mml:mi></mml:mtd></mml:mtr></mml:mtable></mml:mstyle></mml:msub><mml:mo>=</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mn mathvariant="normal">4</mml:mn><mml:mi mathvariant="italic">π</mml:mi><mml:mi mathvariant="normal">Γ</mml:mi><mml:mo>(</mml:mo><mml:mi>T</mml:mi><mml:mo>,</mml:mo><mml:mi>p</mml:mi><mml:mo>)</mml:mo><mml:msub><mml:mi mathvariant="italic">ρ</mml:mi><mml:mi mathvariant="normal">w</mml:mi></mml:msub><mml:msub><mml:mover accent="true"><mml:mi>n</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mi mathvariant="normal">c</mml:mi></mml:msub></mml:mrow><mml:mrow><mml:msub><mml:mi mathvariant="italic">ρ</mml:mi><mml:mi mathvariant="normal">a</mml:mi></mml:msub></mml:mrow></mml:mfrac></mml:mstyle><mml:msub><mml:mi>s</mml:mi><mml:mi mathvariant="normal">l</mml:mi></mml:msub><mml:msub><mml:mi>r</mml:mi><mml:mi mathvariant="normal">c</mml:mi></mml:msub><mml:mo>.</mml:mo></mml:mrow></mml:math></disp-formula>
          Here, <inline-formula><mml:math id="M391" display="inline"><mml:mrow><mml:msub><mml:mi>r</mml:mi><mml:mi mathvariant="normal">c</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> is the volume mean radius of cloud droplets and <inline-formula><mml:math id="M392" display="inline"><mml:mi mathvariant="normal">Γ</mml:mi></mml:math></inline-formula> is a function of temperature and pressure including the thermal conduction and diffusion of water vapor in air. Ventilation effects which can affect the effective evaporation rates are considered for rain droplets separately, as described in <xref ref-type="bibr" rid="bib1.bibx73" id="text.64"/>.
Note that this diagnostic scheme is an appropriate alternative, particularly if the assumptions made for saturation adjustment (assuming equilibrium) are violated, i.e., for time steps shorter than a few seconds.</p>
</sec>
<sec id="Ch1.S3.SS3">
  <label>3.3</label><title>Lagrangian particle model improvements</title>
      <p id="d1e12107">In the last years, the embedded LPM has been successfully used to study scalar dispersion in urban environments <xref ref-type="bibr" rid="bib1.bibx4 bib1.bibx65 bib1.bibx30" id="paren.65"><named-content content-type="pre">e.g.,</named-content></xref>.
The LPM is based on <xref ref-type="bibr" rid="bib1.bibx129" id="text.66"/> to separate the particle speed into a deterministic and a stochastic contribution, which corresponds to dividing the turbulent flow field into a resolved-scale and a SGS portion, respectively. The resolved-scale velocity is provided by the LES at each time step, while the SGS velocity is predicted by integrating a stochastic differential equation according to <xref ref-type="bibr" rid="bib1.bibx129" id="text.67"/>. For details on the model and its implementation, we refer to <xref ref-type="bibr" rid="bib1.bibx111" id="text.68"/> and <xref ref-type="bibr" rid="bib1.bibx73" id="text.69"/>.</p>
      <p id="d1e12127">As particle boundary conditions at solid walls, PALM 6.0 offers absorption and reflection boundary conditions. The particle reflection boundary conditions were revised and adjusted to the revised topography implementation where also overhanging structures may appear. Now, within a time step, particles can be reflected multiple times at different solid walls, which is especially important near building corners.</p>
      <p id="d1e12130">Furthermore, the LPM was adjusted to the self-nesting (see Sect. <xref ref-type="sec" rid="Ch1.S4.SS8"/>). Particles that enter the region of one of the child domains are automatically transferred from the parent to the respective child model. Vice versa, particles leaving a child domain are automatically transferred back to its parent model.
A technical description of this approach as well as implications concerning the treatment of SGS particle velocities when particles are transferred between parent and child will be discussed in a follow-up study.</p>
</sec>
<sec id="Ch1.S3.SS4">
  <label>3.4</label><title>Lagrangian cloud model improvements</title>
      <p id="d1e12144">PALM's Lagrangian cloud model (LCM) is based on its LPM, using Lagrangian particles as so-called superdroplets <xref ref-type="bibr" rid="bib1.bibx106" id="paren.70"><named-content content-type="pre">e.g.,</named-content></xref>, each representing an ensemble of identical droplets that change their properties (e.g., water mass, aerosol mass, number of represented real droplets – the so-called weighting factor) by undergoing cloud microphysical processes. PALM's approach has been applied in various studies to further process-level understanding of warm-phase cloud microphysics, covering deliquescent aerosols, their entrainment and mixing with the cloud, as well as droplet activation, growth by diffusion, and collision and coalescence <xref ref-type="bibr" rid="bib1.bibx92 bib1.bibx41 bib1.bibx42 bib1.bibx40 bib1.bibx84" id="paren.71"/>.</p>
<sec id="Ch1.S3.SS4.SSS1">
  <label>3.4.1</label><title>Collision and coalescence</title>
      <p id="d1e12162">While the modeling of aerosol activation and diffusional growth of cloud droplets is based on first principles and is very similar in all available LCMs <xref ref-type="bibr" rid="bib1.bibx2 bib1.bibx106 bib1.bibx92" id="paren.72"/>, the representation of collision and coalescence (i.e., collection) depends heavily on model formulation. In a recent review paper, <xref ref-type="bibr" rid="bib1.bibx121" id="text.73"/> compared all available representations of collection in LCMs to analytical and other benchmark solutions. They showed that PALM's previous representation of collection is very stable but significantly underestimates the growth of the largest droplets, with commensurate effects on the initiation of rain. Therefore, our previous default collection algorithm by <xref ref-type="bibr" rid="bib1.bibx92" id="text.74"/> was replaced by the so-called “all-or-nothing” algorithm that is based on the ideas of <xref ref-type="bibr" rid="bib1.bibx106" id="text.75"/> and <xref ref-type="bibr" rid="bib1.bibx108" id="text.76"/>, and performed best in the comparison by <xref ref-type="bibr" rid="bib1.bibx121" id="text.77"/>. The basic ideas of the all-or-nothing algorithm will be summarized below, but the interested reader is referred to <xref ref-type="bibr" rid="bib1.bibx42" id="text.78"/> for more details on its implementation in PALM.</p>
      <p id="d1e12187">In the all-or-nothing approach, each real droplet of the superdroplet with the smaller weighting factor collects one real droplet of the superdroplet with the larger weighting factor. The probability <inline-formula><mml:math id="M393" display="inline"><mml:mi>P</mml:mi></mml:math></inline-formula> of this interaction is given by
              <disp-formula id="Ch1.E62" content-type="numbered"><label>62</label><mml:math id="M394" display="block"><mml:mrow><mml:msub><mml:mi>P</mml:mi><mml:mrow><mml:mi>m</mml:mi><mml:mi>n</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:msub><mml:mi mathvariant="normal">KK</mml:mi><mml:mrow><mml:mi>m</mml:mi><mml:mi>n</mml:mi></mml:mrow></mml:msub><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mi mathvariant="normal">Δ</mml:mi><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:mi mathvariant="normal">Δ</mml:mi><mml:mi>V</mml:mi></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>⋅</mml:mo><mml:msub><mml:mi>A</mml:mi><mml:mrow><mml:mi mathvariant="normal">w</mml:mi><mml:mo>,</mml:mo><mml:mi>n</mml:mi></mml:mrow></mml:msub><mml:mo>,</mml:mo></mml:mrow></mml:math></disp-formula>
            where <inline-formula><mml:math id="M395" display="inline"><mml:mi>m</mml:mi></mml:math></inline-formula> and <inline-formula><mml:math id="M396" display="inline"><mml:mi>n</mml:mi></mml:math></inline-formula> are the indices of the superdroplets with the smaller and larger weighting factor, respectively, KK is the<?pagebreak page1346?> collection kernel depending on the properties of both superdroplets, <inline-formula><mml:math id="M397" display="inline"><mml:mrow><mml:mi mathvariant="normal">Δ</mml:mi><mml:mi>V</mml:mi></mml:mrow></mml:math></inline-formula> is a prescribed volume in which the superdroplets are allowed the collide (which equals the size of an LES grid box in PALM), and <inline-formula><mml:math id="M398" display="inline"><mml:mrow><mml:msub><mml:mi>A</mml:mi><mml:mi mathvariant="normal">w</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> is the superdroplet weighting factor. If <inline-formula><mml:math id="M399" display="inline"><mml:mrow><mml:msub><mml:mi>P</mml:mi><mml:mrow><mml:mi>m</mml:mi><mml:mi>n</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> exceeds a random number chosen uniformly from the interval <inline-formula><mml:math id="M400" display="inline"><mml:mrow><mml:mo>[</mml:mo><mml:mn mathvariant="normal">0</mml:mn><mml:mo>,</mml:mo><mml:mn mathvariant="normal">1</mml:mn><mml:mo>]</mml:mo></mml:mrow></mml:math></inline-formula>, the collection takes place. First, the mass of each real droplet of superdroplet <inline-formula><mml:math id="M401" display="inline"><mml:mi>m</mml:mi></mml:math></inline-formula> increases, while the mass of each real droplet of superdroplet <inline-formula><mml:math id="M402" display="inline"><mml:mi>n</mml:mi></mml:math></inline-formula> remains unchanged:
              <disp-formula id="Ch1.E63" content-type="numbered"><label>63</label><mml:math id="M403" display="block"><mml:mrow><mml:msub><mml:mover accent="true"><mml:mi>m</mml:mi><mml:mo stretchy="true" mathvariant="normal">^</mml:mo></mml:mover><mml:mi>m</mml:mi></mml:msub><mml:mo>=</mml:mo><mml:msub><mml:mi>m</mml:mi><mml:mi>m</mml:mi></mml:msub><mml:mo>+</mml:mo><mml:msub><mml:mi>m</mml:mi><mml:mi>n</mml:mi></mml:msub><mml:mspace width="0.25em" linebreak="nobreak"/><mml:mspace width="0.25em" linebreak="nobreak"/><mml:mtext>and</mml:mtext><mml:mspace linebreak="nobreak" width="0.25em"/><mml:mspace width="0.25em" linebreak="nobreak"/><mml:msub><mml:mover accent="true"><mml:mi>m</mml:mi><mml:mo mathvariant="normal" stretchy="true">^</mml:mo></mml:mover><mml:mi>n</mml:mi></mml:msub><mml:mo>=</mml:mo><mml:msub><mml:mi>m</mml:mi><mml:mi>n</mml:mi></mml:msub><mml:mo>,</mml:mo></mml:mrow></mml:math></disp-formula>
            where the <inline-formula><mml:math id="M404" display="inline"><mml:mover accent="true"><mml:mrow><mml:mo>(</mml:mo><mml:mi mathvariant="normal">…</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:mo stretchy="true" mathvariant="normal">^</mml:mo></mml:mover></mml:math></inline-formula> marks the variable after collection. Second, the aerosol mass of each real droplet changes:
              <disp-formula id="Ch1.E64" content-type="numbered"><label>64</label><mml:math id="M405" display="block"><mml:mrow><mml:msub><mml:mover accent="true"><mml:mi>m</mml:mi><mml:mo mathvariant="normal" stretchy="true">^</mml:mo></mml:mover><mml:mrow><mml:mi>s</mml:mi><mml:mo>,</mml:mo><mml:mi>m</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:msub><mml:mi>m</mml:mi><mml:mrow><mml:mi>s</mml:mi><mml:mo>,</mml:mo><mml:mi>m</mml:mi></mml:mrow></mml:msub><mml:mo>+</mml:mo><mml:msub><mml:mi>m</mml:mi><mml:mrow><mml:mi>s</mml:mi><mml:mo>,</mml:mo><mml:mi>n</mml:mi></mml:mrow></mml:msub><mml:mspace linebreak="nobreak" width="0.25em"/><mml:mspace linebreak="nobreak" width="0.25em"/><mml:mtext>and</mml:mtext><mml:mspace linebreak="nobreak" width="0.25em"/><mml:mspace width="0.25em" linebreak="nobreak"/><mml:msub><mml:mover accent="true"><mml:mi>m</mml:mi><mml:mo mathvariant="normal" stretchy="true">^</mml:mo></mml:mover><mml:mrow><mml:mi>s</mml:mi><mml:mo>,</mml:mo><mml:mi>n</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:msub><mml:mi>m</mml:mi><mml:mrow><mml:mi>s</mml:mi><mml:mo>,</mml:mo><mml:mi>n</mml:mi></mml:mrow></mml:msub><mml:mo>.</mml:mo></mml:mrow></mml:math></disp-formula>
            Finally, the change in the weighting factor diverges from this pattern:
              <disp-formula id="Ch1.E65" content-type="numbered"><label>65</label><mml:math id="M406" display="block"><mml:mrow><mml:msub><mml:mover accent="true"><mml:mi>A</mml:mi><mml:mo mathvariant="normal" stretchy="true">^</mml:mo></mml:mover><mml:mi>m</mml:mi></mml:msub><mml:mo>=</mml:mo><mml:msub><mml:mi>A</mml:mi><mml:mi>m</mml:mi></mml:msub><mml:mspace linebreak="nobreak" width="0.25em"/><mml:mspace width="0.25em" linebreak="nobreak"/><mml:mtext>and</mml:mtext><mml:mspace linebreak="nobreak" width="0.25em"/><mml:mspace width="0.25em" linebreak="nobreak"/><mml:msub><mml:mover accent="true"><mml:mi>A</mml:mi><mml:mo mathvariant="normal" stretchy="true">^</mml:mo></mml:mover><mml:mi>n</mml:mi></mml:msub><mml:mo>=</mml:mo><mml:msub><mml:mi>A</mml:mi><mml:mi>n</mml:mi></mml:msub><mml:mo>-</mml:mo><mml:msub><mml:mi>A</mml:mi><mml:mi>m</mml:mi></mml:msub><mml:mo>.</mml:mo></mml:mrow></mml:math></disp-formula>
            This procedure is repeated for all different (unordered) superdroplet pairs in the volume <inline-formula><mml:math id="M407" display="inline"><mml:mrow><mml:mi mathvariant="normal">Δ</mml:mi><mml:mi>V</mml:mi></mml:mrow></mml:math></inline-formula>.</p>
</sec>
<sec id="Ch1.S3.SS4.SSS2">
  <label>3.4.2</label><title>Splitting and merging of superdroplets</title>
      <p id="d1e12542">In recent studies with the LCM, it was observed that droplet size distributions does not converge even for large numbers (approximately 200) of superdroplets per grid box <xref ref-type="bibr" rid="bib1.bibx92" id="paren.79"><named-content content-type="pre">e.g.,</named-content></xref>. Based on the original idea of <xref ref-type="bibr" rid="bib1.bibx120" id="text.80"/>, a splitting and merging algorithm for  superdroplets has been adapted for our LCM. The main goal of such algorithms is to improve statistics by splitting one superdroplet into several superdroplets with the commensurate reduction of the weighting factor, and to save computational demand by merging several superdroplets into one superdroplet if appropriate. For a correct representation of the initiation of rain in warm clouds, a good statistical representation of collecting droplets by a sufficiently high number of superdroplets is indispensable.</p>
      <p id="d1e12553">The splitting algorithm is mainly steered by three parameters: (1) the minimum radius of superdroplets that will be  split potentially, (2) a threshold for the weighting factor of that superdroplet (can either be prescribed or is approximated by assuming a gamma distribution; see <xref ref-type="bibr" rid="bib1.bibx102" id="altparen.81"/>), and (3) the splitting factor, which describes in how many particles one superdroplet will be split (prescribed or calculated by the LCM). However, the general splitting procedure is simple. If one superdroplet fulfills all criteria, the superdroplet is <inline-formula><mml:math id="M408" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">η</mml:mi><mml:mi mathvariant="normal">spl</mml:mi></mml:msub><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:math></inline-formula> times cloned and the weighting factor of the original and all new superdroplets is reduced to <inline-formula><mml:math id="M409" display="inline"><mml:mrow><mml:msub><mml:mi>A</mml:mi><mml:mrow><mml:mi>n</mml:mi><mml:mo>,</mml:mo><mml:mi mathvariant="normal">new</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:msub><mml:mi>A</mml:mi><mml:mi>n</mml:mi></mml:msub><mml:mo>/</mml:mo><mml:msub><mml:mi mathvariant="italic">η</mml:mi><mml:mi mathvariant="normal">spl</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>, while <inline-formula><mml:math id="M410" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">η</mml:mi><mml:mi mathvariant="normal">spl</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> is the splitting factor, determining how many new superdroplets will be created during one operation. All other properties of the affected superdroplets remain unaffected. However, after a few time steps, every cloned superdroplet will experience slightly different subgrid-scale velocities and collisional growth rates due to the stochastic nature of these routines. Note that the splitting procedure is only applied in grid boxes where a threshold for the number of superdroplets per grid box is not exceeded to ensure computational feasibility. The merging algorithm is designed to save computational costs by merging superdroplets in regions where an increased superdroplet resolution is not required, e.g., outside of clouds. If a superdroplet grows smaller than a prescribed radius and exhibits a large enough (larger than a prescribed value) weighting factor, the superdroplet will be merged with another superdroplet in the same grid box that also fulfills these requirements. By doing so, the first superdroplet is deleted and the weighting factor of the other superdroplet is adapted to obey mass conservation. The splitting/merging algorithm is described in detail in <xref ref-type="bibr" rid="bib1.bibx102" id="text.82"/>. Their results show that the merging algorithm improves the representation of the collection process significantly, while decreasing computational time by up to 18 % compared to a simulation with a globally increased superdroplet number.</p>

<?xmltex \floatpos{t}?><table-wrap id="Ch1.T5" specific-use="star"><?xmltex \currentcnt{5}?><label>Table 5</label><caption><p id="d1e12621">List of symbols related to clouds and precipitation.</p></caption><oasis:table frame="topbot"><oasis:tgroup cols="3">
     <oasis:colspec colnum="1" colname="col1" align="left"/>
     <oasis:colspec colnum="2" colname="col2" align="left"/>
     <oasis:colspec colnum="3" colname="col3" align="left"/>
     <oasis:thead>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1">Symbol</oasis:entry>
         <oasis:entry colname="col2">Dimension</oasis:entry>
         <oasis:entry colname="col3">Description</oasis:entry>
       </oasis:row>
     </oasis:thead>
     <oasis:tbody>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M411" display="inline"><mml:mi>A</mml:mi></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2">m</oasis:entry>
         <oasis:entry colname="col3">Kelvin curvature parameter</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M412" display="inline"><mml:mrow><mml:msub><mml:mi>A</mml:mi><mml:mi mathvariant="normal">w</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"/>
         <oasis:entry colname="col3">Superdroplet weighting factor</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M413" display="inline"><mml:mi>b</mml:mi></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"/>
         <oasis:entry colname="col3">Parameter describing the physiochemical properties of dry aerosol</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M414" display="inline"><mml:mrow><mml:msub><mml:mi>k</mml:mi><mml:mi mathvariant="normal">act</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"/>
         <oasis:entry colname="col3">Exponent for aerosol activation with power-law expression</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M415" display="inline"><mml:mrow><mml:mi>K</mml:mi><mml:mi>K</mml:mi></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"/>
         <oasis:entry colname="col3">Collection kernel in LCM</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M416" display="inline"><mml:mrow><mml:msub><mml:mi>N</mml:mi><mml:mi mathvariant="normal">CCN</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M417" display="inline"><mml:mrow class="unit"><mml:msup><mml:mi mathvariant="normal">m</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">3</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">Number of activated cloud condensation nuclei</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M418" display="inline"><mml:mrow><mml:msub><mml:mi>N</mml:mi><mml:mi mathvariant="normal">a</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M419" display="inline"><mml:mrow class="unit"><mml:msup><mml:mi mathvariant="normal">m</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">3</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">Number concentration of dry aerosol</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M420" display="inline"><mml:mrow><mml:msub><mml:mi>n</mml:mi><mml:mi mathvariant="normal">c</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M421" display="inline"><mml:mrow class="unit"><mml:msup><mml:mi mathvariant="normal">m</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">3</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">Cloud droplet number concentration</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M422" display="inline"><mml:mrow><mml:msub><mml:mi>n</mml:mi><mml:mi mathvariant="normal">r</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M423" display="inline"><mml:mrow class="unit"><mml:msup><mml:mi mathvariant="normal">m</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">3</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">Rain droplet number concentration</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M424" display="inline"><mml:mi>P</mml:mi></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"/>
         <oasis:entry colname="col3">Collection probability in LCM</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M425" display="inline"><mml:mrow><mml:msub><mml:mi>q</mml:mi><mml:mi mathvariant="normal">c</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M426" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">kg</mml:mi><mml:mspace width="0.125em" linebreak="nobreak"/><mml:msup><mml:mi mathvariant="normal">kg</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">Cloud water mixing ratio</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M427" display="inline"><mml:mrow><mml:msub><mml:mi>q</mml:mi><mml:mi mathvariant="normal">r</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M428" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">kg</mml:mi><mml:mspace width="0.125em" linebreak="nobreak"/><mml:msup><mml:mi mathvariant="normal">kg</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">Rainwater mixing ratio</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M429" display="inline"><mml:mrow><mml:msub><mml:mi>q</mml:mi><mml:mi mathvariant="normal">l</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M430" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">kg</mml:mi><mml:mspace linebreak="nobreak" width="0.125em"/><mml:msup><mml:mi mathvariant="normal">kg</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">Liquid water mixing ratio</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M431" display="inline"><mml:mrow><mml:msub><mml:mi>q</mml:mi><mml:mi mathvariant="normal">v</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M432" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">kg</mml:mi><mml:mspace linebreak="nobreak" width="0.125em"/><mml:msup><mml:mi mathvariant="normal">kg</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">Water vapor mixing ratio</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M433" display="inline"><mml:mrow><mml:msub><mml:mi>q</mml:mi><mml:mrow><mml:mi mathvariant="normal">v</mml:mi><mml:mo>,</mml:mo><mml:mi mathvariant="normal">sat</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M434" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">kg</mml:mi><mml:mspace width="0.125em" linebreak="nobreak"/><mml:msup><mml:mi mathvariant="normal">kg</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">Water vapor mixing ratio at saturation</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M435" display="inline"><mml:mrow><mml:msub><mml:mi>r</mml:mi><mml:mi mathvariant="normal">c</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M436" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">m</mml:mi></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">Volume mean cloud droplet radius</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M437" display="inline"><mml:mrow><mml:msub><mml:mi>r</mml:mi><mml:mi mathvariant="normal">d</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M438" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">m</mml:mi></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">Droplet radius</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M439" display="inline"><mml:mrow><mml:msub><mml:mi>r</mml:mi><mml:mrow><mml:mi mathvariant="normal">d</mml:mi><mml:mo>,</mml:mo><mml:mi mathvariant="normal">av</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M440" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">m</mml:mi></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">Mean droplet radius</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M441" display="inline"><mml:mrow><mml:msub><mml:mi>s</mml:mi><mml:mn mathvariant="normal">0</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"/>
         <oasis:entry colname="col3">Supersaturation considering solute and curvature effects of the dry aerosol</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M442" display="inline"><mml:mrow><mml:msub><mml:mi>s</mml:mi><mml:mi mathvariant="normal">l</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"/>
         <oasis:entry colname="col3">Supersaturation over a flat water surface</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M443" display="inline"><mml:mi mathvariant="italic">β</mml:mi></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"/>
         <oasis:entry colname="col3">Parameter of the soluble fraction of the dry aerosol</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M444" display="inline"><mml:mi mathvariant="normal">Γ</mml:mi></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"/>
         <oasis:entry colname="col3">Function used in cloud microphysics parameterization</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M445" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">η</mml:mi><mml:mi mathvariant="normal">spl</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"/>
         <oasis:entry colname="col3">Splitting factor in LCM</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M446" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">σ</mml:mi><mml:mi mathvariant="normal">d</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"/>
         <oasis:entry colname="col3">Standard deviation of the dry aerosol spectrum</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M447" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">σ</mml:mi><mml:mrow><mml:mi mathvariant="normal">l</mml:mi><mml:mo>,</mml:mo><mml:mi mathvariant="normal">s</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"/>
         <oasis:entry colname="col3">Standard deviation of supersaturation considering solute and curvature effects of the dry aerosol spectrum</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M448" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">χ</mml:mi><mml:mrow><mml:msub><mml:mi>n</mml:mi><mml:mi mathvariant="normal">c</mml:mi></mml:msub></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M449" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">kg</mml:mi><mml:mspace linebreak="nobreak" width="0.125em"/><mml:msup><mml:mi mathvariant="normal">kg</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup><mml:mspace width="0.125em" linebreak="nobreak"/><mml:msup><mml:mi mathvariant="normal">s</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">Source/sink term of <inline-formula><mml:math id="M450" display="inline"><mml:mrow><mml:msub><mml:mi>n</mml:mi><mml:mi mathvariant="normal">c</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M451" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">χ</mml:mi><mml:mrow><mml:msub><mml:mi>q</mml:mi><mml:mi mathvariant="normal">c</mml:mi></mml:msub></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M452" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">kg</mml:mi><mml:mspace width="0.125em" linebreak="nobreak"/><mml:msup><mml:mi mathvariant="normal">kg</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup><mml:mspace linebreak="nobreak" width="0.125em"/><mml:msup><mml:mi mathvariant="normal">s</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">Source/sink term of <inline-formula><mml:math id="M453" display="inline"><mml:mrow><mml:msub><mml:mi>q</mml:mi><mml:mi mathvariant="normal">c</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M454" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">χ</mml:mi><mml:mrow><mml:msub><mml:mi>q</mml:mi><mml:mi mathvariant="normal">v</mml:mi></mml:msub></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M455" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">kg</mml:mi><mml:mspace width="0.125em" linebreak="nobreak"/><mml:msup><mml:mi mathvariant="normal">kg</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup><mml:mspace width="0.125em" linebreak="nobreak"/><mml:msup><mml:mi mathvariant="normal">s</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">Source/sink term of <inline-formula><mml:math id="M456" display="inline"><mml:mrow><mml:msub><mml:mi>q</mml:mi><mml:mi mathvariant="normal">v</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M457" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">χ</mml:mi><mml:mi>s</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M458" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">kg</mml:mi><mml:mspace width="0.125em" linebreak="nobreak"/><mml:msup><mml:mi mathvariant="normal">m</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">3</mml:mn></mml:mrow></mml:msup><mml:mspace width="0.125em" linebreak="nobreak"/><mml:msup><mml:mi mathvariant="normal">s</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">Source/sink term of <inline-formula><mml:math id="M459" display="inline"><mml:mi>s</mml:mi></mml:math></inline-formula></oasis:entry>
       </oasis:row>
     </oasis:tbody>
   </oasis:tgroup></oasis:table></table-wrap>

</sec>
</sec>
<sec id="Ch1.S3.SS5">
  <label>3.5</label><title>Land surface model (LSM)</title>
      <p id="d1e13542">LES models are often used with prescribed surface conditions (either by prescribing surface fluxes or by explicitly setting surface temperature and humidity). However, in many cases, an LSM is required in which the surface fluxes have to be calculated based on the state of the solid material (soil, water, pavement), the radiation budget of the surface, and atmospheric conditions. This might be the case when respective measurement data are absent, or when the interaction between atmosphere and surface becomes relevant, e.g., in the case of cloud or fog formation <xref ref-type="bibr" rid="bib1.bibx71" id="paren.83"/>. Furthermore, LSMs are needed when the model is to be run in a forecasting mode, where surface boundary conditions are a priori unknown.</p>
      <p id="d1e13548">The implemented LSM in PALM is similar to the Tiled ECMWF Scheme for Surface Exchanges over Land <xref ref-type="bibr" rid="bib1.bibx6" id="paren.84"><named-content content-type="pre">TESSEL/HTESSEL;</named-content></xref> and the derivative (simplified) implementation in the LES model DALES <xref ref-type="bibr" rid="bib1.bibx39" id="paren.85"/>. The scheme implemented in PALM 6.0 was adapted for use with impervious surfaces (e.g., streets, pavements) as well as water surfaces, and was coupled to a radiation model (see Sect. <xref ref-type="sec" rid="Ch1.S3.SS6"/>) and both bulk cloud physics and Lagrangian cloud model (see Sect. <xref ref-type="sec" rid="Ch1.S3.SS1"/> and <xref ref-type="bibr" rid="bib1.bibx73" id="altparen.86"/>).</p>
      <?pagebreak page1347?><p id="d1e13566">The LSM consists of a solver for the energy balance of the Earth's surface using a resistance parameterization for the surface fluxes and a multi-layer soil scheme. The energy balance of the Earth's surface is calculated as
            <disp-formula id="Ch1.E66" content-type="numbered"><label>66</label><mml:math id="M460" display="block"><mml:mrow><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mi mathvariant="normal">d</mml:mi><mml:msub><mml:mi>T</mml:mi><mml:mn mathvariant="normal">0</mml:mn></mml:msub></mml:mrow><mml:mrow><mml:mi mathvariant="normal">d</mml:mi><mml:mi>t</mml:mi></mml:mrow></mml:mfrac></mml:mstyle><mml:msub><mml:mi>C</mml:mi><mml:mn mathvariant="normal">0</mml:mn></mml:msub><mml:mo>=</mml:mo><mml:msub><mml:mi>R</mml:mi><mml:mi mathvariant="normal">n</mml:mi></mml:msub><mml:mo>-</mml:mo><mml:mi>H</mml:mi><mml:mo>-</mml:mo><mml:mi>L</mml:mi><mml:mi>E</mml:mi><mml:mo>-</mml:mo><mml:mi>G</mml:mi><mml:mo>,</mml:mo></mml:mrow></mml:math></disp-formula>
          where <inline-formula><mml:math id="M461" display="inline"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mn mathvariant="normal">0</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M462" display="inline"><mml:mrow><mml:msub><mml:mi>T</mml:mi><mml:mn mathvariant="normal">0</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula> are the heat capacity and radiative temperature of the surface skin layer, respectively. Note that <inline-formula><mml:math id="M463" display="inline"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mn mathvariant="normal">0</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula> is usually zero as it is assumed that the skin layer does not have a heat capacity (see below). <inline-formula><mml:math id="M464" display="inline"><mml:mrow><mml:msub><mml:mi>R</mml:mi><mml:mi mathvariant="normal">n</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>, <inline-formula><mml:math id="M465" display="inline"><mml:mi>H</mml:mi></mml:math></inline-formula>, <inline-formula><mml:math id="M466" display="inline"><mml:mrow><mml:mi>L</mml:mi><mml:mi>E</mml:mi></mml:mrow></mml:math></inline-formula>, and <inline-formula><mml:math id="M467" display="inline"><mml:mi>G</mml:mi></mml:math></inline-formula> are the net radiation, sensible heat flux, latent heat flux, and ground (soil) heat flux at the surface, respectively.</p>
      <?pagebreak page1348?><p id="d1e13688"><inline-formula><mml:math id="M468" display="inline"><mml:mi>H</mml:mi></mml:math></inline-formula> is calculated as
            <disp-formula id="Ch1.E67" content-type="numbered"><label>67</label><mml:math id="M469" display="block"><mml:mrow><mml:mi>H</mml:mi><mml:mo>=</mml:mo><mml:mo>-</mml:mo><mml:mi mathvariant="italic">ρ</mml:mi><mml:msub><mml:mi>c</mml:mi><mml:mi mathvariant="normal">p</mml:mi></mml:msub><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mn mathvariant="normal">1</mml:mn><mml:mrow><mml:msub><mml:mi>r</mml:mi><mml:mi mathvariant="normal">a</mml:mi></mml:msub></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>(</mml:mo><mml:msub><mml:mover accent="true"><mml:mi mathvariant="italic">θ</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mi mathvariant="normal">mo</mml:mi></mml:msub><mml:mo>-</mml:mo><mml:msub><mml:mi mathvariant="italic">θ</mml:mi><mml:mn mathvariant="normal">0</mml:mn></mml:msub><mml:mo>)</mml:mo><mml:mo>,</mml:mo></mml:mrow></mml:math></disp-formula>
          where <inline-formula><mml:math id="M470" display="inline"><mml:mrow><mml:msub><mml:mi>r</mml:mi><mml:mi mathvariant="normal">a</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> is the aerodynamic resistance. <inline-formula><mml:math id="M471" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">θ</mml:mi><mml:mn mathvariant="normal">0</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M472" display="inline"><mml:mrow><mml:msub><mml:mover accent="true"><mml:mi mathvariant="italic">θ</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mi mathvariant="normal">mo</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> are the potential temperature at the surface and at a fixed height within the atmospheric surface layer (at height <inline-formula><mml:math id="M473" display="inline"><mml:mrow><mml:msub><mml:mi>z</mml:mi><mml:mi mathvariant="normal">mo</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>), respectively. <inline-formula><mml:math id="M474" display="inline"><mml:mrow><mml:msub><mml:mi>r</mml:mi><mml:mi mathvariant="normal">a</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> is calculated via MOST as
            <disp-formula id="Ch1.E68" content-type="numbered"><label>68</label><mml:math id="M475" display="block"><mml:mrow><mml:msub><mml:mi>r</mml:mi><mml:mi mathvariant="normal">a</mml:mi></mml:msub><mml:mo>=</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:msub><mml:mover accent="true"><mml:mi mathvariant="italic">θ</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mi mathvariant="normal">mo</mml:mi></mml:msub><mml:mo>-</mml:mo><mml:msub><mml:mi mathvariant="italic">θ</mml:mi><mml:mn mathvariant="normal">0</mml:mn></mml:msub></mml:mrow><mml:mrow><mml:msub><mml:mi>u</mml:mi><mml:mo>*</mml:mo></mml:msub><mml:mspace width="0.33em" linebreak="nobreak"/><mml:msub><mml:mi mathvariant="italic">θ</mml:mi><mml:mo>*</mml:mo></mml:msub></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>.</mml:mo></mml:mrow></mml:math></disp-formula>
          <inline-formula><mml:math id="M476" display="inline"><mml:mi>G</mml:mi></mml:math></inline-formula> is parameterized as <xref ref-type="bibr" rid="bib1.bibx26" id="paren.87"/>
            <disp-formula id="Ch1.E69" content-type="numbered"><label>69</label><mml:math id="M477" display="block"><mml:mrow><mml:mi>G</mml:mi><mml:mo>=</mml:mo><mml:mi mathvariant="normal">Λ</mml:mi><mml:mo>(</mml:mo><mml:msub><mml:mi>T</mml:mi><mml:mn mathvariant="normal">0</mml:mn></mml:msub><mml:mo>-</mml:mo><mml:msub><mml:mi>T</mml:mi><mml:mrow><mml:mi mathvariant="normal">soil</mml:mi><mml:mo>,</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msub><mml:mo>)</mml:mo><mml:mo>,</mml:mo></mml:mrow></mml:math></disp-formula>
          with <inline-formula><mml:math id="M478" display="inline"><mml:mi mathvariant="normal">Λ</mml:mi></mml:math></inline-formula> being the total thermal conductivity between skin layer and the uppermost soil layer. <inline-formula><mml:math id="M479" display="inline"><mml:mrow><mml:msub><mml:mi>T</mml:mi><mml:mn mathvariant="normal">0</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula> is the radiative surface temperature (related to the radiative potential temperature via the Exner function) and <inline-formula><mml:math id="M480" display="inline"><mml:mrow><mml:msub><mml:mi>T</mml:mi><mml:mrow><mml:mi mathvariant="normal">soil</mml:mi><mml:mo>,</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> is the temperature of the uppermost soil layer (calculated at the center of the layer). <inline-formula><mml:math id="M481" display="inline"><mml:mi mathvariant="normal">Λ</mml:mi></mml:math></inline-formula> is calculated via a resistance approach as a combination of the conductivity between the canopy and the soil-top (constant value) and the conductivity of the top half of the uppermost soil layer:
            <disp-formula id="Ch1.E70" content-type="numbered"><label>70</label><mml:math id="M482" display="block"><mml:mrow><mml:mi mathvariant="normal">Λ</mml:mi><mml:mo>=</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:msub><mml:mi mathvariant="normal">Λ</mml:mi><mml:mi mathvariant="normal">skin</mml:mi></mml:msub><mml:msub><mml:mi mathvariant="normal">Λ</mml:mi><mml:mi mathvariant="normal">soil</mml:mi></mml:msub></mml:mrow><mml:mrow><mml:msub><mml:mi mathvariant="normal">Λ</mml:mi><mml:mi mathvariant="normal">skin</mml:mi></mml:msub><mml:mo>+</mml:mo><mml:msub><mml:mi mathvariant="normal">Λ</mml:mi><mml:mi mathvariant="normal">soil</mml:mi></mml:msub></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>.</mml:mo></mml:mrow></mml:math></disp-formula>
          When no skin layer is used (i.e., in the case of bare soil and pavements), <inline-formula><mml:math id="M483" display="inline"><mml:mi mathvariant="normal">Λ</mml:mi></mml:math></inline-formula> reduces to the heat conductivity of the uppermost soil layer (divided by the layer depth). In that case, it is assumed that the soil temperature is constant within the uppermost 25 % of the top soil layer and equals the radiative temperature at the surface. <inline-formula><mml:math id="M484" display="inline"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mn mathvariant="normal">0</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula> is then set to a non-zero value according to the material properties.
The latent heat flux (<inline-formula><mml:math id="M485" display="inline"><mml:mrow><mml:mi>L</mml:mi><mml:mi>E</mml:mi></mml:mrow></mml:math></inline-formula>) is calculated as
            <disp-formula id="Ch1.E71" content-type="numbered"><label>71</label><mml:math id="M486" display="block"><mml:mrow><mml:mi>L</mml:mi><mml:mi>E</mml:mi><mml:mo>=</mml:mo><mml:mo>-</mml:mo><mml:mi mathvariant="italic">ρ</mml:mi><mml:mspace width="0.33em" linebreak="nobreak"/><mml:msub><mml:mi>l</mml:mi><mml:mi mathvariant="normal">v</mml:mi></mml:msub><mml:mspace linebreak="nobreak" width="0.33em"/><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mn mathvariant="normal">1</mml:mn><mml:mrow><mml:msub><mml:mi>r</mml:mi><mml:mi mathvariant="normal">a</mml:mi></mml:msub><mml:mo>+</mml:mo><mml:msub><mml:mi>r</mml:mi><mml:mi mathvariant="normal">s</mml:mi></mml:msub></mml:mrow></mml:mfrac></mml:mstyle><mml:mfenced open="(" close=")"><mml:mrow><mml:msub><mml:mover accent="true"><mml:mi>q</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mrow><mml:mi mathvariant="normal">v</mml:mi><mml:mo>,</mml:mo><mml:mi mathvariant="normal">mo</mml:mi></mml:mrow></mml:msub><mml:mo>-</mml:mo><mml:msub><mml:mi>q</mml:mi><mml:mrow><mml:mi mathvariant="normal">v</mml:mi><mml:mo>,</mml:mo><mml:mi mathvariant="normal">sat</mml:mi></mml:mrow></mml:msub><mml:mo>(</mml:mo><mml:msub><mml:mi>T</mml:mi><mml:mn mathvariant="normal">0</mml:mn></mml:msub><mml:mo>)</mml:mo></mml:mrow></mml:mfenced><mml:mo>.</mml:mo></mml:mrow></mml:math></disp-formula>
          Here, <inline-formula><mml:math id="M487" display="inline"><mml:mrow><mml:msub><mml:mi>r</mml:mi><mml:mi mathvariant="normal">s</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> is the surface resistance, <inline-formula><mml:math id="M488" display="inline"><mml:mrow><mml:msub><mml:mi>q</mml:mi><mml:mrow><mml:mi mathvariant="normal">v</mml:mi><mml:mo>,</mml:mo><mml:mi mathvariant="normal">mo</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> is the water vapor mixing ratio at height <inline-formula><mml:math id="M489" display="inline"><mml:mrow><mml:msub><mml:mi>z</mml:mi><mml:mi mathvariant="normal">mo</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>, and <inline-formula><mml:math id="M490" display="inline"><mml:mrow><mml:msub><mml:mi>q</mml:mi><mml:mrow><mml:mi mathvariant="normal">v</mml:mi><mml:mo>,</mml:mo><mml:mi mathvariant="normal">sat</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> is the water vapor mixing ratio at saturation.</p>
      <p id="d1e14139">All equations above are solved locally for each surface element of the model grid. Each element for the surface-type vegetation can consist of patches of bare soil, vegetation, and a liquid water reservoir, which is the interception water stored on plants from precipitation. Therefore, an additional equation is solved for the liquid water reservoir. A liquid water reservoir is also available when the surface type is set to pavement, representing the ability of impervious surfaces to store a limited amount of liquid water at the surface. LE is then calculated for each of the three components (bare soil, vegetation, liquid water on plants/pavements). The resistance is calculated separately for bare soil and vegetation following <xref ref-type="bibr" rid="bib1.bibx50" id="text.88"/>.</p>
      <p id="d1e14145">For water surfaces, PALM currently only allows for prescribing a bulk water temperature. The energy balance is then solved as for land surfaces but without evapotranspiration from vegetation and bare soil. A skin layer is adopted so that <inline-formula><mml:math id="M491" display="inline"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mn mathvariant="normal">0</mml:mn></mml:msub><mml:mo>=</mml:mo><mml:mn mathvariant="normal">0</mml:mn></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M492" display="inline"><mml:mrow><mml:mi mathvariant="normal">Λ</mml:mi><mml:mo>=</mml:mo><mml:mn mathvariant="normal">1</mml:mn><mml:mo>×</mml:mo><mml:msup><mml:mn mathvariant="normal">10</mml:mn><mml:mn mathvariant="normal">11</mml:mn></mml:msup></mml:mrow></mml:math></inline-formula> in order to calculate a reasonable heat flux into the water body.</p>
      <p id="d1e14182">The surface is coupled to a 1-D soil model which is called independently for each surface element. By default, the soil model consists of eight layers with default layer depths of 0.01, 0.02, 0.04, 0.06, 0.14, 0.26, 0.54, and 1.86 <inline-formula><mml:math id="M493" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">m</mml:mi></mml:mrow></mml:math></inline-formula>, (a variable number of layers and depths can be prescribed by the user) and in which the vertical heat and water transport is modeled using the Fourier law of diffusion and Richards' equation, respectively. Hydraulic conductivities are calculated after <xref ref-type="bibr" rid="bib1.bibx123" id="text.89"/>. For vegetated surface elements, root fractions can be assigned to each soil layer to account for the explicit water withdrawal of plants used for transpiration from the respective soil layer. <xref ref-type="bibr" rid="bib1.bibx125" id="text.90"/> and <xref ref-type="bibr" rid="bib1.bibx6" id="text.91"/> give more details.</p>
      <p id="d1e14202">Pavements are treated as a common soil (allowing varying depths of the pavement layers) but with physical properties of the pavement material. The pavement layer is impermeable and prohibits the vertical transport of soil moisture.</p>
      <p id="d1e14205">A first validation of a previous version of the LSM for simulation of nocturnal radiation fog is given in <xref ref-type="bibr" rid="bib1.bibx71" id="text.92"/>.</p>
</sec>
<sec id="Ch1.S3.SS6">
  <label>3.6</label><title>Radiation model</title>
      <p id="d1e14219">In simulations with LSM, or in cases where radiative effects of clouds are of interest, a suitable radiation parameterization is essential. This involves primarily the calculation of the surface radiation budget but also all radiative effects of clouds. PALM offers a built-in simple and fast radiation model for clear sky conditions that neglects the presence of humidity, clouds, and variations in aerosol and trace gas properties in the atmosphere. Moreover, PALM provides an interface to the shortwave and longwave components of the Rapid Radiative Transfer Model (for global models) <xref ref-type="bibr" rid="bib1.bibx17" id="paren.93"><named-content content-type="pre">RRTMG; e.g.,</named-content></xref>. Both options calculate the radiation budget of the Earth's surface, which reads
            <disp-formula id="Ch1.E72" content-type="numbered"><label>72</label><mml:math id="M494" display="block"><mml:mrow><mml:msub><mml:mi>R</mml:mi><mml:mi mathvariant="normal">n</mml:mi></mml:msub><mml:mo>=</mml:mo><mml:msub><mml:mi mathvariant="normal">SW</mml:mi><mml:mo>↓</mml:mo></mml:msub><mml:mo>-</mml:mo><mml:msub><mml:mi mathvariant="normal">SW</mml:mi><mml:mo>↑</mml:mo></mml:msub><mml:mo>+</mml:mo><mml:msub><mml:mi mathvariant="normal">LW</mml:mi><mml:mo>↓</mml:mo></mml:msub><mml:mo>-</mml:mo><mml:msub><mml:mi mathvariant="normal">LW</mml:mi><mml:mo>↑</mml:mo></mml:msub><mml:mo>,</mml:mo></mml:mrow></mml:math></disp-formula>
          where <inline-formula><mml:math id="M495" display="inline"><mml:mrow><mml:msub><mml:mi>R</mml:mi><mml:mi mathvariant="normal">n</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> is net radiation. SW<inline-formula><mml:math id="M496" display="inline"><mml:msub><mml:mi/><mml:mo>↓</mml:mo></mml:msub></mml:math></inline-formula>, SW<inline-formula><mml:math id="M497" display="inline"><mml:msub><mml:mi/><mml:mo>↑</mml:mo></mml:msub></mml:math></inline-formula>, LW<inline-formula><mml:math id="M498" display="inline"><mml:msub><mml:mi/><mml:mo>↓</mml:mo></mml:msub></mml:math></inline-formula>, and LW<inline-formula><mml:math id="M499" display="inline"><mml:msub><mml:mi/><mml:mo>↑</mml:mo></mml:msub></mml:math></inline-formula> are the shortwave incoming (downward), shortwave outgoing (upward), longwave incoming (downward), and longwave outgoing (upward) fluxes, respectively.</p>

<?xmltex \floatpos{t}?><table-wrap id="Ch1.T6" specific-use="star"><?xmltex \currentcnt{6}?><label>Table 6</label><caption><p id="d1e14319">List of symbols related to radiation and the surface energy balance.</p></caption><oasis:table frame="topbot"><oasis:tgroup cols="3">
     <oasis:colspec colnum="1" colname="col1" align="left"/>
     <oasis:colspec colnum="2" colname="col2" align="left"/>
     <oasis:colspec colnum="3" colname="col3" align="left"/>
     <oasis:thead>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1">Symbol</oasis:entry>
         <oasis:entry colname="col2">Dimension</oasis:entry>
         <oasis:entry colname="col3">Description</oasis:entry>
       </oasis:row>
     </oasis:thead>
     <oasis:tbody>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M500" display="inline"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mn mathvariant="normal">0</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M501" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">J</mml:mi><mml:mspace linebreak="nobreak" width="0.125em"/><mml:msup><mml:mi mathvariant="normal">m</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">2</mml:mn></mml:mrow></mml:msup><mml:mspace width="0.125em" linebreak="nobreak"/><mml:msup><mml:mi mathvariant="normal">K</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">Heat capacity of the surface (skin layer)</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M502" display="inline"><mml:mi>d</mml:mi></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M503" display="inline"><mml:msup><mml:mi/><mml:mo>∘</mml:mo></mml:msup></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">Declination of the Sun</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M504" display="inline"><mml:mrow><mml:msub><mml:mi>d</mml:mi><mml:mn mathvariant="normal">1</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula>, <inline-formula><mml:math id="M505" display="inline"><mml:mrow><mml:msub><mml:mi>d</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula>, <inline-formula><mml:math id="M506" display="inline"><mml:mrow><mml:msub><mml:mi>d</mml:mi><mml:mn mathvariant="normal">3</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M507" display="inline"><mml:msup><mml:mi/><mml:mo>∘</mml:mo></mml:msup></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">Model parameters in the radiation model</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M508" display="inline"><mml:mi>G</mml:mi></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M509" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">W</mml:mi><mml:mspace width="0.125em" linebreak="nobreak"/><mml:msup><mml:mi mathvariant="normal">m</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">2</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">Soil heat flux</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M510" display="inline"><mml:mi>H</mml:mi></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M511" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">W</mml:mi><mml:mspace linebreak="nobreak" width="0.125em"/><mml:msup><mml:mi mathvariant="normal">m</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">2</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">Surface sensible heat flux</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M512" display="inline"><mml:mi>h</mml:mi></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M513" display="inline"><mml:msup><mml:mi/><mml:mo>∘</mml:mo></mml:msup></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">Hour angle</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">LE</oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M514" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">W</mml:mi><mml:mspace width="0.125em" linebreak="nobreak"/><mml:msup><mml:mi mathvariant="normal">m</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">2</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">Surface latent heat flux</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">LW<inline-formula><mml:math id="M515" display="inline"><mml:msub><mml:mi/><mml:mo>↓</mml:mo></mml:msub></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M516" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">W</mml:mi><mml:mspace linebreak="nobreak" width="0.125em"/><mml:msup><mml:mi mathvariant="normal">m</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">2</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">Incoming longwave radiation at the surface</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">LW<inline-formula><mml:math id="M517" display="inline"><mml:msub><mml:mi/><mml:mo>↑</mml:mo></mml:msub></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M518" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">W</mml:mi><mml:mspace linebreak="nobreak" width="0.125em"/><mml:msup><mml:mi mathvariant="normal">m</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">2</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">Outgoing longwave radiation at the surface</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M519" display="inline"><mml:mrow><mml:msub><mml:mi>l</mml:mi><mml:mi mathvariant="normal">is</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M520" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">m</mml:mi></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">Length of the ray's intersection with the grid cell (RTM)</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M521" display="inline"><mml:mrow><mml:msub><mml:mi>R</mml:mi><mml:mi mathvariant="normal">n</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M522" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">W</mml:mi><mml:mspace width="0.125em" linebreak="nobreak"/><mml:msup><mml:mi mathvariant="normal">m</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">2</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">Net radiation at the surface</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M523" display="inline"><mml:mrow><mml:msub><mml:mi>r</mml:mi><mml:mi mathvariant="normal">a</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M524" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">s</mml:mi><mml:mspace width="0.125em" linebreak="nobreak"/><mml:msup><mml:mi mathvariant="normal">m</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">Aerodynamic resistance</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M525" display="inline"><mml:mrow><mml:msub><mml:mi>r</mml:mi><mml:mi mathvariant="normal">s</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M526" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">s</mml:mi><mml:mspace linebreak="nobreak" width="0.125em"/><mml:msup><mml:mi mathvariant="normal">m</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">Surface resistance</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">SW<inline-formula><mml:math id="M527" display="inline"><mml:msub><mml:mi/><mml:mo>↓</mml:mo></mml:msub></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M528" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">W</mml:mi><mml:mspace width="0.125em" linebreak="nobreak"/><mml:msup><mml:mi mathvariant="normal">m</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">2</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">Incoming shortwave radiation at the surface</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">SW<inline-formula><mml:math id="M529" display="inline"><mml:msub><mml:mi/><mml:mo>↑</mml:mo></mml:msub></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M530" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">W</mml:mi><mml:mspace linebreak="nobreak" width="0.125em"/><mml:msup><mml:mi mathvariant="normal">m</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">2</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">Outgoing shortwave radiation at the surface</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M531" display="inline"><mml:mrow><mml:msub><mml:mi>T</mml:mi><mml:mrow><mml:mn mathvariant="normal">0</mml:mn><mml:mo>,</mml:mo><mml:mi mathvariant="normal">eff</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M532" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">K</mml:mi></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">Effective surface temperature</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M533" display="inline"><mml:mrow><mml:msub><mml:mi>T</mml:mi><mml:mrow><mml:mi mathvariant="normal">soil</mml:mi><mml:mo>,</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M534" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">K</mml:mi></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">Soil temperature of the uppermost layer</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M535" display="inline"><mml:mrow><mml:msub><mml:mi>t</mml:mi><mml:mi mathvariant="normal">UTC</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M536" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">s</mml:mi></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">UTC time in seconds since midnight</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M537" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">α</mml:mi><mml:mi mathvariant="normal">bb</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"/>
         <oasis:entry colname="col3">Broadband albedo</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M538" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">α</mml:mi><mml:mi mathvariant="normal">eff</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"/>
         <oasis:entry colname="col3">Effective albedo</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M539" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">α</mml:mi><mml:mrow><mml:mi mathvariant="normal">lw</mml:mi><mml:mo>,</mml:mo><mml:mi mathvariant="normal">dif</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"/>
         <oasis:entry colname="col3">Longwave diffuse albedo</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M540" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">α</mml:mi><mml:mrow><mml:mi mathvariant="normal">lw</mml:mi><mml:mo>,</mml:mo><mml:mi mathvariant="normal">dir</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"/>
         <oasis:entry colname="col3">Longwave direct albedo</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M541" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">α</mml:mi><mml:mrow><mml:mi mathvariant="normal">sw</mml:mi><mml:mo>,</mml:mo><mml:mi mathvariant="normal">dif</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"/>
         <oasis:entry colname="col3">Shortwave diffuse albedo</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M542" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">α</mml:mi><mml:mrow><mml:mi mathvariant="normal">sw</mml:mi><mml:mo>,</mml:mo><mml:mi mathvariant="normal">dir</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"/>
         <oasis:entry colname="col3">Shortwave direct albedo</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M543" display="inline"><mml:mi mathvariant="italic">ζ</mml:mi></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"/>
         <oasis:entry colname="col3">Transmittance of obstacles (RTM)</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M544" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">γ</mml:mi><mml:mi mathvariant="normal">t</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"/>
         <oasis:entry colname="col3">Radiant flux carried by the ray as it leaves the grid cell (RTM)</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M545" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">γ</mml:mi><mml:mi mathvariant="normal">i</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"/>
         <oasis:entry colname="col3">Radiant flux carried by the ray as it enters the grid cell (RTM)</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M546" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">ϵ</mml:mi><mml:mn mathvariant="normal">0</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"/>
         <oasis:entry colname="col3">Surface emissivity</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M547" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">ϵ</mml:mi><mml:mrow><mml:mn mathvariant="normal">0</mml:mn><mml:mo>,</mml:mo><mml:mi mathvariant="normal">eff</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"/>
         <oasis:entry colname="col3">Effective surface emissivity</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M548" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">θ</mml:mi><mml:mrow><mml:mi mathvariant="normal">sp</mml:mi><mml:mo>,</mml:mo><mml:mi mathvariant="normal">av</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M549" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">K</mml:mi></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">Mean potential temperature during surface spinup</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M550" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">θ</mml:mi><mml:mrow><mml:mi mathvariant="normal">sp</mml:mi><mml:mo>,</mml:mo><mml:mi mathvariant="normal">amp</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M551" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">K</mml:mi></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">Amplitude of the potential temperature sinusoidal forcing during surface spinup</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M552" display="inline"><mml:mi mathvariant="normal">Λ</mml:mi></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M553" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">W</mml:mi><mml:mspace width="0.125em" linebreak="nobreak"/><mml:msup><mml:mi mathvariant="normal">m</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">2</mml:mn></mml:mrow></mml:msup><mml:mspace width="0.125em" linebreak="nobreak"/><mml:msup><mml:mi mathvariant="normal">K</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">Total thermal conductivity between the surface and the uppermost soil layer</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M554" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="normal">Λ</mml:mi><mml:mi mathvariant="normal">skin</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M555" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">W</mml:mi><mml:mspace linebreak="nobreak" width="0.125em"/><mml:msup><mml:mi mathvariant="normal">m</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">2</mml:mn></mml:mrow></mml:msup><mml:mspace width="0.125em" linebreak="nobreak"/><mml:msup><mml:mi mathvariant="normal">K</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">Thermal conductivity of the skin layer</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M556" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="normal">Λ</mml:mi><mml:mi mathvariant="normal">soil</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M557" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">W</mml:mi><mml:mspace width="0.125em" linebreak="nobreak"/><mml:msup><mml:mi mathvariant="normal">m</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">2</mml:mn></mml:mrow></mml:msup><mml:mspace linebreak="nobreak" width="0.125em"/><mml:msup><mml:mi mathvariant="normal">K</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">Thermal conductivity of the uppermost soil layer</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M558" display="inline"><mml:mi mathvariant="italic">λ</mml:mi></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M559" display="inline"><mml:msup><mml:mi/><mml:mo>∘</mml:mo></mml:msup></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">Geographical longitude</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M560" display="inline"><mml:mi mathvariant="italic">τ</mml:mi></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"/>
         <oasis:entry colname="col3">Transmissivity of the atmosphere</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M561" display="inline"><mml:mi mathvariant="italic">ϕ</mml:mi></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M562" display="inline"><mml:msup><mml:mi/><mml:mo>∘</mml:mo></mml:msup></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">Geographical latitude</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M563" display="inline"><mml:mi mathvariant="normal">Ψ</mml:mi></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"/>
         <oasis:entry colname="col3">Cosine of the solar zenith angle</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M564" display="inline"><mml:mi mathvariant="normal">Ξ</mml:mi></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"/>
         <oasis:entry colname="col3">Decoupling factor used in plant canopy transpiration</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M565" display="inline"><mml:mi mathvariant="italic">ξ</mml:mi></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"/>
         <oasis:entry colname="col3">Extinction coefficient (RTM)</oasis:entry>
       </oasis:row>
     </oasis:tbody>
   </oasis:tgroup></oasis:table></table-wrap>

<sec id="Ch1.S3.SS6.SSS1">
  <label>3.6.1</label><title>Clear-sky radiation model</title>
      <p id="d1e15512">The clear-sky radiation model is a simple parameterization and limited to the calculation of the radiation budget at the surface. We recommend to use this scheme only for cases in which clouds are absent and in which direct cooling or heating of air due to divergence of the radiative fluxes is negligible. In the clear-sky model, SW<inline-formula><mml:math id="M566" display="inline"><mml:msub><mml:mi/><mml:mo>↓</mml:mo></mml:msub></mml:math></inline-formula> is calculated based on the position of the Sun and orbital parameters:
              <disp-formula id="Ch1.E73" content-type="numbered"><label>73</label><mml:math id="M567" display="block"><mml:mrow><mml:msub><mml:mi mathvariant="normal">SW</mml:mi><mml:mo>↓</mml:mo></mml:msub><mml:mo>=</mml:mo><mml:msub><mml:mi>S</mml:mi><mml:mn mathvariant="normal">0</mml:mn></mml:msub><mml:mspace width="0.33em" linebreak="nobreak"/><mml:mi mathvariant="italic">τ</mml:mi><mml:mspace width="0.33em" linebreak="nobreak"/><mml:mi>cos⁡</mml:mi><mml:mo>(</mml:mo><mml:mi mathvariant="normal">Ψ</mml:mi><mml:mo>)</mml:mo><mml:mo>,</mml:mo></mml:mrow></mml:math></disp-formula>
            with <inline-formula><mml:math id="M568" display="inline"><mml:mrow><mml:msub><mml:mi>S</mml:mi><mml:mn mathvariant="normal">0</mml:mn></mml:msub><mml:mo>=</mml:mo><mml:mn mathvariant="normal">1368</mml:mn></mml:mrow></mml:math></inline-formula> W m<inline-formula><mml:math id="M569" display="inline"><mml:msup><mml:mi/><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">2</mml:mn></mml:mrow></mml:msup></mml:math></inline-formula> and <inline-formula><mml:math id="M570" display="inline"><mml:mi mathvariant="normal">Ψ</mml:mi></mml:math></inline-formula> being the solar constant and the cosine of the solar zenith angle, respectively. The transmissivity of the atmosphere <inline-formula><mml:math id="M571" display="inline"><mml:mi mathvariant="italic">τ</mml:mi></mml:math></inline-formula> is estimated to be
              <disp-formula id="Ch1.E74" content-type="numbered"><label>74</label><mml:math id="M572" display="block"><mml:mrow><mml:mi mathvariant="italic">τ</mml:mi><mml:mo>=</mml:mo><mml:mn mathvariant="normal">0.6</mml:mn><mml:mo>+</mml:mo><mml:mn mathvariant="normal">0.2</mml:mn><mml:mspace width="0.33em" linebreak="nobreak"/><mml:mi>cos⁡</mml:mi><mml:mo>(</mml:mo><mml:mi mathvariant="normal">Ψ</mml:mi><mml:mo>)</mml:mo><mml:mo>.</mml:mo></mml:mrow></mml:math></disp-formula>
            <inline-formula><mml:math id="M573" display="inline"><mml:mi mathvariant="normal">Ψ</mml:mi></mml:math></inline-formula> depends on UTC time <inline-formula><mml:math id="M574" display="inline"><mml:mrow><mml:msub><mml:mi>t</mml:mi><mml:mi mathvariant="normal">UTC</mml:mi></mml:msub><mml:mo>∈</mml:mo><mml:mo>[</mml:mo><mml:mn mathvariant="normal">0</mml:mn><mml:mo>,</mml:mo><mml:mn mathvariant="normal">86</mml:mn><mml:mspace width="0.125em" linebreak="nobreak"/><mml:mn mathvariant="normal">400</mml:mn><mml:mo>]</mml:mo></mml:mrow></mml:math></inline-formula> (in seconds), day of the year (doy) <inline-formula><mml:math id="M575" display="inline"><mml:mrow><mml:mo>∈</mml:mo><mml:mo>[</mml:mo><mml:mn mathvariant="normal">1</mml:mn><mml:mo>,</mml:mo><mml:mn mathvariant="normal">365</mml:mn><mml:mo>]</mml:mo></mml:mrow></mml:math></inline-formula> and location, defined by geographical latitude <inline-formula><mml:math id="M576" display="inline"><mml:mrow><mml:mi mathvariant="italic">ϕ</mml:mi><mml:mo>∈</mml:mo><mml:mo>[</mml:mo><mml:mo>-</mml:mo><mml:mn mathvariant="normal">90</mml:mn></mml:mrow></mml:math></inline-formula><inline-formula><mml:math id="M577" display="inline"><mml:msup><mml:mi/><mml:mo>∘</mml:mo></mml:msup></mml:math></inline-formula>, 90<inline-formula><mml:math id="M578" display="inline"><mml:msup><mml:mi/><mml:mo>∘</mml:mo></mml:msup></mml:math></inline-formula>] and longitude <inline-formula><mml:math id="M579" display="inline"><mml:mrow><mml:mi mathvariant="italic">λ</mml:mi><mml:mo>∈</mml:mo><mml:mo>[</mml:mo><mml:mo>-</mml:mo><mml:mn mathvariant="normal">180</mml:mn></mml:mrow></mml:math></inline-formula><inline-formula><mml:math id="M580" display="inline"><mml:msup><mml:mi/><mml:mo>∘</mml:mo></mml:msup></mml:math></inline-formula>, 180<inline-formula><mml:math id="M581" display="inline"><mml:msup><mml:mi/><mml:mo>∘</mml:mo></mml:msup></mml:math></inline-formula>]. <inline-formula><mml:math id="M582" display="inline"><mml:mi mathvariant="normal">Ψ</mml:mi></mml:math></inline-formula> is calculated via
              <disp-formula id="Ch1.E75" content-type="numbered"><label>75</label><mml:math id="M583" display="block"><mml:mrow><mml:mi mathvariant="normal">Ψ</mml:mi><mml:mo>=</mml:mo><mml:mi>sin⁡</mml:mi><mml:mfenced open="(" close=")"><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mi mathvariant="italic">ϕ</mml:mi><mml:mspace linebreak="nobreak" width="0.33em"/><mml:mi mathvariant="italic">π</mml:mi></mml:mrow><mml:mn mathvariant="normal">180</mml:mn></mml:mfrac></mml:mstyle></mml:mfenced><mml:mi>sin⁡</mml:mi><mml:mo>(</mml:mo><mml:mi>d</mml:mi><mml:mo>)</mml:mo><mml:mo>+</mml:mo><mml:mi>cos⁡</mml:mi><mml:mfenced open="(" close=")"><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mi mathvariant="italic">ϕ</mml:mi><mml:mspace width="0.33em" linebreak="nobreak"/><mml:mi mathvariant="italic">π</mml:mi></mml:mrow><mml:mn mathvariant="normal">180</mml:mn></mml:mfrac></mml:mstyle></mml:mfenced><mml:mi>cos⁡</mml:mi><mml:mo>(</mml:mo><mml:mi>d</mml:mi><mml:mo>)</mml:mo><mml:mi>cos⁡</mml:mi><mml:mo>(</mml:mo><mml:mi>h</mml:mi><mml:mo>)</mml:mo><mml:mspace linebreak="nobreak" width="0.125em"/><mml:mo>,</mml:mo></mml:mrow></mml:math></disp-formula>
            with
              <disp-formula id="Ch1.E76" content-type="numbered"><label>76</label><mml:math id="M584" display="block"><mml:mrow><mml:mi>d</mml:mi><mml:mo>=</mml:mo><mml:mi>arcsin⁡</mml:mi><mml:mfenced open="[" close="]"><mml:mrow><mml:msub><mml:mi>d</mml:mi><mml:mn mathvariant="normal">1</mml:mn></mml:msub><mml:mo>⋅</mml:mo><mml:mi>sin⁡</mml:mi><mml:mfenced close=")" open="("><mml:mrow><mml:msub><mml:mi>d</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub><mml:mo>⋅</mml:mo><mml:mi mathvariant="normal">doy</mml:mi><mml:mo>-</mml:mo><mml:msub><mml:mi>d</mml:mi><mml:mn mathvariant="normal">3</mml:mn></mml:msub></mml:mrow></mml:mfenced></mml:mrow></mml:mfenced><mml:mo>,</mml:mo></mml:mrow></mml:math></disp-formula>
            where <inline-formula><mml:math id="M585" display="inline"><mml:mi>d</mml:mi></mml:math></inline-formula> is the declination of the Sun, with
              <disp-formula id="Ch1.E77" content-type="numbered"><label>77</label><mml:math id="M586" display="block"><mml:mtable class="split" rowspacing="0.2ex" columnspacing="1em" displaystyle="true" columnalign="right left"><mml:mtr><mml:mtd/><mml:mtd><mml:mrow><mml:msub><mml:mi>d</mml:mi><mml:mn mathvariant="normal">1</mml:mn></mml:msub><mml:mo>=</mml:mo><mml:mi>sin⁡</mml:mi><mml:mfenced open="(" close=")"><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mn mathvariant="normal">23.45</mml:mn><mml:mo>⋅</mml:mo><mml:mi mathvariant="italic">π</mml:mi></mml:mrow><mml:mn mathvariant="normal">180</mml:mn></mml:mfrac></mml:mstyle></mml:mfenced><mml:mo>,</mml:mo></mml:mrow></mml:mtd></mml:mtr><mml:mtr><mml:mtd/><mml:mtd><mml:mrow><mml:msub><mml:mi>d</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub><mml:mo>=</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mi mathvariant="italic">π</mml:mi></mml:mrow><mml:mn mathvariant="normal">365</mml:mn></mml:mfrac></mml:mstyle><mml:mo>,</mml:mo></mml:mrow></mml:mtd></mml:mtr><mml:mtr><mml:mtd/><mml:mtd><mml:mrow><mml:msub><mml:mi>d</mml:mi><mml:mn mathvariant="normal">3</mml:mn></mml:msub><mml:mo>=</mml:mo><mml:mn mathvariant="normal">81</mml:mn><mml:mo>⋅</mml:mo><mml:msub><mml:mi>d</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub><mml:mo>,</mml:mo></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
            and the hour angle is given by
              <disp-formula id="Ch1.E78" content-type="numbered"><label>78</label><mml:math id="M587" display="block"><mml:mrow><mml:mi>h</mml:mi><mml:mo>=</mml:mo><mml:mn mathvariant="normal">2</mml:mn><mml:mi mathvariant="italic">π</mml:mi><mml:mfenced open="(" close=")"><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:msub><mml:mi>t</mml:mi><mml:mi mathvariant="normal">UTC</mml:mi></mml:msub></mml:mrow><mml:mrow><mml:mn mathvariant="normal">86</mml:mn><mml:mspace linebreak="nobreak" width="0.125em"/><mml:mn mathvariant="normal">400</mml:mn></mml:mrow></mml:mfrac></mml:mstyle></mml:mfenced><mml:mo>+</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mi mathvariant="italic">λ</mml:mi><mml:mspace linebreak="nobreak" width="0.33em"/><mml:mi mathvariant="italic">π</mml:mi></mml:mrow><mml:mn mathvariant="normal">180</mml:mn></mml:mfrac></mml:mstyle><mml:mo>-</mml:mo><mml:mi mathvariant="italic">π</mml:mi><mml:mo>.</mml:mo></mml:mrow></mml:math></disp-formula></p>
      <?pagebreak page1349?><p id="d1e15990">The flux (SW<inline-formula><mml:math id="M588" display="inline"><mml:msub><mml:mi/><mml:mo>↑</mml:mo></mml:msub></mml:math></inline-formula>) depends on the incoming radiation (SW<inline-formula><mml:math id="M589" display="inline"><mml:msub><mml:mi/><mml:mo>↓</mml:mo></mml:msub></mml:math></inline-formula>) and surface broadband albedo <inline-formula><mml:math id="M590" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">α</mml:mi><mml:mi mathvariant="normal">bb</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> (see Sect. <xref ref-type="sec" rid="Ch1.S3.SS6.SSS3"/>):
              <disp-formula id="Ch1.E79" content-type="numbered"><label>79</label><mml:math id="M591" display="block"><mml:mrow><mml:msub><mml:mi mathvariant="normal">SW</mml:mi><mml:mo>↑</mml:mo></mml:msub><mml:mo>=</mml:mo><mml:msub><mml:mi mathvariant="italic">α</mml:mi><mml:mi mathvariant="normal">bb</mml:mi></mml:msub><mml:mspace width="0.33em" linebreak="nobreak"/><mml:msub><mml:mi mathvariant="normal">SW</mml:mi><mml:mo>↓</mml:mo></mml:msub><mml:mo>.</mml:mo></mml:mrow></mml:math></disp-formula></p>
      <p id="d1e16049">The flux SW<inline-formula><mml:math id="M592" display="inline"><mml:msub><mml:mi/><mml:mo>↑</mml:mo></mml:msub></mml:math></inline-formula> is calculated from the Stefan–Boltzmann law:
              <disp-formula id="Ch1.E80" content-type="numbered"><label>80</label><mml:math id="M593" display="block"><mml:mrow><mml:msub><mml:mi mathvariant="normal">LW</mml:mi><mml:mo>↑</mml:mo></mml:msub><mml:mo>=</mml:mo><mml:msub><mml:mi mathvariant="italic">ϵ</mml:mi><mml:mn mathvariant="normal">0</mml:mn></mml:msub><mml:mspace width="0.33em" linebreak="nobreak"/><mml:msub><mml:mi mathvariant="italic">σ</mml:mi><mml:mi mathvariant="normal">SB</mml:mi></mml:msub><mml:mspace linebreak="nobreak" width="0.33em"/><mml:msubsup><mml:mi>T</mml:mi><mml:mn mathvariant="normal">0</mml:mn><mml:mn mathvariant="normal">4</mml:mn></mml:msubsup><mml:mo>,</mml:mo></mml:mrow></mml:math></disp-formula>
            where <inline-formula><mml:math id="M594" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">ϵ</mml:mi><mml:mn mathvariant="normal">0</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula> is the surface emissivity and <inline-formula><mml:math id="M595" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">σ</mml:mi><mml:mi mathvariant="normal">SB</mml:mi></mml:msub><mml:mo>=</mml:mo><mml:mn mathvariant="normal">5.67</mml:mn><mml:mo>×</mml:mo><mml:msup><mml:mn mathvariant="normal">10</mml:mn><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">8</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula> W m<inline-formula><mml:math id="M596" display="inline"><mml:msup><mml:mi/><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">2</mml:mn></mml:mrow></mml:msup></mml:math></inline-formula> K<inline-formula><mml:math id="M597" display="inline"><mml:msup><mml:mi/><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">4</mml:mn></mml:mrow></mml:msup></mml:math></inline-formula> is the Stefan–Boltzmann constant.</p>
      <p id="d1e16156">The longwave incoming radiative flux is parameterized by a first-guess approximation:
              <disp-formula id="Ch1.E81" content-type="numbered"><label>81</label><mml:math id="M598" display="block"><mml:mrow><mml:msub><mml:mi mathvariant="normal">LW</mml:mi><mml:mo>↓</mml:mo></mml:msub><mml:mo>=</mml:mo><mml:msub><mml:mi mathvariant="italic">ϵ</mml:mi><mml:mi mathvariant="normal">atm</mml:mi></mml:msub><mml:mi mathvariant="italic">σ</mml:mi><mml:msubsup><mml:mover accent="true"><mml:mi>T</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mi mathvariant="normal">mo</mml:mi><mml:mn mathvariant="normal">4</mml:mn></mml:msubsup><mml:mo>,</mml:mo></mml:mrow></mml:math></disp-formula>
            with
<inline-formula><mml:math id="M599" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">ϵ</mml:mi><mml:mi mathvariant="normal">atm</mml:mi></mml:msub><mml:mo>=</mml:mo><mml:mn mathvariant="normal">0.8</mml:mn></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M600" display="inline"><mml:mrow><mml:msub><mml:mi>T</mml:mi><mml:mi mathvariant="normal">mo</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> being the bulk emissivity of the atmosphere and the absolute temperature at height <inline-formula><mml:math id="M601" display="inline"><mml:mrow><mml:msub><mml:mi>z</mml:mi><mml:mi mathvariant="normal">mo</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>.</p>
</sec>
<sec id="Ch1.S3.SS6.SSS2">
  <label>3.6.2</label><title>Coupling to RRTMG</title>
      <p id="d1e16237">As an advanced alternative to the clear-sky model, PALM can be used in combination with the RRTMG radiation code. The RRTMG source code is shipped along with PALM, but it is not part of the model (meaning that RRTMG is put under its own license). Unlike most embedded modules in PALM, the RRTMG is thus used as external library and linked to the default PALM code. The RRTMG subroutines are called<?pagebreak page1350?> from PALM as a 1-D model for each vertical column of the model grid. Vertical profiles of pressure, temperature, and water vapor volume mixing ratio are calculated in PALM and transferred to the radiation model. Moreover, information on clouds, namely the liquid water path and the effective droplet radius, is calculated by PALM and transferred to RRTMG. Concentrations of other trace gases are read during initialization from an input file. The standard profiles shipped with RRTMG are used by default. As RRTMG requires data up to the top of the atmosphere, the PALM data (i.e., <inline-formula><mml:math id="M602" display="inline"><mml:mi mathvariant="italic">θ</mml:mi></mml:math></inline-formula>, <inline-formula><mml:math id="M603" display="inline"><mml:mi>p</mml:mi></mml:math></inline-formula>, etc.) are extended and interpolated in the vertical direction by standard profiles, e.g., those shipped with RRTMG. In order to avoid large gradients at the interface between PALM's upper boundary and the upper atmospheric profiles, profiles are gradually blended over within the five grid points above the PALM domain.</p>
      <p id="d1e16254">RRTMG provides the shortwave and longwave radiative heating rates for each grid volume and the surface energy budget terms (see Sect. <xref ref-type="sec" rid="Ch1.S3.SS5"/>) and was first applied coupled to PALM by <xref ref-type="bibr" rid="bib1.bibx71" id="text.94"/>. When topographical elements are present at the surface, e.g., hills or buildings in urban area, it provides the radiation fluxes at the top boundary of the model for the radiative transfer model (RTM); see Sect. <xref ref-type="sec" rid="Ch1.S4.SS4"/>. As the default implementation of RRTMG does not provide the direct and diffuse irradiance, which are required for RTM, the original source code was modified so that they were available as outputs.</p>
</sec>
<sec id="Ch1.S3.SS6.SSS3">
  <label>3.6.3</label><title>Calculation of surface albedos</title>
      <p id="d1e16272">The calculation of the surface albedo components for longwave diffuse <inline-formula><mml:math id="M604" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">α</mml:mi><mml:mrow><mml:mi mathvariant="normal">lw</mml:mi><mml:mo>,</mml:mo><mml:mi mathvariant="normal">dif</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula>, longwave direct <inline-formula><mml:math id="M605" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">α</mml:mi><mml:mrow><mml:mi mathvariant="normal">lw</mml:mi><mml:mo>,</mml:mo><mml:mi mathvariant="normal">dir</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula>, shortwave diffuse <inline-formula><mml:math id="M606" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">α</mml:mi><mml:mrow><mml:mi mathvariant="normal">sw</mml:mi><mml:mo>,</mml:mo><mml:mi mathvariant="normal">dif</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula>, and shortwave direct <inline-formula><mml:math id="M607" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">α</mml:mi><mml:mrow><mml:mi mathvariant="normal">sw</mml:mi><mml:mo>,</mml:mo><mml:mi mathvariant="normal">dir</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> radiation, as required by RRTMG, is parameterized according to <xref ref-type="bibr" rid="bib1.bibx10" id="text.95"/> and <xref ref-type="bibr" rid="bib1.bibx11" id="text.96"/>. The parameterization involves dynamically changing the direct radiation albedos depending on <inline-formula><mml:math id="M608" display="inline"><mml:mi mathvariant="normal">Ψ</mml:mi></mml:math></inline-formula>, while diffuse radiation albedos are taken from a look-up table (see Table <xref ref-type="table" rid="Ch1.T7"/>). The particular calculation of the albedo depends on a surface-type classification into classes of ocean, sea ice, snow, asphalt, and land surfaces with strong as well as weak zenith dependence on the albedo.</p>

<?xmltex \floatpos{t}?><table-wrap id="Ch1.T7" specific-use="star"><?xmltex \currentcnt{7}?><label>Table 7</label><caption><p id="d1e16358">Albedos for a solar angle of 80 <inline-formula><mml:math id="M609" display="inline"><mml:msup><mml:mi/><mml:mo>∘</mml:mo></mml:msup></mml:math></inline-formula> for different surface types.</p></caption><oasis:table frame="topbot"><oasis:tgroup cols="5">
     <oasis:colspec colnum="1" colname="col1" align="left"/>
     <oasis:colspec colnum="2" colname="col2" align="center"/>
     <oasis:colspec colnum="3" colname="col3" align="center"/>
     <oasis:colspec colnum="4" colname="col4" align="center"/>
     <oasis:colspec colnum="5" colname="col5" align="left"/>
     <oasis:thead>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1">Surface type</oasis:entry>
         <oasis:entry colname="col2">Shortwave albedo</oasis:entry>
         <oasis:entry colname="col3">Longwave albedo</oasis:entry>
         <oasis:entry colname="col4">Broadband albedo</oasis:entry>
         <oasis:entry colname="col5">Zenith dependence</oasis:entry>
       </oasis:row>
     </oasis:thead>
     <oasis:tbody>
       <oasis:row>
         <oasis:entry colname="col1">Ocean</oasis:entry>
         <oasis:entry colname="col2">0.06</oasis:entry>
         <oasis:entry colname="col3">0.06</oasis:entry>
         <oasis:entry colname="col4">0.06</oasis:entry>
         <oasis:entry colname="col5">ocean-specific</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">Mixed farming, tall grassland</oasis:entry>
         <oasis:entry colname="col2">0.09</oasis:entry>
         <oasis:entry colname="col3">0.28</oasis:entry>
         <oasis:entry colname="col4">0.19</oasis:entry>
         <oasis:entry colname="col5">strong</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">Tall/medium grassland</oasis:entry>
         <oasis:entry colname="col2">0.11</oasis:entry>
         <oasis:entry colname="col3">0.33</oasis:entry>
         <oasis:entry colname="col4">0.23</oasis:entry>
         <oasis:entry colname="col5">strong</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">Evergreen shrubland</oasis:entry>
         <oasis:entry colname="col2">0.11</oasis:entry>
         <oasis:entry colname="col3">0.33</oasis:entry>
         <oasis:entry colname="col4">0.23</oasis:entry>
         <oasis:entry colname="col5">strong</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">Short grassland/meadow/shrubland</oasis:entry>
         <oasis:entry colname="col2">0.14</oasis:entry>
         <oasis:entry colname="col3">0.34</oasis:entry>
         <oasis:entry colname="col4">0.25</oasis:entry>
         <oasis:entry colname="col5">weak</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">Evergreen needleleaf forest</oasis:entry>
         <oasis:entry colname="col2">0.06</oasis:entry>
         <oasis:entry colname="col3">0.22</oasis:entry>
         <oasis:entry colname="col4">0.14</oasis:entry>
         <oasis:entry colname="col5">weak</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">Mixed deciduous forest</oasis:entry>
         <oasis:entry colname="col2">0.06</oasis:entry>
         <oasis:entry colname="col3">0.27</oasis:entry>
         <oasis:entry colname="col4">0.17</oasis:entry>
         <oasis:entry colname="col5">weak</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">Deciduous forest</oasis:entry>
         <oasis:entry colname="col2">0.06</oasis:entry>
         <oasis:entry colname="col3">0.31</oasis:entry>
         <oasis:entry colname="col4">0.19</oasis:entry>
         <oasis:entry colname="col5">weak</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">Tropical evergreen broadleaved forest</oasis:entry>
         <oasis:entry colname="col2">0.06</oasis:entry>
         <oasis:entry colname="col3">0.22</oasis:entry>
         <oasis:entry colname="col4">0.14</oasis:entry>
         <oasis:entry colname="col5">weak</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">Medium/tall grassland/woodland</oasis:entry>
         <oasis:entry colname="col2">0.06</oasis:entry>
         <oasis:entry colname="col3">0.28</oasis:entry>
         <oasis:entry colname="col4">0.18</oasis:entry>
         <oasis:entry colname="col5">weak</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">Desert, sandy</oasis:entry>
         <oasis:entry colname="col2">0.35</oasis:entry>
         <oasis:entry colname="col3">0.51</oasis:entry>
         <oasis:entry colname="col4">0.43</oasis:entry>
         <oasis:entry colname="col5">strong</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">Desert, rocky</oasis:entry>
         <oasis:entry colname="col2">0.24</oasis:entry>
         <oasis:entry colname="col3">0.40</oasis:entry>
         <oasis:entry colname="col4">0.32</oasis:entry>
         <oasis:entry colname="col5">strong</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">Tundra</oasis:entry>
         <oasis:entry colname="col2">0.10</oasis:entry>
         <oasis:entry colname="col3">0.27</oasis:entry>
         <oasis:entry colname="col4">0.19</oasis:entry>
         <oasis:entry colname="col5">strong</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">Land ice</oasis:entry>
         <oasis:entry colname="col2">0.90</oasis:entry>
         <oasis:entry colname="col3">0.65</oasis:entry>
         <oasis:entry colname="col4">0.77</oasis:entry>
         <oasis:entry colname="col5">weak</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">Sea ice</oasis:entry>
         <oasis:entry colname="col2">0.90</oasis:entry>
         <oasis:entry colname="col3">0.65</oasis:entry>
         <oasis:entry colname="col4">0.77</oasis:entry>
         <oasis:entry colname="col5">none</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">Snow</oasis:entry>
         <oasis:entry colname="col2">0.95</oasis:entry>
         <oasis:entry colname="col3">0.70</oasis:entry>
         <oasis:entry colname="col4">0.82</oasis:entry>
         <oasis:entry colname="col5">snow-specific</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">Bare soil</oasis:entry>
         <oasis:entry colname="col2">0.08</oasis:entry>
         <oasis:entry colname="col3">0.08</oasis:entry>
         <oasis:entry colname="col4">0.08</oasis:entry>
         <oasis:entry colname="col5">none</oasis:entry>
       </oasis:row>
     </oasis:tbody>
   </oasis:tgroup></oasis:table></table-wrap>

      <p id="d1e16718">For ocean surface, the direct radiation albedo is calculated as
              <disp-formula id="Ch1.E82" content-type="numbered"><label>82</label><mml:math id="M610" display="block"><mml:mtable class="split" rowspacing="0.2ex" columnspacing="1em" displaystyle="true" columnalign="right left"><mml:mtr><mml:mtd><mml:mrow><mml:msub><mml:mi mathvariant="italic">α</mml:mi><mml:mrow><mml:mi mathvariant="normal">lw</mml:mi><mml:mo>,</mml:mo><mml:mi mathvariant="normal">dir</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:mtd><mml:mtd><mml:mrow><mml:mo>=</mml:mo><mml:msub><mml:mi mathvariant="italic">α</mml:mi><mml:mrow><mml:mi mathvariant="normal">sw</mml:mi><mml:mo>,</mml:mo><mml:mi mathvariant="normal">dir</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:mtd></mml:mtr><mml:mtr><mml:mtd/><mml:mtd><mml:mrow><mml:mo>=</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mn mathvariant="normal">0.026</mml:mn><mml:mrow><mml:msup><mml:mi mathvariant="normal">Ψ</mml:mi><mml:mn mathvariant="normal">1.7</mml:mn></mml:msup><mml:mo>+</mml:mo><mml:mn mathvariant="normal">0.065</mml:mn></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>+</mml:mo><mml:mn mathvariant="normal">0.15</mml:mn><mml:mo>(</mml:mo><mml:mi mathvariant="normal">Ψ</mml:mi><mml:mo>-</mml:mo><mml:mn mathvariant="normal">0.1</mml:mn><mml:mo>)</mml:mo><mml:mo>(</mml:mo><mml:mi mathvariant="normal">Ψ</mml:mi><mml:mo>-</mml:mo><mml:mn mathvariant="normal">0.5</mml:mn><mml:mo>)</mml:mo><mml:mo>(</mml:mo><mml:mi mathvariant="normal">Ψ</mml:mi><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn><mml:mo>)</mml:mo><mml:mo>.</mml:mo></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
            Snow surfaces have a zenith dependence, viz.
              <disp-formula id="Ch1.E83" content-type="numbered"><label>83</label><mml:math id="M611" display="block"><mml:mrow><mml:msub><mml:mi mathvariant="italic">α</mml:mi><mml:mrow><mml:mi mathvariant="normal">lw</mml:mi><mml:mo>,</mml:mo><mml:mi mathvariant="normal">dir</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mfenced open="{" close=""><mml:mtable class="array" columnalign="left left left"><mml:mtr><mml:mtd><mml:mrow><mml:mn mathvariant="normal">0.5</mml:mn><mml:mo>(</mml:mo><mml:mn mathvariant="normal">1</mml:mn><mml:mo>-</mml:mo><mml:msub><mml:mi mathvariant="italic">α</mml:mi><mml:mrow><mml:mi mathvariant="normal">lw</mml:mi><mml:mo>,</mml:mo><mml:mi mathvariant="normal">dif</mml:mi></mml:mrow></mml:msub><mml:mo>)</mml:mo><mml:mfenced close=")" open="("><mml:mrow><mml:mstyle displaystyle="false"><mml:mstyle displaystyle="false"><mml:mfrac style="text"><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">1</mml:mn><mml:mo>+</mml:mo><mml:mn mathvariant="normal">4</mml:mn><mml:mi mathvariant="normal">Ψ</mml:mi></mml:mrow></mml:mfrac></mml:mstyle></mml:mstyle><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:mfenced></mml:mrow></mml:mtd><mml:mtd><mml:mtext>for</mml:mtext></mml:mtd><mml:mtd><mml:mrow><mml:mi mathvariant="normal">Ψ</mml:mi><mml:mo>&lt;</mml:mo><mml:mn mathvariant="normal">0.5</mml:mn><mml:mo>,</mml:mo></mml:mrow></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mrow><mml:msub><mml:mi mathvariant="italic">α</mml:mi><mml:mrow><mml:mi mathvariant="normal">lw</mml:mi><mml:mo>,</mml:mo><mml:mi mathvariant="normal">dif</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:mtd><mml:mtd><mml:mtext>for</mml:mtext></mml:mtd><mml:mtd><mml:mrow><mml:mi mathvariant="normal">Ψ</mml:mi><mml:mo>≥</mml:mo><mml:mn mathvariant="normal">0.5</mml:mn><mml:mo>,</mml:mo></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:mfenced><mml:mo>,</mml:mo></mml:mrow></mml:math></disp-formula>
            and
              <disp-formula id="Ch1.E84" content-type="numbered"><label>84</label><mml:math id="M612" display="block"><mml:mrow><mml:msub><mml:mi mathvariant="italic">α</mml:mi><mml:mrow><mml:mi mathvariant="normal">sw</mml:mi><mml:mo>,</mml:mo><mml:mi mathvariant="normal">dir</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mfenced open="{" close=""><mml:mtable class="array" columnalign="left left left"><mml:mtr><mml:mtd><mml:mrow><mml:mn mathvariant="normal">0.5</mml:mn><mml:mo>(</mml:mo><mml:mn mathvariant="normal">1</mml:mn><mml:mo>-</mml:mo><mml:msub><mml:mi mathvariant="italic">α</mml:mi><mml:mrow><mml:mi mathvariant="normal">sw</mml:mi><mml:mo>,</mml:mo><mml:mi mathvariant="normal">dif</mml:mi></mml:mrow></mml:msub><mml:mo>)</mml:mo><mml:mfenced open="(" close=")"><mml:mrow><mml:mstyle displaystyle="false"><mml:mstyle displaystyle="false"><mml:mfrac style="text"><mml:mn mathvariant="normal">3</mml:mn><mml:mrow><mml:mn mathvariant="normal">1</mml:mn><mml:mo>+</mml:mo><mml:mn mathvariant="normal">4</mml:mn><mml:mi mathvariant="normal">Ψ</mml:mi></mml:mrow></mml:mfrac></mml:mstyle></mml:mstyle><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:mfenced></mml:mrow></mml:mtd><mml:mtd><mml:mtext>for</mml:mtext></mml:mtd><mml:mtd><mml:mrow><mml:mi mathvariant="normal">Ψ</mml:mi><mml:mo>&lt;</mml:mo><mml:mn mathvariant="normal">0.5</mml:mn><mml:mo>,</mml:mo></mml:mrow></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mrow><mml:msub><mml:mi mathvariant="italic">α</mml:mi><mml:mrow><mml:mi mathvariant="normal">sw</mml:mi><mml:mo>,</mml:mo><mml:mi mathvariant="normal">dif</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:mtd><mml:mtd><mml:mtext>for</mml:mtext></mml:mtd><mml:mtd><mml:mrow><mml:mi mathvariant="normal">Ψ</mml:mi><mml:mo>≥</mml:mo><mml:mn mathvariant="normal">0.5</mml:mn><mml:mo>,</mml:mo></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:mfenced><mml:mo>,</mml:mo></mml:mrow></mml:math></disp-formula>
            but have additionally an upper bound limit of <inline-formula><mml:math id="M613" display="inline"><mml:mn mathvariant="normal">0.98</mml:mn></mml:math></inline-formula>. Albedos for land surface types are calculated as
              <disp-formula id="Ch1.E85" content-type="numbered"><label>85</label><mml:math id="M614" display="block"><mml:mrow><mml:msub><mml:mi mathvariant="italic">α</mml:mi><mml:mrow><mml:mi mathvariant="normal">lw</mml:mi><mml:mo>,</mml:mo><mml:mi mathvariant="normal">dir</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mfenced open="{" close=""><mml:mtable rowspacing="5.690551pt" class="array" columnalign="left left"><mml:mtr><mml:mtd><mml:mstyle displaystyle="false"><mml:mstyle displaystyle="false"><mml:mfrac style="text"><mml:mrow><mml:msub><mml:mi mathvariant="italic">α</mml:mi><mml:mrow><mml:mi mathvariant="normal">lw</mml:mi><mml:mo>,</mml:mo><mml:mi mathvariant="normal">dif</mml:mi></mml:mrow></mml:msub><mml:mo>⋅</mml:mo><mml:mn mathvariant="normal">1.4</mml:mn></mml:mrow><mml:mrow><mml:mn mathvariant="normal">1</mml:mn><mml:mo>+</mml:mo><mml:mn mathvariant="normal">0.8</mml:mn><mml:mi mathvariant="normal">Ψ</mml:mi></mml:mrow></mml:mfrac></mml:mstyle></mml:mstyle></mml:mtd><mml:mtd><mml:mtext>for strong zenith dependence,</mml:mtext></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:msub><mml:mi mathvariant="italic">α</mml:mi><mml:mrow><mml:mi mathvariant="normal">lw</mml:mi><mml:mo>,</mml:mo><mml:mi mathvariant="normal">dif</mml:mi></mml:mrow></mml:msub><mml:mo>⋅</mml:mo><mml:mn mathvariant="normal">1.1</mml:mn></mml:mrow><mml:mrow><mml:mn mathvariant="normal">1</mml:mn><mml:mo>+</mml:mo><mml:mn mathvariant="normal">0.2</mml:mn><mml:mi mathvariant="normal">Ψ</mml:mi></mml:mrow></mml:mfrac></mml:mstyle></mml:mtd><mml:mtd><mml:mtext>for weak zenith dependence,</mml:mtext></mml:mtd></mml:mtr></mml:mtable></mml:mfenced><mml:mo>,</mml:mo></mml:mrow></mml:math></disp-formula>
            and
              <disp-formula id="Ch1.E86" content-type="numbered"><label>86</label><mml:math id="M615" display="block"><mml:mrow><mml:msub><mml:mi mathvariant="italic">α</mml:mi><mml:mrow><mml:mi mathvariant="normal">sw</mml:mi><mml:mo>,</mml:mo><mml:mi mathvariant="normal">dir</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mfenced close="" open="{"><mml:mtable rowspacing="5.690551pt" class="array" columnalign="left left"><mml:mtr><mml:mtd><mml:mstyle displaystyle="false"><mml:mstyle displaystyle="false"><mml:mfrac style="text"><mml:mrow><mml:msub><mml:mi mathvariant="italic">α</mml:mi><mml:mrow><mml:mi mathvariant="normal">sw</mml:mi><mml:mo>,</mml:mo><mml:mi mathvariant="normal">dif</mml:mi></mml:mrow></mml:msub><mml:mo>⋅</mml:mo><mml:mn mathvariant="normal">1.4</mml:mn></mml:mrow><mml:mrow><mml:mn mathvariant="normal">1</mml:mn><mml:mo>+</mml:mo><mml:mn mathvariant="normal">0.8</mml:mn><mml:mi mathvariant="normal">Ψ</mml:mi></mml:mrow></mml:mfrac></mml:mstyle></mml:mstyle></mml:mtd><mml:mtd><mml:mtext>for strong zenith dependence.</mml:mtext></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:msub><mml:mi mathvariant="italic">α</mml:mi><mml:mrow><mml:mi mathvariant="normal">sw</mml:mi><mml:mo>,</mml:mo><mml:mi mathvariant="normal">dif</mml:mi></mml:mrow></mml:msub><mml:mo>⋅</mml:mo><mml:mn mathvariant="normal">1.1</mml:mn></mml:mrow><mml:mrow><mml:mn mathvariant="normal">1</mml:mn><mml:mo>+</mml:mo><mml:mn mathvariant="normal">0.2</mml:mn><mml:mi mathvariant="normal">Ψ</mml:mi></mml:mrow></mml:mfrac></mml:mstyle></mml:mtd><mml:mtd><mml:mtext>for weak zenith dependence.</mml:mtext></mml:mtd></mml:mtr></mml:mtable></mml:mfenced></mml:mrow></mml:math></disp-formula></p>
      <p id="d1e17195">Direct radiation albedos for surface of type sea ice, asphalt, and bare soil are set to be equal to those specified for diffuse radiation.</p>
</sec>
</sec>
<sec id="Ch1.S3.SS7">
  <label>3.7</label><title>Wind turbine model</title>
      <p id="d1e17207">The rapid development of wind energy in the last two decades and the clear trend towards larger wind turbines and larger wind farms led to an increased interest in wake effects. The wake of a wind turbine is the region downstream of a wind turbine which is mainly characterized by a reduced wind speed and increased turbulence compared to the free stream. This means that a downstream wind turbine will produce less power if located in the wake of an upstream turbine. Increased wind shear and turbulence imply higher loads for downstream turbines, which can reduce the lifespan of turbine components. Wake effects are especially crucial in large wind farms where wakes of multiple turbines overlap. A detailed understanding of the wake effect and how the ABL affects the wake, and vice versa, is therefore very important for the wind industry from turbine manufacturers to planning companies to wind farm operators and traders. As turbulent processes in the ABL greatly affect wind turbine wakes <xref ref-type="bibr" rid="bib1.bibx126" id="paren.97"/>, it may seem obvious to investigate wind farm flows with LES which can explicitly resolve most of the wake turbulence and its interaction with the ABL turbulence and thus serve as a virtual laboratory.</p>
      <?pagebreak page1351?><p id="d1e17213">The wind turbine model (WTM) included in PALM is based on the common actuator disk model (ADM) approach in which the rotor of a wind turbine is represented by a permeable disk that extracts energy from the flow by applying a thrust force at the disk. While in the frequently used simple version of the ADM (e.g., as proposed by <xref ref-type="bibr" rid="bib1.bibx14" id="altparen.98"/>) the forces are uniformly distributed and only the thrust force is considered (thus ignoring the torque), the WTM provides an advanced ADM (ADM-R) based on blade element momentum theory that considers both thrust and torque as functions of the radial and tangential position on the rotor disk. The basic concept is similar to the ADM-R proposed by <xref ref-type="bibr" rid="bib1.bibx130" id="text.99"/> with several modifications. The rotor plane is divided into annular segments as depicted in Fig. <xref ref-type="fig" rid="Ch1.F1"/>a). For the sake of clarity, only a few segments are shown. The segments have an equal size which is a function of the grid spacing. The default size is <inline-formula><mml:math id="M616" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="normal">Δ</mml:mi><mml:mi mathvariant="normal">min</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> in tangential and <inline-formula><mml:math id="M617" display="inline"><mml:mrow><mml:mn mathvariant="normal">0.5</mml:mn><mml:msub><mml:mi mathvariant="normal">Δ</mml:mi><mml:mi mathvariant="normal">min</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> in radial direction. For each segment, the local lift and drag forces (<inline-formula><mml:math id="M618" display="inline"><mml:mrow><mml:msub><mml:mi>f</mml:mi><mml:mi mathvariant="normal">l</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M619" display="inline"><mml:mrow><mml:msub><mml:mi>f</mml:mi><mml:mi mathvariant="normal">d</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>) per unit area are calculated:
            <disp-formula id="Ch1.E87" content-type="numbered"><label>87</label><mml:math id="M620" display="block"><mml:mtable columnspacing="1em" rowspacing="0.2ex" class="split" displaystyle="true" columnalign="right left"><mml:mtr><mml:mtd/><mml:mtd><mml:mrow><mml:msub><mml:mi>f</mml:mi><mml:mi mathvariant="normal">l</mml:mi></mml:msub><mml:mo>=</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mn mathvariant="normal">1</mml:mn><mml:mn mathvariant="normal">2</mml:mn></mml:mfrac></mml:mstyle><mml:mi mathvariant="italic">ρ</mml:mi><mml:msubsup><mml:mi>U</mml:mi><mml:mi mathvariant="normal">rel</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msubsup><mml:msub><mml:mi>c</mml:mi><mml:mi mathvariant="normal">l</mml:mi></mml:msub><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:msub><mml:mi>N</mml:mi><mml:mi mathvariant="normal">b</mml:mi></mml:msub><mml:mi>c</mml:mi></mml:mrow><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mi mathvariant="italic">π</mml:mi><mml:msub><mml:mi>r</mml:mi><mml:mi mathvariant="normal">seg</mml:mi></mml:msub></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>;</mml:mo></mml:mrow></mml:mtd></mml:mtr><mml:mtr><mml:mtd/><mml:mtd><mml:mrow><mml:msub><mml:mi>f</mml:mi><mml:mi mathvariant="normal">d</mml:mi></mml:msub><mml:mo>=</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mn mathvariant="normal">1</mml:mn><mml:mn mathvariant="normal">2</mml:mn></mml:mfrac></mml:mstyle><mml:mi mathvariant="italic">ρ</mml:mi><mml:msubsup><mml:mi>U</mml:mi><mml:mi mathvariant="normal">rel</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msubsup><mml:msub><mml:mi>c</mml:mi><mml:mi mathvariant="normal">d</mml:mi></mml:msub><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:msub><mml:mi>N</mml:mi><mml:mi mathvariant="normal">b</mml:mi></mml:msub><mml:mi>c</mml:mi></mml:mrow><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mi mathvariant="italic">π</mml:mi><mml:msub><mml:mi>r</mml:mi><mml:mi mathvariant="normal">seg</mml:mi></mml:msub></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>.</mml:mo></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
          <inline-formula><mml:math id="M621" display="inline"><mml:mrow><mml:msub><mml:mi>U</mml:mi><mml:mi mathvariant="normal">rel</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> is the local relative velocity in the center of the segment. It is calculated from the local wind speed components in axial and tangential direction, <inline-formula><mml:math id="M622" display="inline"><mml:mrow><mml:msub><mml:mi>U</mml:mi><mml:mi mathvariant="normal">N</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M623" display="inline"><mml:mrow><mml:msub><mml:mi>U</mml:mi><mml:mi mathvariant="italic">θ</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> (interpolated from the nearest grid points), and the velocity of the rotor blade segment <inline-formula><mml:math id="M624" display="inline"><mml:mrow><mml:mi mathvariant="normal">Ω</mml:mi><mml:msub><mml:mi>r</mml:mi><mml:mi mathvariant="normal">seg</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> as <inline-formula><mml:math id="M625" display="inline"><mml:mrow><mml:msub><mml:mi>U</mml:mi><mml:mi mathvariant="normal">rel</mml:mi></mml:msub><mml:mo>=</mml:mo><mml:msqrt><mml:mrow><mml:msubsup><mml:mi>U</mml:mi><mml:mi mathvariant="normal">N</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msubsup><mml:mo>+</mml:mo><mml:msup><mml:mfenced close=")" open="("><mml:mrow><mml:mi mathvariant="normal">Ω</mml:mi><mml:msub><mml:mi>r</mml:mi><mml:mi mathvariant="normal">seg</mml:mi></mml:msub><mml:mo>-</mml:mo><mml:msub><mml:mi>U</mml:mi><mml:mi mathvariant="italic">θ</mml:mi></mml:msub></mml:mrow></mml:mfenced><mml:mn mathvariant="normal">2</mml:mn></mml:msup></mml:mrow></mml:msqrt></mml:mrow></mml:math></inline-formula> with the angular velocity of the rotor <inline-formula><mml:math id="M626" display="inline"><mml:mi mathvariant="normal">Ω</mml:mi></mml:math></inline-formula> and the distance of the segment from the center of the rotor disk <inline-formula><mml:math id="M627" display="inline"><mml:mrow><mml:msub><mml:mi>r</mml:mi><mml:mi mathvariant="normal">seg</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>. <inline-formula><mml:math id="M628" display="inline"><mml:mrow><mml:msub><mml:mi>c</mml:mi><mml:mi mathvariant="normal">l</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M629" display="inline"><mml:mrow><mml:msub><mml:mi>c</mml:mi><mml:mi mathvariant="normal">d</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> are the lift and drag coefficients of the blades, respectively, which are a function of the angle of attack of the local flow at the blade segment and thus vary in radial direction. The solidity factor <inline-formula><mml:math id="M630" display="inline"><mml:mrow><mml:msub><mml:mi>N</mml:mi><mml:mi mathvariant="normal">b</mml:mi></mml:msub><mml:mi>c</mml:mi><mml:mo>/</mml:mo><mml:mo>(</mml:mo><mml:mn mathvariant="normal">2</mml:mn><mml:mi mathvariant="italic">π</mml:mi><mml:msub><mml:mi>r</mml:mi><mml:mi mathvariant="normal">seg</mml:mi></mml:msub><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula> represents the fraction of time a segment would be covered by a blade (with the number of rotor blades <inline-formula><mml:math id="M631" display="inline"><mml:mrow><mml:msub><mml:mi>N</mml:mi><mml:mi mathvariant="normal">b</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>, the chord <inline-formula><mml:math id="M632" display="inline"><mml:mi>c</mml:mi></mml:math></inline-formula>). The blade properties (<inline-formula><mml:math id="M633" display="inline"><mml:mi>c</mml:mi></mml:math></inline-formula>, <inline-formula><mml:math id="M634" display="inline"><mml:mrow><mml:msub><mml:mi>c</mml:mi><mml:mi mathvariant="normal">l</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>, and <inline-formula><mml:math id="M635" display="inline"><mml:mrow><mml:msub><mml:mi>c</mml:mi><mml:mi mathvariant="normal">d</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>) are read from input namelist files in a specified format. By default, the WTM includes publicly available data for the National Renewable Energy Laboratory (NREL) 5 MW reference turbine <xref ref-type="bibr" rid="bib1.bibx53" id="paren.100"/> but it can easily be adapted for other turbine types, too.
In a second step, the lift and drag forces are projected onto the axial and tangential directions to obtain the thrust <inline-formula><mml:math id="M636" display="inline"><mml:mrow><mml:msub><mml:mi>f</mml:mi><mml:mi mathvariant="normal">N</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> and torque <inline-formula><mml:math id="M637" display="inline"><mml:mrow><mml:msub><mml:mi>f</mml:mi><mml:mi mathvariant="normal">Θ</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>:
            <disp-formula id="Ch1.E88" content-type="numbered"><label>88</label><mml:math id="M638" display="block"><mml:mtable columnspacing="1em" rowspacing="0.2ex" class="split" displaystyle="true" columnalign="right left"><mml:mtr><mml:mtd/><mml:mtd><mml:mrow><mml:msub><mml:mi>f</mml:mi><mml:mi mathvariant="normal">N</mml:mi></mml:msub><mml:mo>=</mml:mo><mml:msub><mml:mi>f</mml:mi><mml:mi mathvariant="normal">l</mml:mi></mml:msub><mml:mi>cos⁡</mml:mi><mml:mi mathvariant="italic">ϕ</mml:mi><mml:mo>+</mml:mo><mml:msub><mml:mi>f</mml:mi><mml:mi mathvariant="normal">d</mml:mi></mml:msub><mml:mi>sin⁡</mml:mi><mml:mi mathvariant="italic">ϕ</mml:mi><mml:mo>;</mml:mo></mml:mrow></mml:mtd></mml:mtr><mml:mtr><mml:mtd/><mml:mtd><mml:mrow><mml:msub><mml:mi>f</mml:mi><mml:mi mathvariant="normal">Θ</mml:mi></mml:msub><mml:mo>=</mml:mo><mml:msub><mml:mi>f</mml:mi><mml:mi mathvariant="normal">l</mml:mi></mml:msub><mml:mi>sin⁡</mml:mi><mml:mi mathvariant="italic">ϕ</mml:mi><mml:mo>+</mml:mo><mml:msub><mml:mi>f</mml:mi><mml:mi mathvariant="normal">d</mml:mi></mml:msub><mml:mi>cos⁡</mml:mi><mml:mi mathvariant="italic">ϕ</mml:mi><mml:mo>.</mml:mo></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
          Here, <inline-formula><mml:math id="M639" display="inline"><mml:mi mathvariant="italic">ϕ</mml:mi></mml:math></inline-formula> is the angle between the local velocity components <inline-formula><mml:math id="M640" display="inline"><mml:mrow><mml:mi mathvariant="italic">ϕ</mml:mi><mml:mo>=</mml:mo><mml:mi>arctan⁡</mml:mi><mml:mstyle displaystyle="false"><mml:mfrac style="text"><mml:mrow><mml:msub><mml:mi>U</mml:mi><mml:mi mathvariant="normal">N</mml:mi></mml:msub></mml:mrow><mml:mrow><mml:mi mathvariant="normal">Ω</mml:mi><mml:msub><mml:mi>r</mml:mi><mml:mi mathvariant="normal">seg</mml:mi></mml:msub><mml:mo>-</mml:mo><mml:msub><mml:mi>U</mml:mi><mml:mi mathvariant="italic">θ</mml:mi></mml:msub></mml:mrow></mml:mfrac></mml:mstyle></mml:mrow></mml:math></inline-formula>. These forces are then smeared and interpolated to the PALM grid points. To optimize the performance of the time-consuming smearing process, the smearing is done with a polynomial function instead of the standard Gaussian smearing and is confined to the region around the rotor.
The effect of the tower and nacelle are considered by a simple drag force approach:
            <disp-formula id="Ch1.E89" content-type="numbered"><label>89</label><mml:math id="M641" display="block"><mml:mtable class="split" columnspacing="1em" rowspacing="0.2ex" displaystyle="true" columnalign="right"><mml:mtr><mml:mtd><mml:mrow><mml:msub><mml:mi>f</mml:mi><mml:mrow><mml:mi mathvariant="normal">d</mml:mi><mml:mo>,</mml:mo><mml:mi mathvariant="normal">t</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mn mathvariant="normal">1</mml:mn><mml:mn mathvariant="normal">2</mml:mn></mml:mfrac></mml:mstyle><mml:mi mathvariant="italic">ρ</mml:mi><mml:msubsup><mml:mi>U</mml:mi><mml:mi mathvariant="normal">N</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msubsup><mml:msub><mml:mi>c</mml:mi><mml:mrow><mml:mi mathvariant="normal">d</mml:mi><mml:mo>,</mml:mo><mml:mi mathvariant="normal">t</mml:mi></mml:mrow></mml:msub><mml:mo>;</mml:mo></mml:mrow></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mrow><mml:msub><mml:mi>f</mml:mi><mml:mrow><mml:mi mathvariant="normal">d</mml:mi><mml:mo>,</mml:mo><mml:mi mathvariant="normal">n</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mn mathvariant="normal">1</mml:mn><mml:mn mathvariant="normal">2</mml:mn></mml:mfrac></mml:mstyle><mml:mi mathvariant="italic">ρ</mml:mi><mml:msubsup><mml:mi>U</mml:mi><mml:mi mathvariant="normal">N</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msubsup><mml:msub><mml:mi>c</mml:mi><mml:mrow><mml:mi mathvariant="normal">d</mml:mi><mml:mo>,</mml:mo><mml:mi mathvariant="normal">n</mml:mi></mml:mrow></mml:msub><mml:mo>,</mml:mo></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
          where <inline-formula><mml:math id="M642" display="inline"><mml:mrow><mml:msub><mml:mi>f</mml:mi><mml:mrow><mml:mi mathvariant="normal">d</mml:mi><mml:mo>,</mml:mo><mml:mi mathvariant="normal">t</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M643" display="inline"><mml:mrow><mml:msub><mml:mi>f</mml:mi><mml:mrow><mml:mi mathvariant="normal">d</mml:mi><mml:mo>,</mml:mo><mml:mi mathvariant="normal">n</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> are the drag forces of the tower and the nacelle, respectively, with the drag coefficients <inline-formula><mml:math id="M644" display="inline"><mml:mrow><mml:msub><mml:mi>c</mml:mi><mml:mrow><mml:mi mathvariant="normal">d</mml:mi><mml:mo>,</mml:mo><mml:mi mathvariant="normal">t</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mn mathvariant="normal">1.2</mml:mn></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M645" display="inline"><mml:mrow><mml:msub><mml:mi>c</mml:mi><mml:mrow><mml:mi mathvariant="normal">d</mml:mi><mml:mo>,</mml:mo><mml:mi mathvariant="normal">n</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mn mathvariant="normal">0.85</mml:mn></mml:mrow></mml:math></inline-formula>, and <inline-formula><mml:math id="M646" display="inline"><mml:mrow><mml:msub><mml:mi>U</mml:mi><mml:mi mathvariant="normal">N</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> is the local axial velocity component.
The forces (thrust, torque, and drag from tower and nacelle <inline-formula><mml:math id="M647" display="inline"><mml:mrow><mml:msub><mml:mi>f</mml:mi><mml:mi mathvariant="normal">l</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>, <inline-formula><mml:math id="M648" display="inline"><mml:mrow><mml:msub><mml:mi>f</mml:mi><mml:mi mathvariant="normal">d</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>, <inline-formula><mml:math id="M649" display="inline"><mml:mrow><mml:msub><mml:mi>f</mml:mi><mml:mrow><mml:mi mathvariant="normal">d</mml:mi><mml:mo>,</mml:mo><mml:mi mathvariant="normal">t</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula>, and <inline-formula><mml:math id="M650" display="inline"><mml:mrow><mml:msub><mml:mi>f</mml:mi><mml:mrow><mml:mi mathvariant="normal">d</mml:mi><mml:mo>,</mml:mo><mml:mi mathvariant="normal">t</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula>) are finally added as sink terms to the Navier–Stokes equations (Eq. <xref ref-type="disp-formula" rid="Ch1.E2"/>).</p>

<?xmltex \floatpos{t}?><table-wrap id="Ch1.T8" specific-use="star"><?xmltex \currentcnt{8}?><label>Table 8</label><caption><p id="d1e17963">List of symbols related to the wind turbine model.</p></caption><oasis:table frame="topbot"><oasis:tgroup cols="3">
     <oasis:colspec colnum="1" colname="col1" align="left"/>
     <oasis:colspec colnum="2" colname="col2" align="left"/>
     <oasis:colspec colnum="3" colname="col3" align="left"/>
     <oasis:thead>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1">Symbol</oasis:entry>
         <oasis:entry colname="col2">Dimension</oasis:entry>
         <oasis:entry colname="col3">Description</oasis:entry>
       </oasis:row>
     </oasis:thead>
     <oasis:tbody>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M651" display="inline"><mml:mi>c</mml:mi></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M652" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">m</mml:mi></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">Chord length in wind turbine model</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M653" display="inline"><mml:mrow><mml:msub><mml:mi>c</mml:mi><mml:mi mathvariant="normal">d</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"/>
         <oasis:entry colname="col3">Blade drag coefficient in wind turbine model</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M654" display="inline"><mml:mrow><mml:msub><mml:mi>c</mml:mi><mml:mi mathvariant="normal">l</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"/>
         <oasis:entry colname="col3">Blade lift coefficient in wind turbine model</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M655" display="inline"><mml:mrow><mml:msub><mml:mi>c</mml:mi><mml:mrow><mml:mi mathvariant="normal">d</mml:mi><mml:mo>,</mml:mo><mml:mi mathvariant="normal">n</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"/>
         <oasis:entry colname="col3">Nacelle drag coefficient in wind turbine model</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M656" display="inline"><mml:mrow><mml:msub><mml:mi>c</mml:mi><mml:mrow><mml:mi mathvariant="normal">d</mml:mi><mml:mo>,</mml:mo><mml:mi mathvariant="normal">t</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"/>
         <oasis:entry colname="col3">Tower drag coefficient in wind turbine model</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M657" display="inline"><mml:mrow><mml:msub><mml:mi>f</mml:mi><mml:mi mathvariant="normal">d</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M658" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">N</mml:mi><mml:mspace width="0.125em" linebreak="nobreak"/><mml:msup><mml:mi mathvariant="normal">m</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">2</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">Blade drag force in wind turbine model</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M659" display="inline"><mml:mrow><mml:msub><mml:mi>f</mml:mi><mml:mi mathvariant="normal">l</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M660" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">N</mml:mi><mml:mspace linebreak="nobreak" width="0.125em"/><mml:msup><mml:mi mathvariant="normal">m</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">2</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">Blade lift force in wind turbine model</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M661" display="inline"><mml:mrow><mml:msub><mml:mi>f</mml:mi><mml:mrow><mml:mi mathvariant="normal">d</mml:mi><mml:mo>,</mml:mo><mml:mi mathvariant="normal">n</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M662" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">N</mml:mi><mml:mspace width="0.125em" linebreak="nobreak"/><mml:msup><mml:mi mathvariant="normal">m</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">2</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">Nacelle drag force in wind turbine model</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M663" display="inline"><mml:mrow><mml:msub><mml:mi>f</mml:mi><mml:mrow><mml:mi mathvariant="normal">d</mml:mi><mml:mo>,</mml:mo><mml:mi mathvariant="normal">t</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M664" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">N</mml:mi><mml:mspace width="0.125em" linebreak="nobreak"/><mml:msup><mml:mi mathvariant="normal">m</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">2</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">Tower drag force in wind turbine model</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M665" display="inline"><mml:mrow><mml:msub><mml:mi>N</mml:mi><mml:mi mathvariant="normal">b</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"/>
         <oasis:entry colname="col3">Number of rotor blades in wind turbine model</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M666" display="inline"><mml:mrow><mml:msub><mml:mi>r</mml:mi><mml:mi mathvariant="normal">seg</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M667" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">m</mml:mi></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">Distance of a segment from the rotor disk center in wind turbine model</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M668" display="inline"><mml:mrow><mml:msub><mml:mi>U</mml:mi><mml:mi mathvariant="normal">N</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M669" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">m</mml:mi><mml:mspace linebreak="nobreak" width="0.125em"/><mml:msup><mml:mi mathvariant="normal">s</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">Local velocity in axial direction in wind turbine model</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M670" display="inline"><mml:mrow><mml:msub><mml:mi>U</mml:mi><mml:mi mathvariant="normal">rel</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M671" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">m</mml:mi><mml:mspace width="0.125em" linebreak="nobreak"/><mml:msup><mml:mi mathvariant="normal">s</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">Local relative velocity in wind turbine model</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M672" display="inline"><mml:mrow><mml:msub><mml:mi>U</mml:mi><mml:mi mathvariant="normal">Θ</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M673" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">m</mml:mi><mml:mspace linebreak="nobreak" width="0.125em"/><mml:msup><mml:mi mathvariant="normal">s</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">Local velocity in tangential direction in wind turbine model</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M674" display="inline"><mml:mi mathvariant="italic">ϕ</mml:mi></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M675" display="inline"><mml:msup><mml:mi/><mml:mo>∘</mml:mo></mml:msup></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">Angle between the local velocity components in wind turbine model</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"><inline-formula><mml:math id="M676" display="inline"><mml:mi mathvariant="normal">Ω</mml:mi></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M677" display="inline"><mml:msup><mml:mi/><mml:mo>∘</mml:mo></mml:msup></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3">Angular velocity of the rotor in wind turbine model</oasis:entry>
       </oasis:row>
     </oasis:tbody>
   </oasis:tgroup></oasis:table></table-wrap>

<?xmltex \floatpos{t}?><table-wrap id="Ch1.T9"><?xmltex \currentcnt{9}?><label>Table 9</label><caption><p id="d1e18471">List of lateral boundary conditions available in PALM.</p></caption><oasis:table frame="topbot"><oasis:tgroup cols="2">
     <oasis:colspec colnum="1" colname="col1" align="left"/>
     <oasis:colspec colnum="2" colname="col2" align="left"/>
     <oasis:thead>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1">Boundary condition</oasis:entry>
         <oasis:entry colname="col2">Types</oasis:entry>
       </oasis:row>
     </oasis:thead>
     <oasis:tbody>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1">Cyclic</oasis:entry>
         <oasis:entry colname="col2">–</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">Inflow</oasis:entry>
         <oasis:entry colname="col2">laminar</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"/>
         <oasis:entry colname="col2">turbulence recycling</oasis:entry>
       </oasis:row>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1"/>
         <oasis:entry colname="col2">synthetic turbulence generator</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">Outflow</oasis:entry>
         <oasis:entry colname="col2">radiation</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"/>
         <oasis:entry colname="col2">turbulent outflow</oasis:entry>
       </oasis:row>
     </oasis:tbody>
   </oasis:tgroup></oasis:table></table-wrap>

      <?xmltex \floatpos{t}?><fig id="Ch1.F1" specific-use="star"><?xmltex \currentcnt{1}?><label>Figure 1</label><caption><p id="d1e18552"><bold>(a)</bold> Schematic representation of the ADM-R model used in the WTM. Arrows denote the direction of the forces acting on the flow. <bold>(b)</bold> Example of a wake simulated with PALM-WTM. Shown is the instantaneous wind speed in mean flow direction (<inline-formula><mml:math id="M678" display="inline"><mml:mi>u</mml:mi></mml:math></inline-formula> component, inflow from the left).</p></caption>
          <?xmltex \igopts{width=341.433071pt}?><graphic xlink:href="https://gmd.copernicus.org/articles/13/1335/2020/gmd-13-1335-2020-f01.png"/>

        </fig>

      <p id="d1e18573">The WTM contains a baseline rotational speed controller for the rotor of the wind turbine, implemented after <xref ref-type="bibr" rid="bib1.bibx53" id="text.101"/>. The controller parameters are only valid for the NREL 5 MW reference turbine and need to be adjusted for<?pagebreak page1352?> different turbine types. The controller ensures that the wind turbine's power is following the constructor's power curve by adjusting the generator torque below and the blade pitch angles above the rated wind speed of the wind turbine. The wind turbine's electrical power is calculated from the torque and rotational speed of the rotor with the possibility to correct for generator and gearbox efficiency. Further details can be found in <xref ref-type="bibr" rid="bib1.bibx53" id="text.102"/>. A yaw controller that ensures the automatic orientation of the wind turbine perpendicular to the wind is implemented following <xref ref-type="bibr" rid="bib1.bibx113" id="text.103"/>.</p>
      <p id="d1e18585">Figure <xref ref-type="fig" rid="Ch1.F1"/>b shows a single turbine wake simulated by the PALM-WTM. The leftmost plane displays the turbulent inflow field. The near wake with its ring-shaped structure is visible in the central plane, while the far wake shown in the rightmost plane is more uniform, and the flow is starting to recover.</p>
      <p id="d1e18590">The WTM has already been used in a number of studies. <xref ref-type="bibr" rid="bib1.bibx25" id="text.104"/> simulated the offshore wind farm EnBW Baltic 1 and investigated the impact of the stable ABL on power production and wake effects. <xref ref-type="bibr" rid="bib1.bibx126" id="text.105"/> investigated the deflected wake behind a yawed wind turbine for different atmospheric stabilities. <?pagebreak page1353?><xref ref-type="bibr" rid="bib1.bibx127" id="text.106"/> tried to reproduce the wind conditions around an offshore wind turbine by forcing the simulation with time series from a mesoscale model. They found a generally good agreement when comparing the PALM results with data from a meteorological mast and lidar measurements. <xref ref-type="bibr" rid="bib1.bibx1" id="text.107"/> compared the results of the WTM and other LES models for very large idealized wind farms and explored how to best present and compare the resulting variability.</p>
</sec>
</sec>
<sec id="Ch1.S4">
  <label>4</label><title>PALM-4U components</title>
      <p id="d1e18614">In this section, those modules are described which were newly implemented in the PALM model system. Note that PALM-4U components are essentially designed to be used for applications in urban environment, although they might as well be valuable for simulations without clear focus on urban processes.</p>
<sec id="Ch1.S4.SS1">
  <label>4.1</label><title>Topography</title>
      <p id="d1e18624">Cartesian topography in PALM is considered using the mask method <xref ref-type="bibr" rid="bib1.bibx12" id="paren.108"/>, where a grid cell is either 100 % fluid or 100 % obstacle. Fluid grid points are divided into grid points without adjacent surfaces where standard equations are solved, and surface-adjacent grid points where partly different code is executed, e.g., to represent wall functions. In former PALM versions, the topography masking was implemented using 2-D horizontal maps of vertical cell indices indicating the topography top at each grid point (<inline-formula><mml:math id="M679" display="inline"><mml:mi>x</mml:mi></mml:math></inline-formula>, <inline-formula><mml:math id="M680" display="inline"><mml:mi>y</mml:mi></mml:math></inline-formula>) on the staggered grid, effectively transforming a 3-D building and terrain topology into a 2.5-D topography. In this way, Cartesian topography was limited to surface mounted obstacles, forbidding overhanging structures such as bridges or tunnels. In order to overcome this limitation, PALM 6.0 uses a 3-D bit array to flag obstacles and surface-adjacent grid points. The individual terms of the standard governing equations are then solved at every model grid point. Obstacle grid points and, if required, surface-adjacent grid points are masked by multiplying the individual terms of the standard equations by zero. This revised Cartesian topography implementation enables full 3-D representation of obstacles, allowing for considering bridges or tunnel-like openings within buildings as recently studied by <xref ref-type="bibr" rid="bib1.bibx30" id="text.109"/>. A new Fortran derived-type data structure was implemented to efficiently store and compute data for complex surfaces (see Sect. <xref ref-type="sec" rid="Ch1.S5.SS1"/>).</p>
</sec>
<sec id="Ch1.S4.SS2">
  <label>4.2</label><title>Gas-phase chemistry</title>
      <p id="d1e18657">Gas-phase chemistry has been implemented into PALM 6.0 as an optional feature. When the gas-phase chemistry option is invoked, <inline-formula><mml:math id="M681" display="inline"><mml:mrow><mml:msub><mml:mi>N</mml:mi><mml:mi mathvariant="normal">chem</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> additional equations in analogy to Eq. (<xref ref-type="disp-formula" rid="Ch1.E5"/>) will be solved, with <inline-formula><mml:math id="M682" display="inline"><mml:mrow><mml:msub><mml:mi>N</mml:mi><mml:mi mathvariant="normal">chem</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> being the number of variable compounds of the chemical reaction scheme. The source/sink term therein for each chemical species includes emissions, chemical transformation, and deposition. This implementation permits the choice amongst gas-phase chemistry schemes of different complexity. Automatic generation of the chemistry code with the Kinetic Pre-Processor (KPP) version 2.2.3 <xref ref-type="bibr" rid="bib1.bibx20" id="paren.110"/> and an adapted version of the KP<inline-formula><mml:math id="M683" display="inline"><mml:msup><mml:mi/><mml:mn mathvariant="normal">4</mml:mn></mml:msup></mml:math></inline-formula> preprocessing tool <xref ref-type="bibr" rid="bib1.bibx52" id="paren.111"/> allows for high flexibility in the choice of gas-phase chemical mechanisms. Photolysis frequencies for reactions involving photochemistry are parameterized according to <xref ref-type="bibr" rid="bib1.bibx95" id="text.112"/>.</p>
      <p id="d1e18703">A number of predefined gas-phase chemical mechanisms of different complexity ranging from the photostationary state to the Carbon Bond Mechanism (CBM4) <xref ref-type="bibr" rid="bib1.bibx29" id="paren.113"/> are supplied with PALM. The source code for the chosen gas-phase chemistry mechanism is generated by utilizing the preprocessor prior to the compilation of the PALM-4U code. Due to the high computational demands, a compromise is necessary with respect to the degree of detail of the atmospheric chemistry. By default, the source code of PALM-4U is supplied with a chemistry module describing the photostationary equilibrium between <inline-formula><mml:math id="M684" display="inline"><mml:mrow class="chem"><mml:mi mathvariant="normal">NO</mml:mi></mml:mrow></mml:math></inline-formula>, <inline-formula><mml:math id="M685" display="inline"><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">O</mml:mi><mml:mn mathvariant="normal">3</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula>, and <inline-formula><mml:math id="M686" display="inline"><mml:mrow class="chem"><mml:mi mathvariant="normal">NO</mml:mi></mml:mrow></mml:math></inline-formula>, plus the transport of a passive compound. The parameterization of dry deposition processes is implemented following the resistance approach. For gaseous compounds, the DEPAC module <xref ref-type="bibr" rid="bib1.bibx124" id="paren.114"/> is used. Deposition of aerosols (PM<inline-formula><mml:math id="M687" display="inline"><mml:msub><mml:mi/><mml:mn mathvariant="normal">10</mml:mn></mml:msub></mml:math></inline-formula>, PM<inline-formula><mml:math id="M688" display="inline"><mml:msub><mml:mi/><mml:mn mathvariant="normal">2.5</mml:mn></mml:msub></mml:math></inline-formula> was implemented following <xref ref-type="bibr" rid="bib1.bibx133" id="text.115"/>.</p>
      <p id="d1e18761">Emissions of gases and/or passive compounds can be provided in different levels of detail (LODs). Three modes were implemented, of which two require emission data from file and one is defined via a Fortran namelist and information from the static driver (see also Sect. <xref ref-type="sec" rid="Ch1.S5.SS2.SSS1"/>). The latter, named “parameterized” mode, is currently only implemented for the traffic sector, in which emissions rely on a street-type classification provided by OpenStreetMap (<uri>https://www.openstreetmap.org</uri>, last access: 18 February 2020). For data from file, gridded emission information can be provided in two LODs in the desired netCDF format file (see also Sect. <xref ref-type="sec" rid="Ch1.S5.SS2.SSS1"/>). LOD 1 files require annual emission information which are temporally disaggregated by PALM-4U using sector-specific time factors, while the LOD 2 files must contain temporally disaggregated emission information. Details of these three emission modes are provided in the online documentation of the PALM-4U chemistry module.</p>
</sec>
<sec id="Ch1.S4.SS3">
  <label>4.3</label><title>Aerosol physics</title>
      <?pagebreak page1354?><p id="d1e18779">Aerosol physics were implemented based on the sectional aerosol module for large-scale applications <xref ref-type="bibr" rid="bib1.bibx60" id="paren.116"><named-content content-type="pre">SALSA;</named-content></xref> which includes a detailed description of the aerosol number size distribution, chemical composition, and aerosol dynamic processes. This very aerosol module was chosen to be implemented in PALM due to SALSA's flexibility, and particularly since one major criterion in its development has been limiting computational expenses without the cost of accuracy.<?xmltex \hack{\newpage}?></p>
      <p id="d1e18788">In the aerosol module, a continuous aerosol size distribution function is discretized into a number of size bins (10 by default) based on the mean particle diameter, and each bin is further divided into different chemical components. The number and mass concentration of each chemical component in each bin are prognostic variables. Currently, the following chemical components can be included: sulfuric acid (<inline-formula><mml:math id="M689" display="inline"><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">H</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub><mml:msub><mml:mi mathvariant="normal">SO</mml:mi><mml:mn mathvariant="normal">4</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula>), organic carbon (<inline-formula><mml:math id="M690" display="inline"><mml:mrow class="chem"><mml:mi mathvariant="normal">OC</mml:mi></mml:mrow></mml:math></inline-formula>), black carbon (<inline-formula><mml:math id="M691" display="inline"><mml:mrow class="chem"><mml:mi mathvariant="normal">BC</mml:mi></mml:mrow></mml:math></inline-formula>), nitric acid (<inline-formula><mml:math id="M692" display="inline"><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">HNO</mml:mi><mml:mn mathvariant="normal">3</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula>), ammonium (<inline-formula><mml:math id="M693" display="inline"><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">NH</mml:mi><mml:mn mathvariant="normal">3</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula>), sea salt, dust, and water (<inline-formula><mml:math id="M694" display="inline"><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">H</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub><mml:mi mathvariant="normal">O</mml:mi></mml:mrow></mml:math></inline-formula>). By default, aerosol particles in one bin are considered internally mixed but it is possible to include externally mixed populations as well. The aerosol dynamic processes included are coagulation, nucleation, dry deposition on solid surfaces and resolved-scale vegetation, and condensation and dissolutional growth by gaseous <inline-formula><mml:math id="M695" display="inline"><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">H</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub><mml:msub><mml:mi mathvariant="normal">SO</mml:mi><mml:mn mathvariant="normal">4</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula>, <inline-formula><mml:math id="M696" display="inline"><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">HNO</mml:mi><mml:mn mathvariant="normal">3</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula>, <inline-formula><mml:math id="M697" display="inline"><mml:mrow class="chem"><mml:msub><mml:mi mathvariant="normal">NH</mml:mi><mml:mn mathvariant="normal">3</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula>, and semi- and non-volatile organics (<inline-formula><mml:math id="M698" display="inline"><mml:mrow class="chem"><mml:mi mathvariant="normal">SVOC</mml:mi></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M699" display="inline"><mml:mrow class="chem"><mml:mi mathvariant="normal">NVOC</mml:mi></mml:mrow></mml:math></inline-formula>). These gas concentrations can be read to SALSA from the online chemistry module (Sect. <xref ref-type="sec" rid="Ch1.S4.SS2"/>).</p>
      <p id="d1e18916">The model implementation has been successfully evaluated against measurements on the vertical variation of the aerosol number size distribution and concentration in an urban environment. For details of the implementation and model evaluation, see <xref ref-type="bibr" rid="bib1.bibx62" id="author.117"/> (<xref ref-type="bibr" rid="bib1.bibx62" id="year.118"/>, this special issue).</p>
</sec>
<sec id="Ch1.S4.SS4">
  <label>4.4</label><title>Radiative transfer in complex environments</title>
      <p id="d1e18934">The RTM in PALM 6.0 calculates radiative interactions in geometrically complex environments like street-level urban canopy or complex terrain, and it represents a key component in modeling of energy exchanges for such scenarios. The RTM takes radiation from the radiation model (e.g., clear sky or RRTMG; see Sect. <xref ref-type="sec" rid="Ch1.S3.SS6"/>) on top of the complex urban or natural canopy layer, and it models the shortwave and longwave radiative processes inside this layer. It resolves shading, multiple reflections, emission, and absorption of radiation among surfaces and volumetric plant canopy within three-dimensional geometry. The resulting radiative fluxes are then supplied to the surface energy balance in the LSM and building surface modules (BSMs; see Sect. <xref ref-type="sec" rid="Ch1.S4.SS5"/>). Sensible heat from radiation absorbed inside the plant canopy is used to calculate the tendencies of the air potential temperature in volumes occupied with vegetation. The radiative fluxes inside the plant canopy are also used for the calculation of evapotranspiration and corresponding latent heat from trees. Moreover, the RTM models the mean radiant temperature and provides corresponding SW and LW fluxes to the biometeorology module for calculation of biometeorology indices (see Sect. <xref ref-type="sec" rid="Ch1.S4.SS11"/>).</p>
      <p id="d1e18943">The first version of RTM (1.0) appeared in PALM as a part of PALM-USM module <xref ref-type="bibr" rid="bib1.bibx91" id="paren.119"><named-content content-type="pre">see</named-content></xref>. The current version of  RTM (3.0), which is part of PALM-4U 6.0, was significantly enhanced and it serves for calculation of radiative exchange among all surfaces (BSM as well as LSM surfaces). The enhancements of the new version include incorporation of new processes (e.g., interaction of longwave radiation with plant canopy), improved accuracy and scalability with new angular discretization scheme, as well as the significant improvement of performance via a new 2-D ray-tracing method and highly optimized parallelization.</p>
<sec id="Ch1.S4.SS4.SSS1">
  <label>4.4.1</label><title>Modeling of radiative processes</title>
      <p id="d1e18958">The RTM simulates radiative processes by calculating radiative fluxes between the Sun, sky, individual grid surface elements, and individual grid cells containing plant canopy. All radiative fluxes are modeled separately for shortwave and longwave radiation. The irradiance of each surface element is calculated using view factors (VFs), particularly sky view factors for diffuse radiation from the sky and surface view factors for reflected and emitted radiation. The plant canopy interaction with radiation is modeled via plant canopy sink factors (CSFs) which represent the portion of the radiation arriving from a particular source (e.g., the Sun, the sky, or a surface element) which is absorbed in a particular plant canopy grid cell.</p>
      <p id="d1e18961">The RTM uses the computational domain of PALM and its discretization and splitting among parallel Message Passing Interface (MPI) processes. The calculation of radiative interactions is split into two phases. The calculation of VFs, CSFs, and other time-invariant data, which represent a computationally demanding process, is done once during the initialization phase of the model so that the CPU, memory, and IPC demands for the following time-stepping phase are minimized. The calculation of the actual irradiance and heat fluxes is done during each radiation time step and it represents a computationally inexpensive process.</p>
</sec>
<sec id="Ch1.S4.SS4.SSS2">
  <label>4.4.2</label><title>View factors and canopy sink factors</title>
      <p id="d1e18972">RTM 3.0 uses ray tracing together with angular discretization of view for calculation of radiative interactions. An optimized and parallelized 2-D ray-tracing algorithm is used to follow a fixed number of rays from each surface element or plant canopy grid cell, each of them representing an analytically determined portion of its view. The surface element that each ray strikes is used as a partial source of the target face's irradiance. The portion of view represented by the rays targeted above the horizon forms the target face's sky view factor, which describes irradiance by diffuse solar radiation and by the thermal radiation from the sky. The direct solar irradiance and shading is solved using precomputed ray paths for discretized apparent solar positions for simulation times.</p>
      <?pagebreak page1355?><p id="d1e18975">Plant canopy is resolved as a fully three-dimensional structure of grid cells, each of which can have different leaf area density (LAD) and therefore different optical properties. The partial opacity of plant canopy grid cells means that the leaves of the trees and shrubs cover a portion of the view from the respective surface elements in the direction of the grid cell. When ray tracing, the grid cells with plant canopy are considered as partially opaque obstacles with transmittance <inline-formula><mml:math id="M700" display="inline"><mml:mi mathvariant="italic">ζ</mml:mi></mml:math></inline-formula> determined as
              <disp-formula id="Ch1.E90" content-type="numbered"><label>90</label><mml:math id="M701" display="block"><mml:mrow><mml:mi mathvariant="italic">ζ</mml:mi><mml:mo>=</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:msub><mml:mi mathvariant="italic">γ</mml:mi><mml:mi mathvariant="normal">t</mml:mi></mml:msub></mml:mrow><mml:mrow><mml:msub><mml:mi mathvariant="italic">γ</mml:mi><mml:mi mathvariant="normal">i</mml:mi></mml:msub></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>=</mml:mo><mml:msup><mml:mi>e</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mi mathvariant="italic">ξ</mml:mi><mml:mspace width="0.33em" linebreak="nobreak"/><mml:mi mathvariant="normal">LAD</mml:mi><mml:mspace width="0.33em" linebreak="nobreak"/><mml:msub><mml:mi>l</mml:mi><mml:mi mathvariant="normal">is</mml:mi></mml:msub></mml:mrow></mml:msup><mml:mo>,</mml:mo></mml:mrow></mml:math></disp-formula>
            where <inline-formula><mml:math id="M702" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">γ</mml:mi><mml:mi mathvariant="normal">i</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> is the radiant flux carried by the ray as it enters the grid cell, <inline-formula><mml:math id="M703" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">γ</mml:mi><mml:mi mathvariant="normal">t</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> is the radiant flux carried by the ray as it leaves the grid cell, <inline-formula><mml:math id="M704" display="inline"><mml:mi>a</mml:mi></mml:math></inline-formula> is the leaf area density, <inline-formula><mml:math id="M705" display="inline"><mml:mrow><mml:msub><mml:mi>l</mml:mi><mml:mi mathvariant="normal">is</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> is the length of the ray's intersection with the grid cell, and <inline-formula><mml:math id="M706" display="inline"><mml:mi mathvariant="italic">ξ</mml:mi></mml:math></inline-formula> is a constant extinction coefficient, which converts LAD of trees and shrubs into a corresponding average optical density. This information, determined during ray tracing, is stored as plant canopy sink factors. These factors are used to calculate the heat flux absorbed by plant canopy and also the longwave radiative flux emitted by the plant canopy in the direction of the respective surface element.</p>
      <p id="d1e19078">The process of each ray tracing represents a challenge for distributed memory parallel processing, as it requires data from different parallel subdomains stored in different MPI processes. With a fixed amount of traced rays per surface element in angular discretization, the amount of view factors grows with <inline-formula><mml:math id="M707" display="inline"><mml:mrow><mml:mi mathvariant="script">O</mml:mi><mml:mo>(</mml:mo><mml:msup><mml:mi>n</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msup><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula> and the amount of canopy sink factors grows with <inline-formula><mml:math id="M708" display="inline"><mml:mrow><mml:mi mathvariant="script">O</mml:mi><mml:mo>(</mml:mo><mml:msup><mml:mi>n</mml:mi><mml:mn mathvariant="normal">3</mml:mn></mml:msup><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula> if the resolution of the domain is increased by the factor of <inline-formula><mml:math id="M709" display="inline"><mml:mi>n</mml:mi></mml:math></inline-formula> in each dimension. Therefore, the computational and memory complexity of both the ray-tracing process and the time-stepping part of RTM is on par with scaling of other PALM-4U processes, and it represents a significant improvement over RTM 1.0, where the amount of view factors grew with <inline-formula><mml:math id="M710" display="inline"><mml:mrow><mml:mi mathvariant="script">O</mml:mi><mml:mo>(</mml:mo><mml:msup><mml:mi>n</mml:mi><mml:mn mathvariant="normal">4</mml:mn></mml:msup><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula> and amount of canopy sink factors grew with <inline-formula><mml:math id="M711" display="inline"><mml:mrow><mml:mi mathvariant="script">O</mml:mi><mml:mo>(</mml:mo><mml:msup><mml:mi>n</mml:mi><mml:mn mathvariant="normal">5</mml:mn></mml:msup><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula> in the worst case. The optimized 2-D ray-tracing algorithm processes all rays directed in one azimuth at once, which helps to significantly decrease computational demands and to optimize MPI data exchange patterns. With these optimizations, the time spent in RTM 3.0 represents a marginal portion of the total PALM-4U simulation time for typical scenarios (i.e., less than 5 % of the total computing time for the largest tested case domain with a horizontal extent of <inline-formula><mml:math id="M712" display="inline"><mml:mrow><mml:mn mathvariant="normal">1800</mml:mn><mml:mo>×</mml:mo><mml:mn mathvariant="normal">1800</mml:mn></mml:mrow></mml:math></inline-formula> m and 2 m resolution covering complex terrain of Prague's city center running at 1296 CPU cores).</p>
</sec>
<sec id="Ch1.S4.SS4.SSS3">
  <label>4.4.3</label><title>Irradiance and absorption of radiation by plant canopy</title>
      <p id="d1e19178">The calculation of the irradiance and radiative heat fluxes is done during each radiation time step by the application of the precomputed view factors and canopy sink factors. The process starts by calculation of direct and diffuse radiation from the Sun and the sky, and it continues with the calculation of the configured number of the reflections after which all remaining radiative flux is considered as absorbed. The remaining flux can be verified in model outputs to be negligible.</p>
      <p id="d1e19181">Plant leaves have very high surface-to-mass ratio and they readily exchange heat with surrounding air via convection and evapotranspiration. Their temperature hence usually differs only marginally from the surrounding air. The current implementation of the RTM considers leaves as having zero thermal capacity and identical temperature as the surrounding air, which means that the difference of heat flux from absorbed minus emitted radiation is directly transferred to the air mass. This simplification represents a common approach <xref ref-type="bibr" rid="bib1.bibx19" id="paren.120"><named-content content-type="pre">see, e.g.,</named-content></xref>.</p>
      <p id="d1e19189">Figure <xref ref-type="fig" rid="Ch1.F2"/> illustrates the respective components of longwave and shortwave irradiance for a typical urban scenario during the summer day. It can be seen that the diffuse longwave irradiance from the sky and the thermal irradiance from other surfaces and plant canopy complement each other and that the shortwave direct solar component dominates the total radiative flux during daytime.</p>

      <?xmltex \floatpos{t}?><fig id="Ch1.F2" specific-use="star"><?xmltex \currentcnt{2}?><label>Figure 2</label><caption><p id="d1e19197">Instantaneous radiative fluxes at horizontal surfaces in an urban area (Prague-Dejvice), 7 August 2015 at 14:30 UTC (approximately 15:30 solar time): <bold>(a)</bold> diffuse longwave irradiance from the sky; <bold>(b)</bold> longwave irradiance from other surfaces (reflected and emitted); <bold>(c)</bold> total shortwave irradiance (direct and diffuse solar, reflected); <bold>(d)</bold> broadband net radiative flux (absorbed minus emitted). Background: building heights are based on layer “relative building heights” freely available at the geoportal of Prague Institute of Planning and Development (<uri>http://www.geoportalpraha.cz/en/main</uri>, last access: 18 February 2020).</p></caption>
            <?xmltex \igopts{width=398.338583pt}?><graphic xlink:href="https://gmd.copernicus.org/articles/13/1335/2020/gmd-13-1335-2020-f02.png"/>

          </fig>

</sec>
<sec id="Ch1.S4.SS4.SSS4">
  <label>4.4.4</label><title>Calculation of plant canopy latent heat fluxes</title>
      <p id="d1e19229">An important part of the heat balance in the urban canopy represents the latent heat fluxes from the vegetation. The RTM explicitly computes the radiation balance for each grid cell of the volumetric plant canopy which allows to calculate the evapotranspiration of this vegetation.</p>
      <p id="d1e19232">The evapotranspiration of the resolved vegetation is modeled using the Jarvis–Stewart method <xref ref-type="bibr" rid="bib1.bibx112" id="paren.121"/>, implemented following <xref ref-type="bibr" rid="bib1.bibx21" id="text.122"/> on the leaf level. The leaf evapotranspiration depends on the leaf boundary layer conductance and the stomatal conductance. The leaf boundary layer conductance is a function of the wind speed <xref ref-type="bibr" rid="bib1.bibx21" id="paren.123"/>. The stomatal conductance is a function of the incoming shortwave radiation, the air temperature, the water pressure deficit, and the relative soil water content following <xref ref-type="bibr" rid="bib1.bibx112" id="text.124"/></p>
      <p id="d1e19246">After computing the evaporation per unit leaf area, the latent heat flux from leaves per the unit volume of vegetation is calculated by multiplication by the leaf area density (LAD). The sensible heat flux is the residual of the energy balance, neglecting the storage.</p>
</sec>
<sec id="Ch1.S4.SS4.SSS5">
  <label>4.4.5</label><title>Coupling to the radiation model</title>
      <p id="d1e19257">The radiative transfer model is coupled to the radiation model by providing effective radiation surface parameters to the radiation model, which are used as its boundary conditions.</p>
      <p id="d1e19260">The idea of these effective radiation parameters is that they would, when applied to a simple single surface, give similar radiation fluxes to the complex 3-D urban area. The three effective parameters are the effective surface temperature <inline-formula><mml:math id="M713" display="inline"><mml:mrow><mml:msub><mml:mi>T</mml:mi><mml:mrow><mml:mn mathvariant="normal">0</mml:mn><mml:mo>,</mml:mo><mml:mi mathvariant="normal">eff</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula>, the effective surface emissivity <inline-formula><mml:math id="M714" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">ϵ</mml:mi><mml:mi mathvariant="normal">eff</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>, and the effective surface albedo <inline-formula><mml:math id="M715" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">α</mml:mi><mml:mi mathvariant="normal">eff</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>.</p>
      <p id="d1e19301">To derive these effective parameters, the lower boundary conditions of the radiation model for both longwave and shortwave radiation are considered as follows:

                  <disp-formula specific-use="align" content-type="numbered"><mml:math id="M716" display="block"><mml:mtable displaystyle="true"><mml:mlabeledtr id="Ch1.E91"><mml:mtd><mml:mtext>91</mml:mtext></mml:mtd><mml:mtd><mml:mstyle displaystyle="true" class="stylechange"/></mml:mtd><mml:mtd><mml:mrow><mml:mstyle displaystyle="true" class="stylechange"/><mml:msup><mml:mi mathvariant="normal">LW</mml:mi><mml:mo>↑</mml:mo></mml:msup><mml:mo>=</mml:mo><mml:msub><mml:mi mathvariant="italic">ϵ</mml:mi><mml:mi mathvariant="normal">eff</mml:mi></mml:msub><mml:mi mathvariant="italic">σ</mml:mi><mml:msubsup><mml:mi>T</mml:mi><mml:mrow><mml:mn mathvariant="normal">0</mml:mn><mml:mo>,</mml:mo><mml:mi mathvariant="normal">eff</mml:mi></mml:mrow><mml:mn mathvariant="normal">4</mml:mn></mml:msubsup><mml:mo>+</mml:mo><mml:mo>(</mml:mo><mml:mn mathvariant="normal">1</mml:mn><mml:mo>-</mml:mo><mml:msub><mml:mi mathvariant="italic">ϵ</mml:mi><mml:mrow><mml:mn mathvariant="normal">0</mml:mn><mml:mo>,</mml:mo><mml:mi mathvariant="normal">eff</mml:mi></mml:mrow></mml:msub><mml:mo>)</mml:mo><mml:msup><mml:mi mathvariant="normal">LW</mml:mi><mml:mo>↓</mml:mo></mml:msup></mml:mrow></mml:mtd></mml:mlabeledtr><mml:mlabeledtr id="Ch1.E92"><mml:mtd><mml:mtext>92</mml:mtext></mml:mtd><mml:mtd><mml:mstyle class="stylechange" displaystyle="true"/></mml:mtd><mml:mtd><mml:mrow><mml:mstyle class="stylechange" displaystyle="true"/><mml:msup><mml:mi mathvariant="normal">SW</mml:mi><mml:mo>↑</mml:mo></mml:msup><mml:mo>=</mml:mo><mml:msub><mml:mi mathvariant="italic">α</mml:mi><mml:mi mathvariant="normal">eff</mml:mi></mml:msub><mml:msup><mml:mi mathvariant="normal">SW</mml:mi><mml:mo>↓</mml:mo></mml:msup><mml:mo>.</mml:mo></mml:mrow></mml:mtd></mml:mlabeledtr></mml:mtable></mml:math></disp-formula></p>
      <?pagebreak page1356?><p id="d1e19398">The energy conservation of longwave and shortwave radiation for the total urban area is used to derive <inline-formula><mml:math id="M717" display="inline"><mml:mrow><mml:msub><mml:mi>T</mml:mi><mml:mi mathvariant="normal">eff</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M718" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">α</mml:mi><mml:mi mathvariant="normal">eff</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>, while <inline-formula><mml:math id="M719" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">ϵ</mml:mi><mml:mrow><mml:mn mathvariant="normal">0</mml:mn><mml:mo>,</mml:mo><mml:mi mathvariant="normal">eff</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> is chosen such that it represents the average of all urban surface emissivities.</p>
</sec>
</sec>
<sec id="Ch1.S4.SS5">
  <label>4.5</label><title>Building surface model (BSM)</title>
      <p id="d1e19448">The BSM (formerly USM – urban surface model, and including pavements) represents the counterpart of the LSM described above for building surfaces (i.e., walls and roofs). The core of the module represents calculation of surface energy balance together with propagation of the thermal energy inside the building material and energy exchanges with indoor and outdoor environments. Anthropogenic waste heat, e.g., from transportation or industry, can be optionally prescribed by the user.</p>
      <p id="d1e19451">The initial version of the USM has been described in the paper of <xref ref-type="bibr" rid="bib1.bibx91" id="text.125"/>. The paper outlines the principles of the USM as well and it presents the first validation of the model against thermal observations from an infrared camera for area of Prague-Holešovice. The current version of BSM model in PALM-4U 6.0 has been improved in several ways. The main improvement represents treatment of fractional surfaces. One fraction describes standard materials of the walls and roofs as in the original USM; the other fractions account for glass type of the surfaces (windows and other similar surfaces) and green elements on facades and roofs. Another substantial improvement represents the treatment of humidity and latent heat flux similarly to that in LSM (see Sect. <xref ref-type="sec" rid="Ch1.S3.SS5"/>).</p>
      <p id="d1e19459">Most of the BSM calculations follow the methods outlined for the LSM in Sect. <xref ref-type="sec" rid="Ch1.S3.SS5"/>. The window tile takes the<?pagebreak page1357?> transmissivity of the glass material into account by calculating its optical depth and using the Beer–Lambert law. The individual heat transfer properties of the different window layers are neglected and equal layer properties are calculated using the overall thermal transmittance.
Green roofs (extensive or intensive) have underlying substrate layers where the temperature and heat transfer are taken into account. Green walls are considered facade-bound and are directly attached to the wall layers.
The temperature and heat transfer within the material layers are calculated via the Fourier law of diffusion where the boundary condition on the outer surface is given by the surface energy balance, while the temperature on inner surface can be either prescribed in the configuration or is calculated by the indoor and building energy demand model (see Sect. <xref ref-type="sec" rid="Ch1.S4.SS6"/>).</p>
      <p id="d1e19466">The parameters of the urban canopy can be initialized with bulk parameters for specific building types or from a netCDF driver file (see Sect. <xref ref-type="sec" rid="Ch1.S5.SS2.SSS1"/>). The current version of BSM also still includes the possibility to initialize these parameters through the legacy routines from CSV input files <xref ref-type="bibr" rid="bib1.bibx91" id="paren.126"><named-content content-type="pre">see</named-content></xref>. This option is, however, deprecated and will be removed in the near future.</p>
</sec>
<sec id="Ch1.S4.SS6">
  <label>4.6</label><title>Indoor and building energy demand model</title>
      <p id="d1e19484">There is a strong interaction between the urban energy balance with the building energy balance. The urban atmosphere acts on the heat transfer through exterior walls, the longwave heat transfer, the solar heat gains, and the ventilation. Considering also the internal heat gains and the heat capacity of the building structure, the energy balance of the interior building can be calculated based on an analytical solution of Fourier's law of heat conduction; see ISO 13790 (2008). The two main results are the energy demand for heating and cooling and the indoor thermal environment. According to the building energy concept, the energy demand results in an (anthropogenic) waste heat, which is directly transferred to the air adjacent to the building. The indoor temperature is re-coupled via the building envelope to the urban environment and is affected indirectly by the urban atmosphere with a time-shifted and damped temperature fluctuation.</p>
      <p id="d1e19487">Preliminary numerical and experimental studies clearly showed that different building concepts, their operation strategies, and urban structures have a strong impact on the urban heat island effect. Furthermore, numerical studies revealed the reaction of the urban heat island effect on the building energy balance <xref ref-type="bibr" rid="bib1.bibx89 bib1.bibx128" id="paren.127"/>.</p>
      <p id="d1e19493">A holistic building model for the combined calculation of indoor climate and energy demand based on an analytic solution of Fourier's equation was implemented in PALM 6.0. The building model is integrated into the BSM (see Sect. <xref ref-type="sec" rid="Ch1.S4.SS6"/>). The interface between these two models is the temperature in the building envelope (i.e., the interior wall, window, or roof temperature). The building energy supply system is simulated with simplified models for different heating, cooling, ventilation, and/or air-conditioning concepts.</p>
      <p id="d1e19498">A commonly used database is used for the parameterization of both the facade and the building model <xref ref-type="bibr" rid="bib1.bibx49" id="paren.128"/>. Furthermore, the building database provides building physical parameters of the building envelope, geometry data, and operational data. The building description is based on geometry, fabric, window, and ventilation models for typical building types according to the year of construction or refurbishment, respectively. The user description is based on (stochastic) user behavior regarding window opening and use of solar control, and user profiles regarding attendance, heat gains (i.e., plug loads and lighting), metabolic rate, and clothing value. Energy efficiency factors and parameters related to the operation of the building energy system are defined for typical energy supply systems, e.g., district heating, boilers, heat pumps, or chillers.</p>
      <p id="d1e19505">The input information on building physical parameters from a regional survey or an urban planning tool is often uncertain and inconsistent. The model database is well structured and includes submodels which process information on different levels of accuracy and precision. Hence, the database is built up on a standardized building topology and can manually be adapted in order to evaluate measures with regard to the facade or to the building energy supply.</p>
</sec>
<sec id="Ch1.S4.SS7">
  <label>4.7</label><title>Surface spinup mechanism</title>
      <p id="d1e19516">When using either LSM or BSM, or both, it is often difficult to initialize the material temperatures (i.e., temperature of the individual soil, pavement, and building wall layers) and the soil moisture for natural surfaces. This is primarily due to the fact that such input data are unknown (e.g., wall temperatures of buildings) or only sparse measurement data are available (soils and pavements) from measurement campaigns. Furthermore, for idealized simulations, realistic initial material temperatures can have a strong effect on simulation results, particularly if only single diurnal cycles are simulated, which does not allow for a sufficient spinup period of the material layers.</p>
      <p id="d1e19519">In order to overcome such issues, PALM offers a surface spinup mechanism that allows for running long simulation periods as precursor to a full 3-D simulation. During such a spinup period, the atmospheric code of the model is switched off and only the radiation model, LSM, BSM, and optionally the indoor model are activated. This reduces the computational costs during the spinup phase by more than 90 %. The surface models are by design coupled to the atmosphere via the adjacent surface-parallel wind speed, temperature, and water vapor mixing ratio. During the spinup period, it is thus assumed that all surface elements are exposed to the wind profile at model initialization, thus considering stationary synoptic conditions. Furthermore, the wall-adjacent air temperature (i.e., <inline-formula><mml:math id="M720" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">θ</mml:mi><mml:mi mathvariant="normal">mo</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>) is estimated by a simple sinusoidal diurnal cycle based on the cosine of the solar zenith angle that<?pagebreak page1358?> is calculated based on the geographical location, time, and two user-specific parameters:
            <disp-formula id="Ch1.E93" content-type="numbered"><label>93</label><mml:math id="M721" display="block"><mml:mrow><mml:msub><mml:mover accent="true"><mml:mi mathvariant="italic">θ</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mi mathvariant="normal">mo</mml:mi></mml:msub><mml:mo>(</mml:mo><mml:msub><mml:mi>t</mml:mi><mml:mi mathvariant="normal">UTC</mml:mi></mml:msub><mml:mo>)</mml:mo><mml:mo>=</mml:mo><mml:msub><mml:mi mathvariant="italic">θ</mml:mi><mml:mrow><mml:mi mathvariant="normal">sp</mml:mi><mml:mo>,</mml:mo><mml:mi mathvariant="normal">av</mml:mi></mml:mrow></mml:msub><mml:mo>+</mml:mo><mml:msub><mml:mi mathvariant="italic">θ</mml:mi><mml:mrow><mml:mi mathvariant="normal">sp</mml:mi><mml:mo>,</mml:mo><mml:mi mathvariant="normal">amp</mml:mi></mml:mrow></mml:msub><mml:mo>⋅</mml:mo><mml:mi mathvariant="normal">Ψ</mml:mi><mml:mo>(</mml:mo><mml:msub><mml:mi>t</mml:mi><mml:mi mathvariant="normal">UTC</mml:mi></mml:msub><mml:mo>-</mml:mo><mml:mn mathvariant="normal">3600</mml:mn><mml:mspace linebreak="nobreak" width="0.125em"/><mml:mi mathvariant="normal">s</mml:mi><mml:mo>)</mml:mo><mml:mo>.</mml:mo></mml:mrow></mml:math></disp-formula>
          Here, <inline-formula><mml:math id="M722" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">θ</mml:mi><mml:mrow><mml:mi mathvariant="normal">sp</mml:mi><mml:mo>,</mml:mo><mml:mi mathvariant="normal">av</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M723" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">θ</mml:mi><mml:mrow><mml:mi mathvariant="normal">sp</mml:mi><mml:mo>,</mml:mo><mml:mi mathvariant="normal">amp</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> are the mean temperature and its amplitude in the diurnal cycle, respectively. These must be set explicitly by the user. A time lag of 1 h is imposed in order to account for a typical shift between maximum incoming solar radiation and maximum temperatures in the diurnal cycle. Note that humidity in the atmosphere is currently considered to be constant in time during the spinup phase and that there is no feedback of the surface scheme on the atmosphere during that period.</p>

      <?xmltex \floatpos{t}?><fig id="Ch1.F3"><?xmltex \currentcnt{3}?><label>Figure 3</label><caption><p id="d1e19637">Time series during an exemplary surface spinup of 3 d (72 h) starting on 3 March for a small LES setup, including different surface types and buildings, geographically located in Hannover, Germany. Panel <bold>(a)</bold> shows the surface forcing, imposed by an unobstructed incoming solar radiation and the subsequent near-surface potential temperature forcing, while panels <bold>(b)</bold> and <bold>(c)</bold> show the resulting material temperatures <inline-formula><mml:math id="M724" display="inline"><mml:mrow><mml:msub><mml:mi>T</mml:mi><mml:mi mathvariant="normal">soil</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> for a soil covered by short grass and an asphalt pavement, respectively. The time axis denotes the hours until the start of the full 3-D atmospheric simulation. Note that the radiative forcing shown in panel <bold>(a)</bold> does not match the results shown in panel <bold>(b)</bold>, where shadowing by buildings causes a drop in incoming shortwave radiation during afternoon hours.</p></caption>
          <?xmltex \igopts{width=241.848425pt}?><graphic xlink:href="https://gmd.copernicus.org/articles/13/1335/2020/gmd-13-1335-2020-f03.png"/>

        </fig>

      <p id="d1e19674">Figure <xref ref-type="fig" rid="Ch1.F3"/> shows exemplary results from a spinup for a test simulation with an urban setup and different surface types. The spinup simulation was 72 h and started on 3 March. The surface forcing calculated based on Eq. (<xref ref-type="disp-formula" rid="Ch1.E93"/>) is shown in Fig. <xref ref-type="fig" rid="Ch1.F3"/>a and reflects the time lag between maximum incoming radiation and maximum air temperature. Moreover, it is noticeable that the maximum values of SW<inline-formula><mml:math id="M725" display="inline"><mml:msub><mml:mi/><mml:mo>↓</mml:mo></mml:msub></mml:math></inline-formula> increase each day, which reflects the calendrical progress. Figure <xref ref-type="fig" rid="Ch1.F3"/>b, c show the time series of the material temperatures below a surface element covered with grass and an asphalt pavement, respectively. For the soil temperature below a grass canopy, we note a maximum temperature amplitude at the first grid level in the soil (here 0.005 m) of about 10 K, while the amplitude within the respective asphalt pavement is much higher (about 22 K). Furthermore, we can identify the expected time lag between different material layers, increasing with depth, and accompanied by a decrease in amplitude of diurnal temperature variations. Note also, that for the grass surface element, we note a stagnation or even drop in temperature in the afternoon hours. This is caused by a shadow cast by a nearby building, which is incorporated in the spinup. For both materials, temperature fluctuations at a depth of 0.8 m are negligible within the simulated time period and significant diurnal variations are only present within the uppermost 0.2 m within the material. Moreover, we note that for both surface types, the diurnal cycle of the uppermost material layer converges after 24 h of spinup, which is a typical result based on our experiences. Furthermore, it is evident that the initial material temperature distribution in the uppermost layer deviates from the one after 72 h by 4 and 6 K for short grass and pavement surfaces, respectively. This demonstrates the need for such a spinup to achieve equilibrium conditions at model initialization. As an ad hoc suggestion, especially for large simulation cases, where the spinup becomes computationally expensive, we thus recommend to use at least 24 h of spinup before starting the 3-D model.</p>
</sec>
<sec id="Ch1.S4.SS8">
  <label>4.8</label><title>Self-nesting</title>
      <p id="d1e19702">For LES of urban ABL including the urban canopy, high grid resolution is needed. <xref ref-type="bibr" rid="bib1.bibx131" id="text.129"/> have shown that at least 15–20 grid nodes along one typical building length are needed to satisfactorily resolve the most important turbulent structures within street canyons. To meet this requirement, the grid spacing should typically be on the order of 1 m, while at the same time the vertical extent of the model domain should cover the whole ABL and the horizontal extent should span over several ABL heights in order to properly capture the dominant turbulent eddies in the ABL. Moreover, the uncertainty related to the lateral boundary conditions usually decreases as the domain becomes larger. Therefore, even larger domains are highly recommendable.<?pagebreak page1359?> However, using sufficiently high resolution in a sufficiently large domain often exceeds the available computational resources.
In order to sufficiently resolve both the entire ABL and small-scale turbulent exchange processes within the areas of interest, a self-nesting capability was developed. Self-nesting here means that an instance of PALM can be nested into another instance of PALM. We prefer self-nesting to adaptive grid techniques, because it fits to PALM's Cartesian grid structure, it is easier to optimize, and because the areas of interest where high resolution is required are always known in advance.</p>
      <p id="d1e19708">The idea of PALM's self-nesting is to simultaneously run a series of two or more LES model domains with different spatial extents and grid resolutions. The outermost model is called the root model. The other models are called child models and their domains are nested completely inside the root domain. The root model is a parent model and contains at least one child model. Child models can be recursively nested within each other; i.e., a child model can have its own child models for which it acts as a parent model. A child model obtains boundary conditions for the prognostic quantities from its parent model through interpolation from the coarse to the fine grid. The self-nesting can be employed in a two-way or one-way mode. In the one-way coupled mode, only the child models obtain information from their parents, while the flow in the parent model is not affected by the child model solution. In contrast, in the two-way coupled nesting (default), the parent model is influenced by its child models through so-called anterpolation <xref ref-type="bibr" rid="bib1.bibx15 bib1.bibx16 bib1.bibx117" id="paren.130"/>, where the fine-resolution child solution is transferred back to the parent domain. The anterpolation is implemented using the post insertion approach <xref ref-type="bibr" rid="bib1.bibx16" id="paren.131"/>, which means that the parent solution is replaced by the child solution restricted onto the parent grid in the domain of overlap.</p>
      <p id="d1e19717">The bottom boundaries of all model domains do always follow the terrain/building surface; hence, the bottom boundary conditions are set in the usual way also for the child
models. However, child model boundary conditions on the nested boundaries (left, right, south, north, and top boundaries) must be interpolated from the parent model. Concerning the interpolation method, it is important that the method conserves the mass-flow rate through the boundaries. If the mass conservation is violated in a two-way coupled run, a non-physical secondary circulation can develop. <xref ref-type="bibr" rid="bib1.bibx15" id="text.132"/> developed a specific quadratic interpolation scheme that forms a reversible pair with the anterpolation scheme they employed. This reversibility guarantees the mass conservation. In PALM, the interpolation algorithm has to cope with complex topography. Therefore, we did not select the quadratic scheme of <xref ref-type="bibr" rid="bib1.bibx15" id="text.133"/>. Instead, we use the simple and robust zeroth-order interpolation in which constant values are set to the child grid nodes residing within a parent grid cell. This scheme readily guarantees mass conservation. Another reason for using the zeroth-order interpolation is that it generally leads to smaller conservation error of momentum and scalar fluxes than higher-order schemes.</p>
      <p id="d1e19726">The anterpolation scheme is similar to that of <xref ref-type="bibr" rid="bib1.bibx15" id="text.134"/>. For any scalar variable, the child grid values within a parent grid cell are averaged and the averaged value is mapped to the parent grid node. For the momentum component, the process is otherwise the same but because of the staggered grid arrangement, the parent grid cell is replaced by the two-dimensional cell face normal to the momentum component, i.e., the cell face where the momentum component is located. The anterpolation covers the whole volume occupied by the child domain except the parent grid layers nearest to the nested boundaries.</p>
      <p id="d1e19733">The nested model system is implemented using two levels of MPI communicators. The inter-model communication is handled by a global communicator using the one-sided communication pattern (remote memory access; RMA). The intra-model communication is two-sided and it is handled using a 2-D communicator. The intra-model communication system is the baseline parallelization of PALM <xref ref-type="bibr" rid="bib1.bibx73" id="paren.135"/>.</p>
      <p id="d1e19739">Beside an LES-LES self-nesting, also a RANS-RANS nesting is implemented (one-way and two-way), where the parent and the child models both solve the RANS equations, and an interchange of <inline-formula><mml:math id="M726" display="inline"><mml:mi>e</mml:mi></mml:math></inline-formula> as well as <inline-formula><mml:math id="M727" display="inline"><mml:mi mathvariant="italic">ϵ</mml:mi></mml:math></inline-formula> between parent and child is required. Moreover, note that also a one-way RANS-LES nesting is currently under development, where the child model obtains RANS-filtered boundary conditions for its prognostic variables (except for <inline-formula><mml:math id="M728" display="inline"><mml:mi>e</mml:mi></mml:math></inline-formula>) from the parent model. This way, synthetic turbulence is imposed at the lateral child boundaries to trigger the development of turbulence in the child model.</p>
      <p id="d1e19763">An example of the self-nesting feature within an urban boundary layer is shown in Fig. <xref ref-type="fig" rid="Ch1.F4"/>, where a child domain is nested in an array of cube-shaped building blocks. The figure demonstrates that much more small-scale turbulence, which is mainly generated by the building blocks, can be resolved in the child domain.</p>

      <?xmltex \floatpos{t}?><fig id="Ch1.F4" specific-use="star"><?xmltex \currentcnt{4}?><label>Figure 4</label><caption><p id="d1e19770">Instantaneous horizontal cross section of the absolute value of the vorticity vector at a height of 10 m for a two-way LES–LES nested simulation of the turbulent flow around an array of cube-shaped buildings. The parent domain has a grid spacing of 2 m and the child domain (indicated by the red box) has a grid spacing of 1 m. The mean flow is parallel to the <inline-formula><mml:math id="M729" display="inline"><mml:mi>x</mml:mi></mml:math></inline-formula> axis from left to right.</p></caption>
          <?xmltex \igopts{width=341.433071pt}?><graphic xlink:href="https://gmd.copernicus.org/articles/13/1335/2020/gmd-13-1335-2020-f04.png"/>

        </fig>

      <p id="d1e19786">Note that, while the 3-D self-nesting also can work in a 1-D manner, a separate method for pure 1-D nesting is implemented in PALM as described by <xref ref-type="bibr" rid="bib1.bibx48" id="text.136"/>. In both cases, child and parent domains have identical horizontal dimensions and where the child obtains boundary conditions from the parent only at its top boundary. This 1-D self-nesting aims to improve the grid resolution near the surface throughout the entire horizontal extent of the domain.</p>
</sec>
<sec id="Ch1.S4.SS9">
  <label>4.9</label><title>Offline nesting</title>
      <p id="d1e19800">PALM has been successfully used to study non-stationary boundary layer processes with both idealized and realistic setups. For idealized setups with homogeneous flat terrain, cyclic boundary conditions are typically used at the lateral domain boundaries. This approach allows to study boundary layers not only under quasi-stationary but also under<?pagebreak page1360?> evolving synoptic conditions, which can be represented by additional advective and nudging terms <xref ref-type="bibr" rid="bib1.bibx37" id="paren.137"/>. The usage of cyclic boundary conditions, however, becomes problematic for heterogeneous complex natural and urban terrain, where the flow characteristics may depend on the upwind surface conditions and wakes or circulations that are generated within the model domain may re-enter at the upstream boundaries and cause unrealistic flow feedbacks. Large buffer zones around the domain of interest are often required in such cases <xref ref-type="bibr" rid="bib1.bibx70 bib1.bibx64" id="paren.138"/>.</p>
      <p id="d1e19809">In order to enable simulations of realistic heterogeneous domains under evolving synoptic conditions, PALM 6.0 offers non-stationary Dirichlet boundary conditions, which can be provided by mesoscale interface INIFOR. INIFOR is a stand-alone pre-processor that derives realistic initial and boundary conditions for the PALM domain from the operational mesoscale weather prediction model COSMO-DE/D2 <xref ref-type="bibr" rid="bib1.bibx5" id="paren.139"/>.
The pre-processed output is stored in a dynamic driver (see Sect. <xref ref-type="sec" rid="Ch1.S5.SS2.SSS1"/>), a netCDF file that PALM reads continuously during the model run to apply non-stationary boundary conditions. INIFOR interpolates all required meteorological fields onto the PALM grid. This includes the three wind components (<inline-formula><mml:math id="M730" display="inline"><mml:mrow><mml:msub><mml:mover accent="true"><mml:mi>u</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mi>i</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>, water vapor mixing ratio <inline-formula><mml:math id="M731" display="inline"><mml:mrow><mml:msub><mml:mover accent="true"><mml:mi>q</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover><mml:mi mathvariant="normal">v</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>, and the potential temperature <inline-formula><mml:math id="M732" display="inline"><mml:mover accent="true"><mml:mi mathvariant="italic">θ</mml:mi><mml:mo mathvariant="normal">‾</mml:mo></mml:mover></mml:math></inline-formula>). The meteorological variables are provided as hourly boundary conditions at the four lateral boundaries and the model top boundary. Initial conditions are provided either in the form of vertical profiles or as three-dimensional fields. INIFOR also derives the geostrophic wind profiles from COSMO's pressure field, which are used in the Boussinesq approximation to represent the evolving mesoscale pressure gradient, following the approach by <xref ref-type="bibr" rid="bib1.bibx37" id="text.140"/>. In addition to the meteorological variables, INIFOR also provides the initial soil temperature and moisture.</p>
      <p id="d1e19859">INIFOR can be used in combination with PALM's synthetic turbulence generator (see Sect. <xref ref-type="sec" rid="Ch1.S2.SS3.SSS3"/>) to reduce the size of buffer zones that are needed to achieve fully developed turbulence in the inner domain. The synthetic turbulence imposed at the domain boundaries is continuously adjusted to the mean synoptic conditions. This is done by modifying the Reynolds stress that is used as an input in the turbulence generator, which is computed following <xref ref-type="bibr" rid="bib1.bibx93" id="text.141"/>. This way, changes in the stability regime and the meteorological conditions that may alter the amplitude and length scales of turbulent fluctuations are reflected in the synthetic inflow turbulence.</p>
      <p id="d1e19867">With the time-dependent setting of lateral and top boundary conditions in PALM, an automated mesoscale offline nesting of the PALM domain within the COSMO model is achieved.</p>
</sec>
<sec id="Ch1.S4.SS10">
  <label>4.10</label><title>Multi-agent system</title>
      <?pagebreak page1361?><p id="d1e19879">Nowadays, more than half of the world's population lives in urban areas. Therefore, smart and sustainable city planning is required more and more. In this process, also the comfort of pedestrians is regarded, which strongly depends on the surrounding atmospheric environment. Typically, human comfort and quality of life from a meteorological perspective are judged on the basis of 2-D mapped indices (see Sect. <xref ref-type="sec" rid="Ch1.S4.SS11"/>). Taking these indices together with individual characteristics of a large number of pedestrians, like walking path and speed, age, clothing, etc., would enable the identification of areas for humans with high stress potential. Such hotspots cannot be determined from standard 2-D maps because they do not take into account peoples' behavior. Therefore, a Lagrangian-based multi-agent system (MAS) was developed and integrated into PALM, based on the concept of the already existing Lagrangian particle model <xref ref-type="bibr" rid="bib1.bibx73" id="paren.142"><named-content content-type="pre">see</named-content></xref>. Using this model, it is possible to simulate individual pedestrians (agents) moving as part of a crowd coupled to the atmospheric code with the aim to evaluate quality of life on an individual level and studying environmental effects on large groups of people. In addition, the model provides the ability to simulate escape or evacuation scenarios coupled with the advanced method of LES used for turbulent dispersion of pollutants.</p>
      <p id="d1e19889">The MAS needs to perform a number of tasks to simulate the movement of pedestrians realistically. Firstly, agents must be able to navigate complex terrain to their individual targets, which includes the generation of a navigation graph from the Cartesian grid information present in PALM and a path-finding algorithm for navigating the graph. Secondly, local interactions of each agent with obstacles or other agents have to be considered.</p>
      <p id="d1e19892">The navigation graph is created in a preprocessing step from the Cartesian building configuration used in the PALM driver data. The tool calculating the graph (Agent Preprocessing Tool for PALM – APT-P) has been developed separately from PALM's model code. It is a stand-alone Fortran program, which is provided as a utility program shipped with PALM. The concept used in APT-P is called a visibility graph. It is based on the idea that pedestrians use outer corners of obstacles as navigation points for their movement. The agent will walk toward the next visible corner on their way to their final target, make a turn, and walk toward the next corner.</p>
      <p id="d1e19895">During the simulation, the MAS uses the visibility graph for navigating each agent individually from its current position to its target. This is accomplished using a path-finding method called the <inline-formula><mml:math id="M733" display="inline"><mml:mrow><mml:msup><mml:mi>A</mml:mi><mml:mo>∗</mml:mo></mml:msup></mml:mrow></mml:math></inline-formula> algorithm <xref ref-type="bibr" rid="bib1.bibx34" id="paren.143"/>, which is able to find the optimal (fastest/shortest) path in a computationally efficient way concerning computation time and storage as well as to consider agent and target positions that were not previously stored on the visibility graph. To establish the path from the agent's current position to its target, the following steps are taken. (1) The agent's current position and its target are added to the visibility graph. (2) The shortest path between these two points is calculated using <inline-formula><mml:math id="M734" display="inline"><mml:mrow><mml:msup><mml:mi>A</mml:mi><mml:mo>∗</mml:mo></mml:msup></mml:mrow></mml:math></inline-formula>. (3) The intermittent navigation points are shifted outward from the corresponding obstacle corner to a random position along a “gate” on the outer angle bisector of that corner to avoid collisions with obstacles or other agents. (4) Path finding (steps 1–4) is run again with each successive pair of navigation points along the path to avoid intersection of path sections with obstacles resulting from the outward shift. Finally, (5) the resulting path is stored in the agent object as a series of intermittent targets.</p>
      <p id="d1e19924">For each agent, the direction towards its next intermittent target is calculated for each agent time step. The agent will accelerate toward those coordinates, and once close enough, the next intermittent target is calculated. At the final target, the agent is deleted. Recalculation of an agent's path occurs when the agent has deviated too far from its current path, for example, through repulsion by obstacles or other pedestrians. Figure <xref ref-type="fig" rid="Ch1.F5"/> shows the final result after applying the path-finding algorithm on the visibility graph.</p>

      <?xmltex \floatpos{t}?><fig id="Ch1.F5"><?xmltex \currentcnt{5}?><label>Figure 5</label><caption><p id="d1e19931">Final result of the path-finding algorithm using the visibility graph created by the preprocessing tool (APT-P). The dots at the obstacle corners mark the nodes of the graph, and connections between these nodes, annotated with a cost to travel, are indicated by dashed lines. The left/right rhombus visualizes the starting/end point of the path to go, which is illustrated by green lines that are connected at the shifted navigation points. The outward shift of the original nodes toward the actual navigation points is visualized by black lines. </p></caption>
          <?xmltex \igopts{width=241.848425pt}?><graphic xlink:href="https://gmd.copernicus.org/articles/13/1335/2020/gmd-13-1335-2020-f05.png"/>

        </fig>

      <p id="d1e19940">Once the fastest path is found, the individual agent movement and close-range interaction with obstacles and other pedestrians are realized using a Lagrangian-based social force model. Concepts from the original model formulation <xref ref-type="bibr" rid="bib1.bibx38" id="paren.144"/> as well as from its extension for close-range collision prediction and avoidance using a power-law approach <xref ref-type="bibr" rid="bib1.bibx55" id="paren.145"/> have been adopted for the formulation of the MAS. The basic idea of the social force model is that pedestrian movement is the result of all forces acting on the pedestrian caused by its surroundings and goals. These forces can be either repulsive (e.g., buildings, trees, or other pedestrians) or attractive (e.g., current target, shop windows, or shaded areas on a hot day). The resulting force on a pedestrian <inline-formula><mml:math id="M735" display="inline"><mml:mi mathvariant="italic">α</mml:mi></mml:math></inline-formula> determines its acceleration. For time integration, a forward Euler method is used. As human reactions take place on a very short timescale and due to the chosen social forces approach, the time step for the agent model must be very short (approximately 0.02–0.04 s are recommended). In MAS, repulsion by obstacles and other pedestrians as well as the acceleration force driving the agent toward its target are considered. The formulation of both repulsion forces is based on an exponentially decreasing repulsive potential of the building's wall and other pedestrians, respectively. However, a further repulsive force was added to simulate collision avoidance behavior based on a universal power-law approach. It causes the agents to slow down,<?pagebreak page1362?> speed up, or slightly alter their path to avoid colliding with each other. Finally, the acceleration force, which accelerates an agent toward their current target, is implemented using a relaxation time that describes how quickly the pedestrian approaches the desired walking speed. For more information on the exact equations, see <xref ref-type="bibr" rid="bib1.bibx38" id="text.146"/> and <xref ref-type="bibr" rid="bib1.bibx55" id="text.147"/>.</p>
</sec>
<sec id="Ch1.S4.SS11">
  <label>4.11</label><title>Human biometeorology</title>
      <p id="d1e19970">The livability of cities might be defined through the well-being of the human population, which is affected and interacting with the urban atmosphere. Biometeorological indices are a standard framework to assess this well-being <xref ref-type="bibr" rid="bib1.bibx110" id="paren.148"/>. The biometeorology module in PALM consists of two parts: A thermal comfort and a UV-exposure part. The thermal comfort part allows for the calculation of thermal indices approximating human thermal perception. Currently, the commonly used and well-validated indices of perceived temperature <xref ref-type="bibr" rid="bib1.bibx109" id="paren.149"><named-content content-type="pre">PT;</named-content></xref>, universal thermal climate index <xref ref-type="bibr" rid="bib1.bibx51 bib1.bibx13" id="paren.150"><named-content content-type="pre">UTCI;</named-content></xref>, and physiologically equivalent temperature <xref ref-type="bibr" rid="bib1.bibx45" id="paren.151"><named-content content-type="pre">PET;</named-content></xref> are supported, directly calculated in PALM, and used as output.</p>
      <p id="d1e19991">PT, UTCI, and PET follow a similar approach of equivalent temperatures. They generally calculate the overall energy gain or loss caused by the prevailing meteorological environment and transfer this to an “indoor” reference environment with all parameters set to static pre-known values, except for the air temperature. The air temperature is then set to a value that causes the same energy gain or loss as the actual meteorological environment. The air temperature of the reference environment is the returned as the result for the index. While the general concept of the indices is similar, the actual implementation is quite different. While, e.g., for PET, the environments are compared through the energy balance, in PT, the result of the simple indoor-only index predicted mean vote <xref ref-type="bibr" rid="bib1.bibx27" id="paren.152"><named-content content-type="pre">PMV;</named-content></xref> is compared. UTCI is determined in a simplified way by a regression equation after <xref ref-type="bibr" rid="bib1.bibx13" id="text.153"/>. Further major differences can be found in the definition of the sample person, as well as in the consideration of clothing insulation. The three indices are provided for the one horizontal cell level, which is the closest possible to 1.1 m above ground level (the average human gravity center; <xref ref-type="bibr" rid="bib1.bibx27" id="altparen.154"/>).</p>
      <p id="d1e20005">For the newly developed MAS (see Sect. <xref ref-type="sec" rid="Ch1.S4.SS10"/>), the thermal indices mentioned above cannot be used. They all do follow a steady-state approach, assuming long exposure of the sample person to constant environmental conditions (e.g., 2 h for PT). Therefore, a modified version of PT was implemented into the biometeorology module and coupled to the MAS. It aims at a better reproduction of the agents thermal stress caused by rapidly changing environmental conditions like radiation, wind speed, humidity and air temperature through consideration of the changes in the outer clothing surface temperature and a storage term in the energy balance.</p>
      <p id="d1e20010">With the exposure model of the UV-exposure part, calculations of biologically weighted human exposure in an urban environment can be performed. It is based on a three-dimensional voxel model of a human and the spectral radiance that takes into account the angular dependence of the radiation field <xref ref-type="bibr" rid="bib1.bibx103" id="paren.155"/>. The spectral radiance was calculated by the DISORT code of the UVSPEC model in the LibRadTran package <xref ref-type="bibr" rid="bib1.bibx77" id="paren.156"/>. The model consists of the four main input parameters: radiance, biological action spectrum (i.e., for erythema or vitamin D), human geometry, and effects by obstructions. The human geometry is taken into account by using a 3-D model based on a computer tomography scan of an average human adult <xref ref-type="bibr" rid="bib1.bibx122" id="paren.157"/>. For the calculation of the UV exposure in different seasons, the human model can be clothed in various ways, e.g., with typical winter or typical summer clothing. In addition, the model considers the effect of obstructions on the human exposure. Topographical elements (hills, vegetation,  or buildings) cover various parts of the sky and hence block radiation from these directions <xref ref-type="bibr" rid="bib1.bibx98" id="paren.158"/>. Therefore, the effects by topographical elements are determined for each grid point. This enables the calculation of realistic maps of human exposure in an urban environment and shows, for example, the vitamin D weighted human exposure depending on the time of day and season (i.e., position of the Sun), viewing direction, and the clothing of the human and the location within the city. An example of the exposure output is shown in Fig. <xref ref-type="fig" rid="Ch1.F6"/>, where a map of the vitamin D production of a human in Berlin (Germany) is shown.</p>

      <?xmltex \floatpos{t}?><fig id="Ch1.F6"><?xmltex \currentcnt{6}?><label>Figure 6</label><caption><p id="d1e20030">Vitamin D weighted exposure in IU per minute of a human on 21 June at noon in Berlin (Ernst-Reuter-Platz) under cloudless conditions. The human wears a T-shirt and pants and is oriented towards the south. Approximately 1000 IU per day are recommended as an adequate vitamin D status. Background: building height data created by DLR based on CityGML data from FIS Broker Berlin (<uri>https://www.stadtentwicklung.berlin.de/geoinformation/fis-broker/</uri>, last access: 18 February 2020).</p></caption>
          <?xmltex \igopts{width=241.848425pt}?><graphic xlink:href="https://gmd.copernicus.org/articles/13/1335/2020/gmd-13-1335-2020-f06.png"/>

        </fig>

</sec>
</sec>
<sec id="Ch1.S5">
  <label>5</label><title>Technical details</title>
<sec id="Ch1.S5.SS1">
  <label>5.1</label><title>Data structure for surface elements</title>
      <p id="d1e20059">At wall-adjacent grid points, additional code needs to be executed, e.g., for calculating the surface shear stress (see Sect. <xref ref-type="sec" rid="Ch1.S2.SS3"/>) and for the solution of the surface-energy balance to determine surface fluxes of sensible and latent heat. To efficiently access surfaces, we introduced a Fortran data structure that contains the relevant grid indices and the required surface variables, where all surface points located on a specific subdomain (i.e., one processor core) are stored consecutively in one-dimensional arrays. In this way, additional surface-related code parts, e.g., for the LSM (see Sect. <xref ref-type="sec" rid="Ch1.S3.SS5"/>), can be executed consecutively for all surfaces without adding “IF-ELSE” statements within the main loops that run over all grid points of the 3-D grid on the respective subdomain, which would hamper loop vectorization and reduce code legibility.</p>
      <p id="d1e20066">On the Cartesian grid oriented to the cardinal directions, surfaces can be horizontally aligned (facing upward or downward) or vertically aligned (facing northward,<?pagebreak page1363?> southward, eastward, or westward). Beside its orientation, surfaces are further distinguished between default-type surfaces (i.e., non-interactive), natural-type surfaces (water-, vegetation-, pavement-covered; see Sect. <xref ref-type="sec" rid="Ch1.S3.SS5"/>), and urban-type surfaces (buildings; see Sect. <xref ref-type="sec" rid="Ch1.S4.SS5"/>). At default-type surfaces, no energy balance is solved, and surface fluxes of sensible and latent heat can be either directly prescribed or computed by MOST by prescribing <inline-formula><mml:math id="M736" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">θ</mml:mi><mml:mn mathvariant="normal">0</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M737" display="inline"><mml:mrow><mml:msub><mml:mi>q</mml:mi><mml:mn mathvariant="normal">0</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula>. Note that the latter option is currently not implemented for downward and lateral-facing surfaces, as here the stability correction via MOST has no physical foundation (stratification is always considered as in the vertical direction in MOST and gravitational acceleration is always acting as a restraining force). For natural- and urban-type surfaces, the respective surface fluxes are calculated by solving the energy balance using the embedded land and urban surface model (see Sects. <xref ref-type="sec" rid="Ch1.S3.SS5"/> and <xref ref-type="sec" rid="Ch1.S4.SS5"/>, respectively). Surfaces with different orientation and type are treated individually; i.e., surface properties and all relevant information are stored in individual data structures. Surfaces are automatically classified regarding their respective type and orientation depending on the input data (see Sect. <xref ref-type="sec" rid="Ch1.S5.SS2.SSS1"/>), i.e., building and terrain height information.</p>
</sec>
<sec id="Ch1.S5.SS2">
  <label>5.2</label><title>Model operation and data handling</title>
<sec id="Ch1.S5.SS2.SSS1">
  <label>5.2.1</label><title>Model setup via netCDF input data</title>
      <p id="d1e20117">The original topography model in PALM (see Sect. <xref ref-type="sec" rid="Ch1.S4.SS1"/>) was implemented around 2008 and was provided to the model via an ASCII file containing the topography heights on a 2-D grid. The incorporation of full 3-D structures and interactive surfaces, however, requires setting of a great many of surface parameters like vegetation type, soil type, building height, building type, etc. for horizontal but also for vertical walls. Moreover, the applications have increased significantly in terms of number of grid points, rending the ASCII input of topography height inappropriate and inconvenient. While ASCII input is still partly supported, a new netCDF interface was introduced in PALM 6.0, which allows to define all surface-related parameters that do not change in time in a single netCDF file, the so-called static driver. These data can be provided for different LODs. For example, building heights can be prescribed as 2-D fields as in the deprecated ASCII input (LOD 1), but it is also possible to prescribe fully 3-D topography via a 3-D byte field (LOD 2). Moreover, each vegetated surface element can be defined through setting one of 17 predefined vegetation types, which trigger automatic setting of the parameters required by the LSM, like roughness lengths, emissivity, and leaf area index (LOD 1). Additionally, some or all of these automatically set parameters can individually be overwritten for each surface element (LODs 2 and 3).</p>
      <p id="d1e20122">In addition to static surface information, the stationary or time-dependent meteorological forcing for PALM 6.0 can be provided in a separate netCDF file (the so-called dynamic driver). The dynamic driver comprises all case-specific meteorological data, such as initialization data (e.g., wind and temperature as profiles or 3-D data, initial soil temperature and moisture), large-scale forcing tendencies, or time-dependent lateral boundary data. The new pre-processing tool INIFOR (see Sect. <xref ref-type="sec" rid="Ch1.S4.SS9"/>) can be employed to generate such dynamic drivers automatically based on COSMO data.</p>
      <p id="d1e20127">For PALM's chemistry model, emission data can be provided in analogy to the dynamic driver in a separate file, the so-called chemistry driver, which contains information on chemical compounds and their emission distribution in space and time.</p>
      <p id="d1e20130">The PALM input data standard (PIDS) provides a technical documentation on the static, dynamic, and chemistry drivers <fn id="Ch1.Footn1"><p id="d1e20133">Available as download from <uri>http://palm-model.org</uri> (last access: 18 February 2020)</p></fn>.</p>
</sec>
<sec id="Ch1.S5.SS2.SSS2">
  <label>5.2.2</label><title>Model steering</title>
      <?pagebreak page1364?><p id="d1e20148">The PALM model system offers shell scripts to compile and run the PALM code, including preparation and submission of batch jobs, job chains, and the handling of I/O files. The old ksh-shell scripts <monospace>mbuild</monospace> and <monospace>mrun</monospace> have been replaced by new bash-scripts <monospace>palmbuild</monospace> and <monospace>palmrun</monospace>. While the former scripts often required manual adjustments depending on the used MPI library and batch environment, the new scripts allow to run PALM on any batch system and with any MPI library without changing the scripts. All settings for the computing environment can now be provided via a configuration file called <monospace>.palm.config.&lt;ci&gt;</monospace>, where <monospace>&lt;ci&gt;</monospace> is the so-called configuration identifier. The scripts can use configuration files for different computing environments (compilers, libraries, batch systems, etc.), which are selected by the script option <monospace>-c</monospace>, e.g., <monospace>palmrun -c intel_openmpi</monospace>. The organization of I/O files (file names, file types, folder structure, etc.) is defined in a separate configuration file named <monospace>.palm.iofiles</monospace>. The complete script features and options are described in the online documentation.</p>
</sec>
<sec id="Ch1.S5.SS2.SSS3">
  <label>5.2.3</label><title>Automatic model testing</title>
      <p id="d1e20187">The benefit of thorough software testing is higher software quality and reliability. In order to ensure high quality and reliability, PALM is now equipped with a test suite called <monospace>palmtest</monospace>. It is a Python-based software that automatically builds PALM according to specific build setups and executes PALM runs according to specific test cases. All the build setups and test cases are shipped within the PALM repository. The configuration of <monospace>palmtest</monospace> including all build setups and test cases is based on YAML files. Validation of the test results is done by comparing the generated results with reference files that are included in each of the test cases. These reference files are PALM output files and can be plain text files like the run control file as well as netCDF files. <monospace>palmtest</monospace> is capable of performing restarts by declaring dependencies between different test cases and using the restart data of one test case to initialize another test case. Note that <monospace>palmtest</monospace> is not capable of dealing with a batch system as it is intended to be used locally on a developers computer to ensure a healthy commit. <monospace>palmtest</monospace> is also executed on a central server after each commit to ensure the overall health of the main repository.</p>
</sec>
<sec id="Ch1.S5.SS2.SSS4">
  <label>5.2.4</label><title>Virtual measurements</title>
      <p id="d1e20213">Virtual measurements in flow simulations are often used to verify and validate model components by comparing model results with in situ measurement data  <xref ref-type="bibr" rid="bib1.bibx72 bib1.bibx37 bib1.bibx91" id="paren.159"><named-content content-type="pre">e.g.,</named-content></xref>. Vice versa, virtual measurements can help to uncover deficiencies in measurement strategies by imitation and evaluation of different strategies <xref ref-type="bibr" rid="bib1.bibx114 bib1.bibx67 bib1.bibx115" id="paren.160"><named-content content-type="pre">e.g.,</named-content></xref>.
The advantages of numerical simulations are, e.g., that boundary and background conditions are known, and by means of ensemble runs or idealized simulation setups, more reliable statistics can be achieved.
To emulate individual in situ observations at specific locations in realistically heterogeneous setups, however, a lot of manual work is required, e.g., to find out the respective grid indices. From the modeler's perspective, it is desirable to automatically translate observation coordinates into grid coordinates. From the analysis perspective, measured and simulated data should have the same format, variable naming,  unit conventions, etc., enabling usage of the same analysis tools for in situ and virtually sampled datasets. For this purpose, PALM 6.0 provides a virtual-measurement module, which requires standardized information from measurement campaigns via netCDF file (see Sect. <xref ref-type="sec" rid="Ch1.S5.SS2.SSS1"/>), i.e., the geographical coordinates, the used reference system, the sampled quantities in the atmosphere, soil, building walls, etc. The input and output format is specified in the data standard defined within the [UC]<inline-formula><mml:math id="M738" display="inline"><mml:msup><mml:mi/><mml:mn mathvariant="normal">2</mml:mn></mml:msup></mml:math></inline-formula> framework (see Sect. <xref ref-type="sec" rid="Ch1.S5.SS2.SSS5"/>). The measurement coordinates for each site are translated into grid coordinates using the nearest model grid point instead of using interpolation to the exact site location. In order to minimize uncertainties due to biased geographical coordinates or errors in the model-surface or model-topography setup, data are additionally sampled at the surrounding grid points. Not only stationary measurement locations can be emulated but also trajectory (mobile) observations such as drone, car, bicycle, or pedestrian measurement systems. For a statistically more comprehensive picture, data are sampled along the entire trajectory at each model time step.</p>
      <p id="d1e20239">In order to avoid global communication during the simulation to merge the sample data for a site (for trajectory measurements, the relevant grid points might be distributed over several cores), the sampled data are written to one individual binary file per core.
The PALM 6.0 model system provides a post-processor that merges the core-wise sampled data for each site and outputs the dataset into a separate netCDF file, resulting in one individual file for each measurement site.</p>
</sec>
<sec id="Ch1.S5.SS2.SSS5">
  <label>5.2.5</label><title>Data output</title>
      <p id="d1e20251">Within the project framework of [UC]<inline-formula><mml:math id="M739" display="inline"><mml:msup><mml:mi/><mml:mn mathvariant="normal">2</mml:mn></mml:msup></mml:math></inline-formula>, a data standard was developed for measurement and simulation datasets which inherits most of the netCDF Climate and Forecast Metadata Conventions version 1.7 (CF-1.7) (<uri>http://cfconventions.org/Data/cf-conventions/cf-conventions-1.7/cf-conventions.html</uri>, last access: 18 February 2020) and therefore also conforms with the conventions of the Cooperative Ocean/Atmosphere Research Data Service (COARDS)<fn id="Ch1.Footn2"><p id="d1e20266">See <uri>https://ferret.pmel.noaa.gov/Ferret/documentation/coards-netcdf-conventions</uri>, last access: 18 February 2020.</p></fn> <xref ref-type="bibr" rid="bib1.bibx97" id="paren.161"/>. The [UC]<inline-formula><mml:math id="M740" display="inline"><mml:msup><mml:mi/><mml:mn mathvariant="normal">2</mml:mn></mml:msup></mml:math></inline-formula> data standard describes precisely, among other parameters, the data type, naming of variables, and metadata which must be included in the datasets. PALM 6.0 data output is conformed to these data standards, as all data output is available in netCDF format including all requested metadata. Naming of variables also complies with the data standard and is constantly adjusted as the data standard grows to includes further variables. In this context, PALM 6.0 data output now also can include georeferencing (unlike prior PALM versions). Georeferencing includes UTM coordinates as well as geographical longitude and latitude of each horizontal grid point. Coordinates are calculated based on the given domain orientation and coordinates of a referencing point which is the front left grid point of the model domain.</p>

      <?xmltex \floatpos{t}?><fig id="Ch1.F7"><?xmltex \currentcnt{7}?><label>Figure 7</label><caption><p id="d1e20287">Surface net radiation flux in a built-up city quarter (Ernst-Reuter-Platz, Berlin, Germany) on 1 July 2009 at 14:00 UTC. Background: building height data created by DLR based on CityGML data from FIS Broker Berlin (<uri>https://www.stadtentwicklung.berlin.de/geoinformation/fis-broker/</uri>, last access: 18 February 2020).</p></caption>
            <?xmltex \igopts{width=241.848425pt}?><graphic xlink:href="https://gmd.copernicus.org/articles/13/1335/2020/gmd-13-1335-2020-f07.png"/>

          </fig>

      <p id="d1e20299">In a complex environment with buildings and/or hilly terrain, natural and artificial surfaces are unevenly distributed within the model domain, with each processor possibly treating a different number of surfaces with different face orientation within its subdomain. Surface data are output into netCDF files as one-dimensional arrays (see also Sect. <xref ref-type="sec" rid="Ch1.S5.SS1"/>). To unambiguously identify surfaces, also their grid coordinates as well as their orientation relative to zenith and azimuth are output.
Further, to visualize surface data, e.g., the surface temperature or radiation fluxes, we additionally implemented an appropriate output format into PALM 6.0 based on the Visualization Toolkit (VTK) format <xref ref-type="bibr" rid="bib1.bibx99" id="paren.162"/>. Therefore, as a first step, the vertices of the surface elements and the polygons spanned by these vertices, which unambiguously define the Cartesian wall/land surface elements, are written to individual binary output files by each processor for its subdomain.
Secondly, the surface data for an output quantity are gathered from the different surface types and orientations (see Sect. <xref ref-type="sec" rid="Ch1.S5.SS1"/>) at each output time step and also written to individual binary output files by each processor.
PALM 6.0 provides a post-processing tool to merge the binary output data from all subdomains and to convert these  according to the VTK file format. This format enables to analyze and visualize the surface data with well-known tools such as  ParaView (<uri>https://www.paraview.org/</uri>, last access: 18 February 2020). An example of the surface-data output is shown in Fig. <xref ref-type="fig" rid="Ch1.F7"/>, where the surface net radiation flux is illustrated in a built-up city quarter in Berlin, Germany. Figure <xref ref-type="fig" rid="Ch1.F7"/> indicates the shading of the direct solar radiation at horizontal surfaces and facades, as well as the effect of different surface properties on the surface radiation balance (see, e.g., the region near the roundabout in the center  of Fig. <xref ref-type="fig" rid="Ch1.F7"/>).</p>
</sec>
</sec>
<?pagebreak page1365?><sec id="Ch1.S5.SS3">
  <label>5.3</label><title>Model optimization</title>
      <p id="d1e20328">Optimization efforts since PALM 4.0 were mainly targeted on allowing better code vectorization by compilers for Intel and AMD processor units. Within the red-black algorithm of the multigrid Poisson solver, the grid point values with even and odd indices are calculated alternately for each dimension of the 3-D array. This results in loops programmed with a stride of 2. On recent Intel processor generations, different flavors of vector units were implemented. Starting with AVX on Ivybridge, the current Skylake processor includes AVX512 units. Common to all AVX units is that scattered data access is either not implemented or ineffective. In order to enable a vectorization of the red-black algorithm, a re-sorting of the <inline-formula><mml:math id="M741" display="inline"><mml:mi>k</mml:mi></mml:math></inline-formula> dimension of the respective 3-D arrays is done. For this, the values with even indices are stored in the lower half and the values with odd indices are stored in the upper half of the <inline-formula><mml:math id="M742" display="inline"><mml:mi>k</mml:mi></mml:math></inline-formula>-dimension vector. Now, loops can run with stride 1 along <inline-formula><mml:math id="M743" display="inline"><mml:mi>k</mml:mi></mml:math></inline-formula> and the red-back algorithm vectorizes completely. This vectorization results in an overall speedup of more than 10 % (for a test run with <inline-formula><mml:math id="M744" display="inline"><mml:mrow><mml:mn mathvariant="normal">256</mml:mn><mml:mo>×</mml:mo><mml:mn mathvariant="normal">256</mml:mn><mml:mo>×</mml:mo><mml:mn mathvariant="normal">128</mml:mn></mml:mrow></mml:math></inline-formula> grid points in <inline-formula><mml:math id="M745" display="inline"><mml:mi>x</mml:mi></mml:math></inline-formula>, <inline-formula><mml:math id="M746" display="inline"><mml:mi>y</mml:mi></mml:math></inline-formula>, and <inline-formula><mml:math id="M747" display="inline"><mml:mi>z</mml:mi></mml:math></inline-formula> directions, respectively).</p>
</sec>
</sec>
<sec id="Ch1.S6" sec-type="conclusions">
  <label>6</label><title>Summary and future developments</title>
      <p id="d1e20399">In this overview paper, we gave an overview of the PALM model system 6.0. We described in detail the revisions made compared to PALM 4.0, which was described in the precursor paper of <xref ref-type="bibr" rid="bib1.bibx73" id="text.163"/>. As this paper was designed also as an overview paper for the PALM 6.0 special issue in this journal, we gave a rather brief summary of those parts for which companion papers will be submitted (or already have been) to this special issue. For all other new features and revisions, we gave a more detailed description.</p>
      <p id="d1e20405">PALM 6.0 represents a tremendous enhanced and improved model system compared to its predecessor version. It does not only include improved model core physics like additional turbulence closure schemes, extended cloud microphysics, a wind turbine parameterization, and a fully interactive and coupled surface-radiation scheme, but also new components to enable in-depth simulations of urban environments (so-called PALM-4U components). Above all, this involves a building surface and indoor model, gas-phase chemistry and aerosol physics, and output of biometeorological<?pagebreak page1366?> indices. Furthermore, technical developments like two-way self-nesting and offline coupling to the large-scale model COSMO enable large simulation domains that allow to resolve the (turbulent) flow at very high spatial resolution in areas of special interest. While this is particularly useful for urban simulations, it will also be beneficial for other PALM applications.</p>
      <p id="d1e20408">While we focused on the technical description of the technical innovations in PALM 6.0, we did not address the topic of model validation in this paper in much detail, though it is of course a critical aspect in model development. During four intensive observation periods in the framework of [UC]<inline-formula><mml:math id="M748" display="inline"><mml:msup><mml:mi/><mml:mn mathvariant="normal">2</mml:mn></mml:msup></mml:math></inline-formula> <xref ref-type="bibr" rid="bib1.bibx96" id="paren.164"><named-content content-type="pre">see</named-content></xref>, an unprecedented database of measurement in an urban area was created. Also, wind tunnel data were collected by the University of Hamburg, Germany. This database will be used to evaluate the new PALM-4U components based on large-scale PALM runs for the cities of Berlin, Hamburg, and Stuttgart. We will make use of the newly developed virtual measurement module to allow for one-to-one comparison with observational data. Further validation efforts are reported in the companion papers in this special issue.</p>
      <p id="d1e20425">Despite these model extensions, most of which developed in the context of the [UC]<inline-formula><mml:math id="M749" display="inline"><mml:msup><mml:mi/><mml:mn mathvariant="normal">2</mml:mn></mml:msup></mml:math></inline-formula> program, there is urgent need for further enhancements. For example, there is currently no parameterization for frozen water in PALM. Ice clouds as well as snow on surfaces or frozen water in the soil can thus not be simulated, imposing limitations for applications in regions prone to low temperatures and snowfall during wintertime. Also, precipitation, though included for warm clouds in the PALM core, is currently not available together with urban surface configurations, above all, because of the missing incorporation in the RTM. Moreover, several chemistry improvements regarding biogene volatile organic compounds, pollen transport, and improved aerosol description (including ultra-fine particles) would be desirable. The multi-agent system might be further developed and it is planned to couple it to the traffic flow model MATSim <xref ref-type="bibr" rid="bib1.bibx46" id="paren.165"/> that allows for more detailed traffic emissions. Vehicle-induced turbulence is known to be a key process for the dispersion of pollutants emitted by vehicles that is often parameterized in RANS-type models. For LES, however, there currently is no suitable parameterization available to account for the additional mixing by vehicles. This could be either accounted for by explicitly placing moving car-like objects in the LES domain or by developing a new parameterization scheme suitable for LES models. Furthermore, important processes for urban climate studies are lacking, like a model to predict wind throw in stormy weather or sound emission and propagation, among others. Also, the Cartesian topography model in PALM currently implies that slanted roofs and walls are represented by step-like structures, which could be avoided by implementing an immersed boundary method <xref ref-type="bibr" rid="bib1.bibx76" id="paren.166"/>.</p>
      <p id="d1e20444">We aim to complete the model system by further developments as outlined above within a possible second funding phase of [UC]<inline-formula><mml:math id="M750" display="inline"><mml:msup><mml:mi/><mml:mn mathvariant="normal">2</mml:mn></mml:msup></mml:math></inline-formula>. In that course, we also plan to create a sustainable community model governance structure and will make significant effort to further strengthen PALM's position in the boundary layer and urban climate scientific community.</p><?xmltex \hack{\clearpage}?>
</sec>

      
      </body>
    <back><app-group>

<?pagebreak page1367?><app id="App1.Ch1.S1">
  <?xmltex \currentcnt{A}?><label>Appendix A</label><title>List of frequently used abbreviations</title>
      <p id="d1e20468"><table-wrap id="Taba" position="anchor"><oasis:table><oasis:tgroup cols="2">
     <oasis:colspec colnum="1" colname="col1" align="left"/>
     <oasis:colspec colnum="2" colname="col2" align="left"/>
     <oasis:tbody>

       <oasis:row>
         <oasis:entry colname="col1"><bold>Abbreviation</bold></oasis:entry>
         <oasis:entry colname="col2"><bold>Description</bold></oasis:entry>
       </oasis:row>

       <oasis:row>
         <oasis:entry colname="col1">[UC]<inline-formula><mml:math id="M751" display="inline"><mml:msup><mml:mi/><mml:mn mathvariant="normal">2</mml:mn></mml:msup></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col2">Urban Climate Under Change</oasis:entry>
       </oasis:row>

       <oasis:row>
         <oasis:entry colname="col1">ABL</oasis:entry>
         <oasis:entry colname="col2">Atmospheric boundary layer</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">ADM</oasis:entry>
         <oasis:entry colname="col2">Actuator disk model</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">ADM-R</oasis:entry>
         <oasis:entry colname="col2">Rotating actuator disk model</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">APT-P</oasis:entry>
         <oasis:entry colname="col2">Agent Preprocessing Tool for PALM</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">BSM</oasis:entry>
         <oasis:entry colname="col2">Building surface model</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">CCN</oasis:entry>
         <oasis:entry colname="col2">Cloud condensation nuclei</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">CSF</oasis:entry>
         <oasis:entry colname="col2">Canopy sink factor</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">LAD</oasis:entry>
         <oasis:entry colname="col2">Leaf area density</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">LCM</oasis:entry>
         <oasis:entry colname="col2">Lagrangian cloud model</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">LES</oasis:entry>
         <oasis:entry colname="col2">Large-eddy simulation</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">LOD</oasis:entry>
         <oasis:entry colname="col2">Level of detail</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">LPM</oasis:entry>
         <oasis:entry colname="col2">Lagrangian particle model</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">LSM</oasis:entry>
         <oasis:entry colname="col2">Land surface model</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">MAS</oasis:entry>
         <oasis:entry colname="col2">Multi-agent system</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">MOST</oasis:entry>
         <oasis:entry colname="col2">Monin–Obukhov similarity theory</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">MPI</oasis:entry>
         <oasis:entry colname="col2">Message Passing Interface</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">PET</oasis:entry>
         <oasis:entry colname="col2">Physiologically equivalent temperature</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">PMV</oasis:entry>
         <oasis:entry colname="col2">Predicted mean vote</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">PT</oasis:entry>
         <oasis:entry colname="col2">Perceived temperature</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">RANS</oasis:entry>
         <oasis:entry colname="col2">Reynolds-averaged Navier–Stokes</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">RTM</oasis:entry>
         <oasis:entry colname="col2">Radiative transfer model</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">SGS</oasis:entry>
         <oasis:entry colname="col2">Subgrid scale</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">SGS-TKE</oasis:entry>
         <oasis:entry colname="col2">Subgrid-scale turbulence kinetic energy</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">TKE</oasis:entry>
         <oasis:entry colname="col2">Turbulence kinetic energy</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">USM</oasis:entry>
         <oasis:entry colname="col2">Urban surface module</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">UTCI</oasis:entry>
         <oasis:entry colname="col2">Universal thermal climate index</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">VF</oasis:entry>
         <oasis:entry colname="col2">View factor</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">WTM</oasis:entry>
         <oasis:entry colname="col2">Wind turbine model</oasis:entry>
       </oasis:row>
     </oasis:tbody>
   </oasis:tgroup></oasis:table></table-wrap></p><?xmltex \hack{\clearpage}?>
</app>
  </app-group><notes notes-type="codedataavailability"><title>Code and data availability</title>

      <p id="d1e20771">The PALM model system is freely available from <uri>http://palm-model.org</uri> (last access: 18 February 2020) and distributed under the GNU General Public License v3 (<uri>http://www.gnu.org/copyleft/gpl.html</uri>, last access: 18 February 2020). The model source code of version 6.0 in revision 3668, described in this article, is also available via <ext-link xlink:href="https://doi.org/10.25835/0041607" ext-link-type="DOI">10.25835/0041607</ext-link> (<xref ref-type="bibr" rid="bib1.bibx68" id="altparen.167"/>). For code management, versioning, and revision control, the PALM group runs an Apache Subversion (<uri>http://subversion.apache.org</uri>, last access: 18 February 2020) (svn) server. The PALM model system can be downloaded via the svn server, which is also integrated in a web-based project management and bug-tracking system using the software Trac (<uri>http://trac.edgewall.org</uri>, last access: 18 February 2020). In this way, PALM users can use the web interface to browse through the code, view recent code modifications, and submit bug reports via a ticketing system directly to the code developers. Furthermore, a model documentation, a detailed user manual, as well as an online tutorial are available on the Trac server and are constantly kept up to date by the PALM developers. Code updates and development are generally reserved to the PALM developers and supervised by the PALM administration at the Institute of Meteorology and Climatology at Leibniz University Hannover in order to keep the code structure clean, consistent, and uniform. However, we encourage researchers to contact us for collaborative code development that might be suitable to enter the default PALM model system. We also appreciate suggestions for future PALM model system developments.</p>
  </notes><notes notes-type="authorcontribution"><title>Author contributions</title>

      <p id="d1e20796">The PALM model system 6.0 is a joint effort by several institutions and developers, most of which are authors of this paper. BM designed, prepared, and edited the manuscript with contributions by all listed co-authors.</p>
  </notes><notes notes-type="competinginterests"><title>Competing interests</title>

      <p id="d1e20802">The authors declare that they have no conflict of interest.</p>
  </notes><ack><title>Acknowledgements</title><p id="d1e20808">We would like to thank the two anonymous reviewers for their helpful comments on the manuscript. The German Aerospace Center (DLR) Project Management supports the consortium. Benchmark and test runs with PALM have been performed at the supercomputers of the North-German Supercomputing Alliance (HLRN), which is gratefully acknowledged. The co-authors Jaroslav Resler,  Pavel Krč, Jan Geletič, and Vladimir Fuka were supported by the project URBI PRAGENSI CZ.07.1.02/0.0/0.0/16_040/0000383 under the program OP PPR “Prague – Growth Pole of the Czech Republic” which is co-financed by EU. Some of the simulations were done on the supercomputer Salomon, which was supported by the Ministry of Education, Youth and Sports of the Czech Republic from the Large Infrastructures for Research, Experimental Development and Innovations project “IT4Innovations National Supercomputing Center – LM2015070”. The co-author Antti Hellsten was supported by Academy of Finland (grant agreement 277664) and the co-author Mona Kurppa by the doctoral program in Atmospheric Sciences (ATM-DP, University of Helsinki) and the Helsinki Metropolitan Region Urban Research Program.</p></ack><notes notes-type="financialsupport"><title>Financial support</title>

      <p id="d1e20813">This research has been supported by the Federal Ministry of Education and Research (Germany) (grant no. 01LP1601A). [UC]<inline-formula><mml:math id="M752" display="inline"><mml:msup><mml:mi/><mml:mn mathvariant="normal">2</mml:mn></mml:msup></mml:math></inline-formula> is funded by the German Federal Ministry of Education and Research (BMBF) under grant 01LP1601 within the framework of Research for Sustainable Development (FONA; <uri>https://www.fona.de/de/</uri>, last access: 18 February 2020), which is greatly acknowledged.<?xmltex \hack{\newline}?><?xmltex \hack{\newline}?>The publication of this article was funded by the open-access fund of Leibniz Universität Hannover.</p>
  </notes><notes notes-type="reviewstatement"><title>Review statement</title>

      <p id="d1e20834">This paper was edited by Richard Neale and reviewed by two anonymous referees.</p>
  </notes><ref-list>
    <title>References</title>

      <ref id="bib1.bibx1"><label>Andersen et al.(2015)</label><?label Andersen2015?><mixed-citation>Andersen, S. J., Witha, B., Breton, S.-P., Sørensen, J. N., Mikkelsen,
R. F., and Ivanell, S.: Quantifying variability of Large Eddy
Simulations of very large wind farms, J. Phys. Conf. Ser., 625, 012027, <ext-link xlink:href="https://doi.org/10.1088/1742-6596/625/1/012027" ext-link-type="DOI">10.1088/1742-6596/625/1/012027</ext-link>, 2015.</mixed-citation></ref>
      <ref id="bib1.bibx2"><label>Andrejczuk et al.(2008)</label><?label andrejczuk2008?><mixed-citation>Andrejczuk, M., Reisner, J. M., Henson, B., Dubey, M. K., and Jeffery, C. A.:
The potential impacts of pollution on a nondrizzling stratus deck: Does
aerosol number matter more than type?, J. Geophys. Res., 113, D19204, <ext-link xlink:href="https://doi.org/10.1029/2007JD009445" ext-link-type="DOI">10.1029/2007JD009445</ext-link>, 2008.</mixed-citation></ref>
      <ref id="bib1.bibx3"><label>Arakawa and Lamb(1977)</label><?label arakawa1977?><mixed-citation>Arakawa, A. and Lamb, V. R.: Computational design of the basic dynamical
processes of the UCLA general circulation model, in: General circulation models of the atmosphere, Methods in computational physics, edited by: Chang, J., Elsevier, 17, 173–265, <ext-link xlink:href="https://doi.org/10.1016/B978-0-12-460817-7.50009-4" ext-link-type="DOI">10.1016/B978-0-12-460817-7.50009-4</ext-link>, 1977.</mixed-citation></ref>
      <ref id="bib1.bibx4"><label>Auvinen et al.(2017)</label><?label Auvinen2017?><mixed-citation>Auvinen, M., Järvi, L., Hellsten, A., Rannik, Ü., and Vesala, T.: Numerical framework for the computation of urban flux footprints employing large-eddy simulation and Lagrangian stochastic modeling, Geosci. Model Dev., 10, 4187–4205, <ext-link xlink:href="https://doi.org/10.5194/gmd-10-4187-2017" ext-link-type="DOI">10.5194/gmd-10-4187-2017</ext-link>, 2017.</mixed-citation></ref>
      <ref id="bib1.bibx5"><label>Baldauf et al.(2011)</label><?label baldauf2011?><mixed-citation>Baldauf, M., Seifert, A., Förstner, J., Majewski, D., Raschendorfer, M., and
Reinhardt, T.: Operational Convective-Scale Numerical Weather Prediction
with the COSMO Model: Description and Sensitivities, Mon. Weather Rev., 139,
3887–3905, <ext-link xlink:href="https://doi.org/10.1175/MWR-D-10-05013.1" ext-link-type="DOI">10.1175/MWR-D-10-05013.1</ext-link>, 2011.</mixed-citation></ref>
      <ref id="bib1.bibx6"><label>Balsamo et al.(2009)</label><?label balsamo2009?><mixed-citation>
Balsamo, G., Vitebo, P., Beljaars, A., van den Hurk, B., Hirschi, M., Betts,
A. K., and Scipal, K.: A revised hydrology for the ECMWF model: Verification
from field site to terrestrial water storage and impact in the Integrated
Forecast System, J. Hydrometeorol., 10, 623–643, 2009.</mixed-citation></ref>
      <ref id="bib1.bibx7"><label>Basu and Lacser(2017)</label><?label basu2017?><mixed-citation>Basu, S. and Lacser, A.: A Cautionary Note on the Use of Monin–Obukhov
Similarity Theory in Very High-Resolution Large-Eddy Simulations, Bound. Lay.-Meteorol., 163,
351–355, <ext-link xlink:href="https://doi.org/10.1007/s10546-016-0225-y" ext-link-type="DOI">10.1007/s10546-016-0225-y</ext-link>, 2017.</mixed-citation></ref>
      <ref id="bib1.bibx8"><label>Beljaars(1994)</label><?label beljaars1994?><mixed-citation>
Beljaars, A.: The parametrization of surface fluxes in large-scale models
under free convection., Q. J. Roy. Met. Soc., 121, 255–270, 1994.</mixed-citation></ref>
      <ref id="bib1.bibx9"><label>Blackadar(1962)</label><?label blackadar1962?><mixed-citation>Blackadar, A. K.: The vertical distribution of wind and turbulent exchange in a neutral atmosphere, J. Geophys. Res., 67, 3095–3102,
<ext-link xlink:href="https://doi.org/10.1029/JZ067i008p03095" ext-link-type="DOI">10.1029/JZ067i008p03095</ext-link>, 1962.</mixed-citation></ref>
      <?pagebreak page1369?><ref id="bib1.bibx10"><label>Briegleb(1986)</label><?label briegleb1986?><mixed-citation>
Briegleb, B. P.: Comparison of regional clear-sky albedos inferred from
satellite observations and model computations, J. Climate Appl. Meteorol.,
25, 214–226, 1986.</mixed-citation></ref>
      <ref id="bib1.bibx11"><label>Briegleb(1992)</label><?label briegleb1992?><mixed-citation>Briegleb, B. P.: Delta-Eddington approximation for solar radiation in the NCAR
community climate model, J. Geophys. Res., 97, 7603–7612,
<ext-link xlink:href="https://doi.org/10.1029/92JD00291" ext-link-type="DOI">10.1029/92JD00291</ext-link>, 1992.</mixed-citation></ref>
      <ref id="bib1.bibx12"><label>Briscolini and Santangelo(1989)</label><?label briscolini1989?><mixed-citation>
Briscolini, M. and Santangelo, P.: Development of the mask method for
incompressible unsteady flows, J. Comp. Phys., 84, 57–75, 1989.</mixed-citation></ref>
      <ref id="bib1.bibx13"><label>Bröde et al.(2012)</label><?label brode2012deriving?><mixed-citation>Bröde, P., Fiala, D., Błazejczyk, K., Holmér, I., Jendritzky,
G., Kampmann, B., Tinz, B., and Havenith, G.: Deriving the operational
procedure for the Universal Thermal Climate Index (UTCI), Int. J.
Biometeorol., 56, 481–494, <ext-link xlink:href="https://doi.org/10.1007/s00484-011-0454-1" ext-link-type="DOI">10.1007/s00484-011-0454-1</ext-link>, 2012.</mixed-citation></ref>
      <ref id="bib1.bibx14"><label>Calaf et al.(2010)</label><?label Calaf2010?><mixed-citation>Calaf, M., Meneveau, C., and Meyers, J.: Large eddy simulation study of fully developed wind-turbine array boundary layers, Phys. Fluids, 22, 015110,
<ext-link xlink:href="https://doi.org/10.1063/1.3291077" ext-link-type="DOI">10.1063/1.3291077</ext-link>, 2010.</mixed-citation></ref>
      <ref id="bib1.bibx15"><label>Clark and Farley(1984)</label><?label Clark1984?><mixed-citation>
Clark, T. L. and Farley, R. D.: Severe downslope windstorm calculations in two
and three spatial dimensions using anelastic interactive grid nesting: A
possible mechanism for gustiness, J. Atmos. Sci., 41, 329–350, 1984.</mixed-citation></ref>
      <ref id="bib1.bibx16"><label>Clark and Hall(1991)</label><?label Clark1991?><mixed-citation>
Clark, T. L. and Hall, W. D.: Multi-domain simulations of the time dependent
Navier-Stokes equations: benchmark error analysis of some nesting
procedures, J. Comp. Phys., 92, 456–481, 1991.</mixed-citation></ref>
      <ref id="bib1.bibx17"><label>Clough et al.(2005)</label><?label clough2005?><mixed-citation>
Clough, S. A., Shephard, M. W., Mlawer, E. J., Delamere, J. S., Iacono, M. J.,
Cady-Pereira, K., Boukabara, S., and Brown, P. D.: Atmospheric radiative
transfer modeling: A summary of the AER codes, Short Communication, J. Quant.
Spectrosc. Ra., 91, 233–244, 2005.</mixed-citation></ref>
      <ref id="bib1.bibx18"><label>Craik and Leibovich(1976)</label><?label craik1976?><mixed-citation>
Craik, A. D. D. and Leibovich, S.: A rational model for Langmuir Circulations, J. Fluid Mech., 73, 401–426, 1976.</mixed-citation></ref>
      <ref id="bib1.bibx19"><label>Dai et al.(2003)</label><?label dai2003?><mixed-citation>
Dai, Y., Zeng, X., Dickinson, R. E., Baker, I., Bonan, G. B., Bosilovich,
M. G., Denning, A. S., Dirmeyer, P. A., Houser, P. R., Niu, G.,
Oleson, K. W., Schlosser, C. A., and Zong-Liang, Y.: The
common land model, B. Am. Meteorol. Soc., 84,
1013–1024, 2003.</mixed-citation></ref>
      <ref id="bib1.bibx20"><label>Damian et al.(2002)</label><?label damian2002?><mixed-citation>
Damian, V., Sandu, A., Damian, M., Potra, F., and Carmichael, G. R.: The
kinetic preprocessor KPP – a software environment for solving chemical
kinetics, Comput. Chem. Eng., 26, 1567–1579, 2002.</mixed-citation></ref>
      <ref id="bib1.bibx21"><label>Daudet et al.(1999)</label><?label daudet1999?><mixed-citation>
Daudet, F. A., Le Roux, X., Sinoquet, H., and Adam, B.: Wind speed and leaf
boundary layer conductance variation within tree crown: consequences on
leaf-to-atmosphere coupling and tree functions, Agr. Forest Meteorol., 97,
171–185, 1999.</mixed-citation></ref>
      <ref id="bib1.bibx22"><label>Deardorff(1970)</label><?label deardorff1970?><mixed-citation>
Deardorff, J. W.: A numerical study of three-dimensional turbulent channel flow at large Reynolds number, J. Fluids Mech., 31, 453–480, 1970.</mixed-citation></ref>
      <ref id="bib1.bibx23"><label>Deardorff(1973)</label><?label deardorff1973?><mixed-citation>
Deardorff, J. W.: The use of subgrid transport equations in a three-dimensional model of atmospheric turbulence, J. Fluids Eng., 95, 429–438, 1973.</mixed-citation></ref>
      <ref id="bib1.bibx24"><label>Deardorff(1980)</label><?label deardorff1980b?><mixed-citation>
Deardorff, J. W.: Stratocumulus-capped mixed layers derived from a
three-dimensional model, Bound.-Lay. Meteorol., 18, 495–527, 1980.</mixed-citation></ref>
      <ref id="bib1.bibx25"><?xmltex \def\ref@label{{D{\"{o}}renk{\"{a}}mper et~al.(2015)}}?><label>Dörenkämper et al.(2015)</label><?label Doerenkaemper2015?><mixed-citation>Dörenkämper, M., Witha, B., Steinfeld, G., Heinemann, D., and Kühn, M.: The impact of stable atmospheric boundary layers on wind-turbine wakes
within offshore wind farms, J. Wind Eng. Ind. Aerod., 144, 146–153, <ext-link xlink:href="https://doi.org/10.1016/j.jweia.2014.12.011" ext-link-type="DOI">10.1016/j.jweia.2014.12.011</ext-link>, 2015.</mixed-citation></ref>
      <ref id="bib1.bibx26"><label>Duynkerke(1999)</label><?label duynkerke1999?><mixed-citation>Duynkerke, P. G.: Turbulence, radiation and fog in Dutch stable boundary
layers, Bound.-Lay. Meteorol., 90, 447–477,
<ext-link xlink:href="https://doi.org/10.1023/A:1026441904734" ext-link-type="DOI">10.1023/A:1026441904734</ext-link>, 1999.</mixed-citation></ref>
      <ref id="bib1.bibx27"><label>Fanger(1972)</label><?label fanger1972thermal?><mixed-citation>
Fanger, P. O.: Thermal comfort, McGraw-Hill, New York, 1972.</mixed-citation></ref>
      <ref id="bib1.bibx28"><label>Germano et al.(1991)</label><?label germano1991dynamic?><mixed-citation>
Germano, M., Piomelli, U., Moin, P., and Chabot, W. H.: A dynamic subgrid-scale eddy viscosity model, Phys. Fluids A-Fluid, 3, 1760–1765,
1991.</mixed-citation></ref>
      <ref id="bib1.bibx29"><label>Gery et al.(1989)</label><?label gery1989?><mixed-citation>Gery, M. W., Whitten, G. Z., Killus, J. P., and Dodge, M. C.: A Photochemical Kinetics Mechanism for Urban and Regional Scale Computer Modeling, J. Geophys. Res.-Atmos., 26, 12925–12956, <ext-link xlink:href="https://doi.org/10.1029/JD094iD10p12925" ext-link-type="DOI">10.1029/JD094iD10p12925</ext-link>, 1989.</mixed-citation></ref>
      <ref id="bib1.bibx30"><label>Gronemeier and Sühring(2019)</label><?label grone2019?><mixed-citation>Gronemeier, T. and Sühring, M.: On the effects of lateral openings on
courtyard ventilation and pollution – a large-eddy simulation study,
Atmosphere, 10, 63, <ext-link xlink:href="https://doi.org/10.3390/atmos10020063" ext-link-type="DOI">10.3390/atmos10020063</ext-link>, 2019.</mixed-citation></ref>
      <ref id="bib1.bibx31"><label>Gronemeier et al.(2015)</label><?label gronemeier2015?><mixed-citation>Gronemeier, T., Inagaki, A., Gryschka, M., and Kanda, M.: Large-Eddy
Simulation of an Urban Canopy Using a Synthetic Turbulence Inflow Generator
Method, ournal of Japan Society of Civil Engineers, Ser. B1 (Hydraulic Engineering), 71, 43–48, <ext-link xlink:href="https://doi.org/10.2208/jscejhe.71.i_43" ext-link-type="DOI">10.2208/jscejhe.71.i_43</ext-link>, 2015.</mixed-citation></ref>
      <ref id="bib1.bibx32"><label>Gronemeier et al.(2017)</label><?label gronemeier2017?><mixed-citation>Gronemeier, T., Raasch, S., and Ng, E.: Effects of Unstable Stratification on Ventilation in Hong Kong, Atmosphere, 8, 1–15, <ext-link xlink:href="https://doi.org/10.3390/atmos8090168" ext-link-type="DOI">10.3390/atmos8090168</ext-link>, 2017.</mixed-citation></ref>
      <ref id="bib1.bibx33"><label>Harlow and Welch(1965)</label><?label harlow1965?><mixed-citation>
Harlow, F. H. and Welch, J. E.: Numerical calculation of time-dependent viscous incompressible flow of fluid with free surface, Phys. Fluids, 8, 2182–2189, 1965.</mixed-citation></ref>
      <ref id="bib1.bibx34"><label>Hart et al.(1968)</label><?label hart1968?><mixed-citation>Hart, P. E., Nilsson, N. J., and Raphael, B.: A Formal Basis for the Heuristic Determination of Minimum Cost Paths, IEEE Trans. Syst. Sci. Cybern., 4, 100–107, <ext-link xlink:href="https://doi.org/10.1109/TSSC.1968.300136" ext-link-type="DOI">10.1109/TSSC.1968.300136</ext-link>, 1968.</mixed-citation></ref>
      <ref id="bib1.bibx35"><label>Heinz(2008)</label><?label heinz2008realizability?><mixed-citation>
Heinz, S.: Realizability of dynamic subgrid-scale stress models via stochastic analysis, Monte Carlo Meth. Appl., 14, 311–329, 2008.</mixed-citation></ref>
      <ref id="bib1.bibx36"><label>Heinz and Gopalan(2012)</label><?label heinz2012realizable?><mixed-citation>Heinz, S. and Gopalan, H.: Realizable versus non-realizable dynamic
subgrid-scale stress models, Phys. Fluids, 24, 115105, <ext-link xlink:href="https://doi.org/10.1063/1.4767538" ext-link-type="DOI">10.1063/1.4767538</ext-link>, 2012.</mixed-citation></ref>
      <ref id="bib1.bibx37"><label>Heinze et al.(2017)</label><?label heinze2017?><mixed-citation>Heinze, R., Moseley, C., Böske, L. N., Muppa, S. K., Maurer, V., Raasch, S., and Stevens, B.: Evaluation of large-eddy simulations forced with mesoscale model output for a multi-week period during a measurement campaign, Atmos. Chem. Phys., 17, 7083–7109, <ext-link xlink:href="https://doi.org/10.5194/acp-17-7083-2017" ext-link-type="DOI">10.5194/acp-17-7083-2017</ext-link>, 2017.</mixed-citation></ref>
      <ref id="bib1.bibx38"><label>Helbing and Molnár(1995)</label><?label helbing1995?><mixed-citation>Helbing, D. and Molnár, P.: Social force model for pedestrian dynamics, Phys.
Rev. E, 51, 4282–4286, <ext-link xlink:href="https://doi.org/10.1103/PhysRevE.51.4282" ext-link-type="DOI">10.1103/PhysRevE.51.4282</ext-link>, 1995.</mixed-citation></ref>
      <ref id="bib1.bibx39"><label>Heus et al.(2010)</label><?label heus2010?><mixed-citation>Heus, T., van Heerwaarden, C. C., Jonker, H. J. J., Pier Siebesma, A., Axelsen, S., van den Dries, K., Geoffroy, O., Moene, A. F., Pino, D., de Roode, S. R., and Vilà-Guerau de Arellano, J.: Formulation of the Dutch Atmospheric Large-Eddy Simulation (DALES) and overview of its applications, Geosci. Model Dev., 3, 415–444, <ext-link xlink:href="https://doi.org/10.5194/gmd-3-415-2010" ext-link-type="DOI">10.5194/gmd-3-415-2010</ext-link>, 2010.</mixed-citation></ref>
      <ref id="bib1.bibx40"><label>Hoffmann(2017)</label><?label hoffmann2017b?><mixed-citation>Hoffmann, F.: On the limits of Köhler activation theory: how do collision and coalescence affect the activation of aerosols?, Atmos. Chem. Phys., 17, 8343–8356, <ext-link xlink:href="https://doi.org/10.5194/acp-17-8343-2017" ext-link-type="DOI">10.5194/acp-17-8343-2017</ext-link>, 2017.</mixed-citation></ref>
      <ref id="bib1.bibx41"><label>Hoffmann et al.(2015)Hoffmann, Raasch, and Noh</label><?label hoffmann2015?><mixed-citation>
Hoffmann, F., Raasch, S., and Noh, Y.: Entrainment of aerosols and their
activation in a shallow cumulus cloud studied with a coupled LCM-LES
approach, Atmos. Res., 156, 43–57, 2015.</mixed-citation></ref>
      <?pagebreak page1370?><ref id="bib1.bibx42"><label>Hoffmann et al.(2017)Hoffmann, Noh, and Raasch</label><?label hoffmann2017?><mixed-citation>
Hoffmann, F., Noh, Y., and Raasch, S.: The route to raindrop formation in a
shallow cumulus cloud simulated by a Lagrangian cloud model, J. Atmos. Sci.,
74, 2125–2142, 2017.</mixed-citation></ref>
      <ref id="bib1.bibx43"><label>Holt and Raman(1988)</label><?label holt1988?><mixed-citation>
Holt, T. and Raman, S.: A review and comparative evaluation of multilevel
boundary layer parameterizations for first-order and turbulent kinetic energy
closure schemes, Rev. Geophys., 26, 761–780, 1988.</mixed-citation></ref>
      <ref id="bib1.bibx44"><label>Holtslag and De Bruin(1988)</label><?label holtslag1988?><mixed-citation>
Holtslag, A. A. M. and De Bruin, H. A. D.: Applied modelling of the
night-time surface energy balance over land., J. Appl. Meteorol., 27,
689–704, 1988.</mixed-citation></ref>
      <ref id="bib1.bibx45"><label>Höppe(1999)</label><?label hoppe1999physiological?><mixed-citation>
Höppe, P. R.: The physiological equivalent temperature – a universal index
for the biometeorological assessment of the thermal environment, Int. J.
Biometeorol., 43, 71–75, 1999.</mixed-citation></ref>
      <ref id="bib1.bibx46"><label>Horni et al.(2016)</label><?label horni2016?><mixed-citation>
Horni, A., Nagel, K., and Axhausen, K. W.: The Multi-Agent Transport Simulation MATSim, Ubiquity, London, 2016.</mixed-citation></ref>
      <ref id="bib1.bibx47"><label>Hultmark et al.(2013)Hultmark, Calaf, and Parlange</label><?label hultmark2013?><mixed-citation>Hultmark, M., Calaf, M., and Parlange, M. B.: A New Wall Shear Stress Model for Atmospheric Boundary Layer Simulations, J. Atmos. Sci., 70, 3460–3470,
<ext-link xlink:href="https://doi.org/10.1175/JAS-D-12-0257.1" ext-link-type="DOI">10.1175/JAS-D-12-0257.1</ext-link>, 2013.</mixed-citation></ref>
      <ref id="bib1.bibx48"><label>Huq et al.(2018)Huq, De Roo, Raasch, and Mauder</label><?label Huq2018?><mixed-citation>Huq, S., De Roo, F., Raasch, S., and Mauder, M.: Vertically nested LES for high-resolution simulation of the surface layer in PALM (version 5.0), Geosci. Model Dev., 12, 2523–2538, <ext-link xlink:href="https://doi.org/10.5194/gmd-12-2523-2019" ext-link-type="DOI">10.5194/gmd-12-2523-2019</ext-link>, 2019.</mixed-citation></ref>
      <ref id="bib1.bibx49"><label>Institut Wohnen und Umwelt (IWU)(2005)</label><?label IWU2005?><mixed-citation>Institut Wohnen und Umwelt (IWU): Deutsche Gebäudetypologie – Systematik
und Datensätze, periodically updated, available at: <uri>https://www.iwu.de/fileadmin/user_upload/dateien/energie/klima_altbau/Gebaeudetypologie_Deutschland.pdf</uri> (last access: April 2019), 2005 (in German).</mixed-citation></ref>
      <ref id="bib1.bibx50"><label>Jarvis(1976)</label><?label jarvis1976?><mixed-citation>
Jarvis, P. G.: The interpretation of the variations in leaf water p.otential
and stomatal conductance found in canopies in the field, Philos. Trans. Roy.
Soc. London, 273B, 593–610, 1976.</mixed-citation></ref>
      <ref id="bib1.bibx51"><label>Jendritzky et al.(2012)</label><?label jendritzky2012utci-why?><mixed-citation>
Jendritzky, G., de Dear, R., and Havenith, G.: UTCI – Why another thermal
index?, Int. J. Biometeorol., 56, 421–428, 2012.</mixed-citation></ref>
      <ref id="bib1.bibx52"><label>Jöckel et al.(2010)</label><?label joeckel2010?><mixed-citation>Jöckel, P., Kerkweg, A., Pozzer, A., Sander, R., Tost, H., Riede, H., Baumgaertner, A., Gromov, S., and Kern, B.: Development cycle 2 of the Modular Earth Submodel System (MESSy2), Geosci. Model Dev., 3, 717–752, <ext-link xlink:href="https://doi.org/10.5194/gmd-3-717-2010" ext-link-type="DOI">10.5194/gmd-3-717-2010</ext-link>, 2010.</mixed-citation></ref>
      <ref id="bib1.bibx53"><label>Jonkman et al.(2009)</label><?label Jonkman2009?><mixed-citation>
Jonkman, J. M., Butterfield, S., Musial, W., and Scott, G.: Definition of a
5-MW reference wind turbine for offshore system development, Technical
Report NREL/TP-500-38060, National Renewable Energy Laboratory, Golden, CO, 2009.</mixed-citation></ref>
      <ref id="bib1.bibx54"><label>Kanda et al.(2004)</label><?label kanda2004?><mixed-citation>
Kanda, M., Inagaki, A., Letzel, M. O., Raasch, S., and Watanabe, T.: LES study of the energy imbalance problem with eddy covariance fluxes, Bound.-Lay. Meteorol., 110, 381–404, 2004.</mixed-citation></ref>
      <ref id="bib1.bibx55"><label>Karamouzas et al.(2014)</label><?label Karamouzas2014?><mixed-citation>Karamouzas, I., Skinner, B., and Guy, S. J.: Universal Power Law Governing
Pedestrian Interactions, Phys. Rev. Lett., 113, 238701,
<ext-link xlink:href="https://doi.org/10.1103/PhysRevLett.113.238701" ext-link-type="DOI">10.1103/PhysRevLett.113.238701</ext-link>, 2014.</mixed-citation></ref>
      <ref id="bib1.bibx56"><label>Kataoka and Mizuno(2002)</label><?label kataoka2002?><mixed-citation>
Kataoka, H. and Mizuno, M.: Numerical flow computation around aerolastic 3d
square cylinder using inflow turbulence, Wind Struct., 5, 379–392,
2002.</mixed-citation></ref>
      <ref id="bib1.bibx57"><label>Khairoutdinov and Kogan(2000)</label><?label khairoutdinov2000?><mixed-citation>
Khairoutdinov, M. and Kogan, Y.: A new cloud physics parameterization in a
large-eddy simulation model of marine stratocumulus, Mon. Weather Rev., 128,
229–243, 2000.</mixed-citation></ref>
      <ref id="bib1.bibx58"><label>Khvorostyanov and Curry(2006)</label><?label khvorostyanov2006?><mixed-citation>Khvorostyanov, V. I. and Curry, J. A.: Aerosol size spectra and CCN activity
spectra: Reconciling the lognormal, algebraic, and power laws, J. Geophys.
Res.-Atmos., 111, D12202, <ext-link xlink:href="https://doi.org/10.1029/2005JD006532" ext-link-type="DOI">10.1029/2005JD006532</ext-link>, 2006.</mixed-citation></ref>
      <ref id="bib1.bibx59"><label>Kim et al.(2013)Kim, Castro, and Xie</label><?label kim2013?><mixed-citation>Kim, Y., Castro, I. P., and Xie, Z.-T.: Divergence-free turbulence inflow
conditions for large-eddy simulations with incompressible flow solvers,
Comput. Fluids, 84, 56–68, <ext-link xlink:href="https://doi.org/10.1016/j.compfluid.2013.06.001" ext-link-type="DOI">10.1016/j.compfluid.2013.06.001</ext-link>, 2013.</mixed-citation></ref>
      <ref id="bib1.bibx60"><label>Kokkola et al.(2008)</label><?label kokkola2008?><mixed-citation>Kokkola, H., Korhonen, H., Lehtinen, K. E. J., Makkonen, R., Asmi, A., Järvenoja, S., Anttila, T., Partanen, A.-I., Kulmala, M., Järvinen, H., Laaksonen, A., and Kerminen, V.-M.: SALSA – a Sectional Aerosol module for Large Scale Applications, Atmos. Chem. Phys., 8, 2469–2483, <ext-link xlink:href="https://doi.org/10.5194/acp-8-2469-2008" ext-link-type="DOI">10.5194/acp-8-2469-2008</ext-link>, 2008.</mixed-citation></ref>
      <ref id="bib1.bibx61"><label>Krayenhoff and Voogt(2007)</label><?label krayenhoff2007?><mixed-citation>Krayenhoff, E. S. and Voogt, J. A.: A microscale three-dimensional urban energy balance model for studying surface temperatures, Bound.-Lay.. Meteorol., 123, 433–461, <ext-link xlink:href="https://doi.org/10.1007/s10546-006-9153-6" ext-link-type="DOI">10.1007/s10546-006-9153-6</ext-link>, 2007.</mixed-citation></ref>
      <ref id="bib1.bibx62"><label>Kurppa et al.(2019)</label><?label kurppa2019?><mixed-citation>Kurppa, M., Hellsten, A., Roldin, P., Kokkola, H., Tonttila, J., Auvinen, M., Kent, C., Kumar, P., Maronga, B., and Järvi, L.: Implementation of the sectional aerosol module SALSA2.0 into the PALM model system 6.0: model development and first evaluation, Geosci. Model Dev., 12, 1403–1422, <ext-link xlink:href="https://doi.org/10.5194/gmd-12-1403-2019" ext-link-type="DOI">10.5194/gmd-12-1403-2019</ext-link>, 2019.</mixed-citation></ref>
      <ref id="bib1.bibx63"><label>Launder and Spalding(1974)</label><?label launder1974?><mixed-citation>
Launder, B. and Spalding, D.-B.: The numerical computation of turbulent flow,
Comput. Method. Appl. M., 3, 269–289, 1974.</mixed-citation></ref>
      <ref id="bib1.bibx64"><label>Letzel et al.(2012)</label><?label letzel2012?><mixed-citation>
Letzel, M. O., Helmke, C., Ng, E., An, X., Lai, A., and Raasch, S.: LES case
study on pedestrian level ventilation in two neighbourhoods in Hong Kong,
Meteorol. Z., 21, 575–589, 2012.</mixed-citation></ref>
      <ref id="bib1.bibx65"><label>Lo and Ngan(2017)</label><?label Lo2017?><mixed-citation>Lo, K. W. and Ngan, K.: Characterizing Ventilation and Exposure in Street
Canyons Using Lagrangian Particles, J. Appl. Meteorol. Climatol., 56,
1177–1194, <ext-link xlink:href="https://doi.org/10.1175/JAMC-D-16-0168.1" ext-link-type="DOI">10.1175/JAMC-D-16-0168.1</ext-link>, 2017.</mixed-citation></ref>
      <ref id="bib1.bibx66"><label>Lund et al.(1998)Lund, Wu, and Squires</label><?label lund1998?><mixed-citation>
Lund, T. S., Wu, X., and Squires, K. D.: Generation of turbulent inflow data
for spatially-developing boundary layer simulations, J. Comp. Phys., 140,
233–258, 1998.</mixed-citation></ref>
      <ref id="bib1.bibx67"><label>Maronga(2014)</label><?label maronga2014?><mixed-citation>
Maronga, B.: Monin-Obukhov similarity functions for the structure parameters of temperature and humidity in the unstable surface layer: Results from
high-resolution large-eddy simulations, J. Atmos. Sci., 71, 716–733, 2014.</mixed-citation></ref>
      <ref id="bib1.bibx68"><label>Maronga(2019)</label><?label Maronga2019?><mixed-citation>Maronga, B.: PALM 6.0 r3668, <ext-link xlink:href="https://doi.org/10.25835/0041607" ext-link-type="DOI">10.25835/0041607</ext-link>, 2019.</mixed-citation></ref>
      <ref id="bib1.bibx69"><label>Maronga and Bosveld(2017)</label><?label maronga2017b?><mixed-citation>Maronga, B. and Bosveld, F. C.: Key parameters for the life cycle of nocturnal radiation fog: a comprehensive large-eddy simulation study, Q. J. Roy. Meteor. Soc., 143, 2463–2480, <ext-link xlink:href="https://doi.org/10.1002/qj.3100" ext-link-type="DOI">10.1002/qj.3100</ext-link>, 2017.</mixed-citation></ref>
      <ref id="bib1.bibx70"><label>Maronga and Raasch(2013)</label><?label maronga2013a?><mixed-citation>
Maronga, B. and Raasch, S.: Large-eddy simulations of surface heterogeneity
effects on the convective boundary layer during the LITFASS-2003 experiment,
Bound.-Lay. Meteorol., 146, 17–44, 2013.</mixed-citation></ref>
      <ref id="bib1.bibx71"><label>Maronga and Reuder(2017)</label><?label maronga2017?><mixed-citation>Maronga, B. and Reuder, J.: On the formulation and universality of
Monin-Obukhov similarity functions for mean gradients and standard deviations
in the unstable surface layer: results from surface-layer resolving
large-eddy simulations, J. Atmos. Sci., 74, 989–1010,
<ext-link xlink:href="https://doi.org/10.1175/JAS-D-16-0186.1" ext-link-type="DOI">10.1175/JAS-D-16-0186.1</ext-link>, 2017.</mixed-citation></ref>
      <ref id="bib1.bibx72"><label>Maronga et al.(2014)</label><?label maronga2014b?><mixed-citation>
Maronga, B., Hartogensis, O. K., Raasch, S., and Beyrich, F.: The effect of
surface heterogeneity on the structure parameters of temperature and specific
humidity: A large-eddy simulation case study for the LITFASS-2003 experiment,
Bound.-Lay. Meteorol., 153, 441–470, 2014.</mixed-citation></ref>
      <ref id="bib1.bibx73"><label>Maronga et al.(2015)</label><?label maronga2015?><mixed-citation>Maronga, B., Gryschka, M., Heinze, R., Hoffmann, F., Kanani-Sühring, F., Keck, M., Ketelsen, K., Letzel, M. O., Sühring, M., and Raasch, S.: The Parallelized Large-Eddy Simul<?pagebreak page1371?>ation Model (PALM) version 4.0 for atmospheric and oceanic flows: model formulation, recent developments, and future perspectives, Geosci. Model Dev., 8, 2515–2551, <ext-link xlink:href="https://doi.org/10.5194/gmd-8-2515-2015" ext-link-type="DOI">10.5194/gmd-8-2515-2015</ext-link>, 2015.</mixed-citation></ref>
      <ref id="bib1.bibx74"><label>Maronga et al.(2019)</label><?label maronga2019?><mixed-citation>
Maronga, B., Gross, G., Raasch, S., Banzhaf, S., Forkel, R., Heldens, W.,
Kanani-Sühring, F., Matzarakis, A., Mauder, M., Pavlik, D., Pfafferott, J.,
Schubert, S., Seckmeyer, G., Sieker, H., and Winderlich, K.: Development of
a new urban climate model based on the model PALM - Project overview, planned
work, and first achievements, Meteorol. Z., 28, 105–119, 2019.</mixed-citation></ref>
      <ref id="bib1.bibx75"><label>Maronga et al.(2020)</label><?label maronga2019b?><mixed-citation>Maronga, B., Knigge, C., and Raasch, S.: An Improved Surface Boundary Condition for Large-Eddy Simulations Based on Monin-Obukhov Similarity Theory: Evaluation and Consequences for Grid Convergence in Neutral and Stable Conditions, Bound.-Lay. Meteorol., 174, 297–325, <ext-link xlink:href="https://doi.org/10.1007/s10546-019-00485-w" ext-link-type="DOI">10.1007/s10546-019-00485-w</ext-link>, in press, 2020.</mixed-citation></ref>
      <ref id="bib1.bibx76"><label>Mason and Sykes(1978)</label><?label mason1978?><mixed-citation>
Mason, P. J. and Sykes, R. I.: A simple cartesian model of boundary layer flow over topography, J. Comp. Phys., 28, 198–210, 1978.</mixed-citation></ref>
      <ref id="bib1.bibx77"><label>Mayer and Kylling(2005)</label><?label mayer2005?><mixed-citation>Mayer, B. and Kylling, A.: Technical note: The libRadtran software package for radiative transfer calculations – description and examples of use, Atmos. Chem. Phys., 5, 1855–1877, <ext-link xlink:href="https://doi.org/10.5194/acp-5-1855-2005" ext-link-type="DOI">10.5194/acp-5-1855-2005</ext-link>, 2005.</mixed-citation></ref>
      <ref id="bib1.bibx78"><label>McWilliams et al.(1997)</label><?label mcwilliams1997?><mixed-citation>
McWilliams, J. C., Sullivan, P. P., and Moeng, C.-H.: Langmuir turbulence in
the ocean, J. Fluid Mech., 334, 1–30, 1997.</mixed-citation></ref>
      <ref id="bib1.bibx79"><label>Mellor and Yamada(1974)</label><?label mellor1974?><mixed-citation>Mellor, G. L. and Yamada, T.: A hierarchy of turbulence closure models for
planetary boundary layers, J. Atmos. Sci., 31, 1791–1806,
<ext-link xlink:href="https://doi.org/10.1175/1520-0469(1974)031&lt;1791:AHOTCM&gt;2.0.CO;2" ext-link-type="DOI">10.1175/1520-0469(1974)031&lt;1791:AHOTCM&gt;2.0.CO;2</ext-link>, 1974.</mixed-citation></ref>
      <ref id="bib1.bibx80"><label>Mellor and Yamada(1982)</label><?label mellor1982?><mixed-citation>
Mellor, G. L. and Yamada, T.: Development of a turbulence closure model for
geophysical fluid problems, Rev. Geophys., 20, 851–875, 1982.</mixed-citation></ref>
      <ref id="bib1.bibx81"><label>Moeng and Wyngaard(1988)</label><?label moeng1988?><mixed-citation>
Moeng, C.-H. and Wyngaard, J. C.: Spectral analysis of large-eddy simulations
of the convective boundary layer, J. Atmos. Sci., 45, 3573–3587, 1988.</mixed-citation></ref>
      <ref id="bib1.bibx82"><label>Mokhtarpoor and Heinz(2017)</label><?label mokhtarpoor2017dynamic?><mixed-citation>Mokhtarpoor, R. and Heinz, S.: Dynamic large eddy simulation: Stability via
realizability, Phys. Fluids, 29, 105104, <ext-link xlink:href="https://doi.org/10.1063/1.4986890" ext-link-type="DOI">10.1063/1.4986890</ext-link>, 2017.</mixed-citation></ref>
      <ref id="bib1.bibx83"><label>Noh et al.(2004)</label><?label noh2004?><mixed-citation>
Noh, Y., Min, H. S., and Raasch, S.: Large eddy simulation of the ocean mixed
layer: The effects of wave breaking and Langmuir circulation, J. Phys.
Oceanogr., 34, 720–735, 2004.</mixed-citation></ref>
      <ref id="bib1.bibx84"><label>Noh et al.(2018)</label><?label noh2018?><mixed-citation>
Noh, Y., Oh, D., Hoffmann, F., and Raasch, S.: A Cloud Microphysics
Parameterization for Shallow Cumulus Clouds Based on Lagrangian Cloud Model
Simulations, J. Atmos. Sci., 75, 4031–4047, 2018.</mixed-citation></ref>
      <ref id="bib1.bibx85"><label>Oliveira and Younis(2000)</label><?label Oliveira2000?><mixed-citation>Oliveira, P. J. and Younis, B. A.: On the prediction of turbulent flows around full-scale buildings, J. Wind Eng. Ind. Aerod., 86, 203–220,
<ext-link xlink:href="https://doi.org/10.1016/s0167-6105(00)00011-8" ext-link-type="DOI">10.1016/s0167-6105(00)00011-8</ext-link>, 2000.</mixed-citation></ref>
      <ref id="bib1.bibx86"><label>Orlanski(1976)</label><?label orlanski1976?><mixed-citation>
Orlanski, I.: A simple boundary condition for unbounded hyperbolic flows, J.
Comput. Phys., 21, 251–269, 1976.</mixed-citation></ref>
      <ref id="bib1.bibx87"><label>Panofsky and Dutton(1984)</label><?label panofsky1984?><mixed-citation>
Panofsky, H. A. and Dutton, J. A.: Atmospheric turbulence, models and methods
for engineering applications, John Wiley &amp; Sons, New York, 1984.</mixed-citation></ref>
      <ref id="bib1.bibx88"><label>Paulson(1970)</label><?label paulson1970?><mixed-citation>
Paulson, C. A.: The mathematical representation of wind speed and temperature
profiles in the unstable atmospheric surface layer, J. Appl. Meteorol., 9,
857–861, 1970.</mixed-citation></ref>
      <ref id="bib1.bibx89"><label>Pfafferott et al.(2011)</label><?label pfafferott2011?><mixed-citation>
Pfafferott, J., Fischer, M., Strohmeyer, T., and Wirth, D.: Ein einfaches
Modell zur Vorhersage der Fassaden- und Grenzschichttemperatur, BAUPHYSIK,
33, 151–157, 2011 (in German).</mixed-citation></ref>
      <ref id="bib1.bibx90"><label>Raasch and Franke(2011)</label><?label raasch2011?><mixed-citation>Raasch, S. and Franke, T.: Structure and formation of dust-devil-like vortices in the atmospheric boundary layer – A high resolution numerical study, J. Geophys. Res., 116, D16120, <ext-link xlink:href="https://doi.org/10.1029/2011JD016010" ext-link-type="DOI">10.1029/2011JD016010</ext-link>, 2011.</mixed-citation></ref>
      <ref id="bib1.bibx91"><label>Resler et al.(2017)</label><?label resler2017?><mixed-citation>Resler, J., Krč, P., Belda, M., Juruš, P., Benešová, N., Lopata, J., Vlček, O., Damašková, D., Eben, K., Derbek, P., Maronga, B., and Kanani-Sühring, F.: PALM-USM v1.0: A new urban surface model integrated into the PALM large-eddy simulation model, Geosci. Model Dev., 10, 3635–3659, <ext-link xlink:href="https://doi.org/10.5194/gmd-10-3635-2017" ext-link-type="DOI">10.5194/gmd-10-3635-2017</ext-link>, 2017.</mixed-citation></ref>
      <ref id="bib1.bibx92"><label>Riechelmann et al.(2012)</label><?label riechelmann2012?><mixed-citation>Riechelmann, T., Noh, Y., and Raasch, S.: A new method for large-eddy
simulations of clouds with Lagrangian droplets including the effects of
turbulent collision, New J. Phys., 14, 065008, <ext-link xlink:href="https://doi.org/10.1088/1367-2630/14/6/065008" ext-link-type="DOI">10.1088/1367-2630/14/6/065008</ext-link>, 2012.</mixed-citation></ref>
      <ref id="bib1.bibx93"><label>Rotach et al.(1996)</label><?label rotach1996?><mixed-citation>Rotach, M. W., Gryning, S.-E., and Tassone, C.: A two-dimensional Lagrangian
stochastic dispersion model for daytime conditions, Q. J. Roy. Meteor.
Soc., 122, 367–389, <ext-link xlink:href="https://doi.org/10.1002/qj.49712253004" ext-link-type="DOI">10.1002/qj.49712253004</ext-link>, 1996.</mixed-citation></ref>
      <ref id="bib1.bibx94"><label>Saiki et al.(2000)</label><?label saiki2000?><mixed-citation>
Saiki, E. M., Moeng, C.-H., and Sullivan, P. P.: Large-eddy simulation of the
stably stratified planetary boundary layer, Bound. Lay.-Meteorol., 95,
1–30, 2000.</mixed-citation></ref>
      <ref id="bib1.bibx95"><label>Saunders et al.(2003)</label><?label saunders2003?><mixed-citation>Saunders, S. M., Jenkin, M. E., Derwent, R. G., and Pilling, M. J.: Protocol for the development of the Master Chemical Mechanism, MCM v3 (Part A): tropospheric degradation of non-aromatic volatile organic compounds, Atmos. Chem. Phys., 3, 161–180, <ext-link xlink:href="https://doi.org/10.5194/acp-3-161-2003" ext-link-type="DOI">10.5194/acp-3-161-2003</ext-link>, 2003.</mixed-citation></ref>
      <ref id="bib1.bibx96"><label>Scherer et al.(2019a)</label><?label scherer2019b?><mixed-citation>Scherer, D., Ament, F., Emeis, S., Fehrenbach, U., Leitl, B., Scherber, K.,
Schneider, C., and Vogt, U.: Three-Dimensional Observation of Atmospheric
Processes in Cities, Meteorol. Z., 28, 121–138, <ext-link xlink:href="https://doi.org/10.1127/metz/2019/0911" ext-link-type="DOI">10.1127/metz/2019/0911</ext-link>, 2019a.</mixed-citation></ref>
      <ref id="bib1.bibx97"><label>Scherer et al.(2019b)</label><?label scherer2019?><mixed-citation>Scherer, D., Antretter, F., Bender, S., Cortekar, J., Emeis, S., Fehrenbach,
U., Gross, G., Halbig, G., Hasse, J., Maronga, B., Raasch, S., and Scherber,
K.: Urban Climate Under Change [UC]<inline-formula><mml:math id="M753" display="inline"><mml:msup><mml:mi/><mml:mn mathvariant="normal">2</mml:mn></mml:msup></mml:math></inline-formula> – A national research programme for
developing a building-resolving atmospheric model for entire city regions,
Meteorol. Z., 28, 95–104, <ext-link xlink:href="https://doi.org/10.1127/metz/2019/0913" ext-link-type="DOI">10.1127/metz/2019/0913</ext-link>, 2019b.</mixed-citation></ref>
      <ref id="bib1.bibx98"><label>Schrempf et al.(2017)</label><?label Schrempf2017?><mixed-citation>Schrempf, M., Thuns, N., Lange, K., and Seckmeyer, G.: Impact of Orientation on the Vitamin D Weighted Exposure of a Human in an Urban Environment, Int. J. Env. Res. Pub. He., 14, 920, <ext-link xlink:href="https://doi.org/10.3390/ijerph14080920" ext-link-type="DOI">10.3390/ijerph14080920</ext-link>, 2017.</mixed-citation></ref>
      <ref id="bib1.bibx99"><label>Schroeder et al.(2006)</label><?label Schroeder2006?><mixed-citation>
Schroeder, W., Martin, K., and Lorensen, B.: Visualization Toolkit: An
Object-Oriented Approach to 3D Graphics, 4th Edition, Kitware, 2006.</mixed-citation></ref>
      <ref id="bib1.bibx100"><label>Schumann(1975)</label><?label schumann1975?><mixed-citation>
Schumann, U.: Subgrid scale model for finite difference simulations of
turbulent flows in plane channels and annuli, J. Comput. Phys., 18, 376–404,
1975.</mixed-citation></ref>
      <ref id="bib1.bibx101"><label>Schwenkel and Maronga(2019)</label><?label schwenkel2019?><mixed-citation>Schwenkel, J. and Maronga, B.: Large-eddy simulation of radiation fog with comprehensive two-moment bulk microphysics: impact of different aerosol activation and condensation parameterizations, Atmos. Chem. Phys., 19, 7165–7181, <ext-link xlink:href="https://doi.org/10.5194/acp-19-7165-2019" ext-link-type="DOI">10.5194/acp-19-7165-2019</ext-link>, 2019.</mixed-citation></ref>
      <ref id="bib1.bibx102"><label>Schwenkel et al.(2018)</label><?label schwenkel2018?><mixed-citation>Schwenkel, J., Hoffmann, F., and Raasch, S.: Improving collisional growth in Lagrangian cloud models: development and verification of a new splitting algorithm, Geosci. Model Dev., 11, 3929–3944, <ext-link xlink:href="https://doi.org/10.5194/gmd-11-3929-2018" ext-link-type="DOI">10.5194/gmd-11-3929-2018</ext-link>, 2018.</mixed-citation></ref>
      <ref id="bib1.bibx103"><label>Seckmeyer et al.(2013)</label><?label Seckmeyer2013?><mixed-citation>
Seckmeyer, G., Schrempf, M., Wieczorek, A., Riechelmann, S., Graw, K.,
Seckmeyer, S., and Zankl, M.: A Novel Method to Calculate Solar UV Exposure
Relevant to Vitamin D Production in Humans, Photochem. Photobiol., 89,
974–983, 2013.</mixed-citation></ref>
      <?pagebreak page1372?><ref id="bib1.bibx104"><label>Seifert and Beheng(2001)</label><?label seifert2001?><mixed-citation>
Seifert, A. and Beheng, K. D.: A double-moment parameterization for simulating autoconversion, accretion and selfcollection, Atmos. Res., 59, 265–281, 2001.</mixed-citation></ref>
      <ref id="bib1.bibx105"><label>Seifert and Beheng(2006)</label><?label seifert2006?><mixed-citation>
Seifert, A. and Beheng, K. D.: A two-moment cloud microphysics parameterization for mixed-phase clouds. Part 1: Model description, Meteorol. Atmos Phys., 92, 45–66, 2006.</mixed-citation></ref>
      <ref id="bib1.bibx106"><label>Shima et al.(2009)</label><?label shima2009?><mixed-citation>
Shima, S.-I., Kusano, K., Kawano, A., Sugiyama, T., and Kawahara, S.: The
super-droplet method for the numerical simulation of clouds and
precipitation: A particle-based and probabilistic microphysics model coupled
with a non-hydrostatic model, Q. J. Roy. Meteor. Soc., 135, 1307–1320,
2009.</mixed-citation></ref>
      <ref id="bib1.bibx107"><label>Skyllingstad and Denbo(1995)</label><?label skyllingstad1995?><mixed-citation>
Skyllingstad, E. D. and Denbo, D. W.: An ocean large-eddy simulation of
Langmuir circulations and convection in the surface mixed layer, J Geophys. Res., 100, 8501–8522, 1995.</mixed-citation></ref>
      <ref id="bib1.bibx108"><label>Sölch and Kärcher(2010)</label><?label soelch2010?><mixed-citation>
Sölch, I. and Kärcher, B.: A large-eddy model for cirrus clouds with explicit
aerosol and ice microphysics and Lagrangian ice particle tracking, Q. J.
Roy. Meteor. Soc., 136, 2074–2093, 2010.</mixed-citation></ref>
      <ref id="bib1.bibx109"><label>Staiger et al.(2012)</label><?label staiger2012perceived?><mixed-citation>Staiger, H., Laschewski, G., and Graetz, A.: The perceived temperature – a
versatile index for the assessment of the human thermal environment. Part
A: scientific basics, Int. J. Biometeorol., 56, 165–176,
<ext-link xlink:href="https://doi.org/10.1007/s00484-011-0409-6" ext-link-type="DOI">10.1007/s00484-011-0409-6</ext-link>, 2012.</mixed-citation></ref>
      <ref id="bib1.bibx110"><label>Staiger et al.(2019)</label><?label staiger2019?><mixed-citation>
Staiger, H., Laschewski, G., and Matzarakis, A.: Selection of Appropriate
Thermal Indices for Applications in Human Biometeorological Studies,
Atmosphere, 10, 1–15, 2019.</mixed-citation></ref>
      <ref id="bib1.bibx111"><label>Steinfeld et al.(2008)</label><?label steinfeld2008?><mixed-citation>
Steinfeld, G., Raasch, S., and Markkanen, T.: Footprints in homogeneously and
heterogeneously driven boundary layers derived from a Lagrangian stochastic
particle model embedded into large-eddy simulation, Bound.-Lay. Meteorol,
129, 225–248, 2008.</mixed-citation></ref>
      <ref id="bib1.bibx112"><label>Stewart(1988)</label><?label stewart1988?><mixed-citation>
Stewart, J. B.: Modelling surface conductance of pine forest, Agr. Forest
Meteorol., 43, 19–35, 1988.</mixed-citation></ref>
      <ref id="bib1.bibx113"><label>Storey et al.(2013)</label><?label Storey2013?><mixed-citation>
Storey, R., Norris, S., and Cater, J.: Large Eddy Simulation of Wind
Events Propagating through an Array of Wind Turbines, in:
Proceedings of the World Congress on Engineering 2013, Vol. III, WCE 2013, London, UK, 3–5 July, 2013.</mixed-citation></ref>
      <ref id="bib1.bibx114"><label>Sühring and Raasch(2013)</label><?label suehring2013?><mixed-citation>
Sühring, M. and Raasch, S.: Heterogeneity-induced heat flux patterns in the
convective boundary layer: Can they be detected from observations and is
there a blending height? - A large-eddy simulation study for the LITFASS-2003
experiment, Bound.-Lay. Meteorol., 148, 309–331, 2013.</mixed-citation></ref>
      <ref id="bib1.bibx115"><label>Sühring et al.(2019)</label><?label suehring2019?><mixed-citation>Sühring, M., Metzger, S., Xu, K., Durden, D., and Desai, A.: Trade-Offs in
Flux Disaggregation: A Large-Eddy Simulation Study, Bound.-Lay. Meteorol.,
170, 69–93, <ext-link xlink:href="https://doi.org/10.1007/s10546-018-0387-x" ext-link-type="DOI">10.1007/s10546-018-0387-x</ext-link>, 2019.</mixed-citation></ref>
      <ref id="bib1.bibx116"><label>Sullivan and Patton(2011)</label><?label sullivan2011?><mixed-citation>
Sullivan, P. P. and Patton, E. G.: The effect of mesh resolution on convective boundary layer statistics and structures generated by large-eddy simulation, J. Atmos. Sci., 68, 2395–2415, 2011.</mixed-citation></ref>
      <ref id="bib1.bibx117"><label>Sullivan et al.(1996)</label><?label Sullivan1996?><mixed-citation>
Sullivan, P. P., McWilliams, J. C., and Moeng, C.-H.: A grid nesting method for large-eddy simulation of planetary boundary-layer flow, Bound.-Lay.
Meteorol., 80, 167–202, 1996.</mixed-citation></ref>
      <ref id="bib1.bibx118"><label>Sullivan et al.(2016)</label><?label sullivan2016?><mixed-citation>Sullivan, P. P., Weil, J. C., Patton, E. G., Jonker, H. J. J., and Mironov,
D. V.: Turbulent Winds and Temperature Fronts in Large-Eddy Simulations of
the Stable Atmospheric Boundary Layer, J. Atmos. Sci., 73, 1815–1840,
<ext-link xlink:href="https://doi.org/10.1175/JAS-D-15-0339.1" ext-link-type="DOI">10.1175/JAS-D-15-0339.1</ext-link>, 2016.
</mixed-citation></ref><?xmltex \hack{\newpage}?>
      <ref id="bib1.bibx119"><label>Twomey(1959)</label><?label twomey1959?><mixed-citation>
Twomey, S.: The nuclei of natural cloud formation part II: The supersaturation
in natural clouds and the variation of cloud droplet concentration, Pure
Appl. Geophys., 43, 243–249, 1959.</mixed-citation></ref>
      <ref id="bib1.bibx120"><?xmltex \def\ref@label{{Unterstrasser and S{\"{o}}lch(2014)}}?><label>Unterstrasser and Sölch(2014)</label><?label unterstrasser2014?><mixed-citation>Unterstrasser, S. and Sölch, I.: Optimisation of the simulation particle number in a Lagrangian ice microphysical model, Geosci. Model Dev., 7, 695–709, <ext-link xlink:href="https://doi.org/10.5194/gmd-7-695-2014" ext-link-type="DOI">10.5194/gmd-7-695-2014</ext-link>, 2014.</mixed-citation></ref>
      <ref id="bib1.bibx121"><label>Unterstrasser et al.(2016)</label><?label unterstrasser2017?><mixed-citation>Unterstrasser, S., Hoffmann, F., and Lerch, M.: Collection/aggregation algorithms in Lagrangian cloud microphysical models: rigorous evaluation in box model simulations, Geosci. Model Dev., 10, 1521–1548, <ext-link xlink:href="https://doi.org/10.5194/gmd-10-1521-2017" ext-link-type="DOI">10.5194/gmd-10-1521-2017</ext-link>, 2017.</mixed-citation></ref>
      <ref id="bib1.bibx122"><label>Valentin(2002)</label><?label VALENTIN?><mixed-citation>Valentin, J.: Basic anatomical and physiological data for use in radiological
protection: reference values: ICRP Publication 89, Annals of the ICRP, 32,
1–277, <ext-link xlink:href="https://doi.org/10.1016/S0146-6453(03)00002-2" ext-link-type="DOI">10.1016/S0146-6453(03)00002-2</ext-link>, 2002.</mixed-citation></ref>
      <ref id="bib1.bibx123"><label>van Genuchten(1980)</label><?label vangenuchten1980?><mixed-citation>
van Genuchten, M.: A closed form equation for predicting the hydraulic
conductivity of unsaturated soils, Soil Sci. Soc. Amer. J., 44, 892–898,
1980.</mixed-citation></ref>
      <ref id="bib1.bibx124"><label>Van Zanten et al.(2010)</label><?label vanzanten2010?><mixed-citation>
Van Zanten, M. C., Sauter, F. J., Kruit, R. J. W., Jaarsveld, J. A. V., and
Pul, W. A. J. V.: Description of the DEPAC module: Dry deposition modelling
with DEPAC-GCN2010, Tech. report 680180001/2010, RIVM, Bilthoven, the
Netherlands, 74 pp., 2010.</mixed-citation></ref>
      <ref id="bib1.bibx125"><label>Viterbo and Beljaars(1995)</label><?label viterbo1995?><mixed-citation>
Viterbo, P. and Beljaars, A. C. M.: An Improved Land Surface Parameterization
Scheme in the ECMWF Model and Its Validation, J. Climate, 8, 2716–2748,
1995.</mixed-citation></ref>
      <ref id="bib1.bibx126"><label>Vollmer et al.(2016)</label><?label Vollmer2016?><mixed-citation>Vollmer, L., Steinfeld, G., Heinemann, D., and Kühn, M.: Estimating the wake deflection downstream of a wind turbine in different atmospheric stabilities: an LES study, Wind Energ. Sci., 1, 129–141, <ext-link xlink:href="https://doi.org/10.5194/wes-1-129-2016" ext-link-type="DOI">10.5194/wes-1-129-2016</ext-link>, 2016.</mixed-citation></ref>
      <ref id="bib1.bibx127"><label>Vollmer et al.(2017)Vollmer, Steinfeld, and Kühn</label><?label Vollmer2017?><mixed-citation>Vollmer, L., Steinfeld, G., and Kühn, M.: Transient LES of an offshore wind turbine, Wind Energ. Sci., 2, 603–614, <ext-link xlink:href="https://doi.org/10.5194/wes-2-603-2017" ext-link-type="DOI">10.5194/wes-2-603-2017</ext-link>, 2017.</mixed-citation></ref>
      <ref id="bib1.bibx128"><label>Voss and Künz(2012)</label><?label voss2012?><mixed-citation>
Voss, K. and Künz, C.: Klimadaten und Klimawandel – Untersuchungen zum
Einfluss auf den Energiebedarf, den Leistungsbedarf und den thermischen
Komfort von Gebäuden, Bauphysik, 34, 189–196, 2012 (in German).</mixed-citation></ref>
      <ref id="bib1.bibx129"><label>Weil et al.(2004)</label><?label weil2004?><mixed-citation>
Weil, J. C., Sullivan, P. P., and Moeng, C.-H.: The use of large-eddy
simulations in Lagrangian particle dispersion models, J. Atmos. Sci., 61,
2877–288, 2004.</mixed-citation></ref>
      <ref id="bib1.bibx130"><?xmltex \def\ref@label{{Wu and Port{\'{e}}-Agel(2011)}}?><label>Wu and Porté-Agel(2011)</label><?label Wu2011?><mixed-citation>Wu, Y.-T. and Porté-Agel, F.: Large-Eddy Simulation of
Wind-Turbine Wakes: Evaluation of Turbine Parametrisations,
Bound.-Lay. Meteorol., 138, 345–366, <ext-link xlink:href="https://doi.org/10.1007/s10546-010-9569-x" ext-link-type="DOI">10.1007/s10546-010-9569-x</ext-link>,
2011.</mixed-citation></ref>
      <ref id="bib1.bibx131"><label>Xie and Castro(2006)</label><?label Xie2006?><mixed-citation>
Xie, Z.-T. and Castro, I. P.: LES and RANS for turbulent flows over arrays of wall-mounted obstacles, Flow Turbul. Combust., 76, 291–312,
2006.</mixed-citation></ref>
      <ref id="bib1.bibx132"><label>Xie and Castro(2008)</label><?label xie2008?><mixed-citation>Xie, Z.-T. and Castro, I. P.: Efficient Generation of Inflow Conditions for
Large Eddy Simulation of Street-Scale Flows, Flow Turbul. Combust.,
81, 449–470, <ext-link xlink:href="https://doi.org/10.1007/s10494-008-9151-5" ext-link-type="DOI">10.1007/s10494-008-9151-5</ext-link>, 2008.</mixed-citation></ref>
      <ref id="bib1.bibx133"><label>Zhang et al.(2001)Zhang, Gong, Padro, and Barrie</label><?label zhang2001?><mixed-citation>
Zhang, L., Gong, S., Padro, J., and Barrie, L.: A size-segregated particle dry
deposition scheme for an atmospheric aerosol module, Atmos. Environ., 39,
3291–3303, 2001.</mixed-citation></ref>

  </ref-list></back>
    <!--<article-title-html>Overview of the PALM model system 6.0</article-title-html>
<abstract-html><p>In this paper, we describe the PALM model system 6.0. PALM (formerly an abbreviation for Parallelized Large-eddy Simulation Model and now an independent name) is a Fortran-based code and has been applied for studying  a variety of atmospheric and oceanic boundary layers for about 20 years. The model is optimized for use on massively parallel computer architectures. This is a follow-up paper to the PALM 4.0 model description in Maronga et al. (2015). During the last years, PALM has been significantly improved and now offers a variety of new components. In particular, much effort was made to enhance the model with components needed for applications in urban environments, like fully interactive land surface and radiation schemes, chemistry, and an indoor model. This paper serves as an overview paper of the PALM 6.0 model system and we describe its current model core. The individual components for urban applications, case studies, validation runs, and issues with suitable input data are presented and discussed in a series of companion papers in this special issue.</p></abstract-html>
<ref-html id="bib1.bib1"><label>Andersen et al.(2015)</label><mixed-citation>
Andersen, S. J., Witha, B., Breton, S.-P., Sørensen, J. N., Mikkelsen,
R. F., and Ivanell, S.: Quantifying variability of Large Eddy
Simulations of very large wind farms, J. Phys. Conf. Ser., 625, 012027, <a href="https://doi.org/10.1088/1742-6596/625/1/012027" target="_blank">https://doi.org/10.1088/1742-6596/625/1/012027</a>, 2015.
</mixed-citation></ref-html>
<ref-html id="bib1.bib2"><label>Andrejczuk et al.(2008)</label><mixed-citation>
Andrejczuk, M., Reisner, J. M., Henson, B., Dubey, M. K., and Jeffery, C. A.:
The potential impacts of pollution on a nondrizzling stratus deck: Does
aerosol number matter more than type?, J. Geophys. Res., 113, D19204, <a href="https://doi.org/10.1029/2007JD009445" target="_blank">https://doi.org/10.1029/2007JD009445</a>, 2008.
</mixed-citation></ref-html>
<ref-html id="bib1.bib3"><label>Arakawa and Lamb(1977)</label><mixed-citation>
Arakawa, A. and Lamb, V. R.: Computational design of the basic dynamical
processes of the UCLA general circulation model, in: General circulation models of the atmosphere, Methods in computational physics, edited by: Chang, J., Elsevier, 17, 173–265, <a href="https://doi.org/10.1016/B978-0-12-460817-7.50009-4" target="_blank">https://doi.org/10.1016/B978-0-12-460817-7.50009-4</a>, 1977.
</mixed-citation></ref-html>
<ref-html id="bib1.bib4"><label>Auvinen et al.(2017)</label><mixed-citation>
Auvinen, M., Järvi, L., Hellsten, A., Rannik, Ü., and Vesala, T.: Numerical framework for the computation of urban flux footprints employing large-eddy simulation and Lagrangian stochastic modeling, Geosci. Model Dev., 10, 4187–4205, <a href="https://doi.org/10.5194/gmd-10-4187-2017" target="_blank">https://doi.org/10.5194/gmd-10-4187-2017</a>, 2017.
</mixed-citation></ref-html>
<ref-html id="bib1.bib5"><label>Baldauf et al.(2011)</label><mixed-citation>
Baldauf, M., Seifert, A., Förstner, J., Majewski, D., Raschendorfer, M., and
Reinhardt, T.: Operational Convective-Scale Numerical Weather Prediction
with the COSMO Model: Description and Sensitivities, Mon. Weather Rev., 139,
3887–3905, <a href="https://doi.org/10.1175/MWR-D-10-05013.1" target="_blank">https://doi.org/10.1175/MWR-D-10-05013.1</a>, 2011.
</mixed-citation></ref-html>
<ref-html id="bib1.bib6"><label>Balsamo et al.(2009)</label><mixed-citation>
Balsamo, G., Vitebo, P., Beljaars, A., van den Hurk, B., Hirschi, M., Betts,
A. K., and Scipal, K.: A revised hydrology for the ECMWF model: Verification
from field site to terrestrial water storage and impact in the Integrated
Forecast System, J. Hydrometeorol., 10, 623–643, 2009.
</mixed-citation></ref-html>
<ref-html id="bib1.bib7"><label>Basu and Lacser(2017)</label><mixed-citation>
Basu, S. and Lacser, A.: A Cautionary Note on the Use of Monin–Obukhov
Similarity Theory in Very High-Resolution Large-Eddy Simulations, Bound. Lay.-Meteorol., 163,
351–355, <a href="https://doi.org/10.1007/s10546-016-0225-y" target="_blank">https://doi.org/10.1007/s10546-016-0225-y</a>, 2017.
</mixed-citation></ref-html>
<ref-html id="bib1.bib8"><label>Beljaars(1994)</label><mixed-citation>
Beljaars, A.: The parametrization of surface fluxes in large-scale models
under free convection., Q. J. Roy. Met. Soc., 121, 255–270, 1994.
</mixed-citation></ref-html>
<ref-html id="bib1.bib9"><label>Blackadar(1962)</label><mixed-citation>
Blackadar, A. K.: The vertical distribution of wind and turbulent exchange in a neutral atmosphere, J. Geophys. Res., 67, 3095–3102,
<a href="https://doi.org/10.1029/JZ067i008p03095" target="_blank">https://doi.org/10.1029/JZ067i008p03095</a>, 1962.
</mixed-citation></ref-html>
<ref-html id="bib1.bib10"><label>Briegleb(1986)</label><mixed-citation>
Briegleb, B. P.: Comparison of regional clear-sky albedos inferred from
satellite observations and model computations, J. Climate Appl. Meteorol.,
25, 214–226, 1986.
</mixed-citation></ref-html>
<ref-html id="bib1.bib11"><label>Briegleb(1992)</label><mixed-citation>
Briegleb, B. P.: Delta-Eddington approximation for solar radiation in the NCAR
community climate model, J. Geophys. Res., 97, 7603–7612,
<a href="https://doi.org/10.1029/92JD00291" target="_blank">https://doi.org/10.1029/92JD00291</a>, 1992.
</mixed-citation></ref-html>
<ref-html id="bib1.bib12"><label>Briscolini and Santangelo(1989)</label><mixed-citation>
Briscolini, M. and Santangelo, P.: Development of the mask method for
incompressible unsteady flows, J. Comp. Phys., 84, 57–75, 1989.
</mixed-citation></ref-html>
<ref-html id="bib1.bib13"><label>Bröde et al.(2012)</label><mixed-citation>
Bröde, P., Fiala, D., Błazejczyk, K., Holmér, I., Jendritzky,
G., Kampmann, B., Tinz, B., and Havenith, G.: Deriving the operational
procedure for the Universal Thermal Climate Index (UTCI), Int. J.
Biometeorol., 56, 481–494, <a href="https://doi.org/10.1007/s00484-011-0454-1" target="_blank">https://doi.org/10.1007/s00484-011-0454-1</a>, 2012.
</mixed-citation></ref-html>
<ref-html id="bib1.bib14"><label>Calaf et al.(2010)</label><mixed-citation>
Calaf, M., Meneveau, C., and Meyers, J.: Large eddy simulation study of fully developed wind-turbine array boundary layers, Phys. Fluids, 22, 015110,
<a href="https://doi.org/10.1063/1.3291077" target="_blank">https://doi.org/10.1063/1.3291077</a>, 2010.
</mixed-citation></ref-html>
<ref-html id="bib1.bib15"><label>Clark and Farley(1984)</label><mixed-citation>
Clark, T. L. and Farley, R. D.: Severe downslope windstorm calculations in two
and three spatial dimensions using anelastic interactive grid nesting: A
possible mechanism for gustiness, J. Atmos. Sci., 41, 329–350, 1984.
</mixed-citation></ref-html>
<ref-html id="bib1.bib16"><label>Clark and Hall(1991)</label><mixed-citation>
Clark, T. L. and Hall, W. D.: Multi-domain simulations of the time dependent
Navier-Stokes equations: benchmark error analysis of some nesting
procedures, J. Comp. Phys., 92, 456–481, 1991.
</mixed-citation></ref-html>
<ref-html id="bib1.bib17"><label>Clough et al.(2005)</label><mixed-citation>
Clough, S. A., Shephard, M. W., Mlawer, E. J., Delamere, J. S., Iacono, M. J.,
Cady-Pereira, K., Boukabara, S., and Brown, P. D.: Atmospheric radiative
transfer modeling: A summary of the AER codes, Short Communication, J. Quant.
Spectrosc. Ra., 91, 233–244, 2005.
</mixed-citation></ref-html>
<ref-html id="bib1.bib18"><label>Craik and Leibovich(1976)</label><mixed-citation>
Craik, A. D. D. and Leibovich, S.: A rational model for Langmuir Circulations, J. Fluid Mech., 73, 401–426, 1976.
</mixed-citation></ref-html>
<ref-html id="bib1.bib19"><label>Dai et al.(2003)</label><mixed-citation>
Dai, Y., Zeng, X., Dickinson, R. E., Baker, I., Bonan, G. B., Bosilovich,
M. G., Denning, A. S., Dirmeyer, P. A., Houser, P. R., Niu, G.,
Oleson, K. W., Schlosser, C. A., and Zong-Liang, Y.: The
common land model, B. Am. Meteorol. Soc., 84,
1013–1024, 2003.
</mixed-citation></ref-html>
<ref-html id="bib1.bib20"><label>Damian et al.(2002)</label><mixed-citation>
Damian, V., Sandu, A., Damian, M., Potra, F., and Carmichael, G. R.: The
kinetic preprocessor KPP – a software environment for solving chemical
kinetics, Comput. Chem. Eng., 26, 1567–1579, 2002.
</mixed-citation></ref-html>
<ref-html id="bib1.bib21"><label>Daudet et al.(1999)</label><mixed-citation>
Daudet, F. A., Le Roux, X., Sinoquet, H., and Adam, B.: Wind speed and leaf
boundary layer conductance variation within tree crown: consequences on
leaf-to-atmosphere coupling and tree functions, Agr. Forest Meteorol., 97,
171–185, 1999.
</mixed-citation></ref-html>
<ref-html id="bib1.bib22"><label>Deardorff(1970)</label><mixed-citation>
Deardorff, J. W.: A numerical study of three-dimensional turbulent channel flow at large Reynolds number, J. Fluids Mech., 31, 453–480, 1970.
</mixed-citation></ref-html>
<ref-html id="bib1.bib23"><label>Deardorff(1973)</label><mixed-citation>
Deardorff, J. W.: The use of subgrid transport equations in a three-dimensional model of atmospheric turbulence, J. Fluids Eng., 95, 429–438, 1973.
</mixed-citation></ref-html>
<ref-html id="bib1.bib24"><label>Deardorff(1980)</label><mixed-citation>
Deardorff, J. W.: Stratocumulus-capped mixed layers derived from a
three-dimensional model, Bound.-Lay. Meteorol., 18, 495–527, 1980.
</mixed-citation></ref-html>
<ref-html id="bib1.bib25"><label>Dörenkämper et al.(2015)</label><mixed-citation>
Dörenkämper, M., Witha, B., Steinfeld, G., Heinemann, D., and Kühn, M.: The impact of stable atmospheric boundary layers on wind-turbine wakes
within offshore wind farms, J. Wind Eng. Ind. Aerod., 144, 146–153, <a href="https://doi.org/10.1016/j.jweia.2014.12.011" target="_blank">https://doi.org/10.1016/j.jweia.2014.12.011</a>, 2015.
</mixed-citation></ref-html>
<ref-html id="bib1.bib26"><label>Duynkerke(1999)</label><mixed-citation>
Duynkerke, P. G.: Turbulence, radiation and fog in Dutch stable boundary
layers, Bound.-Lay. Meteorol., 90, 447–477,
<a href="https://doi.org/10.1023/A:1026441904734" target="_blank">https://doi.org/10.1023/A:1026441904734</a>, 1999.
</mixed-citation></ref-html>
<ref-html id="bib1.bib27"><label>Fanger(1972)</label><mixed-citation>
Fanger, P. O.: Thermal comfort, McGraw-Hill, New York, 1972.
</mixed-citation></ref-html>
<ref-html id="bib1.bib28"><label>Germano et al.(1991)</label><mixed-citation>
Germano, M., Piomelli, U., Moin, P., and Chabot, W. H.: A dynamic subgrid-scale eddy viscosity model, Phys. Fluids A-Fluid, 3, 1760–1765,
1991.
</mixed-citation></ref-html>
<ref-html id="bib1.bib29"><label>Gery et al.(1989)</label><mixed-citation>
Gery, M. W., Whitten, G. Z., Killus, J. P., and Dodge, M. C.: A Photochemical Kinetics Mechanism for Urban and Regional Scale Computer Modeling, J. Geophys. Res.-Atmos., 26, 12925–12956, <a href="https://doi.org/10.1029/JD094iD10p12925" target="_blank">https://doi.org/10.1029/JD094iD10p12925</a>, 1989.
</mixed-citation></ref-html>
<ref-html id="bib1.bib30"><label>Gronemeier and Sühring(2019)</label><mixed-citation>
Gronemeier, T. and Sühring, M.: On the effects of lateral openings on
courtyard ventilation and pollution – a large-eddy simulation study,
Atmosphere, 10, 63, <a href="https://doi.org/10.3390/atmos10020063" target="_blank">https://doi.org/10.3390/atmos10020063</a>, 2019.
</mixed-citation></ref-html>
<ref-html id="bib1.bib31"><label>Gronemeier et al.(2015)</label><mixed-citation>
Gronemeier, T., Inagaki, A., Gryschka, M., and Kanda, M.: Large-Eddy
Simulation of an Urban Canopy Using a Synthetic Turbulence Inflow Generator
Method, ournal of Japan Society of Civil Engineers, Ser. B1 (Hydraulic Engineering), 71, 43–48, <a href="https://doi.org/10.2208/jscejhe.71.i_43" target="_blank">https://doi.org/10.2208/jscejhe.71.i_43</a>, 2015.
</mixed-citation></ref-html>
<ref-html id="bib1.bib32"><label>Gronemeier et al.(2017)</label><mixed-citation>
Gronemeier, T., Raasch, S., and Ng, E.: Effects of Unstable Stratification on Ventilation in Hong Kong, Atmosphere, 8, 1–15, <a href="https://doi.org/10.3390/atmos8090168" target="_blank">https://doi.org/10.3390/atmos8090168</a>, 2017.
</mixed-citation></ref-html>
<ref-html id="bib1.bib33"><label>Harlow and Welch(1965)</label><mixed-citation>
Harlow, F. H. and Welch, J. E.: Numerical calculation of time-dependent viscous incompressible flow of fluid with free surface, Phys. Fluids, 8, 2182–2189, 1965.
</mixed-citation></ref-html>
<ref-html id="bib1.bib34"><label>Hart et al.(1968)</label><mixed-citation>
Hart, P. E., Nilsson, N. J., and Raphael, B.: A Formal Basis for the Heuristic Determination of Minimum Cost Paths, IEEE Trans. Syst. Sci. Cybern., 4, 100–107, <a href="https://doi.org/10.1109/TSSC.1968.300136" target="_blank">https://doi.org/10.1109/TSSC.1968.300136</a>, 1968.
</mixed-citation></ref-html>
<ref-html id="bib1.bib35"><label>Heinz(2008)</label><mixed-citation>
Heinz, S.: Realizability of dynamic subgrid-scale stress models via stochastic analysis, Monte Carlo Meth. Appl., 14, 311–329, 2008.
</mixed-citation></ref-html>
<ref-html id="bib1.bib36"><label>Heinz and Gopalan(2012)</label><mixed-citation>
Heinz, S. and Gopalan, H.: Realizable versus non-realizable dynamic
subgrid-scale stress models, Phys. Fluids, 24, 115105, <a href="https://doi.org/10.1063/1.4767538" target="_blank">https://doi.org/10.1063/1.4767538</a>, 2012.
</mixed-citation></ref-html>
<ref-html id="bib1.bib37"><label>Heinze et al.(2017)</label><mixed-citation>
Heinze, R., Moseley, C., Böske, L. N., Muppa, S. K., Maurer, V., Raasch, S., and Stevens, B.: Evaluation of large-eddy simulations forced with mesoscale model output for a multi-week period during a measurement campaign, Atmos. Chem. Phys., 17, 7083–7109, <a href="https://doi.org/10.5194/acp-17-7083-2017" target="_blank">https://doi.org/10.5194/acp-17-7083-2017</a>, 2017.
</mixed-citation></ref-html>
<ref-html id="bib1.bib38"><label>Helbing and Molnár(1995)</label><mixed-citation>
Helbing, D. and Molnár, P.: Social force model for pedestrian dynamics, Phys.
Rev. E, 51, 4282–4286, <a href="https://doi.org/10.1103/PhysRevE.51.4282" target="_blank">https://doi.org/10.1103/PhysRevE.51.4282</a>, 1995.
</mixed-citation></ref-html>
<ref-html id="bib1.bib39"><label>Heus et al.(2010)</label><mixed-citation>
Heus, T., van Heerwaarden, C. C., Jonker, H. J. J., Pier Siebesma, A., Axelsen, S., van den Dries, K., Geoffroy, O., Moene, A. F., Pino, D., de Roode, S. R., and Vilà-Guerau de Arellano, J.: Formulation of the Dutch Atmospheric Large-Eddy Simulation (DALES) and overview of its applications, Geosci. Model Dev., 3, 415–444, <a href="https://doi.org/10.5194/gmd-3-415-2010" target="_blank">https://doi.org/10.5194/gmd-3-415-2010</a>, 2010.
</mixed-citation></ref-html>
<ref-html id="bib1.bib40"><label>Hoffmann(2017)</label><mixed-citation>
Hoffmann, F.: On the limits of Köhler activation theory: how do collision and coalescence affect the activation of aerosols?, Atmos. Chem. Phys., 17, 8343–8356, <a href="https://doi.org/10.5194/acp-17-8343-2017" target="_blank">https://doi.org/10.5194/acp-17-8343-2017</a>, 2017.
</mixed-citation></ref-html>
<ref-html id="bib1.bib41"><label>Hoffmann et al.(2015)Hoffmann, Raasch, and Noh</label><mixed-citation>
Hoffmann, F., Raasch, S., and Noh, Y.: Entrainment of aerosols and their
activation in a shallow cumulus cloud studied with a coupled LCM-LES
approach, Atmos. Res., 156, 43–57, 2015.
</mixed-citation></ref-html>
<ref-html id="bib1.bib42"><label>Hoffmann et al.(2017)Hoffmann, Noh, and Raasch</label><mixed-citation>
Hoffmann, F., Noh, Y., and Raasch, S.: The route to raindrop formation in a
shallow cumulus cloud simulated by a Lagrangian cloud model, J. Atmos. Sci.,
74, 2125–2142, 2017.
</mixed-citation></ref-html>
<ref-html id="bib1.bib43"><label>Holt and Raman(1988)</label><mixed-citation>
Holt, T. and Raman, S.: A review and comparative evaluation of multilevel
boundary layer parameterizations for first-order and turbulent kinetic energy
closure schemes, Rev. Geophys., 26, 761–780, 1988.
</mixed-citation></ref-html>
<ref-html id="bib1.bib44"><label>Holtslag and De Bruin(1988)</label><mixed-citation>
Holtslag, A. A. M. and De Bruin, H. A. D.: Applied modelling of the
night-time surface energy balance over land., J. Appl. Meteorol., 27,
689–704, 1988.
</mixed-citation></ref-html>
<ref-html id="bib1.bib45"><label>Höppe(1999)</label><mixed-citation>
Höppe, P. R.: The physiological equivalent temperature – a universal index
for the biometeorological assessment of the thermal environment, Int. J.
Biometeorol., 43, 71–75, 1999.
</mixed-citation></ref-html>
<ref-html id="bib1.bib46"><label>Horni et al.(2016)</label><mixed-citation>
Horni, A., Nagel, K., and Axhausen, K. W.: The Multi-Agent Transport Simulation MATSim, Ubiquity, London, 2016.
</mixed-citation></ref-html>
<ref-html id="bib1.bib47"><label>Hultmark et al.(2013)Hultmark, Calaf, and Parlange</label><mixed-citation>
Hultmark, M., Calaf, M., and Parlange, M. B.: A New Wall Shear Stress Model for Atmospheric Boundary Layer Simulations, J. Atmos. Sci., 70, 3460–3470,
<a href="https://doi.org/10.1175/JAS-D-12-0257.1" target="_blank">https://doi.org/10.1175/JAS-D-12-0257.1</a>, 2013.
</mixed-citation></ref-html>
<ref-html id="bib1.bib48"><label>Huq et al.(2018)Huq, De Roo, Raasch, and Mauder</label><mixed-citation>
Huq, S., De Roo, F., Raasch, S., and Mauder, M.: Vertically nested LES for high-resolution simulation of the surface layer in PALM (version 5.0), Geosci. Model Dev., 12, 2523–2538, <a href="https://doi.org/10.5194/gmd-12-2523-2019" target="_blank">https://doi.org/10.5194/gmd-12-2523-2019</a>, 2019.
</mixed-citation></ref-html>
<ref-html id="bib1.bib49"><label>Institut Wohnen und Umwelt (IWU)(2005)</label><mixed-citation>
Institut Wohnen und Umwelt (IWU): Deutsche Gebäudetypologie – Systematik
und Datensätze, periodically updated, available at: <a href="https://www.iwu.de/fileadmin/user_upload/dateien/energie/klima_altbau/Gebaeudetypologie_Deutschland.pdf" target="_blank"/> (last access: April 2019), 2005 (in German).
</mixed-citation></ref-html>
<ref-html id="bib1.bib50"><label>Jarvis(1976)</label><mixed-citation>
Jarvis, P. G.: The interpretation of the variations in leaf water p.otential
and stomatal conductance found in canopies in the field, Philos. Trans. Roy.
Soc. London, 273B, 593–610, 1976.
</mixed-citation></ref-html>
<ref-html id="bib1.bib51"><label>Jendritzky et al.(2012)</label><mixed-citation>
Jendritzky, G., de Dear, R., and Havenith, G.: UTCI – Why another thermal
index?, Int. J. Biometeorol., 56, 421–428, 2012.
</mixed-citation></ref-html>
<ref-html id="bib1.bib52"><label>Jöckel et al.(2010)</label><mixed-citation>
Jöckel, P., Kerkweg, A., Pozzer, A., Sander, R., Tost, H., Riede, H., Baumgaertner, A., Gromov, S., and Kern, B.: Development cycle 2 of the Modular Earth Submodel System (MESSy2), Geosci. Model Dev., 3, 717–752, <a href="https://doi.org/10.5194/gmd-3-717-2010" target="_blank">https://doi.org/10.5194/gmd-3-717-2010</a>, 2010.
</mixed-citation></ref-html>
<ref-html id="bib1.bib53"><label>Jonkman et al.(2009)</label><mixed-citation>
Jonkman, J. M., Butterfield, S., Musial, W., and Scott, G.: Definition of a
5-MW reference wind turbine for offshore system development, Technical
Report NREL/TP-500-38060, National Renewable Energy Laboratory, Golden, CO, 2009.
</mixed-citation></ref-html>
<ref-html id="bib1.bib54"><label>Kanda et al.(2004)</label><mixed-citation>
Kanda, M., Inagaki, A., Letzel, M. O., Raasch, S., and Watanabe, T.: LES study of the energy imbalance problem with eddy covariance fluxes, Bound.-Lay. Meteorol., 110, 381–404, 2004.
</mixed-citation></ref-html>
<ref-html id="bib1.bib55"><label>Karamouzas et al.(2014)</label><mixed-citation>
Karamouzas, I., Skinner, B., and Guy, S. J.: Universal Power Law Governing
Pedestrian Interactions, Phys. Rev. Lett., 113, 238701,
<a href="https://doi.org/10.1103/PhysRevLett.113.238701" target="_blank">https://doi.org/10.1103/PhysRevLett.113.238701</a>, 2014.
</mixed-citation></ref-html>
<ref-html id="bib1.bib56"><label>Kataoka and Mizuno(2002)</label><mixed-citation>
Kataoka, H. and Mizuno, M.: Numerical flow computation around aerolastic 3d
square cylinder using inflow turbulence, Wind Struct., 5, 379–392,
2002.
</mixed-citation></ref-html>
<ref-html id="bib1.bib57"><label>Khairoutdinov and Kogan(2000)</label><mixed-citation>
Khairoutdinov, M. and Kogan, Y.: A new cloud physics parameterization in a
large-eddy simulation model of marine stratocumulus, Mon. Weather Rev., 128,
229–243, 2000.
</mixed-citation></ref-html>
<ref-html id="bib1.bib58"><label>Khvorostyanov and Curry(2006)</label><mixed-citation>
Khvorostyanov, V. I. and Curry, J. A.: Aerosol size spectra and CCN activity
spectra: Reconciling the lognormal, algebraic, and power laws, J. Geophys.
Res.-Atmos., 111, D12202, <a href="https://doi.org/10.1029/2005JD006532" target="_blank">https://doi.org/10.1029/2005JD006532</a>, 2006.
</mixed-citation></ref-html>
<ref-html id="bib1.bib59"><label>Kim et al.(2013)Kim, Castro, and Xie</label><mixed-citation>
Kim, Y., Castro, I. P., and Xie, Z.-T.: Divergence-free turbulence inflow
conditions for large-eddy simulations with incompressible flow solvers,
Comput. Fluids, 84, 56–68, <a href="https://doi.org/10.1016/j.compfluid.2013.06.001" target="_blank">https://doi.org/10.1016/j.compfluid.2013.06.001</a>, 2013.
</mixed-citation></ref-html>
<ref-html id="bib1.bib60"><label>Kokkola et al.(2008)</label><mixed-citation>
Kokkola, H., Korhonen, H., Lehtinen, K. E. J., Makkonen, R., Asmi, A., Järvenoja, S., Anttila, T., Partanen, A.-I., Kulmala, M., Järvinen, H., Laaksonen, A., and Kerminen, V.-M.: SALSA – a Sectional Aerosol module for Large Scale Applications, Atmos. Chem. Phys., 8, 2469–2483, <a href="https://doi.org/10.5194/acp-8-2469-2008" target="_blank">https://doi.org/10.5194/acp-8-2469-2008</a>, 2008.
</mixed-citation></ref-html>
<ref-html id="bib1.bib61"><label>Krayenhoff and Voogt(2007)</label><mixed-citation>
Krayenhoff, E. S. and Voogt, J. A.: A microscale three-dimensional urban energy balance model for studying surface temperatures, Bound.-Lay.. Meteorol., 123, 433–461, <a href="https://doi.org/10.1007/s10546-006-9153-6" target="_blank">https://doi.org/10.1007/s10546-006-9153-6</a>, 2007.
</mixed-citation></ref-html>
<ref-html id="bib1.bib62"><label>Kurppa et al.(2019)</label><mixed-citation>
Kurppa, M., Hellsten, A., Roldin, P., Kokkola, H., Tonttila, J., Auvinen, M., Kent, C., Kumar, P., Maronga, B., and Järvi, L.: Implementation of the sectional aerosol module SALSA2.0 into the PALM model system 6.0: model development and first evaluation, Geosci. Model Dev., 12, 1403–1422, <a href="https://doi.org/10.5194/gmd-12-1403-2019" target="_blank">https://doi.org/10.5194/gmd-12-1403-2019</a>, 2019.
</mixed-citation></ref-html>
<ref-html id="bib1.bib63"><label>Launder and Spalding(1974)</label><mixed-citation>
Launder, B. and Spalding, D.-B.: The numerical computation of turbulent flow,
Comput. Method. Appl. M., 3, 269–289, 1974.
</mixed-citation></ref-html>
<ref-html id="bib1.bib64"><label>Letzel et al.(2012)</label><mixed-citation>
Letzel, M. O., Helmke, C., Ng, E., An, X., Lai, A., and Raasch, S.: LES case
study on pedestrian level ventilation in two neighbourhoods in Hong Kong,
Meteorol. Z., 21, 575–589, 2012.
</mixed-citation></ref-html>
<ref-html id="bib1.bib65"><label>Lo and Ngan(2017)</label><mixed-citation>
Lo, K. W. and Ngan, K.: Characterizing Ventilation and Exposure in Street
Canyons Using Lagrangian Particles, J. Appl. Meteorol. Climatol., 56,
1177–1194, <a href="https://doi.org/10.1175/JAMC-D-16-0168.1" target="_blank">https://doi.org/10.1175/JAMC-D-16-0168.1</a>, 2017.
</mixed-citation></ref-html>
<ref-html id="bib1.bib66"><label>Lund et al.(1998)Lund, Wu, and Squires</label><mixed-citation>
Lund, T. S., Wu, X., and Squires, K. D.: Generation of turbulent inflow data
for spatially-developing boundary layer simulations, J. Comp. Phys., 140,
233–258, 1998.
</mixed-citation></ref-html>
<ref-html id="bib1.bib67"><label>Maronga(2014)</label><mixed-citation>
Maronga, B.: Monin-Obukhov similarity functions for the structure parameters of temperature and humidity in the unstable surface layer: Results from
high-resolution large-eddy simulations, J. Atmos. Sci., 71, 716–733, 2014.
</mixed-citation></ref-html>
<ref-html id="bib1.bib68"><label>Maronga(2019)</label><mixed-citation>
Maronga, B.: PALM 6.0 r3668, <a href="https://doi.org/10.25835/0041607" target="_blank">https://doi.org/10.25835/0041607</a>, 2019.
</mixed-citation></ref-html>
<ref-html id="bib1.bib69"><label>Maronga and Bosveld(2017)</label><mixed-citation>
Maronga, B. and Bosveld, F. C.: Key parameters for the life cycle of nocturnal radiation fog: a comprehensive large-eddy simulation study, Q. J. Roy. Meteor. Soc., 143, 2463–2480, <a href="https://doi.org/10.1002/qj.3100" target="_blank">https://doi.org/10.1002/qj.3100</a>, 2017.
</mixed-citation></ref-html>
<ref-html id="bib1.bib70"><label>Maronga and Raasch(2013)</label><mixed-citation>
Maronga, B. and Raasch, S.: Large-eddy simulations of surface heterogeneity
effects on the convective boundary layer during the LITFASS-2003 experiment,
Bound.-Lay. Meteorol., 146, 17–44, 2013.
</mixed-citation></ref-html>
<ref-html id="bib1.bib71"><label>Maronga and Reuder(2017)</label><mixed-citation>
Maronga, B. and Reuder, J.: On the formulation and universality of
Monin-Obukhov similarity functions for mean gradients and standard deviations
in the unstable surface layer: results from surface-layer resolving
large-eddy simulations, J. Atmos. Sci., 74, 989–1010,
<a href="https://doi.org/10.1175/JAS-D-16-0186.1" target="_blank">https://doi.org/10.1175/JAS-D-16-0186.1</a>, 2017.
</mixed-citation></ref-html>
<ref-html id="bib1.bib72"><label>Maronga et al.(2014)</label><mixed-citation>
Maronga, B., Hartogensis, O. K., Raasch, S., and Beyrich, F.: The effect of
surface heterogeneity on the structure parameters of temperature and specific
humidity: A large-eddy simulation case study for the LITFASS-2003 experiment,
Bound.-Lay. Meteorol., 153, 441–470, 2014.
</mixed-citation></ref-html>
<ref-html id="bib1.bib73"><label>Maronga et al.(2015)</label><mixed-citation>
Maronga, B., Gryschka, M., Heinze, R., Hoffmann, F., Kanani-Sühring, F., Keck, M., Ketelsen, K., Letzel, M. O., Sühring, M., and Raasch, S.: The Parallelized Large-Eddy Simulation Model (PALM) version 4.0 for atmospheric and oceanic flows: model formulation, recent developments, and future perspectives, Geosci. Model Dev., 8, 2515–2551, <a href="https://doi.org/10.5194/gmd-8-2515-2015" target="_blank">https://doi.org/10.5194/gmd-8-2515-2015</a>, 2015.
</mixed-citation></ref-html>
<ref-html id="bib1.bib74"><label>Maronga et al.(2019)</label><mixed-citation>
Maronga, B., Gross, G., Raasch, S., Banzhaf, S., Forkel, R., Heldens, W.,
Kanani-Sühring, F., Matzarakis, A., Mauder, M., Pavlik, D., Pfafferott, J.,
Schubert, S., Seckmeyer, G., Sieker, H., and Winderlich, K.: Development of
a new urban climate model based on the model PALM - Project overview, planned
work, and first achievements, Meteorol. Z., 28, 105–119, 2019.
</mixed-citation></ref-html>
<ref-html id="bib1.bib75"><label>Maronga et al.(2020)</label><mixed-citation>
Maronga, B., Knigge, C., and Raasch, S.: An Improved Surface Boundary Condition for Large-Eddy Simulations Based on Monin-Obukhov Similarity Theory: Evaluation and Consequences for Grid Convergence in Neutral and Stable Conditions, Bound.-Lay. Meteorol., 174, 297–325, <a href="https://doi.org/10.1007/s10546-019-00485-w" target="_blank">https://doi.org/10.1007/s10546-019-00485-w</a>, in press, 2020.
</mixed-citation></ref-html>
<ref-html id="bib1.bib76"><label>Mason and Sykes(1978)</label><mixed-citation>
Mason, P. J. and Sykes, R. I.: A simple cartesian model of boundary layer flow over topography, J. Comp. Phys., 28, 198–210, 1978.
</mixed-citation></ref-html>
<ref-html id="bib1.bib77"><label>Mayer and Kylling(2005)</label><mixed-citation>
Mayer, B. and Kylling, A.: Technical note: The libRadtran software package for radiative transfer calculations – description and examples of use, Atmos. Chem. Phys., 5, 1855–1877, <a href="https://doi.org/10.5194/acp-5-1855-2005" target="_blank">https://doi.org/10.5194/acp-5-1855-2005</a>, 2005.
</mixed-citation></ref-html>
<ref-html id="bib1.bib78"><label>McWilliams et al.(1997)</label><mixed-citation>
McWilliams, J. C., Sullivan, P. P., and Moeng, C.-H.: Langmuir turbulence in
the ocean, J. Fluid Mech., 334, 1–30, 1997.
</mixed-citation></ref-html>
<ref-html id="bib1.bib79"><label>Mellor and Yamada(1974)</label><mixed-citation>
Mellor, G. L. and Yamada, T.: A hierarchy of turbulence closure models for
planetary boundary layers, J. Atmos. Sci., 31, 1791–1806,
<a href="https://doi.org/10.1175/1520-0469(1974)031&lt;1791:AHOTCM&gt;2.0.CO;2" target="_blank">https://doi.org/10.1175/1520-0469(1974)031&lt;1791:AHOTCM&gt;2.0.CO;2</a>, 1974.
</mixed-citation></ref-html>
<ref-html id="bib1.bib80"><label>Mellor and Yamada(1982)</label><mixed-citation>
Mellor, G. L. and Yamada, T.: Development of a turbulence closure model for
geophysical fluid problems, Rev. Geophys., 20, 851–875, 1982.
</mixed-citation></ref-html>
<ref-html id="bib1.bib81"><label>Moeng and Wyngaard(1988)</label><mixed-citation>
Moeng, C.-H. and Wyngaard, J. C.: Spectral analysis of large-eddy simulations
of the convective boundary layer, J. Atmos. Sci., 45, 3573–3587, 1988.
</mixed-citation></ref-html>
<ref-html id="bib1.bib82"><label>Mokhtarpoor and Heinz(2017)</label><mixed-citation>
Mokhtarpoor, R. and Heinz, S.: Dynamic large eddy simulation: Stability via
realizability, Phys. Fluids, 29, 105104, <a href="https://doi.org/10.1063/1.4986890" target="_blank">https://doi.org/10.1063/1.4986890</a>, 2017.
</mixed-citation></ref-html>
<ref-html id="bib1.bib83"><label>Noh et al.(2004)</label><mixed-citation>
Noh, Y., Min, H. S., and Raasch, S.: Large eddy simulation of the ocean mixed
layer: The effects of wave breaking and Langmuir circulation, J. Phys.
Oceanogr., 34, 720–735, 2004.
</mixed-citation></ref-html>
<ref-html id="bib1.bib84"><label>Noh et al.(2018)</label><mixed-citation>
Noh, Y., Oh, D., Hoffmann, F., and Raasch, S.: A Cloud Microphysics
Parameterization for Shallow Cumulus Clouds Based on Lagrangian Cloud Model
Simulations, J. Atmos. Sci., 75, 4031–4047, 2018.
</mixed-citation></ref-html>
<ref-html id="bib1.bib85"><label>Oliveira and Younis(2000)</label><mixed-citation>
Oliveira, P. J. and Younis, B. A.: On the prediction of turbulent flows around full-scale buildings, J. Wind Eng. Ind. Aerod., 86, 203–220,
<a href="https://doi.org/10.1016/s0167-6105(00)00011-8" target="_blank">https://doi.org/10.1016/s0167-6105(00)00011-8</a>, 2000.
</mixed-citation></ref-html>
<ref-html id="bib1.bib86"><label>Orlanski(1976)</label><mixed-citation>
Orlanski, I.: A simple boundary condition for unbounded hyperbolic flows, J.
Comput. Phys., 21, 251–269, 1976.
</mixed-citation></ref-html>
<ref-html id="bib1.bib87"><label>Panofsky and Dutton(1984)</label><mixed-citation>
Panofsky, H. A. and Dutton, J. A.: Atmospheric turbulence, models and methods
for engineering applications, John Wiley &amp; Sons, New York, 1984.
</mixed-citation></ref-html>
<ref-html id="bib1.bib88"><label>Paulson(1970)</label><mixed-citation>
Paulson, C. A.: The mathematical representation of wind speed and temperature
profiles in the unstable atmospheric surface layer, J. Appl. Meteorol., 9,
857–861, 1970.
</mixed-citation></ref-html>
<ref-html id="bib1.bib89"><label>Pfafferott et al.(2011)</label><mixed-citation>
Pfafferott, J., Fischer, M., Strohmeyer, T., and Wirth, D.: Ein einfaches
Modell zur Vorhersage der Fassaden- und Grenzschichttemperatur, BAUPHYSIK,
33, 151–157, 2011 (in German).
</mixed-citation></ref-html>
<ref-html id="bib1.bib90"><label>Raasch and Franke(2011)</label><mixed-citation>
Raasch, S. and Franke, T.: Structure and formation of dust-devil-like vortices in the atmospheric boundary layer – A high resolution numerical study, J. Geophys. Res., 116, D16120, <a href="https://doi.org/10.1029/2011JD016010" target="_blank">https://doi.org/10.1029/2011JD016010</a>, 2011.
</mixed-citation></ref-html>
<ref-html id="bib1.bib91"><label>Resler et al.(2017)</label><mixed-citation>
Resler, J., Krč, P., Belda, M., Juruš, P., Benešová, N., Lopata, J., Vlček, O., Damašková, D., Eben, K., Derbek, P., Maronga, B., and Kanani-Sühring, F.: PALM-USM v1.0: A new urban surface model integrated into the PALM large-eddy simulation model, Geosci. Model Dev., 10, 3635–3659, <a href="https://doi.org/10.5194/gmd-10-3635-2017" target="_blank">https://doi.org/10.5194/gmd-10-3635-2017</a>, 2017.
</mixed-citation></ref-html>
<ref-html id="bib1.bib92"><label>Riechelmann et al.(2012)</label><mixed-citation>
Riechelmann, T., Noh, Y., and Raasch, S.: A new method for large-eddy
simulations of clouds with Lagrangian droplets including the effects of
turbulent collision, New J. Phys., 14, 065008, <a href="https://doi.org/10.1088/1367-2630/14/6/065008" target="_blank">https://doi.org/10.1088/1367-2630/14/6/065008</a>, 2012.
</mixed-citation></ref-html>
<ref-html id="bib1.bib93"><label>Rotach et al.(1996)</label><mixed-citation>
Rotach, M. W., Gryning, S.-E., and Tassone, C.: A two-dimensional Lagrangian
stochastic dispersion model for daytime conditions, Q. J. Roy. Meteor.
Soc., 122, 367–389, <a href="https://doi.org/10.1002/qj.49712253004" target="_blank">https://doi.org/10.1002/qj.49712253004</a>, 1996.
</mixed-citation></ref-html>
<ref-html id="bib1.bib94"><label>Saiki et al.(2000)</label><mixed-citation>
Saiki, E. M., Moeng, C.-H., and Sullivan, P. P.: Large-eddy simulation of the
stably stratified planetary boundary layer, Bound. Lay.-Meteorol., 95,
1–30, 2000.
</mixed-citation></ref-html>
<ref-html id="bib1.bib95"><label>Saunders et al.(2003)</label><mixed-citation>
Saunders, S. M., Jenkin, M. E., Derwent, R. G., and Pilling, M. J.: Protocol for the development of the Master Chemical Mechanism, MCM v3 (Part A): tropospheric degradation of non-aromatic volatile organic compounds, Atmos. Chem. Phys., 3, 161–180, <a href="https://doi.org/10.5194/acp-3-161-2003" target="_blank">https://doi.org/10.5194/acp-3-161-2003</a>, 2003.
</mixed-citation></ref-html>
<ref-html id="bib1.bib96"><label>Scherer et al.(2019a)</label><mixed-citation>
Scherer, D., Ament, F., Emeis, S., Fehrenbach, U., Leitl, B., Scherber, K.,
Schneider, C., and Vogt, U.: Three-Dimensional Observation of Atmospheric
Processes in Cities, Meteorol. Z., 28, 121–138, <a href="https://doi.org/10.1127/metz/2019/0911" target="_blank">https://doi.org/10.1127/metz/2019/0911</a>, 2019a.
</mixed-citation></ref-html>
<ref-html id="bib1.bib97"><label>Scherer et al.(2019b)</label><mixed-citation>
Scherer, D., Antretter, F., Bender, S., Cortekar, J., Emeis, S., Fehrenbach,
U., Gross, G., Halbig, G., Hasse, J., Maronga, B., Raasch, S., and Scherber,
K.: Urban Climate Under Change [UC]<sup>2</sup> – A national research programme for
developing a building-resolving atmospheric model for entire city regions,
Meteorol. Z., 28, 95–104, <a href="https://doi.org/10.1127/metz/2019/0913" target="_blank">https://doi.org/10.1127/metz/2019/0913</a>, 2019b.
</mixed-citation></ref-html>
<ref-html id="bib1.bib98"><label>Schrempf et al.(2017)</label><mixed-citation>
Schrempf, M., Thuns, N., Lange, K., and Seckmeyer, G.: Impact of Orientation on the Vitamin D Weighted Exposure of a Human in an Urban Environment, Int. J. Env. Res. Pub. He., 14, 920, <a href="https://doi.org/10.3390/ijerph14080920" target="_blank">https://doi.org/10.3390/ijerph14080920</a>, 2017.
</mixed-citation></ref-html>
<ref-html id="bib1.bib99"><label>Schroeder et al.(2006)</label><mixed-citation>
Schroeder, W., Martin, K., and Lorensen, B.: Visualization Toolkit: An
Object-Oriented Approach to 3D Graphics, 4th Edition, Kitware, 2006.
</mixed-citation></ref-html>
<ref-html id="bib1.bib100"><label>Schumann(1975)</label><mixed-citation>
Schumann, U.: Subgrid scale model for finite difference simulations of
turbulent flows in plane channels and annuli, J. Comput. Phys., 18, 376–404,
1975.
</mixed-citation></ref-html>
<ref-html id="bib1.bib101"><label>Schwenkel and Maronga(2019)</label><mixed-citation>
Schwenkel, J. and Maronga, B.: Large-eddy simulation of radiation fog with comprehensive two-moment bulk microphysics: impact of different aerosol activation and condensation parameterizations, Atmos. Chem. Phys., 19, 7165–7181, <a href="https://doi.org/10.5194/acp-19-7165-2019" target="_blank">https://doi.org/10.5194/acp-19-7165-2019</a>, 2019.
</mixed-citation></ref-html>
<ref-html id="bib1.bib102"><label>Schwenkel et al.(2018)</label><mixed-citation>
Schwenkel, J., Hoffmann, F., and Raasch, S.: Improving collisional growth in Lagrangian cloud models: development and verification of a new splitting algorithm, Geosci. Model Dev., 11, 3929–3944, <a href="https://doi.org/10.5194/gmd-11-3929-2018" target="_blank">https://doi.org/10.5194/gmd-11-3929-2018</a>, 2018.
</mixed-citation></ref-html>
<ref-html id="bib1.bib103"><label>Seckmeyer et al.(2013)</label><mixed-citation>
Seckmeyer, G., Schrempf, M., Wieczorek, A., Riechelmann, S., Graw, K.,
Seckmeyer, S., and Zankl, M.: A Novel Method to Calculate Solar UV Exposure
Relevant to Vitamin D Production in Humans, Photochem. Photobiol., 89,
974–983, 2013.
</mixed-citation></ref-html>
<ref-html id="bib1.bib104"><label>Seifert and Beheng(2001)</label><mixed-citation>
Seifert, A. and Beheng, K. D.: A double-moment parameterization for simulating autoconversion, accretion and selfcollection, Atmos. Res., 59, 265–281, 2001.
</mixed-citation></ref-html>
<ref-html id="bib1.bib105"><label>Seifert and Beheng(2006)</label><mixed-citation>
Seifert, A. and Beheng, K. D.: A two-moment cloud microphysics parameterization for mixed-phase clouds. Part 1: Model description, Meteorol. Atmos Phys., 92, 45–66, 2006.
</mixed-citation></ref-html>
<ref-html id="bib1.bib106"><label>Shima et al.(2009)</label><mixed-citation>
Shima, S.-I., Kusano, K., Kawano, A., Sugiyama, T., and Kawahara, S.: The
super-droplet method for the numerical simulation of clouds and
precipitation: A particle-based and probabilistic microphysics model coupled
with a non-hydrostatic model, Q. J. Roy. Meteor. Soc., 135, 1307–1320,
2009.
</mixed-citation></ref-html>
<ref-html id="bib1.bib107"><label>Skyllingstad and Denbo(1995)</label><mixed-citation>
Skyllingstad, E. D. and Denbo, D. W.: An ocean large-eddy simulation of
Langmuir circulations and convection in the surface mixed layer, J Geophys. Res., 100, 8501–8522, 1995.
</mixed-citation></ref-html>
<ref-html id="bib1.bib108"><label>Sölch and Kärcher(2010)</label><mixed-citation>
Sölch, I. and Kärcher, B.: A large-eddy model for cirrus clouds with explicit
aerosol and ice microphysics and Lagrangian ice particle tracking, Q. J.
Roy. Meteor. Soc., 136, 2074–2093, 2010.
</mixed-citation></ref-html>
<ref-html id="bib1.bib109"><label>Staiger et al.(2012)</label><mixed-citation>
Staiger, H., Laschewski, G., and Graetz, A.: The perceived temperature – a
versatile index for the assessment of the human thermal environment. Part
A: scientific basics, Int. J. Biometeorol., 56, 165–176,
<a href="https://doi.org/10.1007/s00484-011-0409-6" target="_blank">https://doi.org/10.1007/s00484-011-0409-6</a>, 2012.
</mixed-citation></ref-html>
<ref-html id="bib1.bib110"><label>Staiger et al.(2019)</label><mixed-citation>
Staiger, H., Laschewski, G., and Matzarakis, A.: Selection of Appropriate
Thermal Indices for Applications in Human Biometeorological Studies,
Atmosphere, 10, 1–15, 2019.
</mixed-citation></ref-html>
<ref-html id="bib1.bib111"><label>Steinfeld et al.(2008)</label><mixed-citation>
Steinfeld, G., Raasch, S., and Markkanen, T.: Footprints in homogeneously and
heterogeneously driven boundary layers derived from a Lagrangian stochastic
particle model embedded into large-eddy simulation, Bound.-Lay. Meteorol,
129, 225–248, 2008.
</mixed-citation></ref-html>
<ref-html id="bib1.bib112"><label>Stewart(1988)</label><mixed-citation>
Stewart, J. B.: Modelling surface conductance of pine forest, Agr. Forest
Meteorol., 43, 19–35, 1988.
</mixed-citation></ref-html>
<ref-html id="bib1.bib113"><label>Storey et al.(2013)</label><mixed-citation>
Storey, R., Norris, S., and Cater, J.: Large Eddy Simulation of Wind
Events Propagating through an Array of Wind Turbines, in:
Proceedings of the World Congress on Engineering 2013, Vol. III, WCE 2013, London, UK, 3–5 July, 2013.
</mixed-citation></ref-html>
<ref-html id="bib1.bib114"><label>Sühring and Raasch(2013)</label><mixed-citation>
Sühring, M. and Raasch, S.: Heterogeneity-induced heat flux patterns in the
convective boundary layer: Can they be detected from observations and is
there a blending height? - A large-eddy simulation study for the LITFASS-2003
experiment, Bound.-Lay. Meteorol., 148, 309–331, 2013.
</mixed-citation></ref-html>
<ref-html id="bib1.bib115"><label>Sühring et al.(2019)</label><mixed-citation>
Sühring, M., Metzger, S., Xu, K., Durden, D., and Desai, A.: Trade-Offs in
Flux Disaggregation: A Large-Eddy Simulation Study, Bound.-Lay. Meteorol.,
170, 69–93, <a href="https://doi.org/10.1007/s10546-018-0387-x" target="_blank">https://doi.org/10.1007/s10546-018-0387-x</a>, 2019.
</mixed-citation></ref-html>
<ref-html id="bib1.bib116"><label>Sullivan and Patton(2011)</label><mixed-citation>
Sullivan, P. P. and Patton, E. G.: The effect of mesh resolution on convective boundary layer statistics and structures generated by large-eddy simulation, J. Atmos. Sci., 68, 2395–2415, 2011.
</mixed-citation></ref-html>
<ref-html id="bib1.bib117"><label>Sullivan et al.(1996)</label><mixed-citation>
Sullivan, P. P., McWilliams, J. C., and Moeng, C.-H.: A grid nesting method for large-eddy simulation of planetary boundary-layer flow, Bound.-Lay.
Meteorol., 80, 167–202, 1996.
</mixed-citation></ref-html>
<ref-html id="bib1.bib118"><label>Sullivan et al.(2016)</label><mixed-citation>
Sullivan, P. P., Weil, J. C., Patton, E. G., Jonker, H. J. J., and Mironov,
D. V.: Turbulent Winds and Temperature Fronts in Large-Eddy Simulations of
the Stable Atmospheric Boundary Layer, J. Atmos. Sci., 73, 1815–1840,
<a href="https://doi.org/10.1175/JAS-D-15-0339.1" target="_blank">https://doi.org/10.1175/JAS-D-15-0339.1</a>, 2016.

</mixed-citation></ref-html>
<ref-html id="bib1.bib119"><label>Twomey(1959)</label><mixed-citation>
Twomey, S.: The nuclei of natural cloud formation part II: The supersaturation
in natural clouds and the variation of cloud droplet concentration, Pure
Appl. Geophys., 43, 243–249, 1959.
</mixed-citation></ref-html>
<ref-html id="bib1.bib120"><label>Unterstrasser and Sölch(2014)</label><mixed-citation>
Unterstrasser, S. and Sölch, I.: Optimisation of the simulation particle number in a Lagrangian ice microphysical model, Geosci. Model Dev., 7, 695–709, <a href="https://doi.org/10.5194/gmd-7-695-2014" target="_blank">https://doi.org/10.5194/gmd-7-695-2014</a>, 2014.
</mixed-citation></ref-html>
<ref-html id="bib1.bib121"><label>Unterstrasser et al.(2016)</label><mixed-citation>
Unterstrasser, S., Hoffmann, F., and Lerch, M.: Collection/aggregation algorithms in Lagrangian cloud microphysical models: rigorous evaluation in box model simulations, Geosci. Model Dev., 10, 1521–1548, <a href="https://doi.org/10.5194/gmd-10-1521-2017" target="_blank">https://doi.org/10.5194/gmd-10-1521-2017</a>, 2017.
</mixed-citation></ref-html>
<ref-html id="bib1.bib122"><label>Valentin(2002)</label><mixed-citation>
Valentin, J.: Basic anatomical and physiological data for use in radiological
protection: reference values: ICRP Publication 89, Annals of the ICRP, 32,
1–277, <a href="https://doi.org/10.1016/S0146-6453(03)00002-2" target="_blank">https://doi.org/10.1016/S0146-6453(03)00002-2</a>, 2002.
</mixed-citation></ref-html>
<ref-html id="bib1.bib123"><label>van Genuchten(1980)</label><mixed-citation>
van Genuchten, M.: A closed form equation for predicting the hydraulic
conductivity of unsaturated soils, Soil Sci. Soc. Amer. J., 44, 892–898,
1980.
</mixed-citation></ref-html>
<ref-html id="bib1.bib124"><label>Van Zanten et al.(2010)</label><mixed-citation>
Van Zanten, M. C., Sauter, F. J., Kruit, R. J. W., Jaarsveld, J. A. V., and
Pul, W. A. J. V.: Description of the DEPAC module: Dry deposition modelling
with DEPAC-GCN2010, Tech. report 680180001/2010, RIVM, Bilthoven, the
Netherlands, 74 pp., 2010.
</mixed-citation></ref-html>
<ref-html id="bib1.bib125"><label>Viterbo and Beljaars(1995)</label><mixed-citation>
Viterbo, P. and Beljaars, A. C. M.: An Improved Land Surface Parameterization
Scheme in the ECMWF Model and Its Validation, J. Climate, 8, 2716–2748,
1995.
</mixed-citation></ref-html>
<ref-html id="bib1.bib126"><label>Vollmer et al.(2016)</label><mixed-citation>
Vollmer, L., Steinfeld, G., Heinemann, D., and Kühn, M.: Estimating the wake deflection downstream of a wind turbine in different atmospheric stabilities: an LES study, Wind Energ. Sci., 1, 129–141, <a href="https://doi.org/10.5194/wes-1-129-2016" target="_blank">https://doi.org/10.5194/wes-1-129-2016</a>, 2016.
</mixed-citation></ref-html>
<ref-html id="bib1.bib127"><label>Vollmer et al.(2017)Vollmer, Steinfeld, and Kühn</label><mixed-citation>
Vollmer, L., Steinfeld, G., and Kühn, M.: Transient LES of an offshore wind turbine, Wind Energ. Sci., 2, 603–614, <a href="https://doi.org/10.5194/wes-2-603-2017" target="_blank">https://doi.org/10.5194/wes-2-603-2017</a>, 2017.
</mixed-citation></ref-html>
<ref-html id="bib1.bib128"><label>Voss and Künz(2012)</label><mixed-citation>
Voss, K. and Künz, C.: Klimadaten und Klimawandel – Untersuchungen zum
Einfluss auf den Energiebedarf, den Leistungsbedarf und den thermischen
Komfort von Gebäuden, Bauphysik, 34, 189–196, 2012 (in German).
</mixed-citation></ref-html>
<ref-html id="bib1.bib129"><label>Weil et al.(2004)</label><mixed-citation>
Weil, J. C., Sullivan, P. P., and Moeng, C.-H.: The use of large-eddy
simulations in Lagrangian particle dispersion models, J. Atmos. Sci., 61,
2877–288, 2004.
</mixed-citation></ref-html>
<ref-html id="bib1.bib130"><label>Wu and Porté-Agel(2011)</label><mixed-citation>
Wu, Y.-T. and Porté-Agel, F.: Large-Eddy Simulation of
Wind-Turbine Wakes: Evaluation of Turbine Parametrisations,
Bound.-Lay. Meteorol., 138, 345–366, <a href="https://doi.org/10.1007/s10546-010-9569-x" target="_blank">https://doi.org/10.1007/s10546-010-9569-x</a>,
2011.
</mixed-citation></ref-html>
<ref-html id="bib1.bib131"><label>Xie and Castro(2006)</label><mixed-citation>
Xie, Z.-T. and Castro, I. P.: LES and RANS for turbulent flows over arrays of wall-mounted obstacles, Flow Turbul. Combust., 76, 291–312,
2006.
</mixed-citation></ref-html>
<ref-html id="bib1.bib132"><label>Xie and Castro(2008)</label><mixed-citation>
Xie, Z.-T. and Castro, I. P.: Efficient Generation of Inflow Conditions for
Large Eddy Simulation of Street-Scale Flows, Flow Turbul. Combust.,
81, 449–470, <a href="https://doi.org/10.1007/s10494-008-9151-5" target="_blank">https://doi.org/10.1007/s10494-008-9151-5</a>, 2008.
</mixed-citation></ref-html>
<ref-html id="bib1.bib133"><label>Zhang et al.(2001)Zhang, Gong, Padro, and Barrie</label><mixed-citation>
Zhang, L., Gong, S., Padro, J., and Barrie, L.: A size-segregated particle dry
deposition scheme for an atmospheric aerosol module, Atmos. Environ., 39,
3291–3303, 2001.
</mixed-citation></ref-html>--></article>
