668 | | This parameter must be assigned by the user because no default value is given.\\\\ |
669 | | By default, the model uses constant grid spacing along the z-direction, but it can be stretched using the parameters [#dz_stretch_level dz_stretch_level] and [#dz_stretch_factor dz_stretch_factor]. In case of stretching, a maximum allowed grid spacing can be given by [#dz_max dz_max].\\\\ |
670 | | Assuming a constant '''dz''', the scalar levels (zu) are calculated directly by:\\\\ |
671 | | zu(0) = - '''dz''' * 0.5\\\\ |
672 | | zu(1) = '''dz''' * 0.5\\\\ |
| 668 | At least one value must be assigned by the user because no realistic value is given.\\\\ |
| 669 | By default, the model uses constant grid spacing along the z-direction, but it can be stretched using either the old parameters [#dz_stretch_level dz_stretch_level], [#dz_stretch_factor dz_stretch_factor], [#dz_max dz_max] or the new ones [#dz_stretch_level_start dz_stretch_level_start], [#dz_stretch_level_end dz_stretch_level_end] which allow grid stretching to a finer or coarser grid and the definition of several stretching regions. If the new stretching method is used different dz values have to be specified by the user (equal to the number of defined [#dz_stretch_level_end dz_stretch_level_end] + 1). In that way PALM knows which grid spacing shall be used before and after the grid stretching region limited through [#dz_stretch_level_start dz_stretch_level_start] and [#dz_stretch_level_end dz_stretch_level_end].\\\\ |
| 670 | Assuming a constant dz, the scalar levels (zu) are calculated directly by:\\\\ |
| 671 | zu(0) = - dz(1) * 0.5 or zu(0) = 0.0 depending on the boundary condition you choose,\\\\ |
| 672 | zu(1) = dz(1) * 0.5,\\\\ |
| 673 | zu(k) = zu(k-1) + dz(1).\\\\ |
723 | | dz(k-1) = dz(k) * [#dz_stretch_factor dz_stretch_factor].\\\\ |
724 | | '''Attention:'''\\ |
725 | | So far, vertical grid stretching cannot be applied when simultaneously using PALM's particle model (see list of [../parpar Particle Parameters]). |
| 722 | dz(k-1) = dz(k) * [#dz_stretch_factor dz_stretch_factor]. |
| 723 | }}} |
| 724 | |---------------- |
| 725 | {{{#!td style="vertical-align:top" |
| 726 | [=#dz_stretch_level_end '''dz_stretch_level_end'''] |
| 727 | }}} |
| 728 | {{{#!td style="vertical-align:top" |
| 729 | R(9) |
| 730 | }}} |
| 731 | {{{#!td style="vertical-align:top" |
| 732 | 9 * 9999999.9 |
| 733 | }}} |
| 734 | {{{#!td |
| 735 | Height level until which the grid is to be stretched vertically (in m). Up to 9 heights/separate stretching regions are possible.\\\\ |
| 736 | For [#ocean ocean] = ''.F.,'' '''dz_stretch_level_end''' is the height level (in m) until which the grid is to be stretched vertically. The vertical grid spacings [#dz dz] between this level and the corresponding [#dz_stretch_level_start dz_stretch_level_start] are calculated as\\\\ |
| 737 | dz(k+1) = dz(k) * dz_stretch_factor_array\\\\ |
| 738 | and used as spacings for the scalar levels (zu). The w-levels are then defined as:\\\\ |
| 739 | zw(k) = ( zu(k) + zu(k+1) ) * 0.5.\\\\ |
| 740 | For [#ocean ocean] = ''.T.,'' '''dz_stretch_level_end''' is also the height level (in m) until which the grid is to be stretched vertically but it is defined negative. The vertical grid spacings [#dz dz] between this level and the corresponding [#dz_stretch_level_start dz_stretch_level_start] are calculated as\\\\ |
| 741 | dz(k-1) = dz(k) * dz_stretch_factor_array.\\\\ |
| 742 | For each '''dz_stretch_level_end''' a corresponding [=#dz_stretch_level_start dz_stretch_level_start] must be defined. \\\\ |
| 743 | '''Hint:'''\\ |
| 744 | dz_stretch_factor_array is an array in the code which accounts for different stretching factors due to different stretching regions that are possible. The factors are calculated internally except for the case when the old stretching for the free atmosphere with [#dz_stretch_factor dz_stretch_factor], [#dz_stretch_level dz_stretch_level] and [#dz_max dz_max] is used. |
| 745 | }}} |
| 746 | |---------------- |
| 747 | {{{#!td style="vertical-align:top" |
| 748 | [=#dz_stretch_level_start '''dz_stretch_level_start'''] |
| 749 | }}} |
| 750 | {{{#!td style="vertical-align:top" |
| 751 | R(9) |
| 752 | }}} |
| 753 | {{{#!td style="vertical-align:top" |
| 754 | 9 * -9999999.9 |
| 755 | }}} |
| 756 | {{{#!td |
| 757 | Height level above/below which the grid is to be stretched vertically (in m). Up to 9 heights/separate stretching regions are possible.\\\\ |
| 758 | For [#ocean ocean] = ''.F.,'' '''dz_stretch_level_start''' is the height level (in m) above which the grid is to be stretched vertically. The vertical grid spacings [#dz dz] between this level and the corresponding [#dz_stretch_level_end dz_stretch_level_end] are calculated as\\\\ |
| 759 | dz(k+1) = dz(k) * dz_stretch_factor_array\\\\ |
| 760 | and used as spacings for the scalar levels (zu). The w-levels are then defined as:\\\\ |
| 761 | zw(k) = ( zu(k) + zu(k+1) ) * 0.5.\\\\ |
| 762 | For [#ocean ocean] = ''.T.,'' '''dz_stretch_level_start''' is the height level (in m, negative) below which the grid is to be stretched vertically. The vertical grid spacings [#dz dz] between this level and the corresponding [#dz_stretch_level_end dz_stretch_level_end] are calculated as\\\\ |
| 763 | dz(k-1) = dz(k) * dz_stretch_factor_array.\\\\ |
| 764 | For each '''dz_stretch_level_start''' a corresponding [#dz_stretch_level_end dz_stretch_level_end] must be defined except for the last level. Here, it is possible to omit the value for [#dz_stretch_level_end dz_stretch_level_end] to consider 'endless' stretching until the value of [=dz_max dz_max]) is reached. In that case the stretching factor can not be calculated and is set to the value of [=dz_stretch_factor '''dz_stretch_factor''']. \\\\ |
| 765 | '''Hint:'''\\ |
| 766 | dz_stretch_factor_array is an array in the code which accounts for different stretching factors due to different stretching regions that can be defined. The factors are calculated internally except for the case when the old stretching for the free atmosphere with [#dz_stretch_factor dz_stretch_factor], [#dz_stretch_level dz_stretch_level] and [#dz_max dz_max] is used. |