152 | | where Δx,,i,, and ψ is equal to Δy (Δx) and u (v) in case of [../../app/inipar/#bc_lr bc_lr] ([../../app/inipar/#bc_ns bc_ns]). |
153 | | The correction factor for the outflow velocity, which is necessary due to different mass fluxes at inflow and outflow, can be calculated by |
154 | | {{{ |
155 | | #!Latex |
156 | | \psi_{corr} = \frac{\dot{m}_{inflow} - \dot{m}_{outflow}}{A} \; , \quad (13) |
157 | | }}} |
158 | | where A is the area of the boundary |
159 | | {{{ |
160 | | #!Latex |
161 | | A = \sum_1^{nz-1} \Delta z \cdot \sum_0^{nx_i} \Delta x_i \; . |
162 | | }} |
163 | | The streamwise velocity at the outflow is corrected by adding ψ,,corr,, at each grid point of the outflow between bottom and top (k=1:nz), in order to guarantee that the mass leaving the domain exactly balances the one entering it. |