Changeset 673 for palm/trunk/SOURCE/flow_statistics.f90
 Timestamp:
 Jan 18, 2011 4:19:48 PM (11 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

palm/trunk/SOURCE/flow_statistics.f90
r668 r673 4 4 ! Current revisions: 5 5 !  6 ! When advection is computed with wsscheme, turbulent fluxes are already 7 ! computed in the respective advection routines and buffered in arrays 8 ! sums_xx_ws_l(). This is due to a consistent treatment of statistics with the 9 ! numerics and to avoid unphysical kinks near the surface. 10 ! So some if requests has to be done to dicern between fluxes from wsscheme 11 ! other advection schemes. 12 ! Furthermore the computation of z_i is only done if the heat flux exceeds a 13 ! minimum value. This affects only simulations of a neutral boundary layer and 14 ! is due to reasons of computations in the advection scheme. 15 ! 6 ! Top bc for the horizontal velocity variances added for ocean runs. 7 ! Setting the corresponding bottom bc moved to advec_ws. 16 8 ! 17 9 ! Former revisions: … … 157 149 IF ( ws_scheme_mom ) THEN 158 150 ! 159 ! Boundary condition for u'u' and v'v', because below the surface no 160 ! computation for these quantities is done. 161 DO i = nxl, nxr 162 DO j = nys, nyn 163 sums_us2_ws_l(nzb_u_inner(j,i),sr) = & 164 sums_us2_ws_l(nzb_u_inner(j,i)+1,sr) 165 sums_vs2_ws_l(nzb_v_inner(j,i),sr) = & 166 sums_vs2_ws_l(nzb_v_inner(j,i)+1,sr) 167 ENDDO 168 ENDDO 151 ! According to the Neumann bc for the horizontal velocity components, 152 ! the corresponding fluxes has to satisfiy the same bc. 153 IF ( ocean ) THEN 154 sums_us2_ws_l(nzt+1,sr) = sums_us2_ws_l(nzt,sr) 155 sums_vs2_ws_l(nzt+1,sr) = sums_vs2_ws_l(nzt,sr) 156 ENDIF 169 157 ! 170 158 ! Swap the turbulent quantities evaluated in advec_ws. … … 184 172 ENDIF 185 173 IF ( ws_scheme_sca ) THEN 186 sums_l(:,17,0) = sums_wspts_ws_l(:,sr) ! w*pt s* from advec_s_ws174 sums_l(:,17,0) = sums_wspts_ws_l(:,sr) ! w*pt* from advec_s_ws 187 175 IF ( ocean ) sums_l(:,66,0) = sums_wssas_ws_l(:,sr) ! w*sa* 188 176 IF ( humidity .OR. passive_scalar ) sums_l(:,49,0) = &
Note: See TracChangeset
for help on using the changeset viewer.