36 | | e^{t + \Delta t}(k,j,-1) = e^{t + \Delta t}(k,j,0) \; . |
37 | | }}} |
| 36 | e^{t + \Delta t}(k,j,-1) = e^{t + \Delta t}(k,j,0) \; . \quad(2) |
| 37 | }}} |
| 38 | To prevent gravity waves from being reflected at the inflow, a relaxation term can be added to the prognostic equations for the potential temperature θ (Davies, 1976): |
| 39 | {{{ |
| 40 | #!Latex |
| 41 | \theta^{t+1}(d) = ... - \Delta t \cdot K(d) \cdot \left( \theta^{t}(d) - \theta_{init} \right) \; . \quad(3) |
| 42 | }}} |
| 43 | Here, d is the distance normal to the wall and θ,,init,, the initial value of the potential temperature, which corresponds to the value at the inflow boundary. |
| 44 | The damping or relaxation function K depends only on the distance d to the inflow. |
| 45 | K is calculated by |
| 46 | {{{ |
| 47 | #!Latex |
| 48 | K(d) = |
| 49 | \begin{cases} |
| 50 | d_f \sin^2\left( \frac{\pi}{2} \frac{d_w - d}{d_w} \right) , \text{for } d < d_w \\ \qquad\quad 0 \qquad \quad \;\;\; , \text{for } d \ge d_w |
| 51 | \end{cases} . \quad (4) |
| 52 | }}} |
| 53 | d,,f,, is a damping factor to control the damping intensity, and d,,w,, is the width of the relaxation region extending from the inflow. Quantities d,,f,, and d,,w,, can be set with parameters [../../app/inipar/#pt_damping_factor pt_damping_factor] and [../../app/inipar/#pt_damping_width pt_damping_width], respectively. |
| 54 | Both parameters have to be set by the user and must be adjusted case-by-case, because both parameters depend on the numerical and physical conditions, so that application of universal default values is not possible. |
| 55 | So far, we have experience with gravity waves in case of cold air outbreaks, which grow in amplitude up to quite extreme values, if no damping is applied. |
| 56 | In the respective simulations, we used typical values for [../../app/inipar/#pt_damping_factor pt_damping_factor] of 0.05 and for [../../app/inipar/#pt_damping_width pt_damping_width] of 25 km in order to prevent the gravity waves from growing. |