Changes between Version 16 and Version 17 of doc/tec/bc


Ignore:
Timestamp:
Apr 26, 2016 8:59:53 PM (9 years ago)
Author:
Giersch
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • doc/tec/bc

    v16 v17  
     1[[NoteBox(warn,This site is currently under construction!)]]
     2
    13= Boundary conditions =
     4== Basics ==
    25
    36PALM offers a variety of boundary conditions. Dirichlet or Neumann boundary conditions can be chosen for ''u'', ''v'', ''θ'',
     
    58Δz'') instead. Vertical velocity is assumed to be zero at the surface and top boundaries, which implies using Neumann conditions for pressure.
    69
    7 
    8 
    9 
    10 
    11 == Constant flux layer ==
    12 === Basics ===
    13 
    1410Following Monin-Obukhov similarity theory (MOST) a constant flux layer can be assumed as boundary condition between the surface and the first grid level where scalars and horizontal velocities are defined (''k'' = 1, ''z'',,MO,, = 0.5 ''Δz''). It is then required to provide the roughness lengths for momentum ''z'',,0,, and heat ''z'',,0,h,,. Momentum and heat fluxes as well as the horizontal velocity components are calculated using the following framework. The formulation is theoretically only valid for horizontally-averaged quantities. In PALM we assume that MOST can be also applied locally and we therefore calculate local fluxes, velocities, and scaling parameters.
    1511
     
    2420{{{
    2521#!Latex
    26 \begin{align}
     22\begin{align*}
    2723  & \frac{\partial u_\mathrm{h}}{\partial z} =
    2824  \frac{u_\ast}{\kappa z}\Phi_\mathrm{m}\left(\frac{z}{L}\right)\;,
    29 \end{align}
     25\end{align*}
    3026}}}
    3127where ''κ'' = 0.4 is the Von Kármán constant and Φ,,m,, is the similarity function for momentum in the formulation of Businger-Dyer (see e.g. [#panofsky Panofsky and Dutton 1984])
    3228{{{
    3329#!Latex
    34 \begin{align}
     30\begin{align*}
    3531  & \Phi_\mathrm{m} =
    3632  \begin{cases}
     
    3935    \frac{z}{L} < 0\;.
    4036  \end{cases}
    41 \end{align}
     37\end{align*}
    4238}}}
    4339Here, ''L'' is the Obukhov length, calculated as
    4440{{{
    4541#!Latex
    46 \begin{align}
     42\begin{align*}
    4743  &
    4844L = \frac{\theta_\mathrm{v}(z) u_\ast^2}{\kappa g
    4945    \left[\theta_\ast + 0.61 \theta(z) q_\ast + 0.61
    5046      q_\mathrm{v}(z) \theta_\ast\right]}\;.
    51 \end{align}
     47\end{align*}
    5248}}}
    5349The scaling parameters ''θ'',,*,, and  ''q'',,*,, are defined by MOST
     
    5551{{{
    5652#!Latex
    57 \begin{align}
     53\begin{align*}
    5854  & \theta_\ast = -
    5955  \frac{\overline{w^{\prime\prime}\theta^{\prime\prime}}_0}{u_\ast},~q_\ast
    6056  = -
    6157  \frac{\overline{w^{\prime\prime}q_\mathrm{v}^{\prime\prime}}_0}{u_\ast}\;,
    62 \end{align}
     58\end{align*}
    6359}}}
    6460
     
    6662{{{
    6763#!Latex
    68 \begin{align}
     64\begin{align*}
    6965  & u_\ast =
    7066  \left[\left(\overline{u^{\prime\prime} w^{\prime\prime}}_0\right)^2
    7167    + \left(\overline{v^{\prime\prime} w^{\prime\prime}}_0\right)^2
    7268  \right]^{\frac{1}{4}}\;.
    73 \end{align}
     69\end{align*}
    7470}}}
    7571
     
    7975{{{
    8076#!Latex
    81 \begin{align}
     77\begin{align*}
    8278  &
    8379\frac{\partial u}{\partial z} =
     
    8884      w^{\prime\prime}}_0}{u_\ast \kappa z}
    8985  \Phi_\mathrm{m}\left(\frac{z}{L}\right)\;.
    90 \end{align}
    91 }}}
    92 Vertical integration of the above equation over ''z'' from ''z'',,0,, to ''z'',,MO,, then yields the surface momentum fluxes
    93 {{{
    94 #!Latex
    95 \begin{equation*}
    96 \overline{u^{\prime\prime} w^{\prime\prime}}_0,\;\; \overline{v^{\prime\prime} w^{\prime\prime}}_0
    97 \end{equation*}
     86\end{align*}
     87}}}
     88Vertical integration over ''z'' from ''z'',,0,, to ''z'',,MO,, of the equation above then yields the surface momentum fluxes
     89{{{
     90#!Latex
     91$\overline{u^{\prime\prime} w^{\prime\prime}}_0,\;\; \overline{v^{\prime\prime} w^{\prime\prime}}_0$
    9892}}}
    9993
     
    124118}}}
    125119
    126 === Implementation ===
    127120Currently, there are three different options to calculate the Obukhov length and the surface fluxes which are steered via the NAMELIST parameter [wiki:doc/app/inipar#most_method most_method].
    128121
    129 ==== Method 1: circular ====
    130 The traditional implementation in PALM ({{{most_method = 'circular'}}}) requires the use of data from the previous time step. The following steps are thus carried out in sequential order. First of all, ''θ'',,*,, and  ''q'',,*,, are calculated by integration using the value of ''z'',,MO,,/L from the previous time step. Second, the new value of ''z'',,MO,,/L is derived using the new values of ''θ'',,*,, and  ''q'',,*,, but using ''u'',,*,, from the previous time step. Then, the new values of ''u'',,*,,, and subsequently the momentum fluxes are calculated by integration, respectively. At last, the new surface fluxes are derived from ''θ'',,*,, and  ''q'',,*,,, and ''u'',,*,,. In the special case, when surface fluxes are prescribed instead of surface temperature and humidity, the first and last steps are omitted and ''θ'',,*,, and ''q'',,*,, are directly calculated from ''u'',,*,, and the surface fluxes.
     122=== Method 1: circular ===
     123The traditional implementation in PALM ({{{most_method = 'circular'}}}) requires the use of data from the previous time step. The following steps are thus carried out in sequential order. First of all, ''θ'',,*,, and  ''q'',,*,, are calculated by integration of the corresponding vertical derivation functions mentioned above using the value of ''z'',,MO,,/L from the previous time step. Second, the new value of ''z'',,MO,,/L is derived from the equation for ''L'' using the new values of ''θ'',,*,, and  ''q'',,*,, but using ''u'',,*,, from the previous time step. Then, the new values of ''u'',,*,,, and subsequently the momentum fluxes are calculated by integration, respectively. At last, the above equations for the scaling parameters are employed to calculate the new surface fluxes by using ''θ'',,*,, and  ''q'',,*,,, and ''u'',,*,,. In the special case, when surface fluxes are prescribed instead of surface temperature and humidity, the first and last steps are omitted and ''θ'',,*,, and ''q'',,*,, are directly calculated from ''u'',,*,, and the surface fluxes.
    131124
    132125In summary, the following actions are performed in sequential order:
     
    1371305. derive surface fluxes
    138131
    139 ==== Method 2: Newton iteration / lookup table ====
     132=== Method 2: Newton iteration / lookup table ===
    140133Alternatively, the Obukhov length can be calculated by solving an implicit equation relating the ''L'' to the bulk Richardson number. This can be achieved either by a Newton iteration algorithm ({{{most_method = 'newton'}}}) or by using a lookup table ({{{most_method = 'lookup'}}}). Note that the latter is the new default in PALM as it is much faster than the Newton iteration method and the results are more precise compared to the circular method. However, it can only be used when the roughness lengths are homogeneously set on each processor.
    141134
     
    200193until ''L'' meets a convergence criterion.
    201194
    202 If {{{most_method = 'lookup'}}} is used, a table of ''Ri'',,b,, against ''z'',,MO,,/''L'' is created at model start, based on the prescribed values of the roughness lengths. During the model run, ''Ri,,b,,'' is calculated and the respectively value of ''z'',,MO,,/''L'' is retrieved from the lookup table and using linear interpolation between the discrete values in the table. In order to speed up this method, the value of ''Ri,,b,,'' from the previous time step is used as initial value. Due to the fact that the lookup table is created at model start, it is essential that the roughness lengths are 1) homogeneous on each processor (limiting this method to homogeneous surface configurations) and should not vary during the simulation (should thus not be used when using dynamic roughness length over water surfaces).
    203 
    204 For more details, see [source:palm/trunk/SOURCE/surface_layer_fluxes.f90 surface_layer_fluxes.f90].
     195If {{{most_method = 'lookup'}}} is used, a table of ''Ri'',,b,, against ''z'',,MO,,/''L'' is created at model start, based on the prescribed values of the roughness lengths. During the model run, ''Ri,,b,,'' is calculated and the respectively value of ''z'',,MO,,/''L'' is retrieved from the lookup table and using linear interpolation between the discrete values in the table. In order to speed up this method, the value of ''Ri,,b,,'' from the previous time step is used as initial value. Due to the fact that the lookup table is created at model start, it is essential that the roughness lengths are 1) homogeneous on each processor (limiting this method to homogeneous surface configurations) and should not vary during the simulation (should thus not be used when using dynamic roughness length over water surfaces). For more details, see [source:palm/trunk/SOURCE/surface_layer_fluxes.f90 surface_layer_fluxes.f90].
     196
     197Furthermore, the flat bottom of the model can be replaced by a Cartesian topography (see Sect. [wiki:doc/tec/bc#Topography Topography]).
     198
     199By default, lateral boundary conditions are set to be cyclic in both directions. Alternatively, it is possible to opt for non-cyclic conditions in one direction, i.e., a laminar or turbulent inflow boundary (see Sect. [wiki:doc/tec/bc#Laminarandturbulentinflowboundaryconditions Laminar and turbulent inflow boundary conditions]) and an open outflow boundary on the opposite site (see Sect. [wiki:doc/tec/bc#Openoutflowboundaryconditions Open outflow boundary conditions]). The boundary conditions for the other direction have to remain cyclic.
     200
     201In order to prevent gravity waves from being reflected at the top boundary, a sponge layer (Rayleigh damping) can be applied to all prognostic variables in the upper part of the model domain ([#klemp1978 Klemp and Lilly, 1978]). Such a sponge layer should be applied only within the free atmosphere, where no turbulence is present.
     202
     203The model is initialized by horizontally homogeneous vertical profiles of potential temperature, specific humidity (or a passive scalar), and
     204the horizontal wind velocities. The latter can be also provided from a 1-D precursor run (see Sect.[wiki:doc/tec/1dmodel 1-D model for precursor runs]). Uniformly distributed random perturbations with a user-defined amplitude can be imposed to  the fields of the horizontal velocities components to initiate turbulence.
     205
     206== Laminar and turbulent inflow boundary conditions ==
     207
     208In case
     209
     210== Turbulence recycling ==
     211
     212== Open outflow boundary conditions ==
     213
     214== Topography ==
    205215
    206216= References =
    207 * [=#holtslag] '''Holtslag AAM, Bruin HARD.''' 1988. Applied modelling of the night-time surface energy balance over land. J. Appl. Meteorol., 27, 689–704.
    208 
    209 * [=#panofsky] '''Panofsky HA, Dutton JA.''' 1984. Atmospheric Turbulence, Models and Methods for Engineering Applications, John Wiley & Sons, New York.
    210 
    211 * [=#paulson] '''Paulson CA''' 1970. The mathematical representation of wind speed and temperature profiles in the unstable atmospheric surface layer. J. Appl. Meteorol., 9, 857–861.
    212 
    213 
    214 
     217* [=#holtslag] '''Holtslag AAM, Bruin HARD.''' 1988. Applied modelling of the night-time surface energy balance over land. J. Appl. Meteorol. 27: 689–704.
     218
     219* [=#panofsky] '''Panofsky HA, Dutton JA.''' 1984. Atmospheric Turbulence, Models and Methods for Engineering Applications. John Wiley & Sons. New York.
     220
     221* [=#paulson] '''Paulson CA''' 1970. The mathematical representation of wind speed and temperature profiles in the unstable atmospheric surface layer. J. Appl. Meteorol. 9: 857–861.
     222
     223
     224* [=#klemp1978] '''Klemp JB, Lilly DK.''' 1978. Numerical simulation of hydrostatic mountain waves. J. Atmos. Sci. 35: 78–107.
     225
     226
     227