source: palm/trunk/SOURCE/advec_v_up.f90 @ 100

Last change on this file since 100 was 77, checked in by raasch, 18 years ago

New:
---

particle reflection from vertical walls implemented, particle SGS model adjusted to walls

Wall functions for vertical walls now include diabatic conditions. New subroutines wall_fluxes, wall_fluxes_e. New 4D-array rif_wall.

new d3par-parameter netcdf_64bit_3d to switch on 64bit offset only for 3D files

new d3par-parameter dt_max to define the maximum value for the allowed timestep

new inipar-parameter loop_optimization to control the loop optimization method

new inipar-parameter pt_refrence. If given, this value is used as the reference that in buoyancy terms (otherwise, the instantaneous horizontally averaged temperature is used).

new user interface user_advec_particles

new initializing action "by_user" calls user_init_3d_model and allows the initial setting of all 3d arrays

topography height informations are stored on arrays zu_s_inner and zw_w_inner and output to the 2d/3d NetCDF files

samples added to the user interface which show how to add user-define time series quantities.

calculation/output of precipitation amount, precipitation rate and z0 (by setting "pra*", "prr*", "z0*" with data_output). The time interval on which the precipitation amount is defined is set by new d3par-parameter precipitation_amount_interval

unit 9 opened for debug output (file DEBUG_<pe#>)

Makefile, advec_particles, average_3d_data, buoyancy, calc_precipitation, check_open, check_parameters, data_output_2d, diffusion_e, diffusion_u, diffusion_v, diffusion_w, diffusivities, header, impact_of_latent_heat, init_particles, init_3d_model, modules, netcdf, parin, production_e, read_var_list, read_3d_binary, sum_up_3d_data, user_interface, write_var_list, write_3d_binary

New: wall_fluxes

Changed:


General revision of non-cyclic horizontal boundary conditions: radiation boundary conditions are now used instead of Neumann conditions at the outflow (calculation needs velocity values for t-dt, which are stored on new arrays u_m_l, u_m_r, etc.), calculation of mean outflow is not needed any more, volume flow control is added for the outflow boundary (currently only for the north boundary!!), additional gridpoints along x and y (uxrp, vynp) are not needed any more, routine "boundary_conds" now operates on timelevel t+dt and is not split in two parts (main, uvw_outflow) any more, Neumann boundary conditions at inflow/outflow in case of non-cyclic boundary conditions for all 2d-arrays that are handled by exchange_horiz_2d

The FFT-method for solving the Poisson-equation is now working with Neumann boundary conditions both at the bottom and the top. This requires adjustments of the tridiagonal coefficients and subtracting the horizontally averaged mean from the vertical velocity field.

+age_m in particle_type

Particles-package is now part of the default code ("-p particles" is not needed any more).

Move call of user_actions( 'after_integration' ) below increment of times
and counters. user_actions is now called for each statistic region and has as an argument the number of the respective region (sr)

d3par-parameter data_output_ts removed. Timeseries output for "profil" removed. Timeseries are now switched on by dt_dots. Timeseries data is collected in flow_statistics.

Initial velocities at nzb+1 are regarded for volume flow control in case they have been set zero before (to avoid small timesteps); see new internal parameters u/v_nzb_p1_for_vfc.

q is not allowed to become negative (prognostic_equations).

poisfft_init is only called if fft-solver is switched on (init_pegrid).

d3par-parameter moisture renamed to humidity.

Subversion global revision number is read from mrun and added to the run description header and to the run control (_rc) file.

vtk directives removed from main program.

The uitility routine interpret_config reads PALM environment variables from NAMELIST instead using the system call GETENV.

advec_u_pw, advec_u_up, advec_v_pw, advec_v_up, asselin_filter, check_parameters, coriolis, data_output_dvrp, data_output_ptseries, data_output_ts, data_output_2d, data_output_3d, diffusion_u, diffusion_v, exchange_horiz, exchange_horiz_2d, flow_statistics, header, init_grid, init_particles, init_pegrid, init_rankine, init_pt_anomaly, init_1d_model, init_3d_model, modules, palm, package_parin, parin, poisfft, poismg, prandtl_fluxes, pres, production_e, prognostic_equations, read_var_list, read_3d_binary, sor, swap_timelevel, time_integration, write_var_list, write_3d_binary

Errors:


Bugfix: preset of tendencies te_em, te_um, te_vm in init_1d_model

Bugfix in sample for reading user defined data from restart file (user_init)

Bugfix in setting diffusivities for cases with the outflow damping layer extending over more than one subdomain (init_3d_model)

Check for possible negative humidities in the initial humidity profile.

in Makefile, default suffixes removed from the suffix list to avoid calling of m2c in
# case of .mod files

Makefile
check_parameters, init_1d_model, init_3d_model, user_interface

  • Property svn:keywords set to Id
File size: 4.6 KB
Line 
1 MODULE advec_v_up_mod
2
3!------------------------------------------------------------------------------!
4! Actual revisions:
5! -----------------
6!
7!
8! Former revisions:
9! -----------------
10! $Id: advec_v_up.f90 77 2007-03-29 04:26:56Z raasch $
11!
12! 75 2007-03-22 09:54:05Z raasch
13! vynp eliminated
14!
15! RCS Log replace by Id keyword, revision history cleaned up
16!
17! Revision 1.12  2006/02/23 09:46:37  raasch
18! nzb_2d replaced by nzb_v_inner
19!
20! Revision 1.1  1997/08/29 08:56:05  raasch
21! Initial revision
22!
23!
24! Description:
25! ------------
26! Advection term for the v velocity-component using upstream scheme.
27! NOTE: vertical advection at k=1 still has wrong grid spacing for w>0!
28!       The same problem occurs for all topography boundaries!
29!------------------------------------------------------------------------------!
30
31    PRIVATE
32    PUBLIC advec_v_up
33
34    INTERFACE advec_v_up
35       MODULE PROCEDURE advec_v_up
36       MODULE PROCEDURE advec_v_up_ij
37    END INTERFACE advec_v_up
38
39 CONTAINS
40
41
42!------------------------------------------------------------------------------!
43! Call for all grid points
44!------------------------------------------------------------------------------!
45    SUBROUTINE advec_v_up
46
47       USE arrays_3d
48       USE control_parameters
49       USE grid_variables
50       USE indices
51
52       IMPLICIT NONE
53
54       INTEGER ::  i, j, k
55       REAL    ::  ukomp, vkomp, wkomp
56
57
58       DO  i = nxl, nxr
59          DO  j = nys, nyn
60             DO  k = nzb_v_inner(j,i)+1, nzt
61!
62!--             x-direction
63                ukomp = 0.25 * ( u(k,j,i)   + u(k,j-1,i) + &
64                                 u(k,j,i+1) + u(k,j-1,i+1) ) - u_gtrans
65                IF ( ukomp > 0.0 )  THEN
66                   tend(k,j,i) = tend(k,j,i) - ukomp * &
67                                         ( v(k,j,i) - v(k,j,i-1) ) * ddx
68                ELSE
69                   tend(k,j,i) = tend(k,j,i) - ukomp * &
70                                         ( v(k,j,i+1) - v(k,j,i) ) * ddx
71                ENDIF
72!
73!--             y-direction
74                vkomp = v(k,j,i) - v_gtrans
75                IF ( vkomp > 0.0 )  THEN
76                   tend(k,j,i) = tend(k,j,i) - vkomp * &
77                                         ( v(k,j,i) - v(k,j-1,i) ) * ddy
78                ELSE
79                   tend(k,j,i) = tend(k,j,i) - vkomp * &
80                                         ( v(k,j+1,i) - v(k,j,i) ) * ddy
81                ENDIF
82!
83!--             z-direction
84                wkomp = 0.25 * ( w(k,j,i)  + w(k-1,j,i) + &
85                                 w(k,j-1,i) + w(k-1,j-1,i) )
86                IF ( wkomp > 0.0 )  THEN
87                   tend(k,j,i) = tend(k,j,i) - wkomp * &
88                                         ( v(k,j,i) - v(k-1,j,i) ) * ddzu(k)
89                ELSE
90                   tend(k,j,i) = tend(k,j,i) - wkomp * &
91                                         ( v(k+1,j,i) - v(k,j,i) ) * ddzu(k+1)
92                ENDIF
93
94             ENDDO
95          ENDDO
96       ENDDO
97
98    END SUBROUTINE advec_v_up
99
100
101!------------------------------------------------------------------------------!
102! Call for grid point i,j
103!------------------------------------------------------------------------------!
104    SUBROUTINE advec_v_up_ij( i, j )
105
106       USE arrays_3d
107       USE control_parameters
108       USE grid_variables
109       USE indices
110
111       IMPLICIT NONE
112
113       INTEGER ::  i, j, k
114
115       REAL ::  ukomp, vkomp, wkomp
116
117
118       DO  k = nzb_v_inner(j,i)+1, nzt
119!
120!--       x-direction
121          ukomp = 0.25 * ( u(k,j,i) + u(k,j-1,i) + u(k,j,i+1) + u(k,j-1,i+1) &
122                         ) - u_gtrans
123          IF ( ukomp > 0.0 )  THEN
124             tend(k,j,i) = tend(k,j,i) - ukomp * &
125                                         ( v(k,j,i) - v(k,j,i-1) ) * ddx
126          ELSE
127             tend(k,j,i) = tend(k,j,i) - ukomp * &
128                                         ( v(k,j,i+1) - v(k,j,i) ) * ddx
129          ENDIF
130!
131!--       y-direction
132          vkomp = v(k,j,i) - v_gtrans
133          IF ( vkomp > 0.0 )  THEN
134             tend(k,j,i) = tend(k,j,i) - vkomp * &
135                                         ( v(k,j,i) - v(k,j-1,i) ) * ddy
136          ELSE
137             tend(k,j,i) = tend(k,j,i) - vkomp * &
138                                         ( v(k,j+1,i) - v(k,j,i) ) * ddy
139          ENDIF
140!
141!--       z-direction
142          wkomp = 0.25 * ( w(k,j,i) + w(k-1,j,i) + w(k,j-1,i) + w(k-1,j-1,i) )
143          IF ( wkomp > 0.0 )  THEN
144             tend(k,j,i) = tend(k,j,i) - wkomp * &
145                                         ( v(k,j,i) - v(k-1,j,i) ) * ddzu(k)
146          ELSE
147             tend(k,j,i) = tend(k,j,i) - wkomp * &
148                                         ( v(k+1,j,i) - v(k,j,i) ) * ddzu(k+1)
149          ENDIF
150
151       ENDDO
152
153    END SUBROUTINE advec_v_up_ij
154
155 END MODULE advec_v_up_mod
Note: See TracBrowser for help on using the repository browser.