Changeset 4561
- Timestamp:
- Jun 12, 2020 7:05:56 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/nesting_offl_mod.f90
r4457 r4561 20 20 ! Current revisions: 21 21 ! ------------------ 22 ! 22 ! Adapt mass-flux correction also for the anelastic approximation 23 23 ! 24 24 ! Former revisions: … … 138 138 ONLY: dzw, & 139 139 e, & 140 drho_air_zw, & 140 141 diss, & 141 142 pt, & … … 145 146 rdf, & 146 147 rdf_sc, & 148 rho_air, & 149 rho_air_zw, & 147 150 s, & 148 151 u, & … … 872 875 DO k = nzb+1, nzt 873 876 volume_flow_l(1) = volume_flow_l(1) + u(k,j,i) * dzw(k) * dy & 877 * rho_air(k) & 874 878 * MERGE( 1.0_wp, 0.0_wp, & 875 BTEST( wall_flags_total_0(k,j,i), 1 ) )879 BTEST( wall_flags_total_0(k,j,i), 1 ) ) 876 880 ENDDO 877 881 ENDDO … … 882 886 DO k = nzb+1, nzt 883 887 volume_flow_l(1) = volume_flow_l(1) - u(k,j,i) * dzw(k) * dy & 888 * rho_air(k) & 884 889 * MERGE( 1.0_wp, 0.0_wp, & 885 BTEST( wall_flags_total_0(k,j,i), 1 ) )890 BTEST( wall_flags_total_0(k,j,i), 1 ) ) 886 891 ENDDO 887 892 ENDDO … … 892 897 DO k = nzb+1, nzt 893 898 volume_flow_l(2) = volume_flow_l(2) + v(k,j,i) * dzw(k) * dx & 899 * rho_air(k) & 894 900 * MERGE( 1.0_wp, 0.0_wp, & 895 BTEST( wall_flags_total_0(k,j,i), 2 ) )901 BTEST( wall_flags_total_0(k,j,i), 2 ) ) 896 902 ENDDO 897 903 ENDDO … … 902 908 DO k = nzb+1, nzt 903 909 volume_flow_l(2) = volume_flow_l(2) - v(k,j,i) * dzw(k) * dx & 910 * rho_air(k) & 904 911 * MERGE( 1.0_wp, 0.0_wp, & 905 BTEST( wall_flags_total_0(k,j,i), 2 ) )912 BTEST( wall_flags_total_0(k,j,i), 2 ) ) 906 913 ENDDO 907 914 ENDDO … … 912 919 DO i = nxl, nxr 913 920 DO j = nys, nyn 914 volume_flow_l(3) = volume_flow_l(3) - w(k,j,i) * dx * dy921 volume_flow_l(3) = volume_flow_l(3) - rho_air_zw(k) * w(k,j,i) * dx * dy 915 922 ENDDO 916 923 ENDDO … … 924 931 #endif 925 932 926 w_correct = SUM( volume_flow ) * d_area_t 933 w_correct = SUM( volume_flow ) * d_area_t * drho_air_zw(nzt) 927 934 928 935 DO i = nxl, nxr 929 936 DO j = nys, nyn 930 937 DO k = nzt, nzt + 1 931 w(k,j,i) = w(k,j,i) + w_correct 938 w(k,j,i) = w(k,j,i) + w_correct & 939 * MERGE( 1.0_wp, 0.0_wp, & 940 BTEST( wall_flags_total_0(k,j,i), 3 ) ) 932 941 ENDDO 933 942 ENDDO
Note: See TracChangeset
for help on using the changeset viewer.