Changeset 106 for palm/trunk/SOURCE/flow_statistics.f90
 Timestamp:
 Aug 16, 2007 2:30:26 PM (14 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

palm/trunk/SOURCE/flow_statistics.f90
r102 r106 4 4 ! Actual revisions: 5 5 !  6 ! Prescribed momentum fluxes at the top surface are used 6 ! Prescribed momentum fluxes at the top surface are used, 7 ! profiles for w*p* and w"e are calculated 7 8 ! 8 9 ! Former revisions: … … 620 621 ! 621 622 ! Divergence of vertical flux of resolved scale energy and pressure 622 ! fluctuations. First calculate the products, then the divergence. 623 ! fluctuations as well as flux of pressure fluctuation itself (68). 624 ! First calculate the products, then the divergence. 623 625 ! Calculation is time consuming. Do it only, if profiles shall be plotted. 624 IF ( hom(nzb+1,2,55,0) /= 0.0 ) THEN626 IF ( hom(nzb+1,2,55,0) /= 0.0 .OR. hom(nzb+1,2,68,0) /= 0.0 ) THEN 625 627 626 628 sums_ll = 0.0 ! local array … … 654 656 sums_l(k,55,tn) = ( sums_ll(k,1)  sums_ll(k1,1) ) * ddzw(k) 655 657 sums_l(k,56,tn) = ( sums_ll(k,2)  sums_ll(k1,2) ) * ddzw(k) 658 sums_l(k,68,tn) = sums_ll(k,2) 656 659 ENDDO 657 660 sums_l(nzb,55,tn) = sums_l(nzb+1,55,tn) 658 661 sums_l(nzb,56,tn) = sums_l(nzb+1,56,tn) 659 660 ENDIF 661 662 ! 663 ! Divergence of vertical flux of SGS TKE 664 IF ( hom(nzb+1,2,57,0) /= 0.0 ) THEN 662 sums_l(nzb,68,tn) = 0.0 ! because w* = 0 at nzb 663 664 ENDIF 665 666 ! 667 ! Divergence of vertical flux of SGS TKE and the flux itself (69) 668 IF ( hom(nzb+1,2,57,0) /= 0.0 .OR. hom(nzb+1,2,69,0) /= 0.0 ) THEN 665 669 666 670 !$OMP DO … … 669 673 DO k = nzb_s_outer(j,i)+1, nzt 670 674 671 sums_l(k,57,tn) = sums_l(k,57,tn) + (&675 sums_l(k,57,tn) = sums_l(k,57,tn)  0.5 * ( & 672 676 (km(k,j,i)+km(k+1,j,i)) * (e(k+1,j,i)e(k,j,i)) * ddzu(k+1) & 673 677  (km(k1,j,i)+km(k,j,i)) * (e(k,j,i)e(k1,j,i)) * ddzu(k) & 674 ) * ddzw(k) 678 ) * ddzw(k) 679 680 sums_l(k,69,tn) = sums_l(k,69,tn)  0.5 * ( & 681 (km(k,j,i)+km(k+1,j,i)) * (e(k+1,j,i)e(k,j,i)) * ddzu(k+1) & 682 ) 675 683 676 684 ENDDO … … 678 686 ENDDO 679 687 sums_l(nzb,57,tn) = sums_l(nzb+1,57,tn) 688 sums_l(nzb,69,tn) = sums_l(nzb+1,69,tn) 680 689 681 690 ENDIF … … 832 841 hom(:,1,55,sr) = sums(:,55) ! w*u*u*/dz 833 842 hom(:,1,56,sr) = sums(:,56) ! w*p*/dz 834 hom(:,1,57,sr) = sums(:,57) ! w"e/dz843 hom(:,1,57,sr) = sums(:,57) ! ( w"e + w"p"/rho )/dz 835 844 hom(:,1,58,sr) = sums(:,58) ! u"pt" 836 845 hom(:,1,59,sr) = sums(:,59) ! u*pt* … … 843 852 hom(:,1,66,sr) = sums(:,66) ! w*sa* 844 853 hom(:,1,67,sr) = sums(:,65) + sums(:,66) ! wsa 854 hom(:,1,68,sr) = sums(:,68) ! w*p* 855 hom(:,1,69,sr) = sums(:,69) ! w"e + w"p"/rho 845 856 846 857 hom(:,1,pr_palm1,sr) = sums(:,pr_palm1)
Note: See TracChangeset
for help on using the changeset viewer.