Changeset 3964 for palm/trunk/SOURCE/nesting_offl_mod.f90
- Timestamp:
- May 9, 2019 9:48:32 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/nesting_offl_mod.f90
r3937 r3964 25 25 ! ----------------- 26 26 ! $Id$ 27 ! Ensure that veloctiy term in calculation of bulk Richardson number does not 28 ! become zero 29 ! 30 ! 3937 2019-04-29 15:09:07Z suehring 27 31 ! Set boundary conditon on upper-left and upper-south grid point for the u- and 28 32 ! v-component, respectively. … … 900 904 !-- Note, no interpolation of u- and v-component is made, as both 901 905 !-- are mainly mean inflow profiles with very small spatial variation. 906 !-- Add a safety factor in case the velocity term becomes zero. This 907 !-- may happen if overhanging 3D structures are directly located at 908 !-- the boundary, where velocity inside the building is zero 909 !-- (k_surface is the index of the lowest upward-facing surface). 902 910 zi_local = 0.0_wp 903 911 DO k = k_surface+1, nzt … … 906 914 ri_bulk = zu(k) * g / vpt_surface * & 907 915 ( vpt_col(k) - vpt_surface ) / & 908 ( u_comp * u_comp + v_comp * v_comp )916 ( u_comp * u_comp + v_comp * v_comp + 1E-5_wp ) 909 917 910 918 IF ( zi_local == 0.0_wp .AND. ri_bulk > ri_bulk_crit ) & … … 943 951 ri_bulk = zu(k) * g / vpt_surface * & 944 952 ( vpt_col(k) - vpt_surface ) / & 945 ( u_comp * u_comp + v_comp * v_comp )953 ( u_comp * u_comp + v_comp * v_comp + 1E-5_wp ) 946 954 947 955 IF ( zi_local == 0.0_wp .AND. ri_bulk > 0.25_wp ) &
Note: See TracChangeset
for help on using the changeset viewer.