1 | !> @file urban_surface_mod.f90 |
---|
2 | !------------------------------------------------------------------------------! |
---|
3 | ! This file is part of the PALM model system. |
---|
4 | ! |
---|
5 | ! PALM is free software: you can redistribute it and/or modify it under the |
---|
6 | ! terms of the GNU General Public License as published by the Free Software |
---|
7 | ! Foundation, either version 3 of the License, or (at your option) any later |
---|
8 | ! version. |
---|
9 | ! |
---|
10 | ! PALM is distributed in the hope that it will be useful, but WITHOUT ANY |
---|
11 | ! WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR |
---|
12 | ! A PARTICULAR PURPOSE. See the GNU General Public License for more details. |
---|
13 | ! |
---|
14 | ! You should have received a copy of the GNU General Public License along with |
---|
15 | ! PALM. If not, see <http://www.gnu.org/licenses/>. |
---|
16 | ! |
---|
17 | ! Copyright 2015-2019 Czech Technical University in Prague |
---|
18 | ! Copyright 2015-2019 Institute of Computer Science of the |
---|
19 | !           Czech Academy of Sciences, Prague |
---|
20 | ! Copyright 1997-2019 Leibniz Universitaet Hannover |
---|
21 | !------------------------------------------------------------------------------! |
---|
22 | ! |
---|
23 | ! Current revisions: |
---|
24 | ! ------------------ |
---|
25 | ! |
---|
26 | ! |
---|
27 | ! Former revisions: |
---|
28 | ! ----------------- |
---|
29 | ! $Id: urban_surface_mod.f90 3730 2019-02-11 11:26:47Z moh.hefny $ |
---|
30 | ! fixed surface heat capacity in the building parameters |
---|
31 | ! convert the file back to unix format |
---|
32 | ! |
---|
33 | ! $Id: urban_surface_mod.f90 3730 2019-02-11 11:26:47Z moh.hefny $ |
---|
34 | ! Formatting and clean-up (rvtils) |
---|
35 | ! |
---|
36 | ! 3710 2019-01-30 18:11:19Z suehring |
---|
37 | ! Check if building type is set within a valid range. |
---|
38 | ! |
---|
39 | ! 3705 2019-01-29 19:56:39Z suehring |
---|
40 | ! make nzb_wall public, required for virtual-measurements |
---|
41 | ! |
---|
42 | ! 3704 2019-01-29 19:51:41Z suehring |
---|
43 | ! Some interface calls moved to module_interface + cleanup |
---|
44 | ! |
---|
45 | ! 3655 2019-01-07 16:51:22Z knoop |
---|
46 | ! Implementation of the PALM module interface |
---|
47 | ! |
---|
48 | ! 3636 2018-12-19 13:48:34Z raasch |
---|
49 | ! nopointer option removed |
---|
50 | ! |
---|
51 | ! 3614 2018-12-10 07:05:46Z raasch |
---|
52 | ! unused variables removed |
---|
53 | ! |
---|
54 | ! 3607 2018-12-07 11:56:58Z suehring |
---|
55 | ! Output of radiation-related quantities migrated to radiation_model_mod. |
---|
56 | ! |
---|
57 | ! 3597 2018-12-04 08:40:18Z maronga |
---|
58 | ! Fixed calculation method of near surface air potential temperature at 10 cm |
---|
59 | ! and moved to surface_layer_fluxes. Removed unnecessary _eb strings. |
---|
60 | ! |
---|
61 | ! 3524 2018-11-14 13:36:44Z raasch |
---|
62 | ! bugfix concerning allocation of t_surf_wall_v |
---|
63 | ! |
---|
64 | ! 3502 2018-11-07 14:45:23Z suehring |
---|
65 | ! Disable initialization of building roofs with ground-floor-level properties, |
---|
66 | ! since this causes strong oscillations of surface temperature during the |
---|
67 | ! spinup. |
---|
68 | ! |
---|
69 | ! 3469 2018-10-30 20:05:07Z kanani |
---|
70 | ! Add missing PUBLIC variables for new indoor model |
---|
71 | ! |
---|
72 | ! 3449 2018-10-29 19:36:56Z suehring |
---|
73 | ! Bugfix: Fix average arrays allocations in usm_3d_data_averaging (J.Resler) |
---|
74 | ! Bugfix: Fix reading wall temperatures (J.Resler) |
---|
75 | ! Bugfix: Fix treating of outputs for wall temperature and sky view factors (J.Resler) |
---|
76 | ! |
---|
77 | ! |
---|
78 | ! 3435 2018-10-26 18:25:44Z gronemeier |
---|
79 | ! Bugfix: allocate gamma_w_green_sat until nzt_wall+1 |
---|
80 | ! |
---|
81 | ! 3418 2018-10-24 16:07:39Z kanani |
---|
82 | ! (rvtils, srissman) |
---|
83 | ! -Updated building databse, two green roof types (ind_green_type_roof) |
---|
84 | ! -Latent heat flux for green walls and roofs, new output of latent heatflux |
---|
85 | ! and soil water content of green roof substrate |
---|
86 | ! -t_surf changed to t_surf_wall |
---|
87 | ! -Added namelist parameter usm_wall_mod for lower wall tendency |
---|
88 | ! of first two wall layers during spinup |
---|
89 | ! -Window calculations deactivated during spinup |
---|
90 | ! |
---|
91 | ! 3382 2018-10-19 13:10:32Z knoop |
---|
92 | ! Bugix: made array declaration Fortran Standard conform |
---|
93 | ! |
---|
94 | ! 3378 2018-10-19 12:34:59Z kanani |
---|
95 | ! merge from radiation branch (r3362) into trunk |
---|
96 | ! (moh.hefny): |
---|
97 | ! - check the requested output variables if they are correct |
---|
98 | ! - added unscheduled_radiation_calls switch to control force_radiation_call |
---|
99 | ! - minor formate changes |
---|
100 | ! |
---|
101 | ! 3371 2018-10-18 13:40:12Z knoop |
---|
102 | ! Set flag indicating that albedo at urban surfaces is already initialized |
---|
103 | ! |
---|
104 | ! 3347 2018-10-15 14:21:08Z suehring |
---|
105 | ! Enable USM initialization with default building parameters in case no static |
---|
106 | ! input file exist. |
---|
107 | ! |
---|
108 | ! 3343 2018-10-15 10:38:52Z suehring |
---|
109 | ! Add output variables usm_rad_pc_inlw, usm_rad_pc_insw* |
---|
110 | ! |
---|
111 | ! 3274 2018-09-24 15:42:55Z knoop |
---|
112 | ! Modularization of all bulk cloud physics code components |
---|
113 | ! |
---|
114 | ! 3248 2018-09-14 09:42:06Z sward |
---|
115 | ! Minor formating changes |
---|
116 | ! |
---|
117 | ! 3246 2018-09-13 15:14:50Z sward |
---|
118 | ! Added error handling for input namelist via parin_fail_message |
---|
119 | ! |
---|
120 | ! 3241 2018-09-12 15:02:00Z raasch |
---|
121 | ! unused variables removed |
---|
122 | ! |
---|
123 | ! 3223 2018-08-30 13:48:17Z suehring |
---|
124 | ! Bugfix for commit 3222 |
---|
125 | ! |
---|
126 | ! 3222 2018-08-30 13:35:35Z suehring |
---|
127 | ! Introduction of surface array for type and its name |
---|
128 | ! |
---|
129 | ! 3203 2018-08-23 10:48:36Z suehring |
---|
130 | ! Revise bulk parameter for emissivity at ground-floor level |
---|
131 | ! |
---|
132 | ! 3196 2018-08-13 12:26:14Z maronga |
---|
133 | ! Added maximum aerodynamic resistance of 300 for horiztonal surfaces. |
---|
134 | ! |
---|
135 | ! 3176 2018-07-26 17:12:48Z suehring |
---|
136 | ! Bugfix, update virtual potential surface temparture, else heat fluxes on |
---|
137 | ! roofs might become unphysical |
---|
138 | ! |
---|
139 | ! 3152 2018-07-19 13:26:52Z suehring |
---|
140 | ! Initialize q_surface, which might be used in surface_layer_fluxes |
---|
141 | ! |
---|
142 | ! 3151 2018-07-19 08:45:38Z raasch |
---|
143 | ! remaining preprocessor define strings __check removed |
---|
144 | ! |
---|
145 | ! 3136 2018-07-16 14:48:21Z suehring |
---|
146 | ! Limit also roughness length for heat and moisture where necessary |
---|
147 | ! |
---|
148 | ! 3123 2018-07-12 16:21:53Z suehring |
---|
149 | ! Correct working precision for INTEGER number |
---|
150 | ! |
---|
151 | ! 3115 2018-07-10 12:49:26Z suehring |
---|
152 | ! Additional building type to represent bridges |
---|
153 | ! |
---|
154 | ! 3091 2018-06-28 16:20:35Z suehring |
---|
155 | ! - Limit aerodynamic resistance at vertical walls. |
---|
156 | ! - Add check for local roughness length not exceeding surface-layer height and |
---|
157 | !  limit roughness length where necessary. |
---|
158 | ! |
---|
159 | ! 3065 2018-06-12 07:03:02Z Giersch |
---|
160 | ! Unused array dxdir was removed, dz was replaced by dzu to consider vertical |
---|
161 | ! grid stretching |
---|
162 | ! |
---|
163 | ! 3049 2018-05-29 13:52:36Z Giersch |
---|
164 | ! Error messages revised |
---|
165 | ! |
---|
166 | ! 3045 2018-05-28 07:55:41Z Giersch |
---|
167 | ! Error message added |
---|
168 | ! |
---|
169 | ! 3029 2018-05-23 12:19:17Z raasch |
---|
170 | ! bugfix: close unit 151 instead of 90 |
---|
171 | ! |
---|
172 | ! 3014 2018-05-09 08:42:38Z maronga |
---|
173 | ! Added pc_transpiration_rate |
---|
174 | ! |
---|
175 | ! 2977 2018-04-17 10:27:57Z kanani |
---|
176 | ! Implement changes from branch radiation (r2948-2971) with minor modifications. |
---|
177 | ! (moh.hefny): |
---|
178 | ! Extended exn for all model domain height to avoid the need to get nzut. |
---|
179 | ! |
---|
180 | ! 2963 2018-04-12 14:47:44Z suehring |
---|
181 | ! Introduce index for vegetation/wall, pavement/green-wall and water/window |
---|
182 | ! surfaces, for clearer access of surface fraction, albedo, emissivity, etc. . |
---|
183 | ! |
---|
184 | ! 2943 2018-04-03 16:17:10Z suehring |
---|
185 | ! Calculate exner function at all height levels and remove some un-used |
---|
186 | ! variables. |
---|
187 | ! |
---|
188 | ! 2932 2018-03-26 09:39:22Z maronga |
---|
189 | ! renamed urban_surface_par to urban_surface_parameters |
---|
190 | ! |
---|
191 | ! 2921 2018-03-22 15:05:23Z Giersch |
---|
192 | ! The activation of spinup has been moved to parin |
---|
193 | ! |
---|
194 | ! 2920 2018-03-22 11:22:01Z kanani |
---|
195 | ! Remove unused pcbl, npcbl from ONLY list |
---|
196 | ! moh.hefny: |
---|
197 | ! Fixed bugs introduced by new structures and by moving radiation interaction |
---|
198 | ! into radiation_model_mod.f90. |
---|
199 | ! Bugfix: usm data output 3D didn't respect directions |
---|
200 | ! |
---|
201 | ! 2906 2018-03-19 08:56:40Z Giersch |
---|
202 | ! Local variable ids has to be initialized with a value of -1 in |
---|
203 | ! usm_3d_data_averaging |
---|
204 | ! |
---|
205 | ! 2894 2018-03-15 09:17:58Z Giersch |
---|
206 | ! Calculations of the index range of the subdomain on file which overlaps with |
---|
207 | ! the current subdomain are already done in read_restart_data_mod, |
---|
208 | ! usm_read/write_restart_data have been renamed to usm_r/wrd_local, variable |
---|
209 | ! named found has been introduced for checking if restart data was found, |
---|
210 | ! reading of restart strings has been moved completely to |
---|
211 | ! read_restart_data_mod, usm_rrd_local is already inside the overlap loop |
---|
212 | ! programmed in read_restart_data_mod, SAVE attribute added where necessary, |
---|
213 | ! deallocation and allocation of some arrays have been changed to take care of |
---|
214 | ! different restart files that can be opened (index i), the marker *** end usm |
---|
215 | ! *** is not necessary anymore, strings and their respective lengths are |
---|
216 | ! written out and read now in case of restart runs to get rid of prescribed |
---|
217 | ! character lengths |
---|
218 | ! |
---|
219 | ! 2805 2018-02-14 17:00:09Z suehring |
---|
220 | ! Initialization of resistances. |
---|
221 | ! |
---|
222 | ! 2797 2018-02-08 13:24:35Z suehring |
---|
223 | ! Comment concerning output of ground-heat flux added. |
---|
224 | ! |
---|
225 | ! 2766 2018-01-22 17:17:47Z kanani |
---|
226 | ! Removed redundant commas, added some blanks |
---|
227 | ! |
---|
228 | ! 2765 2018-01-22 11:34:58Z maronga |
---|
229 | ! Major bugfix in calculation of f_shf. Adjustment of roughness lengths in |
---|
230 | ! building_pars |
---|
231 | ! |
---|
232 | ! 2750 2018-01-15 16:26:51Z knoop |
---|
233 | ! Move flag plant canopy to modules |
---|
234 | ! |
---|
235 | ! 2737 2018-01-11 14:58:11Z kanani |
---|
236 | ! Removed unused variables t_surf_whole... |
---|
237 | ! |
---|
238 | ! 2735 2018-01-11 12:01:27Z suehring |
---|
239 | ! resistances are saved in surface attributes |
---|
240 | ! |
---|
241 | ! 2723 2018-01-05 09:27:03Z maronga |
---|
242 | ! Bugfix for spinups (end_time was increased twice in case of LSM + USM runs) |
---|
243 | ! |
---|
244 | ! 2720 2018-01-02 16:27:15Z kanani |
---|
245 | ! Correction of comment |
---|
246 | ! |
---|
247 | ! 2718 2018-01-02 08:49:38Z maronga |
---|
248 | ! Corrected "Former revisions" section |
---|
249 | ! |
---|
250 | ! 2705 2017-12-18 11:26:23Z maronga |
---|
251 | ! Changes from last commit documented |
---|
252 | ! |
---|
253 | ! 2703 2017-12-15 20:12:38Z maronga |
---|
254 | ! Workaround for calculation of r_a |
---|
255 | ! |
---|
256 | ! 2696 2017-12-14 17:12:51Z kanani |
---|
257 | ! - Change in file header (GPL part) |
---|
258 | ! - Bugfix in calculation of pt_surface and related fluxes. (BM) |
---|
259 | ! - Do not write surface temperatures onto pt array as this might cause |
---|
260 | !  problems with nesting. (MS) |
---|
261 | ! - Revised calculation of pt1 (now done in surface_layer_fluxes). |
---|
262 | !  Bugfix, f_shf_window and f_shf_green were not set at vertical surface |
---|
263 | !  elements. (MS) |
---|
264 | ! - merged with branch ebsolver |
---|
265 | !  green building surfaces do not evaporate yet |
---|
266 | !  properties of green wall layers and window layers are taken from wall layers |
---|
267 | !  this input data is missing. (RvT) |
---|
268 | ! - Merged with branch radiation (developed by Mohamed Salim) |
---|
269 | ! - Revised initialization. (MS) |
---|
270 | ! - Rename emiss_surf into emissivity, roughness_wall into z0, albedo_surf into |
---|
271 | !  albedo. (MS) |
---|
272 | ! - Move first call of usm_radiatin from usm_init to init_3d_model |
---|
273 | ! - fixed problem with near surface temperature |
---|
274 | ! - added near surface temperature pt_10cm_h(m), pt_10cm_v(l)%t(m) |
---|
275 | ! - does not work with temp profile including stability, ol |
---|
276 | !  pt_10cm = pt1 now |
---|
277 | ! - merged with 2357 bugfix, error message for nopointer version |
---|
278 | ! - added indoor model coupling with wall heat flux |
---|
279 | ! - added green substrate/ dry vegetation layer for buildings |
---|
280 | ! - merged with 2232 new surface-type structure |
---|
281 | ! - added transmissivity of window tiles |
---|
282 | ! - added MOSAIK tile approach for 3 different surfaces (RvT) |
---|
283 | ! |
---|
284 | ! 2583 2017-10-26 13:58:38Z knoop |
---|
285 | ! Bugfix: reverted MPI_Win_allocate_cptr introduction in last commit |
---|
286 | ! |
---|
287 | ! 2582 2017-10-26 13:19:46Z hellstea |
---|
288 | ! Workaround for gnufortran compiler added in usm_calc_svf. CALL MPI_Win_allocate is |
---|
289 | ! replaced by CALL MPI_Win_allocate_cptr if defined ( __gnufortran ). |
---|
290 | ! |
---|
291 | ! 2544 2017-10-13 18:09:32Z maronga |
---|
292 | ! Date and time quantities are now read from date_and_time_mod. Solar constant is |
---|
293 | ! read from radiation_model_mod |
---|
294 | ! |
---|
295 | ! 2516 2017-10-04 11:03:04Z suehring |
---|
296 | ! Remove tabs |
---|
297 | ! |
---|
298 | ! 2514 2017-10-04 09:52:37Z suehring |
---|
299 | ! upper bounds of 3d output changed from nx+1,ny+1 to nx,ny |
---|
300 | ! no output of ghost layer data |
---|
301 | ! |
---|
302 | ! 2350 2017-08-15 11:48:26Z kanani |
---|
303 | ! Bugfix and error message for nopointer version. |
---|
304 | ! Additional "! defined(__nopointer)" as workaround to enable compilation of |
---|
305 | ! nopointer version. |
---|
306 | ! |
---|
307 | ! 2318 2017-07-20 17:27:44Z suehring |
---|
308 | ! Get topography top index via Function call |
---|
309 | ! |
---|
310 | ! 2317 2017-07-20 17:27:19Z suehring |
---|
311 | ! Bugfix: adjust output of shf. Added support for spinups |
---|
312 | ! |
---|
313 | ! 2287 2017-06-15 16:46:30Z suehring |
---|
314 | ! Bugfix in determination topography-top index |
---|
315 | ! |
---|
316 | ! 2269 2017-06-09 11:57:32Z suehring |
---|
317 | ! Enable restart runs with different number of PEs |
---|
318 | ! Bugfixes nopointer branch |
---|
319 | ! |
---|
320 | ! 2258 2017-06-08 07:55:13Z suehring |
---|
321 | ! Bugfix, add pre-preprocessor directives to enable non-parrallel mode |
---|
322 | ! |
---|
323 | ! 2233 2017-05-30 18:08:54Z suehring |
---|
324 | ! |
---|
325 | ! 2232 2017-05-30 17:47:52Z suehring |
---|
326 | ! Adjustments according to new surface-type structure. Remove usm_wall_heat_flux; |
---|
327 | ! insteat, heat fluxes are directly applied in diffusion_s. |
---|
328 | ! |
---|
329 | ! 2213 2017-04-24 15:10:35Z kanani |
---|
330 | ! Removal of output quantities usm_lad and usm_canopy_hr |
---|
331 | ! |
---|
332 | ! 2209 2017-04-19 09:34:46Z kanani |
---|
333 | ! cpp switch __mpi3 removed, |
---|
334 | ! minor formatting, |
---|
335 | ! small bugfix for division by zero (Krc) |
---|
336 | ! |
---|
337 | ! 2113 2017-01-12 13:40:46Z kanani |
---|
338 | ! cpp switch __mpi3 added for MPI-3 standard code (Ketelsen) |
---|
339 | ! |
---|
340 | ! 2071 2016-11-17 11:22:14Z maronga |
---|
341 | ! Small bugfix (Resler) |
---|
342 | ! |
---|
343 | ! 2031 2016-10-21 15:11:58Z knoop |
---|
344 | ! renamed variable rho to rho_ocean |
---|
345 | ! |
---|
346 | ! 2024 2016-10-12 16:42:37Z kanani |
---|
347 | ! Bugfixes in deallocation of array plantt and reading of csf/csfsurf, |
---|
348 | ! optimization of MPI-RMA operations, |
---|
349 | ! declaration of pcbl as integer, |
---|
350 | ! renamed usm_radnet -> usm_rad_net, usm_canopy_khf -> usm_canopy_hr, |
---|
351 | ! splitted arrays svf -> svf & csf, svfsurf -> svfsurf & csfsurf, |
---|
352 | ! use of new control parameter varnamelength, |
---|
353 | ! added output variables usm_rad_ressw, usm_rad_reslw, |
---|
354 | ! minor formatting changes, |
---|
355 | ! minor optimizations. |
---|
356 | ! |
---|
357 | ! 2011 2016-09-19 17:29:57Z kanani |
---|
358 | ! Major reformatting according to PALM coding standard (comments, blanks, |
---|
359 | ! alphabetical ordering, etc.), |
---|
360 | ! removed debug_prints, |
---|
361 | ! removed auxiliary SUBROUTINE get_usm_info, instead, USM flag urban_surface is |
---|
362 | ! defined in MODULE control_parameters (modules.f90) to avoid circular |
---|
363 | ! dependencies, |
---|
364 | ! renamed canopy_heat_flux to pc_heating_rate, as meaning of quantity changed. |
---|
365 | ! |
---|
366 | ! 2007 2016-08-24 15:47:17Z kanani |
---|
367 | ! Initial revision |
---|
368 | ! |
---|
369 | ! |
---|
370 | ! Description: |
---|
371 | ! ------------ |
---|
372 | ! 2016/6/9 - Initial version of the USM (Urban Surface Model) |
---|
373 | !      authors: Jaroslav Resler, Pavel Krc |
---|
374 | !           (Czech Technical University in Prague and Institute of |
---|
375 | !           Computer Science of the Czech Academy of Sciences, Prague) |
---|
376 | !      with contributions: Michal Belda, Nina Benesova, Ondrej Vlcek |
---|
377 | !      partly inspired by PALM LSM (B. Maronga) |
---|
378 | !      parameterizations of Ra checked with TUF3D (E. S. Krayenhoff) |
---|
379 | !> Module for Urban Surface Model (USM) |
---|
380 | !> The module includes: |
---|
381 | !>Â Â 1. radiation model with direct/diffuse radiation, shading, reflections |
---|
382 | !>Â Â Â Â and integration with plant canopy |
---|
383 | !>Â Â 2. wall and wall surface model |
---|
384 | !>Â Â 3. surface layer energy balance |
---|
385 | !>Â Â 4. anthropogenic heat (only from transportation so far) |
---|
386 | !>Â Â 5. necessary auxiliary subroutines (reading inputs, writing outputs, |
---|
387 | !>Â Â Â Â restart simulations, ...) |
---|
388 | !> It also make use of standard radiation and integrates it into |
---|
389 | !> urban surface model. |
---|
390 | !> |
---|
391 | !> Further work: |
---|
392 | !> ------------- |
---|
393 | !> 1. Remove global arrays surfouts, surfoutl and only keep track of radiosity |
---|
394 | !>Â Â from surfaces that are visible from local surfaces (i.e. there is a SVF |
---|
395 | !>Â Â where target is local). To do that, radiosity will be exchanged after each |
---|
396 | !>Â Â reflection step using MPI_Alltoall instead of current MPI_Allgather. |
---|
397 | !> |
---|
398 | !> 2. Temporarily large values of surface heat flux can be observed, up to |
---|
399 | !>Â Â 1.2 Km/s, which seem to be not realistic. |
---|
400 | !> |
---|
401 | !> @todo Output of _av variables in case of restarts |
---|
402 | !> @todo Revise flux conversion in energy-balance solver |
---|
403 | !> @todo Bugfixing in nopointer branch |
---|
404 | !> @todo Check optimizations for RMA operations |
---|
405 | !> @todo Alternatives for MPI_WIN_ALLOCATE? (causes problems with openmpi) |
---|
406 | !> @todo Check for load imbalances in CPU measures, e.g. for exchange_horiz_prog |
---|
407 | !>Â Â Â Â factor 3 between min and max time |
---|
408 | !> @todo Move setting of flag indoor_model to indoor_model_mod once available |
---|
409 | !> @todo Check divisions in wtend (etc.) calculations for possible division |
---|
410 | !>Â Â Â Â by zero, e.g. in case fraq(0,m) + fraq(1,m) = 0?! |
---|
411 | !> @todo Use unit 90 for OPEN/CLOSE of input files (FK) |
---|
412 | !> @todo Move plant canopy stuff into plant canopy code |
---|
413 | !------------------------------------------------------------------------------! |
---|
414 | Â MODULE urban_surface_mod |
---|
415 | |
---|
416 |   USE arrays_3d,                               & |
---|
417 |     ONLY: hyp, zu, pt, p, u, v, w, tend, exner, hyrho, prr, q, ql, vpt |
---|
418 | |
---|
419 |   USE calc_mean_profile_mod,                         & |
---|
420 | Â Â Â Â ONLY:Â calc_mean_profile |
---|
421 | |
---|
422 |   USE basic_constants_and_equations_mod,                   & |
---|
423 |     ONLY: c_p, g, kappa, pi, r_d, rho_l, l_v |
---|
424 | |
---|
425 |   USE control_parameters,                          & |
---|
426 |     ONLY: coupling_start_time, topography, dt_3d, humidity,        & |
---|
427 |         intermediate_timestep_count, initializing_actions,       & |
---|
428 |         intermediate_timestep_count_max, simulated_time, end_time,   & |
---|
429 |         timestep_scheme, tsc, coupling_char, io_blocks, io_group,    & |
---|
430 |         message_string, time_since_reference_point, surface_pressure,  & |
---|
431 |         pt_surface, large_scale_forcing, lsf_surf, spinup,       & |
---|
432 |         spinup_pt_mean, spinup_time, time_do3d, dt_do3d,        & |
---|
433 |         average_count_3d, varnamelength, urban_surface,         & |
---|
434 |         plant_canopy, dz |
---|
435 | |
---|
436 |   USE bulk_cloud_model_mod,                         & |
---|
437 |     ONLY: bulk_cloud_model, precipitation |
---|
438 | Â Â Â Â Â Â Â Â |
---|
439 |   USE cpulog,                                & |
---|
440 |     ONLY: cpu_log, log_point, log_point_s |
---|
441 | |
---|
442 |   USE date_and_time_mod,                           & |
---|
443 | Â Â Â Â ONLY:Â time_utc_init |
---|
444 | |
---|
445 |   USE grid_variables,                            & |
---|
446 |     ONLY: dx, dy, ddx, ddy, ddx2, ddy2 |
---|
447 | |
---|
448 |   USE indices,                                & |
---|
449 |     ONLY: nx, ny, nnx, nny, nnz, nxl, nxlg, nxr, nxrg, nyn, nyng, nys,  & |
---|
450 |         nysg, nzb, nzt, nbgp, wall_flags_0 |
---|
451 | |
---|
452 |   USE, INTRINSIC :: iso_c_binding |
---|
453 | |
---|
454 | Â Â USE kinds |
---|
455 | Â Â Â Â Â Â Â |
---|
456 | Â Â USE pegrid |
---|
457 | Â Â |
---|
458 |   USE plant_canopy_model_mod,                        & |
---|
459 |     ONLY: pc_heating_rate, pc_transpiration_rate, pc_latent_rate |
---|
460 | Â Â |
---|
461 |   USE radiation_model_mod,                          & |
---|
462 |     ONLY: albedo_type, radiation_interaction, calc_zenith, zenith,    & |
---|
463 |         radiation, rad_sw_in, rad_lw_in, rad_sw_out, rad_lw_out,    & |
---|
464 |         sigma_sb, sun_direction, sun_dir_lat, sun_dir_lon,       & |
---|
465 |         force_radiation_call, iup_u, inorth_u, isouth_u, ieast_u,    & |
---|
466 |         iwest_u, iup_l, inorth_l, isouth_l, ieast_l, iwest_l, id,    & |
---|
467 |         iz, iy, ix, nsurf, idsvf, ndsvf,                & |
---|
468 |         idcsf, ndcsf, kdcsf, pct,                    & |
---|
469 |         nzub, nzut, unscheduled_radiation_calls |
---|
470 | |
---|
471 |   USE statistics,                              & |
---|
472 |     ONLY: hom, statistic_regions |
---|
473 | |
---|
474 |   USE surface_mod,                              & |
---|
475 |     ONLY: get_topography_top_index_ji, get_topography_top_index,     & |
---|
476 |         ind_pav_green, ind_veg_wall, ind_wat_win, surf_usm_h,      & |
---|
477 |         surf_usm_v, surface_restore_elements |
---|
478 | |
---|
479 | |
---|
480 | Â Â IMPLICIT NONE |
---|
481 | |
---|
482 | ! |
---|
483 | !-- USM model constants |
---|
484 | |
---|
485 |   REAL(wp), PARAMETER ::           & |
---|
486 |        b_ch        = 6.04_wp,  & !< Clapp & Hornberger exponent |
---|
487 |        lambda_h_green_dry = 0.19_wp,  & !< heat conductivity for dry soil  |
---|
488 |        lambda_h_green_sm = 3.44_wp,  & !< heat conductivity of the soil matrix |
---|
489 |        lambda_h_water   = 0.57_wp,  & !< heat conductivity of water |
---|
490 |        psi_sat      = -0.388_wp, & !< soil matrix potential at saturation |
---|
491 |        rho_c_soil     = 2.19E6_wp, & !< volumetric heat capacity of soil |
---|
492 |        rho_c_water    = 4.20E6_wp   !< volumetric heat capacity of water |
---|
493 | !        m_max_depth    = 0.0002_wp   ! Maximum capacity of the water reservoir (m) |
---|
494 | |
---|
495 | ! |
---|
496 | !-- Soil parameters I      alpha_vg,   l_vg_green,  n_vg, gamma_w_green_sat |
---|
497 |   REAL(wp), DIMENSION(0:3,1:7), PARAMETER :: soil_pars = RESHAPE( (/   & |
---|
498 |                  3.83_wp, 1.250_wp, 1.38_wp, 6.94E-6_wp, & !< soil 1 |
---|
499 |                  3.14_wp, -2.342_wp, 1.28_wp, 1.16E-6_wp, & !< soil 2 |
---|
500 |                  0.83_wp, -0.588_wp, 1.25_wp, 0.26E-6_wp, & !< soil 3 |
---|
501 |                  3.67_wp, -1.977_wp, 1.10_wp, 2.87E-6_wp, & !< soil 4 |
---|
502 |                  2.65_wp, 2.500_wp, 1.10_wp, 1.74E-6_wp, & !< soil 5 |
---|
503 |                  1.30_wp, 0.400_wp, 1.20_wp, 0.93E-6_wp, & !< soil 6 |
---|
504 |                  0.00_wp, 0.00_wp, 0.00_wp, 0.57E-6_wp & !< soil 7 |
---|
505 |                  /), (/ 4, 7 /) ) |
---|
506 | |
---|
507 | ! |
---|
508 | !-- Soil parameters II       swc_sat,   fc,  wilt,  swc_res |
---|
509 |   REAL(wp), DIMENSION(0:3,1:7), PARAMETER :: m_soil_pars = RESHAPE( (/ & |
---|
510 |                  0.403_wp, 0.244_wp, 0.059_wp, 0.025_wp, & !< soil 1 |
---|
511 |                  0.439_wp, 0.347_wp, 0.151_wp, 0.010_wp, & !< soil 2 |
---|
512 |                  0.430_wp, 0.383_wp, 0.133_wp, 0.010_wp, & !< soil 3 |
---|
513 |                  0.520_wp, 0.448_wp, 0.279_wp, 0.010_wp, & !< soil 4 |
---|
514 |                  0.614_wp, 0.541_wp, 0.335_wp, 0.010_wp, & !< soil 5 |
---|
515 |                  0.766_wp, 0.663_wp, 0.267_wp, 0.010_wp, & !< soil 6 |
---|
516 |                  0.472_wp, 0.323_wp, 0.171_wp, 0.000_wp & !< soil 7 |
---|
517 |                  /), (/ 4, 7 /) ) |
---|
518 | ! |
---|
519 | !-- value 9999999.9_wp -> generic available or user-defined value must be set |
---|
520 | !-- otherwise -> no generic variable and user setting is optional |
---|
521 |   REAL(wp) :: alpha_vangenuchten = 9999999.9_wp,   & !< NAMELIST alpha_vg |
---|
522 |         field_capacity = 9999999.9_wp,     & !< NAMELIST fc |
---|
523 |         hydraulic_conductivity = 9999999.9_wp, & !< NAMELIST gamma_w_green_sat |
---|
524 |         lambda_h_green_sat = 0.0_wp,      & !< heat conductivity for saturated soil |
---|
525 |         l_vangenuchten = 9999999.9_wp,     & !< NAMELIST l_vg |
---|
526 |         n_vangenuchten = 9999999.9_wp,     & !< NAMELIST n_vg |
---|
527 |         residual_moisture = 9999999.9_wp,    & !< NAMELIST m_res |
---|
528 |         saturation_moisture = 9999999.9_wp,   & !< NAMELIST m_sat |
---|
529 |         wilting_point = 9999999.9_wp        !< NAMELIST m_wilt |
---|
530 | Â Â |
---|
531 | ! |
---|
532 | !-- configuration parameters (they can be setup in PALM config) |
---|
533 |   LOGICAL :: usm_material_model = .TRUE.    !< flag parameter indicating wheather the model of heat in materials is used |
---|
534 |   LOGICAL :: usm_anthropogenic_heat = .FALSE.  !< flag parameter indicating wheather the anthropogenic heat sources |
---|
535 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â !< (e.g.transportation) are used |
---|
536 |   LOGICAL :: force_radiation_call_l = .FALSE.  !< flag parameter for unscheduled radiation model calls |
---|
537 |   LOGICAL :: indoor_model = .FALSE.       !< whether to use the indoor model |
---|
538 | Â Â LOGICALÂ ::Â read_wall_temp_3d =Â .FALSE. |
---|
539 |   LOGICAL :: usm_wall_mod = .FALSE.       !< reduces conductivity of the first 2 wall layers by factor 0.1 |
---|
540 | |
---|
541 | |
---|
542 | Â Â INTEGER(iwp)Â ::Â building_type =Â 1Â Â Â Â Â Â Â Â !< default building type (preleminary setting) |
---|
543 | Â Â INTEGER(iwp)Â ::Â land_category =Â 2Â Â Â Â Â Â Â Â !< default category for land surface |
---|
544 | Â Â INTEGER(iwp)Â ::Â wall_category =Â 2Â Â Â Â Â Â Â Â !< default category for wall surface over pedestrian zone |
---|
545 | Â Â INTEGER(iwp)Â ::Â pedestrian_category =Â 2Â Â Â Â Â !< default category for wall surface in pedestrian zone |
---|
546 | Â Â INTEGER(iwp)Â ::Â roof_category =Â 2Â Â Â Â Â Â Â Â !< default category for root surface |
---|
547 |   REAL(wp)   :: roughness_concrete = 0.001_wp  !< roughness length of average concrete surface |
---|
548 | ! |
---|
549 | !-- Indices of input attributes for (above) ground floor level |
---|
550 |   INTEGER(iwp) :: ind_alb_wall_agfl   = 65  !< index in input list for albedo_type of wall above ground floor level |
---|
551 |   INTEGER(iwp) :: ind_alb_wall_gfl   = 32  !< index in input list for albedo_type of wall ground floor level |
---|
552 |   INTEGER(iwp) :: ind_alb_wall_r    = 96  !< index in input list for albedo_type of wall roof |
---|
553 |   INTEGER(iwp) :: ind_alb_green_agfl  = 83  !< index in input list for albedo_type of green above ground floor level |
---|
554 |   INTEGER(iwp) :: ind_alb_green_gfl   = 50  !< index in input list for albedo_type of green ground floor level |
---|
555 |   INTEGER(iwp) :: ind_alb_green_r    = 115 !< index in input list for albedo_type of green roof |
---|
556 |   INTEGER(iwp) :: ind_alb_win_agfl   = 79  !< index in input list for albedo_type of window fraction |
---|
557 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â !< above ground floor level |
---|
558 |   INTEGER(iwp) :: ind_alb_win_gfl    = 46  !< index in input list for albedo_type of window fraction ground floor level |
---|
559 |   INTEGER(iwp) :: ind_alb_win_r     = 110 !< index in input list for albedo_type of window fraction roof |
---|
560 |   INTEGER(iwp) :: ind_emis_wall_agfl  = 64  !< index in input list for wall emissivity, above ground floor level |
---|
561 |   INTEGER(iwp) :: ind_emis_wall_gfl   = 31  !< index in input list for wall emissivity, ground floor level |
---|
562 |   INTEGER(iwp) :: ind_emis_wall_r    = 95  !< index in input list for wall emissivity, roof |
---|
563 |   INTEGER(iwp) :: ind_emis_green_agfl  = 82  !< index in input list for green emissivity, above ground floor level |
---|
564 |   INTEGER(iwp) :: ind_emis_green_gfl  = 49  !< index in input list for green emissivity, ground floor level |
---|
565 |   INTEGER(iwp) :: ind_emis_green_r   = 114 !< index in input list for green emissivity, roof |
---|
566 |   INTEGER(iwp) :: ind_emis_win_agfl   = 77  !< index in input list for window emissivity, above ground floor level |
---|
567 |   INTEGER(iwp) :: ind_emis_win_gfl   = 44  !< index in input list for window emissivity, ground floor level |
---|
568 |   INTEGER(iwp) :: ind_emis_win_r    = 108 !< index in input list for window emissivity, roof |
---|
569 | Â Â INTEGER(iwp)Â ::Â ind_green_frac_w_agfl =Â 80Â Â !< index in input list for green fraction on wall, above ground floor level |
---|
570 |   INTEGER(iwp) :: ind_green_frac_w_gfl = 47  !< index in input list for green fraction on wall, ground floor level |
---|
571 | Â Â INTEGER(iwp)Â ::Â ind_green_frac_r_agfl =Â 112Â !< index in input list for green fraction on roof, above ground floor level |
---|
572 |   INTEGER(iwp) :: ind_green_frac_r_gfl = 111 !< index in input list for green fraction on roof, ground floor level |
---|
573 |   INTEGER(iwp) :: ind_hc1_agfl     = 58  !< index in input list for heat capacity at first wall layer, |
---|
574 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â !< above ground floor level |
---|
575 |   INTEGER(iwp) :: ind_hc1_gfl      = 25  !< index in input list for heat capacity at first wall layer, ground floor level |
---|
576 |   INTEGER(iwp) :: ind_hc1_wall_r    = 89  !< index in input list for heat capacity at first wall layer, roof |
---|
577 |   INTEGER(iwp) :: ind_hc1_win_agfl   = 71  !< index in input list for heat capacity at first window layer, |
---|
578 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â !< above ground floor level |
---|
579 |   INTEGER(iwp) :: ind_hc1_win_gfl    = 38  !< index in input list for heat capacity at first window layer, |
---|
580 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â !< ground floor level |
---|
581 |   INTEGER(iwp) :: ind_hc1_win_r     = 102 !< index in input list for heat capacity at first window layer, roof |
---|
582 |   INTEGER(iwp) :: ind_hc2_agfl     = 59  !< index in input list for heat capacity at second wall layer, |
---|
583 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â !< above ground floor level |
---|
584 |   INTEGER(iwp) :: ind_hc2_gfl      = 26  !< index in input list for heat capacity at second wall layer, ground floor level |
---|
585 |   INTEGER(iwp) :: ind_hc2_wall_r    = 90  !< index in input list for heat capacity at second wall layer, roof |
---|
586 |   INTEGER(iwp) :: ind_hc2_win_agfl   = 72  !< index in input list for heat capacity at second window layer, |
---|
587 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â !< above ground floor level |
---|
588 |   INTEGER(iwp) :: ind_hc2_win_gfl    = 39  !< index in input list for heat capacity at second window layer, |
---|
589 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â !< ground floor level |
---|
590 |   INTEGER(iwp) :: ind_hc2_win_r     = 103 !< index in input list for heat capacity at second window layer, roof |
---|
591 |   INTEGER(iwp) :: ind_hc3_agfl     = 60  !< index in input list for heat capacity at third wall layer, |
---|
592 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â !< above ground floor level |
---|
593 |   INTEGER(iwp) :: ind_hc3_gfl      = 27  !< index in input list for heat capacity at third wall layer, ground floor level |
---|
594 |   INTEGER(iwp) :: ind_hc3_wall_r    = 91  !< index in input list for heat capacity at third wall layer, roof |
---|
595 |   INTEGER(iwp) :: ind_hc3_win_agfl   = 73  !< index in input list for heat capacity at third window layer, |
---|
596 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â !< above ground floor level |
---|
597 |   INTEGER(iwp) :: ind_hc3_win_gfl    = 40  !< index in input list for heat capacity at third window layer, |
---|
598 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â !< ground floor level |
---|
599 |   INTEGER(iwp) :: ind_hc3_win_r     = 104 !< index in input list for heat capacity at third window layer, roof |
---|
600 |   INTEGER(iwp) :: ind_gflh       = 17  !< index in input list for ground floor level height |
---|
601 |   INTEGER(iwp) :: ind_lai_r_agfl    = 113 !< index in input list for LAI on roof, above ground floor level |
---|
602 |   INTEGER(iwp) :: ind_lai_r_gfl     = 113 !< index in input list for LAI on roof, ground floor level |
---|
603 |   INTEGER(iwp) :: ind_lai_w_agfl    = 81  !< index in input list for LAI on wall, above ground floor level |
---|
604 |   INTEGER(iwp) :: ind_lai_w_gfl     = 48  !< index in input list for LAI on wall, ground floor level |
---|
605 |   INTEGER(iwp) :: ind_tc1_agfl     = 61  !< index in input list for thermal conductivity at first wall layer, |
---|
606 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â !< above ground floor level |
---|
607 |   INTEGER(iwp) :: ind_tc1_gfl      = 28  !< index in input list for thermal conductivity at first wall layer, |
---|
608 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â !< ground floor level |
---|
609 |   INTEGER(iwp) :: ind_tc1_wall_r    = 92  !< index in input list for thermal conductivity at first wall layer, roof |
---|
610 |   INTEGER(iwp) :: ind_tc1_win_agfl   = 74  !< index in input list for thermal conductivity at first window layer, |
---|
611 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â !< above ground floor level |
---|
612 |   INTEGER(iwp) :: ind_tc1_win_gfl    = 41  !< index in input list for thermal conductivity at first window layer, |
---|
613 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â !< ground floor level |
---|
614 |   INTEGER(iwp) :: ind_tc1_win_r     = 105 !< index in input list for thermal conductivity at first window layer, roof |
---|
615 |   INTEGER(iwp) :: ind_tc2_agfl     = 62  !< index in input list for thermal conductivity at second wall layer, |
---|
616 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â !< above ground floor level |
---|
617 |   INTEGER(iwp) :: ind_tc2_gfl      = 29  !< index in input list for thermal conductivity at second wall layer, |
---|
618 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â !< ground floor level |
---|
619 |   INTEGER(iwp) :: ind_tc2_wall_r    = 93  !< index in input list for thermal conductivity at second wall layer, roof |
---|
620 |   INTEGER(iwp) :: ind_tc2_win_agfl   = 75  !< index in input list for thermal conductivity at second window layer, |
---|
621 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â !< above ground floor level |
---|
622 |   INTEGER(iwp) :: ind_tc2_win_gfl    = 42  !< index in input list for thermal conductivity at second window layer, |
---|
623 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â !< ground floor level |
---|
624 |   INTEGER(iwp) :: ind_tc2_win_r     = 106 !< index in input list for thermal conductivity at second window layer, |
---|
625 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â !< ground floor level |
---|
626 |   INTEGER(iwp) :: ind_tc3_agfl     = 63  !< index in input list for thermal conductivity at third wall layer, |
---|
627 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â !< above ground floor level |
---|
628 |   INTEGER(iwp) :: ind_tc3_gfl      = 30  !< index in input list for thermal conductivity at third wall layer, |
---|
629 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â !< ground floor level |
---|
630 |   INTEGER(iwp) :: ind_tc3_wall_r    = 94  !< index in input list for thermal conductivity at third wall layer, roof |
---|
631 |   INTEGER(iwp) :: ind_tc3_win_agfl   = 76  !< index in input list for thermal conductivity at third window layer, |
---|
632 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â !< above ground floor level |
---|
633 |   INTEGER(iwp) :: ind_tc3_win_gfl    = 43  !< index in input list for thermal conductivity at third window layer, |
---|
634 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â !< ground floor level |
---|
635 |   INTEGER(iwp) :: ind_tc3_win_r     = 107 !< index in input list for thermal conductivity at third window layer, roof |
---|
636 |   INTEGER(iwp) :: ind_thick_1_agfl   = 54  !< index for wall layer thickness - 1st layer above ground floor level |
---|
637 |   INTEGER(iwp) :: ind_thick_1_gfl    = 21  !< index for wall layer thickness - 1st layer ground floor level |
---|
638 |   INTEGER(iwp) :: ind_thick_1_wall_r  = 85  !< index for wall layer thickness - 1st layer roof |
---|
639 |   INTEGER(iwp) :: ind_thick_1_win_agfl = 67  !< index for window layer thickness - 1st layer above ground floor level |
---|
640 |   INTEGER(iwp) :: ind_thick_1_win_gfl  = 34  !< index for window layer thickness - 1st layer ground floor level |
---|
641 |   INTEGER(iwp) :: ind_thick_1_win_r   = 98  !< index for window layer thickness - 1st layer roof |
---|
642 |   INTEGER(iwp) :: ind_thick_2_agfl   = 55  !< index for wall layer thickness - 2nd layer above ground floor level |
---|
643 |   INTEGER(iwp) :: ind_thick_2_gfl    = 22  !< index for wall layer thickness - 2nd layer ground floor level |
---|
644 |   INTEGER(iwp) :: ind_thick_2_wall_r  = 86  !< index for wall layer thickness - 2nd layer roof |
---|
645 |   INTEGER(iwp) :: ind_thick_2_win_agfl = 68  !< index for window layer thickness - 2nd layer above ground floor level |
---|
646 |   INTEGER(iwp) :: ind_thick_2_win_gfl  = 35  !< index for window layer thickness - 2nd layer ground floor level |
---|
647 |   INTEGER(iwp) :: ind_thick_2_win_r   = 99  !< index for window layer thickness - 2nd layer roof |
---|
648 |   INTEGER(iwp) :: ind_thick_3_agfl   = 56  !< index for wall layer thickness - 3rd layer above ground floor level |
---|
649 |   INTEGER(iwp) :: ind_thick_3_gfl    = 23  !< index for wall layer thickness - 3rd layer ground floor level |
---|
650 |   INTEGER(iwp) :: ind_thick_3_wall_r  = 87  !< index for wall layer thickness - 3rd layer roof |
---|
651 |   INTEGER(iwp) :: ind_thick_3_win_agfl = 69  !< index for window layer thickness - 3rd layer above ground floor level |
---|
652 |   INTEGER(iwp) :: ind_thick_3_win_gfl  = 36  !< index for window layer thickness - 3rd layer ground floor level |
---|
653 |   INTEGER(iwp) :: ind_thick_3_win_r   = 100 !< index for window layer thickness - 3rd layer roof |
---|
654 |   INTEGER(iwp) :: ind_thick_4_agfl   = 57  !< index for wall layer thickness - 4th layer above ground floor level |
---|
655 |   INTEGER(iwp) :: ind_thick_4_gfl    = 24  !< index for wall layer thickness - 4th layer ground floor level |
---|
656 |   INTEGER(iwp) :: ind_thick_4_wall_r  = 88  !< index for wall layer thickness - 4st layer roof |
---|
657 |   INTEGER(iwp) :: ind_thick_4_win_agfl = 70  !< index for window layer thickness - 4th layer above ground floor level |
---|
658 |   INTEGER(iwp) :: ind_thick_4_win_gfl  = 37  !< index for window layer thickness - 4th layer ground floor level |
---|
659 |   INTEGER(iwp) :: ind_thick_4_win_r   = 101 !< index for window layer thickness - 4th layer roof |
---|
660 |   INTEGER(iwp) :: ind_trans_agfl    = 78  !< index in input list for window transmissivity, above ground floor level |
---|
661 |   INTEGER(iwp) :: ind_trans_gfl     = 45  !< index in input list for window transmissivity, ground floor level |
---|
662 |   INTEGER(iwp) :: ind_trans_r      = 109 !< index in input list for window transmissivity, roof |
---|
663 |   INTEGER(iwp) :: ind_wall_frac_agfl  = 53  !< index in input list for wall fraction, above ground floor level |
---|
664 |   INTEGER(iwp) :: ind_wall_frac_gfl   = 20  !< index in input list for wall fraction, ground floor level |
---|
665 |   INTEGER(iwp) :: ind_wall_frac_r    = 84  !< index in input list for wall fraction, roof |
---|
666 |   INTEGER(iwp) :: ind_win_frac_agfl   = 66  !< index in input list for window fraction, above ground floor level |
---|
667 |   INTEGER(iwp) :: ind_win_frac_gfl   = 33  !< index in input list for window fraction, ground floor level |
---|
668 |   INTEGER(iwp) :: ind_win_frac_r    = 97  !< index in input list for window fraction, roof |
---|
669 |   INTEGER(iwp) :: ind_z0_agfl      = 51  !< index in input list for z0, above ground floor level |
---|
670 |   INTEGER(iwp) :: ind_z0_gfl      = 18  !< index in input list for z0, ground floor level |
---|
671 |   INTEGER(iwp) :: ind_z0qh_agfl     = 52  !< index in input list for z0h / z0q, above ground floor level |
---|
672 |   INTEGER(iwp) :: ind_z0qh_gfl     = 19  !< index in input list for z0h / z0q, ground floor level |
---|
673 |   INTEGER(iwp) :: ind_green_type_roof  = 116 !< index in input list for type of green roof |
---|
674 | |
---|
675 | |
---|
676 |   REAL(wp) :: roof_height_limit = 4.0_wp     !< height for distinguish between land surfaces and roofs |
---|
677 |   REAL(wp) :: ground_floor_level = 4.0_wp    !< default ground floor level |
---|
678 | |
---|
679 | |
---|
680 |   CHARACTER(37), DIMENSION(0:7), PARAMETER :: building_type_name = (/   & |
---|
681 |                   'user-defined             ', & !< type 0 |
---|
682 |                   'residential - 1950          ', & !< type 1 |
---|
683 |                   'residential 1951 - 2000       ', & !< type 2 |
---|
684 |                   'residential 2001 -          ', & !< type 3 |
---|
685 |                   'office - 1950            ', & !< type 4 |
---|
686 |                   'office 1951 - 2000          ', & !< type 5 |
---|
687 |                   'office 2001 -            ', & !< type 6 |
---|
688 |                   'bridges               ' & !< type 7 |
---|
689 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â /) |
---|
690 | ! |
---|
691 | !-- building parameters, 6 different types |
---|
692 | !-- Parameter for urban surface model |
---|
693 | !-- 0 - heat capacity wall surface, 1 - heat capacity of window surface, 2 - heat capacity of green surface |
---|
694 | !-- 3 - thermal conductivity of wall surface, 4 - thermal conductivity of window surface, |
---|
695 | !-- 5 - thermal conductivty of green surface, 6 - wall fraction ground plate, |
---|
696 | !-- 7 - 1st wall layer thickness ground plate, 8 - 2nd wall layer thickness ground plate |
---|
697 | !-- 9 - 3rd wall layer thickness ground plate, 10 - 4th wall layer thickness ground plate, |
---|
698 | !-- 11 - heat capacity 1st/2nd wall layer ground plate, 12 - heat capacity 3rd wall layer ground plate |
---|
699 | !-- 13 - heat capacity 4th wall layer ground plate, 14 - thermal conductivity 1st/2nd wall layer ground plate, |
---|
700 | !-- 15 - thermal conductivity 3rd wall layer ground plate, 16 - thermal conductivity 4th wall layer ground plate |
---|
701 | !-- 17 - ground floor level height, 18 - z0 roughness ground floor level, 19 - z0h/z0g roughness heaat/humidity, |
---|
702 | !-- 20 - wall fraction ground floor level, 21 - 1st wall layer thickness ground floor level, |
---|
703 | !-- 22 - 2nd wall layer thickness ground floor level, 23 - 3rd wall layer thickness ground floor level, |
---|
704 | !-- 24 - 4th wall layer thickness ground floor level, 25 - heat capacity 1st/2nd wall layer ground floor level, |
---|
705 | !-- 26 - heat capacity 3rd wall layer ground floor level, 27 - heat capacity 4th wall layer ground floor level, |
---|
706 | !-- 28 - thermal conductivity 1st/2nd wall layer ground floor level, |
---|
707 | !-- 29 - thermal conductivity 3rd wall layer ground floor level, 30 - thermal conductivity 4th wall layer ground floor level |
---|
708 | !-- 31 - wall emissivity ground floor level, 32 - wall albedo ground floor level, 33 - window fraction ground floor level, |
---|
709 | !-- 34 - 1st window layer thickness ground floor level, 35 - 2nd window layer thickness ground floor level, |
---|
710 | !-- 36 - 3rd window layer thickness ground floor level, 37 - 4th window layer thickness ground floor level, |
---|
711 | !-- 38 - heat capacity 1st/2nd window layer ground floor level, 39 - heat capacity 3rd window layer ground floor level, |
---|
712 | !-- 40 - heat capacity 4th window layer ground floor level, |
---|
713 | !-- 41 - thermal conductivity 1st/2nd window layer ground floor level, |
---|
714 | !-- 42 - thermal conductivity 3rd window layer ground floor level, |
---|
715 | !-- 43 - thermal conductivity 4th window layer ground floor level, 44 - window emissivity ground floor level, |
---|
716 | !-- 45 - window transmissivity ground floor level, 46 - window albedo ground floor level, |
---|
717 | !-- 47 - green fraction ground floor level, 48 - LAI on wall ground floor level, 49 - green emissivity ground floor level, |
---|
718 | !-- 50 - green albedo ground floor level, 51 - z0 roughness above ground floor level, |
---|
719 | !-- 52 - z0h/z0g roughness heat/humidity above ground floor level, 53 - wall fraction above ground floor level |
---|
720 | !-- 54 - 1st wall layer thickness above ground floor level, 55 - 2nd wall layer thickness above ground floor level |
---|
721 | !-- 56 - 3rd wall layer thickness above ground floor level, 57 - 4th wall layer thickness above ground floor level |
---|
722 | !-- 58 - heat capacity 1st/2nd wall layer above ground floor level, |
---|
723 | !-- 59 - heat capacity 3rd wall layer above ground floor level, |
---|
724 | !-- 60 - heat capacity 4th wall layer above ground floor level, |
---|
725 | !-- 61 - thermal conductivity 1st/2nd wall layer above ground floor level, |
---|
726 | !-- 62 - thermal conductivity 3rd wall layer above ground floor level, |
---|
727 | !-- 63 - thermal conductivity 4th wall layer above ground floor level, |
---|
728 | !-- 64 - wall emissivity above ground floor level, 65 - wall albedo above ground floor level, |
---|
729 | !-- 66 - window fraction above ground floor level, 67 - 1st window layer thickness above ground floor level, |
---|
730 | !-- 68 - 2nd thickness window layer above ground floor level, 69 - 3rd window layer thickness above ground floor level, |
---|
731 | !-- 70 - 4th window layer thickness above ground floor level, |
---|
732 | !-- 71 - heat capacity 1st/2nd window layer above ground floor level, |
---|
733 | !-- 72 - heat capacity 3rd window layer above ground floor level, |
---|
734 | !-- 73 - heat capacity 4th window layer above ground floor level, |
---|
735 | !-- 74 - conductivity 1st/2nd window layer above ground floor level, |
---|
736 | !-- 75 - thermal conductivity 3rd window layer above ground floor level, |
---|
737 | !-- 76 - thermal conductivity 4th window layer above ground floor level, 77 - window emissivity above ground floor level, |
---|
738 | !-- 78 - window transmissivity above ground floor level, 79 - window albedo above ground floor level, |
---|
739 | !-- 80 - green fraction above ground floor level, 81 - LAI on wall above ground floor level, |
---|
740 | !-- 82 - green emissivity above ground floor level, 83 - green albedo above ground floor level, |
---|
741 | !-- 84 - wall fraction roof, 85 - 1st wall layer thickness roof, 86 - 2nd wall layer thickness roof, |
---|
742 | !-- 87 - 3rd wall layer thickness roof, 88 - 4th wall layer thickness roof, |
---|
743 | !-- 89 - heat capacity 1st/2nd wall layer roof, 90 - heat capacity 3rd wall layer roof, |
---|
744 | !-- 91 - heat capacity 4th wall layer roof, 92 - thermal conductivity 1st/2nd wall layer roof, |
---|
745 | !-- 93 - thermal conductivity 3rd wall layer roof, 94 - thermal conductivity 4th wall layer roof, |
---|
746 | !-- 95 - wall emissivity roof, 96 - wall albedo roof, 97 - window fraction roof, |
---|
747 | !-- 98 - window 1st layer thickness roof, 99 - window 2nd layer thickness roof, 100 - window 3rd layer thickness roof, |
---|
748 | !-- 101 - window 4th layer thickness, 102 - heat capacity 1st/2nd window layer roof, |
---|
749 | !-- 103 - heat capacity 3rd window layer roof, 104 - heat capacity 4th window layer roof, |
---|
750 | !-- 105 - thermal conductivity 1st/2nd window layer roof, 106 - thermal conductivity 3rd window layer roof, |
---|
751 | !-- 107 - thermal conductivity 4th window layer roof, 108 - window emissivity roof, 109 - window transmissivity roof, |
---|
752 | !-- 110 - window albedo roof, 111 - green fraction roof ground floor level, |
---|
753 | !-- 112 - green fraction roof above ground floor level, 113 - LAI roof, 114 - green emissivity roof, |
---|
754 | !-- 115 - green albedo roof, 116 - green type roof, |
---|
755 | !-- Parameter for indoor model |
---|
756 | !-- 117 - indoor target summer temperature, 118 - indoor target winter temperature, |
---|
757 | !-- 119 - shading factor, 120 - g-value windows, 121 - u-value windows, 122 - basical airflow without occupancy of the room, |
---|
758 | !-- 123 - additional airflow depend of occupancy of the room, 124 - heat recovery efficiency, |
---|
759 | !-- 125 - dynamic parameter specific effective surface, 126 - dynamic parameter innner heatstorage, |
---|
760 | !-- 127 - ratio internal surface/floor area, 128 - maximal heating capacity, 129 - maximal cooling capacity, |
---|
761 | !-- 130 - additional internal heat gains dependent on occupancy of the room, |
---|
762 | !-- 131 - basic internal heat gains without occupancy of the room, 132 - storey height, 133 - ceiling construction height |
---|
763 | |
---|
764 | |
---|
765 |   REAL(wp), DIMENSION(0:133,1:7), PARAMETER :: building_pars = RESHAPE( (/  & |
---|
766 |     20000.0_wp, 20000.0_wp, 20000.0_wp, 23.0_wp, 23.0_wp, 10.0_wp,     & !parameter 0-5 |
---|
767 |     1.0_wp, 0.005_wp, 0.01_wp, 0.39_wp, 0.63_wp, 2200000.0_wp,       & !parameter 6-11 |
---|
768 |     1400000.0_wp, 1300000.0_wp, 0.35_wp, 0.8_wp, 2.1_wp, 4.0_wp,      & !parameter 12-17 |
---|
769 |     0.01_wp, 0.001_wp, 0.75_wp,                      & !parameter 18-20 |
---|
770 |     0.005_wp, 0.01_wp, 0.39_wp, 0.63_wp, 2200000.0_wp,           & !parameter 21-25 |
---|
771 |     1400000.0_wp, 1300000.0_wp, 0.35_wp,                  & !parameter 26-28           |
---|
772 |     0.8_wp, 2.1_wp, 0.93_wp,                        & !parameter 29-31    |
---|
773 |     27.0_wp, 0.25_wp, 0.003_wp, 0.006_wp, 0.012_wp, 0.018_wp,       & !parameter 32-37 |
---|
774 |     1736000.0_wp, 1736000.0_wp, 1736000.0_wp,               & !parameter 38-40 |
---|
775 |     0.57_wp, 0.57_wp, 0.57_wp, 0.91_wp,                  & !parameter 41-44 |
---|
776 |     0.75_wp, 27.0_wp, 0.0_wp, 1.5_wp, 0.86_wp,               & !parameter 45-49 |
---|
777 |     5.0_wp, 0.001_wp, 0.0001_wp, 0.7_wp, 0.005_wp,             & !parameter 50-54 |
---|
778 |     0.01_wp, 0.39_wp, 0.63_wp, 2200000.0_wp,                & !parameter 55-58 |
---|
779 |     1400000.0_wp, 1300000.0_wp, 0.35_wp, 0.8_wp,              & !parameter 59-62 |
---|
780 |     2.1_wp, 0.93_wp, 27.0_wp, 0.3_wp,                   & !parameter 63-66 |
---|
781 |     0.003_wp, 0.006_wp, 0.012_wp, 0.018_wp,                & !parameter 67-70 |
---|
782 |     1736000.0_wp, 1736000.0_wp, 1736000.0_wp,               & !parameter 71-73 |
---|
783 |     0.57_wp, 0.57_wp, 0.57_wp, 0.91_wp, 0.75_wp,              & !parameter 74-78 |
---|
784 |     27.0_wp, 0.0_wp, 1.5_wp, 0.86_wp, 5.0_wp, 1.0_wp,           & !parameter 79-84 |
---|
785 |     0.005_wp, 0.01_wp, 0.31_wp, 0.63_wp, 2200000.0_wp, 1400000.0_wp,    & !parameter 85-90 |
---|
786 |     1300000.0_wp, 0.35_wp, 0.8_wp, 2.1_wp, 0.93_wp, 27.0_wp, 0.0_wp,    & !parameter 91-97 |
---|
787 |     0.003_wp, 0.006_wp, 0.012_wp, 0.018_wp, 1736000.0_wp,         & !parameter 98-102 |
---|
788 |     1736000.0_wp, 1736000.0_wp, 0.57_wp, 0.57_wp, 0.57_wp,         & !parameter 103-107 |
---|
789 |     0.91_wp, 0.75_wp, 27.0_wp, 0.0_wp, 0.0_wp, 1.5_wp,           & !parameter 108-113 |
---|
790 |     0.86_wp, 5.0_wp, 0.0_wp,                        & !parameter 114-116 |
---|
791 |     299.15_wp, 293.15_wp, 0.8_wp, 0.76_wp, 5.0_wp,             & !parameter 117-121 |
---|
792 |     0.1_wp, 0.5_wp, 0.0_wp, 3.5_wp, 370000.0_wp, 4.5_wp,          & !parameter 122-127 |
---|
793 |     100000.0_wp, 0.0_wp, 3.0_wp, 10.0_wp, 3.0_wp, 0.2_wp,         & !parameter 128-133- end of type 1 |
---|
794 |     20000.0_wp, 20000.0_wp, 20000.0_wp, 23.0_wp, 23.0_wp, 10.0_wp,     & !parameter 0-5 |
---|
795 |     1.0_wp, 0.005_wp, 0.01_wp, 0.31_wp, 0.42_wp, 2000000.0_wp,       & !parameter 6-11 |
---|
796 |     103000.0_wp, 900000.0_wp, 0.35_wp, 0.38_wp, 0.04_wp, 4.0_wp,      & !parameter 12-17 |
---|
797 |     0.01_wp, 0.001_wp, 0.78_wp,                      & !parameter 18-20 |
---|
798 |     0.005_wp, 0.01_wp, 0.31_wp, 0.43_wp, 2000000.0_wp,           & !parameter 21-25 |
---|
799 |     103000.0_wp, 900000.0_wp, 0.35_wp,                   & !parameter 26-28           |
---|
800 |     0.38_wp, 0.04_wp, 0.92_wp,                       & !parameter 29-31    |
---|
801 |     27.0_wp, 0.22_wp, 0.003_wp, 0.006_wp, 0.012_wp, 0.018_wp,       & !parameter 32-37 |
---|
802 |     1736000.0_wp, 1736000.0_wp, 1736000.0_wp,               & !parameter 38-40 |
---|
803 |     0.11_wp, 0.11_wp, 0.11_wp, 0.11_wp,                  & !parameter 41-44 |
---|
804 |     0.7_wp, 27.0_wp, 0.0_wp, 1.5_wp, 0.86_wp,               & !parameter 45-49 |
---|
805 |     5.0_wp, 0.001_wp, 0.0001_wp, 0.73_wp, 0.005_wp,            & !parameter 50-54 |
---|
806 |     0.01_wp, 0.31_wp, 0.43_wp, 2000000.0_wp,                & !parameter 55-58 |
---|
807 |     103000.0_wp, 900000.0_wp, 0.35_wp, 0.38_wp,              & !parameter 59-62 |
---|
808 |     0.04_wp, 0.92_wp, 27.0_wp, 0.27_wp,                  & !parameter 63-66 |
---|
809 |     0.003_wp, 0.006_wp, 0.012_wp, 0.018_wp,                & !parameter 67-70 |
---|
810 |     1736000.0_wp, 1736000.0_wp, 1736000.0_wp,               & !parameter 71-73 |
---|
811 |     0.11_wp, 0.11_wp, 0.11_wp, 0.87_wp, 0.7_wp,              & !parameter 74-78 |
---|
812 |     27.0_wp, 0.0_wp, 1.5_wp, 0.86_wp, 5.0_wp, 1.0_wp,           & !parameter 79-84 |
---|
813 |     0.005_wp, 0.01_wp, 0.5_wp, 0.79_wp, 2000000.0_wp, 103000.0_wp,     & !parameter 85-90 |
---|
814 |     900000.0_wp, 0.35_wp, 0.38_wp, 0.04_wp, 0.93_wp, 27.0_wp, 0.0_wp,   & !parameter 91-97 |
---|
815 |     0.003_wp, 0.006_wp, 0.012_wp, 0.018_wp, 1736000.0_wp,         & !parameter 98-102 |
---|
816 |     1736000.0_wp, 1736000.0_wp, 0.11_wp, 0.11_wp, 0.11_wp,         & !parameter 103-107 |
---|
817 |     0.87_wp, 0.7_wp, 27.0_wp, 0.0_wp, 0.0_wp, 1.5_wp,           & !parameter 108-113 |
---|
818 |     0.86_wp, 5.0_wp, 0.0_wp,                        & !parameter 114-116 |
---|
819 |     299.15_wp, 293.15_wp, 0.8_wp, 0.6_wp, 3.0_wp,             & !parameter 117-121 |
---|
820 |     0.1_wp, 0.5_wp, 0.0_wp, 2.5_wp, 165000.0_wp, 4.5_wp,          & !parameter 122-127 |
---|
821 |     100000.0_wp, 0.0_wp, 4.0_wp, 8.0_wp, 3.0_wp, 0.2_wp,          & !parameter 128-133- end of type 2 |
---|
822 |     20000.0_wp, 20000.0_wp, 20000.0_wp, 23.0_wp, 23.0_wp, 10.0_wp,     & !parameter 0-5 |
---|
823 |     1.0_wp, 0.005_wp, 0.01_wp, 0.41_wp, 0.7_wp, 2000000.0_wp,       & !parameter 6-11 |
---|
824 |     103000.0_wp, 900000.0_wp, 0.35_wp, 0.14_wp, 0.035_wp, 4.0_wp,     & !parameter 12-17 |
---|
825 |     0.01_wp, 0.001_wp, 0.75_wp,                      & !parameter 18-20 |
---|
826 |     0.005_wp, 0.01_wp, 0.41_wp, 0.7_wp, 2000000.0_wp,           & !parameter 21-25 |
---|
827 |     103000.0_wp, 900000.0_wp, 0.35_wp,                   & !parameter 26-28           |
---|
828 |     0.14_wp, 0.035_wp, 0.92_wp,                      & !parameter 29-31    |
---|
829 |     27.0_wp, 0.25_wp, 0.003_wp, 0.006_wp, 0.012_wp, 0.018_wp,       & !parameter 32-37 |
---|
830 |     1736000.0_wp, 1736000.0_wp, 1736000.0_wp,               & !parameter 38-40 |
---|
831 |     0.037_wp, 0.037_wp, 0.037_wp, 0.8_wp,                 & !parameter 41-44 |
---|
832 |     0.6_wp, 27.0_wp, 0.0_wp, 1.5_wp, 0.86_wp,               & !parameter 45-49 |
---|
833 |     5.0_wp, 0.001_wp, 0.0001_wp, 0.7_wp, 0.005_wp,             & !parameter 50-54 |
---|
834 |     0.01_wp, 0.41_wp, 0.7_wp, 2000000.0_wp,                & !parameter 55-58 |
---|
835 |     103000.0_wp, 900000.0_wp, 0.35_wp, 0.14_wp,              & !parameter 59-62 |
---|
836 |     0.035_wp, 0.92_wp, 27.0_wp, 0.3_wp,                  & !parameter 63-66 |
---|
837 |     0.003_wp, 0.006_wp, 0.012_wp, 0.018_wp,                & !parameter 67-70 |
---|
838 |     1736000.0_wp, 1736000.0_wp, 1736000.0_wp,               & !parameter 71-73 |
---|
839 |     0.037_wp, 0.037_wp, 0.037_wp, 0.8_wp, 0.6_wp,             & !parameter 74-78 |
---|
840 |     27.0_wp, 0.0_wp, 1.5_wp, 0.86_wp, 5.0_wp, 1.0_wp,           & !parameter 79-84 |
---|
841 |     0.005_wp, 0.01_wp, 0.41_wp, 0.7_wp, 2000000.0_wp, 103000.0_wp,     & !parameter 85-90 |
---|
842 |     900000.0_wp, 0.35_wp, 0.14_wp, 0.035_wp, 0.93_wp, 27.0_wp, 0.0_wp,   & !parameter 91-97 |
---|
843 |     0.003_wp, 0.006_wp, 0.012_wp, 0.018_wp, 1736000.0_wp,         & !parameter 98-102 |
---|
844 |     1736000.0_wp, 1736000.0_wp, 0.037_wp, 0.037_wp, 0.037_wp,       & !parameter 103-107 |
---|
845 |     0.8_wp, 0.6_wp, 27.0_wp, 0.0_wp, 0.0_wp, 1.5_wp,            & !parameter 108-113 |
---|
846 |     0.86_wp, 5.0_wp, 0.0_wp,                        & !parameter 114-116 |
---|
847 |     299.15_wp, 293.15_wp, 0.8_wp, 0.5_wp, 0.6_wp,             & !parameter 117-121 |
---|
848 |     0.1_wp, 0.5_wp, 0.8_wp, 2.5_wp, 80000.0_wp, 4.5_wp,          & !parameter 122-127 |
---|
849 |     100000.0_wp, 0.0_wp, 3.0_wp, 8.0_wp, 3.0_wp, 0.2_wp,          & !parameter 128-133- end of type 3 |
---|
850 |     20000.0_wp, 20000.0_wp, 20000.0_wp, 23.0_wp, 23.0_wp, 10.0_wp,     & !parameter 0-5 |
---|
851 |     1.0_wp, 0.005_wp, 0.01_wp, 0.39_wp, 0.63_wp, 2200000.0_wp,       & !parameter 6-11 |
---|
852 |     1400000.0_wp, 1300000.0_wp, 0.35_wp, 0.8_wp, 2.1_wp, 4.0_wp,      & !parameter 12-17 |
---|
853 |     0.01_wp, 0.001_wp, 0.55_wp,                      & !parameter 18-20 |
---|
854 |     0.005_wp, 0.01_wp, 0.39_wp, 0.63_wp, 2200000.0_wp,           & !parameter 21-25 |
---|
855 |     1400000.0_wp, 1300000.0_wp, 0.35_wp,                  & !parameter 26-28           |
---|
856 |     0.8_wp, 2.1_wp, 0.93_wp,                        & !parameter 29-31    |
---|
857 |     27.0_wp, 0.45_wp, 0.003_wp, 0.006_wp, 0.012_wp, 0.018_wp,       & !parameter 32-37 |
---|
858 |     1736000.0_wp, 1736000.0_wp, 1736000.0_wp,               & !parameter 38-40 |
---|
859 |     0.57_wp, 0.57_wp, 0.57_wp, 0.91_wp,                  & !parameter 41-44 |
---|
860 |     0.75_wp, 27.0_wp, 0.0_wp, 1.5_wp, 0.86_wp,               & !parameter 45-49 |
---|
861 |     5.0_wp, 0.001_wp, 0.0001_wp, 0.5_wp, 0.005_wp,             & !parameter 50-54 |
---|
862 |     0.01_wp, 0.39_wp, 0.63_wp, 2200000.0_wp,                & !parameter 55-58 |
---|
863 |     1400000.0_wp, 1300000.0_wp, 0.35_wp, 0.8_wp,              & !parameter 59-62 |
---|
864 |     2.1_wp, 0.93_wp, 27.0_wp, 0.5_wp,                   & !parameter 63-66 |
---|
865 |     0.003_wp, 0.006_wp, 0.012_wp, 0.018_wp,                & !parameter 67-70 |
---|
866 |     1736000.0_wp, 1736000.0_wp, 1736000.0_wp,               & !parameter 71-73 |
---|
867 |     0.57_wp, 0.57_wp, 0.57_wp, 0.91_wp, 0.75_wp,              & !parameter 74-78 |
---|
868 |     27.0_wp, 0.0_wp, 1.5_wp, 0.86_wp, 5.0_wp, 1.0_wp,           & !parameter 79-84 |
---|
869 |     0.005_wp, 0.01_wp, 0.39_wp, 0.63_wp, 2200000.0_wp, 1400000.0_wp,    & !parameter 85-90 |
---|
870 |     1300000.0_wp, 0.35_wp, 0.8_wp, 2.1_wp, 0.93_wp, 27.0_wp, 0.0_wp,    & !parameter 91-97 |
---|
871 |     0.003_wp, 0.006_wp, 0.012_wp, 0.018_wp, 1736000.0_wp,         & !parameter 98-102 |
---|
872 |     1736000.0_wp, 1736000.0_wp, 0.57_wp, 0.57_wp, 0.57_wp,         & !parameter 103-107 |
---|
873 |     0.91_wp, 0.75_wp, 27.0_wp, 0.0_wp, 0.0_wp, 1.5_wp,           & !parameter 108-113 |
---|
874 |     0.86_wp, 5.0_wp, 0.0_wp,                        & !parameter 114-116 |
---|
875 |     299.15_wp, 293.15_wp, 0.8_wp, 0.76_wp, 5.0_wp,             & !parameter 117-121 |
---|
876 |     0.1_wp, 1.5_wp, 0.0_wp, 3.5_wp, 370000.0_wp, 4.5_wp,          & !parameter 122-127 |
---|
877 |     100000.0_wp, 0.0_wp, 3.0_wp, 10.0_wp, 3.0_wp, 0.2_wp,         & !parameter 128-133- end of type 4 |
---|
878 |     20000.0_wp, 20000.0_wp, 20000.0_wp, 23.0_wp, 23.0_wp, 10.0_wp,     & !parameter 0-5 |
---|
879 |     1.0_wp, 0.005_wp, 0.01_wp, 0.31_wp, 0.43_wp, 2000000.0_wp,       & !parameter 6-11 |
---|
880 |     103000.0_wp, 900000.0_wp, 0.35_wp, 0.38_wp, 0.04_wp, 4.0_wp,      & !parameter 12-17 |
---|
881 |     0.01_wp, 0.001_wp, 0.55_wp,                      & !parameter 18-20 |
---|
882 |     0.005_wp, 0.01_wp, 0.31_wp, 0.43_wp, 2000000.0_wp,           & !parameter 21-25 |
---|
883 |     103000.0_wp, 900000.0_wp, 0.35_wp,                   & !parameter 26-28           |
---|
884 |     0.38_wp, 0.04_wp, 0.92_wp,                       & !parameter 29-31    |
---|
885 |     27.0_wp, 0.45_wp, 0.003_wp, 0.006_wp, 0.012_wp, 0.018_wp,       & !parameter 32-37 |
---|
886 |     1736000.0_wp, 1736000.0_wp, 1736000.0_wp,               & !parameter 38-40 |
---|
887 |     0.11_wp, 0.11_wp, 0.11_wp, 0.87_wp,                  & !parameter 41-44 |
---|
888 |     0.7_wp, 27.0_wp, 0.0_wp, 1.5_wp, 0.86_wp,               & !parameter 45-49 |
---|
889 |     5.0_wp, 0.001_wp, 0.0001_wp, 0.5_wp, 0.005_wp,             & !parameter 50-54 |
---|
890 |     0.01_wp, 0.31_wp, 0.43_wp, 2000000.0_wp,                & !parameter 55-58 |
---|
891 |     103000.0_wp, 900000.0_wp, 0.35_wp, 0.38_wp,              & !parameter 59-62 |
---|
892 |     0.04_wp, 0.92_wp, 27.0_wp, 0.5_wp,                   & !parameter 63-66 |
---|
893 |     0.003_wp, 0.006_wp, 0.012_wp, 0.018_wp,                & !parameter 67-70 |
---|
894 |     1736000.0_wp, 1736000.0_wp, 1736000.0_wp,               & !parameter 71-73 |
---|
895 |     0.11_wp, 0.11_wp, 0.11_wp, 0.87_wp, 0.7_wp,              & !parameter 74-78 |
---|
896 |     27.0_wp, 0.0_wp, 1.5_wp, 0.86_wp, 5.0_wp, 1.0_wp,           & !parameter 79-84 |
---|
897 |     0.005_wp, 0.01_wp, 0.31_wp, 0.43_wp, 2000000.0_wp, 103000.0_wp,    & !parameter 85-90 |
---|
898 |     900000.0_wp, 0.35_wp, 0.38_wp, 0.04_wp, 0.91_wp, 27.0_wp, 0.0_wp,   & !parameter 91-97 |
---|
899 |     0.003_wp, 0.006_wp, 0.012_wp, 0.018_wp, 1736000.0_wp,         & !parameter 98-102 |
---|
900 |     1736000.0_wp, 1736000.0_wp, 0.11_wp, 0.11_wp, 0.11_wp,         & !parameter 103-107 |
---|
901 |     0.87_wp, 0.7_wp, 27.0_wp, 0.0_wp, 0.0_wp, 1.5_wp,           & !parameter 108-113 |
---|
902 |     0.86_wp, 5.0_wp, 0.0_wp,                        & !parameter 114-116 |
---|
903 |     299.15_wp, 293.15_wp, 0.8_wp, 0.6_wp, 3.0_wp,             & !parameter 117-121 |
---|
904 |     0.1_wp, 1.5_wp, 0.65_wp, 2.5_wp, 165000.0_wp, 4.5_wp,         & !parameter 122-127 |
---|
905 |     100000.0_wp, 0.0_wp, 7.0_wp, 20.0_wp, 3.0_wp, 0.2_wp,         & !parameter 128-133- end of type 5 |
---|
906 |     20000.0_wp, 20000.0_wp, 20000.0_wp, 23.0_wp, 23.0_wp, 10.0_wp,     & !parameter 0-5 |
---|
907 |     1.0_wp, 0.005_wp, 0.01_wp, 0.41_wp, 0.7_wp, 2000000.0_wp,       & !parameter 6-11 |
---|
908 |     103000.0_wp, 900000.0_wp, 0.35_wp, 0.14_wp, 0.035_wp, 4.0_wp,     & !parameter 12-17 |
---|
909 |     0.01_wp, 0.001_wp, 0.475_wp,                      & !parameter 18-20 |
---|
910 |     0.005_wp, 0.01_wp, 0.41_wp, 0.7_wp, 2000000.0_wp,           & !parameter 21-25 |
---|
911 |     103000.0_wp, 900000.0_wp, 0.35_wp,                   & !parameter 26-28           |
---|
912 |     0.14_wp, 0.035_wp, 0.92_wp,                      & !parameter 29-31    |
---|
913 |     27.0_wp, 0.525_wp, 0.003_wp, 0.006_wp, 0.012_wp, 0.018_wp,       & !parameter 32-37 |
---|
914 |     1736000.0_wp, 1736000.0_wp, 1736000.0_wp,               & !parameter 38-40 |
---|
915 |     0.037_wp, 0.037_wp, 0.037_wp, 0.8_wp,                 & !parameter 41-44 |
---|
916 |     0.6_wp, 27.0_wp, 0.0_wp, 1.5_wp, 0.86_wp,               & !parameter 45-49 |
---|
917 |     5.0_wp, 0.001_wp, 0.0001_wp, 0.425_wp, 0.005_wp,            & !parameter 50-54 |
---|
918 |     0.01_wp, 0.41_wp, 0.7_wp, 2000000.0_wp,                & !parameter 55-58 |
---|
919 |     103000.0_wp, 900000.0_wp, 0.35_wp, 0.14_wp,              & !parameter 59-62 |
---|
920 |     0.035_wp, 0.92_wp, 27.0_wp, 0.575_wp,                 & !parameter 63-66 |
---|
921 |     0.003_wp, 0.006_wp, 0.012_wp, 0.018_wp,                & !parameter 67-70 |
---|
922 |     1736000.0_wp, 1736000.0_wp, 1736000.0_wp,               & !parameter 71-73 |
---|
923 |     0.037_wp, 0.037_wp, 0.037_wp, 0.8_wp, 0.6_wp,             & !parameter 74-78 |
---|
924 |     27.0_wp, 0.0_wp, 1.5_wp, 0.86_wp, 5.0_wp, 1.0_wp,           & !parameter 79-84 |
---|
925 |     0.005_wp, 0.01_wp, 0.41_wp, 0.7_wp, 2000000.0_wp, 103000.0_wp,     & !parameter 85-90 |
---|
926 |     900000.0_wp, 0.35_wp, 0.14_wp, 0.035_wp, 0.91_wp, 27.0_wp, 0.0_wp,   & !parameter 91-97 |
---|
927 |     0.003_wp, 0.006_wp, 0.012_wp, 0.018_wp, 1736000.0_wp,         & !parameter 98-102 |
---|
928 |     1736000.0_wp, 1736000.0_wp, 0.037_wp, 0.037_wp, 0.037_wp,       & !parameter 103-107 |
---|
929 |     0.8_wp, 0.6_wp, 27.0_wp, 0.0_wp, 0.0_wp, 1.5_wp,            & !parameter 108-113 |
---|
930 |     0.86_wp, 5.0_wp, 0.0_wp,                        & !parameter 114-116 |
---|
931 |     299.15_wp, 293.15_wp, 0.8_wp, 0.5_wp, 0.6_wp,             & !parameter 117-121 |
---|
932 |     0.1_wp, 1.5_wp, 0.9_wp, 2.5_wp, 80000.0_wp, 4.5_wp,          & !parameter 122-127 |
---|
933 |     100000.0_wp, 0.0_wp, 5.0_wp, 15.0_wp, 3.0_wp, 0.2_wp,         & !parameter 128-133- end of type 6  |
---|
934 |     20000.0_wp, 20000.0_wp, 20000.0_wp, 23.0_wp, 23.0_wp, 10.0_wp,     & !parameter 0-5 |
---|
935 |     1.0_wp, 0.29_wp, 0.295_wp, 0.695_wp, 0.985_wp, 1950400.0_wp,      & !parameter 6-11 |
---|
936 |     1848000.0_wp, 1848000.0_wp, 0.7_wp, 1.0_wp, 1.0_wp, 4.0_wp,      & !parameter 12-17 |
---|
937 |     0.01_wp, 0.001_wp, 1.0_wp,                       & !parameter 18-20 |
---|
938 |     0.29_wp, 0.295_wp, 0.695_wp, 0.985_wp, 1950400.0_wp,          & !parameter 21-25 |
---|
939 |     1848000.0_wp, 1848000.0_wp, 0.7_wp,                  & !parameter 26-28           |
---|
940 |     1.0_wp, 1.0_wp, 0.9_wp,                        & !parameter 29-31    |
---|
941 |     27.0_wp, 0.0_wp, 0.003_wp, 0.006_wp, 0.012_wp, 0.018_wp,        & !parameter 32-37 |
---|
942 |     1736000.0_wp, 1736000.0_wp, 1736000.0_wp,               & !parameter 38-40 |
---|
943 |     0.57_wp, 0.57_wp, 0.57_wp, 0.8_wp,                   & !parameter 41-44 |
---|
944 |     0.6_wp, 27.0_wp, 0.0_wp, 1.5_wp, 0.86_wp,               & !parameter 45-49 |
---|
945 |     5.0_wp, 0.001_wp, 0.0001_wp, 1.0_wp, 0.29_wp,             & !parameter 50-54 |
---|
946 |     0.295_wp, 0.695_wp, 0.985_wp, 1950400.0_wp,              & !parameter 55-58 |
---|
947 |     1848000.0_wp, 1848000.0_wp, 0.7_wp, 1.0_wp,              & !parameter 59-62 |
---|
948 |     1.0_wp, 0.9_wp, 27.0_wp, 0.0_wp,                    & !parameter 63-66 |
---|
949 |     0.003_wp, 0.006_wp, 0.012_wp, 0.018_wp,                & !parameter 67-70 |
---|
950 |     1736000.0_wp, 1736000.0_wp, 1736000.0_wp,               & !parameter 71-73 |
---|
951 |     0.57_wp, 0.57_wp, 0.57_wp, 0.8_wp, 0.6_wp,               & !parameter 74-78 |
---|
952 |     27.0_wp, 0.0_wp, 1.5_wp, 0.86_wp, 5.0_wp, 1.0_wp,           & !parameter 79-84 |
---|
953 |     0.29_wp, 0.295_wp, 0.695_wp, 0.985_wp, 1950400.0_wp, 1848000.0_wp,   & !parameter 85-90 |
---|
954 |     1848000.0_wp, 0.7_wp, 1.0_wp, 1.0_wp, 0.9_wp, 27.0_wp, 0.0_wp,     & !parameter 91-97 |
---|
955 |     0.003_wp, 0.006_wp, 0.012_wp, 0.018_wp, 1736000.0_wp,         & !parameter 98-102 |
---|
956 |     1736000.0_wp, 1736000.0_wp, 0.57_wp, 0.57_wp, 0.57_wp,         & !parameter 103-107 |
---|
957 |     0.8_wp, 0.6_wp, 27.0_wp, 0.0_wp, 0.0_wp, 1.5_wp,            & !parameter 108-113 |
---|
958 |     0.86_wp, 5.0_wp, 0.0_wp,                        & !parameter 114-116 |
---|
959 |     299.15_wp, 293.15_wp, 0.8_wp, 100.0_wp, 100.0_wp,           & !parameter 117-121 |
---|
960 |     20.0_wp, 20.0_wp, 0.0_wp, 1.0_wp, 1.0_wp, 4.5_wp,           & !parameter 122-127 |
---|
961 |     100000.0_wp, 0.0_wp, 0.0_wp, 0.0_wp, 3.0_wp, 0.2_wp          & !parameter 128-133- end of type 7 (bridge) |
---|
962 |                                     /),   & |
---|
963 |                                 (/134, 7/) ) |
---|
964 | |
---|
965 | ! |
---|
966 | !-- Type for surface temperatures at vertical walls. Is not necessary for horizontal walls. |
---|
967 | Â Â TYPE t_surf_vertical |
---|
968 |     REAL(wp), DIMENSION(:), ALLOCATABLE     :: t |
---|
969 | Â Â END TYPE t_surf_vertical |
---|
970 | ! |
---|
971 | !-- Type for wall temperatures at vertical walls. Is not necessary for horizontal walls. |
---|
972 | Â Â TYPE t_wall_vertical |
---|
973 |     REAL(wp), DIMENSION(:,:), ALLOCATABLE    :: t |
---|
974 | Â Â END TYPE t_wall_vertical |
---|
975 | |
---|
976 | Â Â TYPE surf_type_usm |
---|
977 |     REAL(wp), DIMENSION(:),  ALLOCATABLE :: var_usm_1d !< 1D prognostic variable |
---|
978 |     REAL(wp), DIMENSION(:,:), ALLOCATABLE :: var_usm_2d !< 2D prognostic variable |
---|
979 | Â Â END TYPE surf_type_usm |
---|
980 | Â Â |
---|
981 |   TYPE(surf_type_usm), POINTER :: m_liq_usm_h,    & !< liquid water reservoir (m), horizontal surface elements |
---|
982 |                    m_liq_usm_h_p     !< progn. liquid water reservoir (m), horizontal surface elements |
---|
983 | |
---|
984 |   TYPE(surf_type_usm), TARGET  :: m_liq_usm_h_1,   & !< |
---|
985 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â m_liq_usm_h_2Â Â Â Â Â !< |
---|
986 | |
---|
987 |   TYPE(surf_type_usm), DIMENSION(:), POINTER ::    & |
---|
988 |                    m_liq_usm_v,    & !< liquid water reservoir (m), vertical surface elements |
---|
989 |                    m_liq_usm_v_p     !< progn. liquid water reservoir (m), vertical surface elements |
---|
990 | |
---|
991 |   TYPE(surf_type_usm), DIMENSION(0:3), TARGET  ::   & |
---|
992 |                    m_liq_usm_v_1,   & !< |
---|
993 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â m_liq_usm_v_2Â Â Â Â Â !< |
---|
994 | |
---|
995 |   TYPE(surf_type_usm), TARGET :: tm_liq_usm_h_m   !< liquid water reservoir tendency (m), horizontal surface elements |
---|
996 |   TYPE(surf_type_usm), DIMENSION(0:3), TARGET :: tm_liq_usm_v_m   !< liquid water reservoir tendency (m), |
---|
997 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â !< vertical surface elements |
---|
998 | |
---|
999 | ! |
---|
1000 | !-- anthropogenic heat sources |
---|
1001 |   REAL(wp), DIMENSION(:,:,:), ALLOCATABLE    :: aheat       !< daily average of anthropogenic heat (W/m2) |
---|
1002 |   REAL(wp), DIMENSION(:,:), ALLOCATABLE     :: aheatprof     !< diurnal profiles of anthropogenic heat |
---|
1003 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â !< for particular layers |
---|
1004 | Â Â INTEGER(iwp)Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â ::Â naheatlayers =Â 1Â !< number of layers of anthropogenic heat |
---|
1005 | |
---|
1006 | ! |
---|
1007 | !-- wall surface model |
---|
1008 | !-- wall surface model constants |
---|
1009 |   INTEGER(iwp), PARAMETER            :: nzb_wall = 0    !< inner side of the wall model (to be switched) |
---|
1010 |   INTEGER(iwp), PARAMETER            :: nzt_wall = 3    !< outer side of the wall model (to be switched) |
---|
1011 |   INTEGER(iwp), PARAMETER            :: nzw = 4      !< number of wall layers (fixed for now) |
---|
1012 | |
---|
1013 |   REAL(wp), DIMENSION(nzb_wall:nzt_wall)     :: zwn_default    = (/0.0242_wp, 0.0969_wp, 0.346_wp, 1.0_wp /) |
---|
1014 |   REAL(wp), DIMENSION(nzb_wall:nzt_wall)     :: zwn_default_window = (/0.25_wp,  0.5_wp,  0.75_wp, 1.0_wp /) |
---|
1015 |   REAL(wp), DIMENSION(nzb_wall:nzt_wall)     :: zwn_default_green = (/0.25_wp,  0.5_wp,  0.75_wp, 1.0_wp /) |
---|
1016 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â !< normalized soil, wall and roof, window and |
---|
1017 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â !<green layer depths (m/m) |
---|
1018 | |
---|
1019 |   REAL(wp)                    :: wall_inner_temperature  = 295.0_wp  !< temperature of the inner wall |
---|
1020 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â !< surface (~22 degrees C) (K) |
---|
1021 |   REAL(wp)                    :: roof_inner_temperature  = 295.0_wp  !< temperature of the inner roof |
---|
1022 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â !< surface (~22 degrees C) (K) |
---|
1023 |   REAL(wp)                    :: soil_inner_temperature  = 288.0_wp  !< temperature of the deep soil |
---|
1024 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â !< (~15 degrees C) (K) |
---|
1025 |   REAL(wp)                    :: window_inner_temperature = 295.0_wp  !< temperature of the inner window |
---|
1026 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â !< surface (~22 degrees C) (K) |
---|
1027 | |
---|
1028 |   REAL(wp)                    :: m_total = 0.0_wp !< weighted total water content of the soil (m3/m3) |
---|
1029 | Â Â INTEGER(iwp)Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â ::Â soil_type |
---|
1030 | |
---|
1031 | ! |
---|
1032 | !-- surface and material model variables for walls, ground, roofs |
---|
1033 |   REAL(wp), DIMENSION(:), ALLOCATABLE      :: zwn        !< normalized wall layer depths (m) |
---|
1034 |   REAL(wp), DIMENSION(:), ALLOCATABLE      :: zwn_window     !< normalized window layer depths (m) |
---|
1035 |   REAL(wp), DIMENSION(:), ALLOCATABLE      :: zwn_green     !< normalized green layer depths (m) |
---|
1036 | |
---|
1037 |   REAL(wp), DIMENSION(:), POINTER        :: t_surf_wall_h |
---|
1038 |   REAL(wp), DIMENSION(:), POINTER        :: t_surf_wall_h_p |
---|
1039 |   REAL(wp), DIMENSION(:), POINTER        :: t_surf_window_h |
---|
1040 |   REAL(wp), DIMENSION(:), POINTER        :: t_surf_window_h_p |
---|
1041 |   REAL(wp), DIMENSION(:), POINTER        :: t_surf_green_h |
---|
1042 |   REAL(wp), DIMENSION(:), POINTER        :: t_surf_green_h_p |
---|
1043 | |
---|
1044 |   REAL(wp), DIMENSION(:), ALLOCATABLE, TARGET  :: t_surf_wall_h_1 |
---|
1045 |   REAL(wp), DIMENSION(:), ALLOCATABLE, TARGET  :: t_surf_wall_h_2 |
---|
1046 |   REAL(wp), DIMENSION(:), ALLOCATABLE, TARGET  :: t_surf_window_h_1 |
---|
1047 |   REAL(wp), DIMENSION(:), ALLOCATABLE, TARGET  :: t_surf_window_h_2 |
---|
1048 |   REAL(wp), DIMENSION(:), ALLOCATABLE, TARGET  :: t_surf_green_h_1 |
---|
1049 |   REAL(wp), DIMENSION(:), ALLOCATABLE, TARGET  :: t_surf_green_h_2 |
---|
1050 | |
---|
1051 |   TYPE(t_surf_vertical), DIMENSION(:), POINTER  :: t_surf_wall_v |
---|
1052 |   TYPE(t_surf_vertical), DIMENSION(:), POINTER  :: t_surf_wall_v_p |
---|
1053 |   TYPE(t_surf_vertical), DIMENSION(:), POINTER  :: t_surf_window_v |
---|
1054 |   TYPE(t_surf_vertical), DIMENSION(:), POINTER  :: t_surf_window_v_p |
---|
1055 |   TYPE(t_surf_vertical), DIMENSION(:), POINTER  :: t_surf_green_v |
---|
1056 |   TYPE(t_surf_vertical), DIMENSION(:), POINTER  :: t_surf_green_v_p |
---|
1057 | |
---|
1058 |   TYPE(t_surf_vertical), DIMENSION(0:3), TARGET :: t_surf_wall_v_1 |
---|
1059 |   TYPE(t_surf_vertical), DIMENSION(0:3), TARGET :: t_surf_wall_v_2 |
---|
1060 |   TYPE(t_surf_vertical), DIMENSION(0:3), TARGET :: t_surf_window_v_1 |
---|
1061 |   TYPE(t_surf_vertical), DIMENSION(0:3), TARGET :: t_surf_window_v_2 |
---|
1062 |   TYPE(t_surf_vertical), DIMENSION(0:3), TARGET :: t_surf_green_v_1 |
---|
1063 |   TYPE(t_surf_vertical), DIMENSION(0:3), TARGET :: t_surf_green_v_2 |
---|
1064 | |
---|
1065 | ! |
---|
1066 | !-- Energy balance variables |
---|
1067 | !-- parameters of the land, roof and wall surfaces |
---|
1068 | |
---|
1069 |   REAL(wp), DIMENSION(:,:), POINTER        :: t_wall_h, t_wall_h_p |
---|
1070 |   REAL(wp), DIMENSION(:,:), ALLOCATABLE, TARGET  :: t_wall_h_1, t_wall_h_2 |
---|
1071 |   REAL(wp), DIMENSION(:,:), POINTER        :: t_window_h, t_window_h_p |
---|
1072 |   REAL(wp), DIMENSION(:,:), ALLOCATABLE, TARGET  :: t_window_h_1, t_window_h_2 |
---|
1073 |   REAL(wp), DIMENSION(:,:), POINTER        :: t_green_h, t_green_h_p |
---|
1074 |   REAL(wp), DIMENSION(:,:), ALLOCATABLE, TARGET  :: t_green_h_1, t_green_h_2 |
---|
1075 |   REAL(wp), DIMENSION(:,:), POINTER        :: swc_h, rootfr_h, wilt_h, fc_h, swc_sat_h, swc_h_p, swc_res_h |
---|
1076 |   REAL(wp), DIMENSION(:,:), ALLOCATABLE, TARGET  :: swc_h_1, rootfr_h_1, & |
---|
1077 |                             wilt_h_1, fc_h_1, swc_sat_h_1, swc_h_2, swc_res_h_1 |
---|
1078 | Â Â |
---|
1079 | |
---|
1080 |   TYPE(t_wall_vertical), DIMENSION(:), POINTER  :: t_wall_v, t_wall_v_p |
---|
1081 |   TYPE(t_wall_vertical), DIMENSION(0:3), TARGET :: t_wall_v_1, t_wall_v_2 |
---|
1082 |   TYPE(t_wall_vertical), DIMENSION(:), POINTER  :: t_window_v, t_window_v_p |
---|
1083 |   TYPE(t_wall_vertical), DIMENSION(0:3), TARGET :: t_window_v_1, t_window_v_2 |
---|
1084 |   TYPE(t_wall_vertical), DIMENSION(:), POINTER  :: t_green_v, t_green_v_p |
---|
1085 |   TYPE(t_wall_vertical), DIMENSION(0:3), TARGET :: t_green_v_1, t_green_v_2 |
---|
1086 |   TYPE(t_wall_vertical), DIMENSION(:), POINTER  :: swc_v, swc_v_p |
---|
1087 |   TYPE(t_wall_vertical), DIMENSION(0:3), TARGET :: swc_v_1, swc_v_2 |
---|
1088 | |
---|
1089 | ! |
---|
1090 | !-- Surface and material parameters classes (surface_type) |
---|
1091 | !-- albedo, emissivity, lambda_surf, roughness, thickness, volumetric heat capacity, thermal conductivity |
---|
1092 |   INTEGER(iwp)                  :: n_surface_types    !< number of the wall type categories |
---|
1093 |   INTEGER(iwp), PARAMETER            :: n_surface_params = 9 !< number of parameters for each type of the wall |
---|
1094 |   INTEGER(iwp), PARAMETER            :: ialbedo = 1     !< albedo of the surface |
---|
1095 |   INTEGER(iwp), PARAMETER            :: iemiss  = 2     !< emissivity of the surface |
---|
1096 |   INTEGER(iwp), PARAMETER            :: ilambdas = 3     !< heat conductivity lambda S between surface |
---|
1097 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â !< and material ( W m-2 K-1 ) |
---|
1098 |   INTEGER(iwp), PARAMETER            :: irough  = 4     !< roughness length z0 for movements |
---|
1099 |   INTEGER(iwp), PARAMETER            :: iroughh = 5     !< roughness length z0h for scalars |
---|
1100 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â !< (heat, humidity,...) |
---|
1101 |   INTEGER(iwp), PARAMETER            :: icsurf  = 6     !< Surface skin layer heat capacity (J m-2 K-1 ) |
---|
1102 |   INTEGER(iwp), PARAMETER            :: ithick  = 7     !< thickness of the surface (wall, roof, land) ( m ) |
---|
1103 |   INTEGER(iwp), PARAMETER            :: irhoC  = 8     !< volumetric heat capacity rho*C of |
---|
1104 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â !< the material ( J m-3 K-1 ) |
---|
1105 |   INTEGER(iwp), PARAMETER            :: ilambdah = 9     !< thermal conductivity lambda H |
---|
1106 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â !< of the wall (W m-1 K-1 ) |
---|
1107 |   CHARACTER(12), DIMENSION(:), ALLOCATABLE    :: surface_type_names  !< names of wall types (used only for reports) |
---|
1108 |   INTEGER(iwp), DIMENSION(:), ALLOCATABLE    :: surface_type_codes  !< codes of wall types |
---|
1109 |   REAL(wp), DIMENSION(:,:), ALLOCATABLE     :: surface_params    !< parameters of wall types |
---|
1110 | |
---|
1111 | ! |
---|
1112 | !-- interfaces of subroutines accessed from outside of this module |
---|
1113 | Â Â INTERFACE usm_3d_data_averaging |
---|
1114 | Â Â Â Â MODULE PROCEDURE usm_3d_data_averaging |
---|
1115 | Â Â END INTERFACE usm_3d_data_averaging |
---|
1116 | |
---|
1117 | Â Â INTERFACE usm_boundary_condition |
---|
1118 | Â Â Â Â MODULE PROCEDURE usm_boundary_condition |
---|
1119 | Â Â END INTERFACE usm_boundary_condition |
---|
1120 | |
---|
1121 | Â Â INTERFACE usm_check_data_output |
---|
1122 | Â Â Â Â MODULE PROCEDURE usm_check_data_output |
---|
1123 | Â Â END INTERFACE usm_check_data_output |
---|
1124 | Â Â |
---|
1125 | Â Â INTERFACE usm_check_parameters |
---|
1126 | Â Â Â Â MODULE PROCEDURE usm_check_parameters |
---|
1127 | Â Â END INTERFACE usm_check_parameters |
---|
1128 | Â Â |
---|
1129 | Â Â INTERFACE usm_data_output_3d |
---|
1130 | Â Â Â Â MODULE PROCEDURE usm_data_output_3d |
---|
1131 | Â Â END INTERFACE usm_data_output_3d |
---|
1132 | Â Â |
---|
1133 | Â Â INTERFACE usm_define_netcdf_grid |
---|
1134 | Â Â Â Â MODULE PROCEDURE usm_define_netcdf_grid |
---|
1135 | Â Â END INTERFACE usm_define_netcdf_grid |
---|
1136 | |
---|
1137 | Â Â INTERFACE usm_init |
---|
1138 | Â Â Â Â MODULE PROCEDURE usm_init |
---|
1139 | Â Â END INTERFACE usm_init |
---|
1140 | |
---|
1141 | Â Â INTERFACE usm_init_arrays |
---|
1142 | Â Â Â Â MODULE PROCEDURE usm_init_arrays |
---|
1143 | Â Â END INTERFACE usm_init_arrays |
---|
1144 | |
---|
1145 | Â Â INTERFACE usm_material_heat_model |
---|
1146 | Â Â Â Â MODULE PROCEDURE usm_material_heat_model |
---|
1147 | Â Â END INTERFACE usm_material_heat_model |
---|
1148 | Â Â |
---|
1149 | Â Â INTERFACE usm_green_heat_model |
---|
1150 | Â Â Â Â MODULE PROCEDURE usm_green_heat_model |
---|
1151 | Â Â END INTERFACE usm_green_heat_model |
---|
1152 | Â Â |
---|
1153 | Â Â INTERFACE usm_parin |
---|
1154 | Â Â Â Â MODULE PROCEDURE usm_parin |
---|
1155 | Â Â END INTERFACE usm_parin |
---|
1156 | |
---|
1157 | Â Â INTERFACE usm_rrd_local |
---|
1158 | Â Â Â Â MODULE PROCEDURE usm_rrd_local |
---|
1159 | Â Â END INTERFACE usm_rrd_local |
---|
1160 | |
---|
1161 | Â Â INTERFACE usm_surface_energy_balance |
---|
1162 | Â Â Â Â MODULE PROCEDURE usm_surface_energy_balance |
---|
1163 | Â Â END INTERFACE usm_surface_energy_balance |
---|
1164 | Â Â |
---|
1165 | Â Â INTERFACE usm_swap_timelevel |
---|
1166 | Â Â Â Â MODULE PROCEDURE usm_swap_timelevel |
---|
1167 | Â Â END INTERFACE usm_swap_timelevel |
---|
1168 | Â Â Â Â |
---|
1169 | Â Â INTERFACE usm_wrd_local |
---|
1170 | Â Â Â Â MODULE PROCEDURE usm_wrd_local |
---|
1171 | Â Â END INTERFACE usm_wrd_local |
---|
1172 | |
---|
1173 | Â Â |
---|
1174 | Â Â SAVE |
---|
1175 | |
---|
1176 | Â Â PRIVATEÂ |
---|
1177 | |
---|
1178 | ! |
---|
1179 | !-- Public functions |
---|
1180 |   PUBLIC usm_boundary_condition, usm_check_parameters, usm_init,        & |
---|
1181 |       usm_rrd_local,                            & |
---|
1182 |       usm_surface_energy_balance, usm_material_heat_model,         & |
---|
1183 |       usm_swap_timelevel, usm_check_data_output, usm_3d_data_averaging,   & |
---|
1184 |       usm_data_output_3d, usm_define_netcdf_grid, usm_parin,        & |
---|
1185 |       usm_wrd_local, usm_init_arrays |
---|
1186 | |
---|
1187 | ! |
---|
1188 | !-- Public parameters, constants and initial values |
---|
1189 |   PUBLIC usm_anthropogenic_heat, usm_material_model, usm_wall_mod, & |
---|
1190 |       usm_green_heat_model, building_pars,           & |
---|
1191 |       nzb_wall, nzt_wall, t_wall_h, t_wall_v,          & |
---|
1192 |       t_window_h, t_window_v, building_type |
---|
1193 | |
---|
1194 | |
---|
1195 | |
---|
1196 | Â CONTAINS |
---|
1197 | |
---|
1198 | !------------------------------------------------------------------------------! |
---|
1199 | ! Description: |
---|
1200 | ! ------------ |
---|
1201 | !> This subroutine creates the necessary indices of the urban surfaces |
---|
1202 | !> and plant canopy and it allocates the needed arrays for USM |
---|
1203 | !------------------------------------------------------------------------------! |
---|
1204 | Â Â SUBROUTINE usm_init_arrays |
---|
1205 | Â Â |
---|
1206 | Â Â Â Â IMPLICIT NONE |
---|
1207 | Â Â Â Â |
---|
1208 | Â Â Â Â INTEGER(iwp)Â ::Â l |
---|
1209 | |
---|
1210 |     CALL location_message( 'initializing and allocating urban surfaces', .FALSE. ) |
---|
1211 | |
---|
1212 | ! |
---|
1213 | !--Â Â Â Allocate radiation arrays which are part of the new data type. |
---|
1214 | !--Â Â Â For horizontal surfaces. |
---|
1215 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%surfhf(1:surf_usm_h%ns)Â Â ) |
---|
1216 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%rad_net_l(1:surf_usm_h%ns)Â ) |
---|
1217 | ! |
---|
1218 | !--Â Â Â For vertical surfaces |
---|
1219 |     DO l = 0, 3 |
---|
1220 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%surfhf(1:surf_usm_v(l)%ns)Â Â ) |
---|
1221 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%rad_net_l(1:surf_usm_v(l)%ns)Â ) |
---|
1222 | Â Â Â Â ENDDO |
---|
1223 | |
---|
1224 | ! |
---|
1225 | !--Â Â Â Wall surface model |
---|
1226 | !--Â Â Â allocate arrays for wall surface model and define pointers |
---|
1227 | !--Â Â Â allocate array of wall types and wall parameters |
---|
1228 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%surface_types(1:surf_usm_h%ns)Â Â Â ) |
---|
1229 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%building_type(1:surf_usm_h%ns)Â Â Â ) |
---|
1230 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%building_type_name(1:surf_usm_h%ns)Â ) |
---|
1231 |     surf_usm_h%building_type   = 0 |
---|
1232 | Â Â Â Â surf_usm_h%building_type_name =Â 'none' |
---|
1233 |     DO l = 0, 3 |
---|
1234 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%surface_types(1:surf_usm_v(l)%ns)Â Â Â ) |
---|
1235 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%building_type(1:surf_usm_v(l)%ns)Â Â Â ) |
---|
1236 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%building_type_name(1:surf_usm_v(l)%ns)Â ) |
---|
1237 |       surf_usm_v(l)%building_type   = 0 |
---|
1238 | Â Â Â Â Â Â surf_usm_v(l)%building_type_name =Â 'none' |
---|
1239 | Â Â Â Â ENDDO |
---|
1240 | ! |
---|
1241 | !--Â Â Â Allocate albedo_type and albedo. Each surface element |
---|
1242 | !--Â Â Â has 3 values, 0: wall fraction, 1: green fraction, 2: window fraction. |
---|
1243 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%albedo_type(0:2,1:surf_usm_h%ns)Â ) |
---|
1244 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%albedo(0:2,1:surf_usm_h%ns)Â Â Â ) |
---|
1245 | Â Â Â Â surf_usm_h%albedo_type =Â albedo_type |
---|
1246 |     DO l = 0, 3 |
---|
1247 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%albedo_type(0:2,1:surf_usm_v(l)%ns)Â ) |
---|
1248 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%albedo(0:2,1:surf_usm_v(l)%ns)Â Â Â ) |
---|
1249 | Â Â Â Â Â Â surf_usm_v(l)%albedo_type =Â albedo_type |
---|
1250 | Â Â Â Â ENDDOÂ Â Â Â |
---|
1251 | |
---|
1252 | ! |
---|
1253 | !--Â Â Â Allocate indoor target temperature for summer and winter |
---|
1254 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%target_temp_summer(1:surf_usm_h%ns)Â ) |
---|
1255 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%target_temp_winter(1:surf_usm_h%ns)Â ) |
---|
1256 |     DO l = 0, 3 |
---|
1257 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%target_temp_summer(1:surf_usm_v(l)%ns)Â ) |
---|
1258 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%target_temp_winter(1:surf_usm_v(l)%ns)Â ) |
---|
1259 | Â Â Â Â ENDDOÂ Â |
---|
1260 | ! |
---|
1261 | !--Â Â Â Allocate flag indicating ground floor level surface elements |
---|
1262 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%ground_level(1:surf_usm_h%ns)Â )Â |
---|
1263 |     DO l = 0, 3 |
---|
1264 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%ground_level(1:surf_usm_v(l)%ns)Â ) |
---|
1265 | Â Â Â Â ENDDOÂ Â |
---|
1266 | ! |
---|
1267 | !--Â Â Â Allocate arrays for relative surface fraction. |
---|
1268 | !--Â Â Â 0 - wall fraction, 1 - green fraction, 2 - window fraction |
---|
1269 | Â Â Â Â Â ALLOCATEÂ (Â surf_usm_h%frac(0:2,1:surf_usm_h%ns)Â ) |
---|
1270 | Â Â Â Â Â surf_usm_h%frac =Â 0.0_wp |
---|
1271 |      DO l = 0, 3 |
---|
1272 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%frac(0:2,1:surf_usm_v(l)%ns)Â ) |
---|
1273 | Â Â Â Â Â Â surf_usm_v(l)%frac =Â 0.0_wp |
---|
1274 | Â Â Â Â Â ENDDO |
---|
1275 | |
---|
1276 | ! |
---|
1277 | !--Â Â Â wall and roof surface parameters. First for horizontal surfaces |
---|
1278 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%isroof_surf(1:surf_usm_h%ns)Â Â Â Â ) |
---|
1279 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%lambda_surf(1:surf_usm_h%ns)Â Â Â Â ) |
---|
1280 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%lambda_surf_window(1:surf_usm_h%ns)Â ) |
---|
1281 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%lambda_surf_green(1:surf_usm_h%ns)Â ) |
---|
1282 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%c_surface(1:surf_usm_h%ns)Â Â Â Â Â ) |
---|
1283 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%c_surface_window(1:surf_usm_h%ns)Â Â ) |
---|
1284 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%c_surface_green(1:surf_usm_h%ns)Â Â ) |
---|
1285 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%transmissivity(1:surf_usm_h%ns)Â Â Â ) |
---|
1286 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%lai(1:surf_usm_h%ns)Â Â Â Â Â Â Â Â ) |
---|
1287 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%emissivity(0:2,1:surf_usm_h%ns)Â Â Â ) |
---|
1288 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%r_a(1:surf_usm_h%ns)Â Â Â Â Â Â Â Â ) |
---|
1289 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%r_a_green(1:surf_usm_h%ns)Â Â Â Â Â ) |
---|
1290 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%r_a_window(1:surf_usm_h%ns)Â Â Â Â Â ) |
---|
1291 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%green_type_roof(1:surf_usm_h%ns)Â Â ) |
---|
1292 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%r_s(1:surf_usm_h%ns)Â Â Â Â Â Â Â Â ) |
---|
1293 | Â Â Â Â |
---|
1294 | ! |
---|
1295 | !--Â Â Â For vertical surfaces. |
---|
1296 |     DO l = 0, 3 |
---|
1297 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%lambda_surf(1:surf_usm_v(l)%ns)Â Â Â Â ) |
---|
1298 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%c_surface(1:surf_usm_v(l)%ns)Â Â Â Â Â ) |
---|
1299 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%lambda_surf_window(1:surf_usm_v(l)%ns)Â ) |
---|
1300 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%c_surface_window(1:surf_usm_v(l)%ns)Â Â ) |
---|
1301 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%lambda_surf_green(1:surf_usm_v(l)%ns)Â ) |
---|
1302 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%c_surface_green(1:surf_usm_v(l)%ns)Â Â ) |
---|
1303 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%transmissivity(1:surf_usm_v(l)%ns)Â Â Â ) |
---|
1304 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%lai(1:surf_usm_v(l)%ns)Â Â Â Â Â Â Â Â ) |
---|
1305 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%emissivity(0:2,1:surf_usm_v(l)%ns)Â Â Â ) |
---|
1306 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%r_a(1:surf_usm_v(l)%ns)Â Â Â Â Â Â Â Â ) |
---|
1307 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%r_a_green(1:surf_usm_v(l)%ns)Â Â Â Â Â ) |
---|
1308 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%r_a_window(1:surf_usm_v(l)%ns)Â Â Â Â Â )Â Â Â Â Â Â |
---|
1309 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%r_s(1:surf_usm_v(l)%ns)Â Â Â Â Â Â Â Â ) |
---|
1310 | Â Â Â Â ENDDO |
---|
1311 | |
---|
1312 | !    |
---|
1313 | !--Â Â Â allocate wall and roof material parameters. First for horizontal surfaces |
---|
1314 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%thickness_wall(1:surf_usm_h%ns)Â Â Â Â Â Â Â Â Â Â ) |
---|
1315 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%thickness_window(1:surf_usm_h%ns)Â Â Â Â Â Â Â Â Â ) |
---|
1316 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%thickness_green(1:surf_usm_h%ns)Â Â Â Â Â Â Â Â Â Â ) |
---|
1317 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%lambda_h(nzb_wall:nzt_wall,1:surf_usm_h%ns)Â Â Â Â ) |
---|
1318 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%rho_c_wall(nzb_wall:nzt_wall,1:surf_usm_h%ns)Â Â Â ) |
---|
1319 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%lambda_h_window(nzb_wall:nzt_wall,1:surf_usm_h%ns)Â ) |
---|
1320 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%rho_c_window(nzb_wall:nzt_wall,1:surf_usm_h%ns)Â Â ) |
---|
1321 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%lambda_h_green(nzb_wall:nzt_wall,1:surf_usm_h%ns)Â ) |
---|
1322 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%rho_c_green(nzb_wall:nzt_wall,1:surf_usm_h%ns)Â Â Â ) |
---|
1323 | |
---|
1324 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%rho_c_total_green(nzb_wall:nzt_wall,1:surf_usm_h%ns)Â Â ) |
---|
1325 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%n_vg_green(1:surf_usm_h%ns)Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â ) |
---|
1326 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%alpha_vg_green(1:surf_usm_h%ns)Â Â Â Â Â Â Â Â Â Â Â Â Â ) |
---|
1327 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%l_vg_green(1:surf_usm_h%ns)Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â ) |
---|
1328 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%gamma_w_green_sat(nzb_wall:nzt_wall+1,1:surf_usm_h%ns)Â ) |
---|
1329 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%lambda_w_green(nzb_wall:nzt_wall,1:surf_usm_h%ns)Â Â Â Â ) |
---|
1330 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%gamma_w_green(nzb_wall:nzt_wall,1:surf_usm_h%ns)Â Â Â Â ) |
---|
1331 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%tswc_h_m(nzb_wall:nzt_wall,1:surf_usm_h%ns)Â Â Â Â Â Â Â ) |
---|
1332 | |
---|
1333 | ! |
---|
1334 | !--Â Â Â For vertical surfaces. |
---|
1335 |     DO l = 0, 3 |
---|
1336 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%thickness_wall(1:surf_usm_v(l)%ns)Â Â Â Â Â Â Â Â Â Â ) |
---|
1337 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%thickness_window(1:surf_usm_v(l)%ns)Â Â Â Â Â Â Â Â Â ) |
---|
1338 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%thickness_green(1:surf_usm_v(l)%ns)Â Â Â Â Â Â Â Â Â Â ) |
---|
1339 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%lambda_h(nzb_wall:nzt_wall,1:surf_usm_v(l)%ns)Â Â Â Â ) |
---|
1340 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%rho_c_wall(nzb_wall:nzt_wall,1:surf_usm_v(l)%ns)Â Â Â ) |
---|
1341 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%lambda_h_window(nzb_wall:nzt_wall,1:surf_usm_v(l)%ns)Â ) |
---|
1342 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%rho_c_window(nzb_wall:nzt_wall,1:surf_usm_v(l)%ns)Â Â ) |
---|
1343 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%lambda_h_green(nzb_wall:nzt_wall,1:surf_usm_v(l)%ns)Â ) |
---|
1344 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%rho_c_green(nzb_wall:nzt_wall,1:surf_usm_v(l)%ns)Â Â Â ) |
---|
1345 | Â Â Â Â ENDDO |
---|
1346 | |
---|
1347 | ! |
---|
1348 | !--Â Â Â allocate green wall and roof vegetation and soil parameters. First horizontal surfaces |
---|
1349 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%g_d(1:surf_usm_h%ns)Â Â Â Â Â Â Â ) |
---|
1350 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%c_liq(1:surf_usm_h%ns)Â Â Â Â Â Â ) |
---|
1351 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%qsws_liq(1:surf_usm_h%ns)Â Â Â Â Â ) |
---|
1352 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%qsws_veg(1:surf_usm_h%ns)Â Â Â Â Â ) |
---|
1353 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%r_canopy(1:surf_usm_h%ns)Â Â Â Â Â ) |
---|
1354 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%r_canopy_min(1:surf_usm_h%ns)Â Â Â ) |
---|
1355 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%qsws_eb(1:surf_usm_h%ns)Â Â Â Â Â ) |
---|
1356 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%pt_10cm(1:surf_usm_h%ns)Â Â Â Â Â )Â |
---|
1357 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%pt_2m(1:surf_usm_h%ns)Â Â Â Â Â Â )Â |
---|
1358 | |
---|
1359 | ! |
---|
1360 | !--Â Â Â For vertical surfaces. |
---|
1361 |     DO l = 0, 3 |
---|
1362 | Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%g_d(1:surf_usm_v(l)%ns)Â Â Â Â Â Â Â ) |
---|
1363 | Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%c_liq(1:surf_usm_v(l)%ns)Â Â Â Â Â Â ) |
---|
1364 | Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%qsws_liq(1:surf_usm_v(l)%ns)Â Â Â Â Â ) |
---|
1365 | Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%qsws_veg(1:surf_usm_v(l)%ns)Â Â Â Â Â ) |
---|
1366 | Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%qsws_eb(1:surf_usm_v(l)%ns)Â Â Â Â Â ) |
---|
1367 | Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%r_canopy(1:surf_usm_v(l)%ns)Â Â Â Â Â ) |
---|
1368 | Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%r_canopy_min(1:surf_usm_v(l)%ns)Â Â Â ) |
---|
1369 | Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%pt_10cm(1:surf_usm_v(l)%ns)Â Â Â Â Â ) |
---|
1370 | Â Â Â Â ENDDO |
---|
1371 | |
---|
1372 | ! |
---|
1373 | !--Â Â Â allocate wall and roof layers sizes. For horizontal surfaces. |
---|
1374 | Â Â Â Â ALLOCATEÂ (Â zwn(nzb_wall:nzt_wall)Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â ) |
---|
1375 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%dz_wall(nzb_wall:nzt_wall+1,1:surf_usm_h%ns)Â Â Â Â ) |
---|
1376 | Â Â Â Â ALLOCATEÂ (Â zwn_window(nzb_wall:nzt_wall)Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â ) |
---|
1377 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%dz_window(nzb_wall:nzt_wall+1,1:surf_usm_h%ns)Â Â Â ) |
---|
1378 | Â Â Â Â ALLOCATEÂ (Â zwn_green(nzb_wall:nzt_wall)Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â ) |
---|
1379 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%dz_green(nzb_wall:nzt_wall+1,1:surf_usm_h%ns)Â Â Â ) |
---|
1380 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%ddz_wall(nzb_wall:nzt_wall+1,1:surf_usm_h%ns)Â Â Â ) |
---|
1381 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%dz_wall_stag(nzb_wall:nzt_wall,1:surf_usm_h%ns)Â Â ) |
---|
1382 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%ddz_wall_stag(nzb_wall:nzt_wall,1:surf_usm_h%ns)Â Â ) |
---|
1383 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%zw(nzb_wall:nzt_wall,1:surf_usm_h%ns)Â Â Â Â Â Â Â ) |
---|
1384 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%ddz_window(nzb_wall:nzt_wall+1,1:surf_usm_h%ns)Â Â ) |
---|
1385 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%dz_window_stag(nzb_wall:nzt_wall,1:surf_usm_h%ns)Â ) |
---|
1386 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%ddz_window_stag(nzb_wall:nzt_wall,1:surf_usm_h%ns)Â ) |
---|
1387 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%zw_window(nzb_wall:nzt_wall,1:surf_usm_h%ns)Â Â Â Â ) |
---|
1388 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%ddz_green(nzb_wall:nzt_wall+1,1:surf_usm_h%ns)Â Â Â ) |
---|
1389 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%dz_green_stag(nzb_wall:nzt_wall,1:surf_usm_h%ns)Â Â ) |
---|
1390 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%ddz_green_stag(nzb_wall:nzt_wall,1:surf_usm_h%ns)Â ) |
---|
1391 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%zw_green(nzb_wall:nzt_wall,1:surf_usm_h%ns)Â Â Â Â ) |
---|
1392 | |
---|
1393 | ! |
---|
1394 | !--Â Â Â For vertical surfaces. |
---|
1395 |     DO l = 0, 3 |
---|
1396 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%dz_wall(nzb_wall:nzt_wall+1,1:surf_usm_v(l)%ns)Â Â Â Â ) |
---|
1397 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%dz_window(nzb_wall:nzt_wall+1,1:surf_usm_v(l)%ns)Â Â Â ) |
---|
1398 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%dz_green(nzb_wall:nzt_wall+1,1:surf_usm_v(l)%ns)Â Â Â ) |
---|
1399 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%ddz_wall(nzb_wall:nzt_wall+1,1:surf_usm_v(l)%ns)Â Â Â ) |
---|
1400 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%dz_wall_stag(nzb_wall:nzt_wall,1:surf_usm_v(l)%ns)Â Â ) |
---|
1401 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%ddz_wall_stag(nzb_wall:nzt_wall,1:surf_usm_v(l)%ns)Â Â ) |
---|
1402 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%zw(nzb_wall:nzt_wall,1:surf_usm_v(l)%ns)Â Â Â Â Â Â Â ) |
---|
1403 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%ddz_window(nzb_wall:nzt_wall+1,1:surf_usm_v(l)%ns)Â Â ) |
---|
1404 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%dz_window_stag(nzb_wall:nzt_wall,1:surf_usm_v(l)%ns)Â ) |
---|
1405 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%ddz_window_stag(nzb_wall:nzt_wall,1:surf_usm_v(l)%ns)Â ) |
---|
1406 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%zw_window(nzb_wall:nzt_wall,1:surf_usm_v(l)%ns)Â Â Â Â ) |
---|
1407 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%ddz_green(nzb_wall:nzt_wall+1,1:surf_usm_v(l)%ns)Â Â Â ) |
---|
1408 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%dz_green_stag(nzb_wall:nzt_wall,1:surf_usm_v(l)%ns)Â Â ) |
---|
1409 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%ddz_green_stag(nzb_wall:nzt_wall,1:surf_usm_v(l)%ns)Â ) |
---|
1410 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%zw_green(nzb_wall:nzt_wall,1:surf_usm_v(l)%ns)Â Â Â Â ) |
---|
1411 | Â Â Â Â ENDDO |
---|
1412 | |
---|
1413 | ! |
---|
1414 | !--Â Â Â allocate wall and roof temperature arrays, for horizontal walls |
---|
1415 | ! |
---|
1416 | !--Â Â Â Allocate if required. Note, in case of restarts, some of these arrays |
---|
1417 | !--Â Â Â might be already allocated. |
---|
1418 |     IF ( .NOT. ALLOCATED( t_surf_wall_h_1 ) )               & |
---|
1419 | Â Â Â Â Â Â ALLOCATEÂ (Â t_surf_wall_h_1(1:surf_usm_h%ns)Â ) |
---|
1420 |     IF ( .NOT. ALLOCATED( t_surf_wall_h_2 ) )               & |
---|
1421 | Â Â Â Â Â Â ALLOCATEÂ (Â t_surf_wall_h_2(1:surf_usm_h%ns)Â ) |
---|
1422 |     IF ( .NOT. ALLOCATED( t_wall_h_1 ) )                  &      |
---|
1423 | Â Â Â Â Â Â ALLOCATEÂ (Â t_wall_h_1(nzb_wall:nzt_wall+1,1:surf_usm_h%ns)Â )Â |
---|
1424 |     IF ( .NOT. ALLOCATED( t_wall_h_2 ) )                  &      |
---|
1425 | Â Â Â Â Â Â ALLOCATEÂ (Â t_wall_h_2(nzb_wall:nzt_wall+1,1:surf_usm_h%ns)Â )Â Â Â Â Â |
---|
1426 |     IF ( .NOT. ALLOCATED( t_surf_window_h_1 ) )              & |
---|
1427 | Â Â Â Â Â Â ALLOCATEÂ (Â t_surf_window_h_1(1:surf_usm_h%ns)Â ) |
---|
1428 |     IF ( .NOT. ALLOCATED( t_surf_window_h_2 ) )              & |
---|
1429 | Â Â Â Â Â Â ALLOCATEÂ (Â t_surf_window_h_2(1:surf_usm_h%ns)Â ) |
---|
1430 |     IF ( .NOT. ALLOCATED( t_window_h_1 ) )                 &      |
---|
1431 | Â Â Â Â Â Â ALLOCATEÂ (Â t_window_h_1(nzb_wall:nzt_wall+1,1:surf_usm_h%ns)Â )Â |
---|
1432 |     IF ( .NOT. ALLOCATED( t_window_h_2 ) )                 &      |
---|
1433 | Â Â Â Â Â Â ALLOCATEÂ (Â t_window_h_2(nzb_wall:nzt_wall+1,1:surf_usm_h%ns)Â )Â Â Â Â Â |
---|
1434 |     IF ( .NOT. ALLOCATED( t_surf_green_h_1 ) )               & |
---|
1435 | Â Â Â Â Â Â ALLOCATEÂ (Â t_surf_green_h_1(1:surf_usm_h%ns)Â ) |
---|
1436 |     IF ( .NOT. ALLOCATED( t_surf_green_h_2 ) )               & |
---|
1437 | Â Â Â Â Â Â ALLOCATEÂ (Â t_surf_green_h_2(1:surf_usm_h%ns)Â ) |
---|
1438 |     IF ( .NOT. ALLOCATED( t_green_h_1 ) )                 &      |
---|
1439 | Â Â Â Â Â Â ALLOCATEÂ (Â t_green_h_1(nzb_wall:nzt_wall+1,1:surf_usm_h%ns)Â )Â |
---|
1440 |     IF ( .NOT. ALLOCATED( t_green_h_2 ) )                 &      |
---|
1441 | Â Â Â Â Â Â ALLOCATEÂ (Â t_green_h_2(nzb_wall:nzt_wall+1,1:surf_usm_h%ns)Â )Â Â Â Â Â |
---|
1442 |     IF ( .NOT. ALLOCATED( swc_h_1 ) )                   &      |
---|
1443 | Â Â Â Â Â Â ALLOCATEÂ (Â swc_h_1(nzb_wall:nzt_wall+1,1:surf_usm_h%ns)Â )Â |
---|
1444 |     IF ( .NOT. ALLOCATED( swc_sat_h_1 ) )                 &      |
---|
1445 | Â Â Â Â Â Â ALLOCATEÂ (Â swc_sat_h_1(nzb_wall:nzt_wall+1,1:surf_usm_h%ns)Â )Â |
---|
1446 |     IF ( .NOT. ALLOCATED( swc_res_h_1 ) )                 &      |
---|
1447 | Â Â Â Â Â Â ALLOCATEÂ (Â swc_res_h_1(nzb_wall:nzt_wall+1,1:surf_usm_h%ns)Â )Â |
---|
1448 |     IF ( .NOT. ALLOCATED( swc_h_2 ) )                   &      |
---|
1449 | Â Â Â Â Â Â ALLOCATEÂ (Â swc_h_2(nzb_wall:nzt_wall+1,1:surf_usm_h%ns)Â ) |
---|
1450 |     IF ( .NOT. ALLOCATED( rootfr_h_1 ) )                  &      |
---|
1451 | Â Â Â Â Â Â ALLOCATEÂ (Â rootfr_h_1(nzb_wall:nzt_wall+1,1:surf_usm_h%ns)Â )Â |
---|
1452 |     IF ( .NOT. ALLOCATED( wilt_h_1 ) )                   &      |
---|
1453 | Â Â Â Â Â Â ALLOCATEÂ (Â wilt_h_1(nzb_wall:nzt_wall+1,1:surf_usm_h%ns)Â )Â |
---|
1454 |     IF ( .NOT. ALLOCATED( fc_h_1 ) )                    &      |
---|
1455 | Â Â Â Â Â Â ALLOCATEÂ (Â fc_h_1(nzb_wall:nzt_wall+1,1:surf_usm_h%ns)Â )Â |
---|
1456 | |
---|
1457 |     IF ( .NOT. ALLOCATED( m_liq_usm_h_1%var_usm_1d ) )           & |
---|
1458 | Â Â Â Â Â Â ALLOCATEÂ (Â m_liq_usm_h_1%var_usm_1d(1:surf_usm_h%ns)Â ) |
---|
1459 |     IF ( .NOT. ALLOCATED( m_liq_usm_h_2%var_usm_1d ) )           & |
---|
1460 | Â Â Â Â Â Â ALLOCATEÂ (Â m_liq_usm_h_2%var_usm_1d(1:surf_usm_h%ns)Â ) |
---|
1461 | Â Â Â Â Â Â |
---|
1462 | !      |
---|
1463 | !--Â Â Â initial assignment of the pointers |
---|
1464 |     t_wall_h  => t_wall_h_1;  t_wall_h_p  => t_wall_h_2 |
---|
1465 |     t_window_h => t_window_h_1; t_window_h_p => t_window_h_2 |
---|
1466 |     t_green_h  => t_green_h_1; t_green_h_p => t_green_h_2 |
---|
1467 |     t_surf_wall_h  => t_surf_wall_h_1;  t_surf_wall_h_p  => t_surf_wall_h_2      |
---|
1468 | Â Â Â Â t_surf_window_h =>Â t_surf_window_h_1;Â t_surf_window_h_p =>Â t_surf_window_h_2Â |
---|
1469 |     t_surf_green_h => t_surf_green_h_1; t_surf_green_h_p => t_surf_green_h_2      |
---|
1470 |     m_liq_usm_h   => m_liq_usm_h_1;   m_liq_usm_h_p   => m_liq_usm_h_2 |
---|
1471 |     swc_h   => swc_h_1; swc_h_p => swc_h_2 |
---|
1472 | Â Â Â Â swc_sat_h =>Â swc_sat_h_1 |
---|
1473 | Â Â Â Â swc_res_h =>Â swc_res_h_1 |
---|
1474 |     rootfr_h => rootfr_h_1 |
---|
1475 |     wilt_h  => wilt_h_1 |
---|
1476 |     fc_h   => fc_h_1 |
---|
1477 | |
---|
1478 | ! |
---|
1479 | !--Â Â Â allocate wall and roof temperature arrays, for vertical walls if required |
---|
1480 | ! |
---|
1481 | !--Â Â Â Allocate if required. Note, in case of restarts, some of these arrays |
---|
1482 | !--Â Â Â might be already allocated. |
---|
1483 |     DO l = 0, 3 |
---|
1484 |       IF ( .NOT. ALLOCATED( t_surf_wall_v_1(l)%t ) )           & |
---|
1485 | Â Â Â Â Â Â Â ALLOCATEÂ (Â t_surf_wall_v_1(l)%t(1:surf_usm_v(l)%ns)Â ) |
---|
1486 |       IF ( .NOT. ALLOCATED( t_surf_wall_v_2(l)%t ) )           & |
---|
1487 | Â Â Â Â Â Â Â ALLOCATEÂ (Â t_surf_wall_v_2(l)%t(1:surf_usm_v(l)%ns)Â ) |
---|
1488 |       IF ( .NOT. ALLOCATED( t_wall_v_1(l)%t ) )              &      |
---|
1489 | Â Â Â Â Â Â Â ALLOCATEÂ (Â t_wall_v_1(l)%t(nzb_wall:nzt_wall+1,1:surf_usm_v(l)%ns)Â )Â |
---|
1490 |       IF ( .NOT. ALLOCATED( t_wall_v_2(l)%t ) )              &      |
---|
1491 | Â Â Â Â Â Â Â ALLOCATEÂ (Â t_wall_v_2(l)%t(nzb_wall:nzt_wall+1,1:surf_usm_v(l)%ns)Â )Â |
---|
1492 |       IF ( .NOT. ALLOCATED( t_surf_window_v_1(l)%t ) )          & |
---|
1493 | Â Â Â Â Â Â Â ALLOCATEÂ (Â t_surf_window_v_1(l)%t(1:surf_usm_v(l)%ns)Â ) |
---|
1494 |       IF ( .NOT. ALLOCATED( t_surf_window_v_2(l)%t ) )          & |
---|
1495 | Â Â Â Â Â Â Â ALLOCATEÂ (Â t_surf_window_v_2(l)%t(1:surf_usm_v(l)%ns)Â ) |
---|
1496 |       IF ( .NOT. ALLOCATED( t_window_v_1(l)%t ) )             &      |
---|
1497 | Â Â Â Â Â Â Â ALLOCATEÂ (Â t_window_v_1(l)%t(nzb_wall:nzt_wall+1,1:surf_usm_v(l)%ns)Â )Â |
---|
1498 |       IF ( .NOT. ALLOCATED( t_window_v_2(l)%t ) )             &      |
---|
1499 | Â Â Â Â Â Â Â ALLOCATEÂ (Â t_window_v_2(l)%t(nzb_wall:nzt_wall+1,1:surf_usm_v(l)%ns)Â )Â |
---|
1500 |       IF ( .NOT. ALLOCATED( t_surf_green_v_1(l)%t ) )           & |
---|
1501 | Â Â Â Â Â Â Â ALLOCATEÂ (Â t_surf_green_v_1(l)%t(1:surf_usm_v(l)%ns)Â ) |
---|
1502 |       IF ( .NOT. ALLOCATED( t_surf_green_v_2(l)%t ) )           & |
---|
1503 | Â Â Â Â Â Â Â ALLOCATEÂ (Â t_surf_green_v_2(l)%t(1:surf_usm_v(l)%ns)Â ) |
---|
1504 |       IF ( .NOT. ALLOCATED( t_green_v_1(l)%t ) )             &      |
---|
1505 | Â Â Â Â Â Â Â ALLOCATEÂ (Â t_green_v_1(l)%t(nzb_wall:nzt_wall+1,1:surf_usm_v(l)%ns)Â )Â |
---|
1506 |       IF ( .NOT. ALLOCATED( t_green_v_2(l)%t ) )             &      |
---|
1507 | Â Â Â Â Â Â Â ALLOCATEÂ (Â t_green_v_2(l)%t(nzb_wall:nzt_wall+1,1:surf_usm_v(l)%ns)Â )Â |
---|
1508 |       IF ( .NOT. ALLOCATED( m_liq_usm_v_1(l)%var_usm_1d ) )        & |
---|
1509 | Â Â Â Â Â Â Â ALLOCATEÂ (Â m_liq_usm_v_1(l)%var_usm_1d(1:surf_usm_v(l)%ns)Â ) |
---|
1510 |       IF ( .NOT. ALLOCATED( m_liq_usm_v_2(l)%var_usm_1d ) )        & |
---|
1511 | Â Â Â Â Â Â Â ALLOCATEÂ (Â m_liq_usm_v_2(l)%var_usm_1d(1:surf_usm_v(l)%ns)Â ) |
---|
1512 |       IF ( .NOT. ALLOCATED( swc_v_1(l)%t ) )               &      |
---|
1513 | Â Â Â Â Â Â Â ALLOCATEÂ (Â swc_v_1(l)%t(nzb_wall:nzt_wall+1,1:surf_usm_v(l)%ns)Â )Â |
---|
1514 |       IF ( .NOT. ALLOCATED( swc_v_2(l)%t ) )               &      |
---|
1515 | Â Â Â Â Â Â Â ALLOCATEÂ (Â swc_v_2(l)%t(nzb_wall:nzt_wall+1,1:surf_usm_v(l)%ns)Â )Â |
---|
1516 | Â Â Â Â ENDDO |
---|
1517 | ! |
---|
1518 | !--Â Â Â initial assignment of the pointers |
---|
1519 |     t_wall_v    => t_wall_v_1;    t_wall_v_p    => t_wall_v_2 |
---|
1520 |     t_surf_wall_v  => t_surf_wall_v_1;  t_surf_wall_v_p  => t_surf_wall_v_2 |
---|
1521 |     t_window_v   => t_window_v_1;   t_window_v_p   => t_window_v_2 |
---|
1522 |     t_green_v    => t_green_v_1;    t_green_v_p    => t_green_v_2 |
---|
1523 | Â Â Â Â t_surf_window_v =>Â t_surf_window_v_1;Â t_surf_window_v_p =>Â t_surf_window_v_2 |
---|
1524 |     t_surf_green_v => t_surf_green_v_1; t_surf_green_v_p => t_surf_green_v_2 |
---|
1525 |     m_liq_usm_v   => m_liq_usm_v_1;   m_liq_usm_v_p   => m_liq_usm_v_2 |
---|
1526 |     swc_v      => swc_v_1;      swc_v_p      => swc_v_2 |
---|
1527 | |
---|
1528 | ! |
---|
1529 | !--Â Â Â Allocate intermediate timestep arrays. For horizontal surfaces. |
---|
1530 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%tt_surface_wall_m(1:surf_usm_h%ns)Â Â Â Â Â Â Â Â ) |
---|
1531 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%tt_wall_m(nzb_wall:nzt_wall+1,1:surf_usm_h%ns)Â Â ) |
---|
1532 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%tt_surface_window_m(1:surf_usm_h%ns)Â Â Â Â Â Â Â ) |
---|
1533 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%tt_window_m(nzb_wall:nzt_wall+1,1:surf_usm_h%ns)Â ) |
---|
1534 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%tt_green_m(nzb_wall:nzt_wall+1,1:surf_usm_h%ns)Â ) |
---|
1535 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%tt_surface_green_m(1:surf_usm_h%ns)Â Â Â Â Â Â Â ) |
---|
1536 | |
---|
1537 | ! |
---|
1538 | !--Â Â Allocate intermediate timestep arrays |
---|
1539 | !--Â Â Horizontal surfaces |
---|
1540 | Â Â Â Â ALLOCATEÂ (Â tm_liq_usm_h_m%var_usm_1d(1:surf_usm_h%ns)Â Â Â Â Â Â Â Â Â Â ) |
---|
1541 | ! |
---|
1542 | !--Â Â Horizontal surfaces |
---|
1543 |     DO l = 0, 3 |
---|
1544 | Â Â Â Â Â ALLOCATEÂ (Â tm_liq_usm_v_m(l)%var_usm_1d(1:surf_usm_v(l)%ns)Â Â Â Â Â ) |
---|
1545 | Â Â Â Â ENDDO |
---|
1546 | Â Â Â Â |
---|
1547 | ! |
---|
1548 | !--Â Â Â Set inital values for prognostic quantities |
---|
1549 |     IF ( ALLOCATED( surf_usm_h%tt_surface_wall_m )  ) surf_usm_h%tt_surface_wall_m  = 0.0_wp |
---|
1550 |     IF ( ALLOCATED( surf_usm_h%tt_wall_m )      ) surf_usm_h%tt_wall_m      = 0.0_wp |
---|
1551 | Â Â Â Â IFÂ (Â ALLOCATED(Â surf_usm_h%tt_surface_window_m )Â )Â surf_usm_h%tt_surface_window_m =Â 0.0_wp |
---|
1552 |     IF ( ALLOCATED( surf_usm_h%tt_window_m  )   ) surf_usm_h%tt_window_m     = 0.0_wp |
---|
1553 |     IF ( ALLOCATED( surf_usm_h%tt_green_m  )    ) surf_usm_h%tt_green_m     = 0.0_wp |
---|
1554 |     IF ( ALLOCATED( surf_usm_h%tt_surface_green_m ) ) surf_usm_h%tt_surface_green_m = 0.0_wp |
---|
1555 | ! |
---|
1556 | !--Â Â Â Now, for vertical surfaces |
---|
1557 |     DO l = 0, 3 |
---|
1558 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%tt_surface_wall_m(1:surf_usm_v(l)%ns)Â Â Â Â Â Â Â Â ) |
---|
1559 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%tt_wall_m(nzb_wall:nzt_wall+1,1:surf_usm_v(l)%ns)Â Â ) |
---|
1560 | Â Â Â Â Â Â IFÂ (Â ALLOCATED(Â surf_usm_v(l)%tt_surface_wall_m )Â )Â surf_usm_v(l)%tt_surface_wall_m =Â 0.0_wp |
---|
1561 |       IF ( ALLOCATED( surf_usm_v(l)%tt_wall_m  ) ) surf_usm_v(l)%tt_wall_m  = 0.0_wp |
---|
1562 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%tt_surface_window_m(1:surf_usm_v(l)%ns)Â Â Â Â Â Â Â ) |
---|
1563 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%tt_window_m(nzb_wall:nzt_wall+1,1:surf_usm_v(l)%ns)Â ) |
---|
1564 | Â Â Â Â Â Â IFÂ (Â ALLOCATED(Â surf_usm_v(l)%tt_surface_window_m )Â )Â surf_usm_v(l)%tt_surface_window_m =Â 0.0_wp |
---|
1565 |       IF ( ALLOCATED( surf_usm_v(l)%tt_window_m ) ) surf_usm_v(l)%tt_window_m  = 0.0_wp |
---|
1566 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%tt_surface_green_m(1:surf_usm_v(l)%ns)Â Â Â Â Â Â Â ) |
---|
1567 | Â Â Â Â Â Â IFÂ (Â ALLOCATED(Â surf_usm_v(l)%tt_surface_green_m )Â )Â surf_usm_v(l)%tt_surface_green_m =Â 0.0_wp |
---|
1568 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%tt_green_m(nzb_wall:nzt_wall+1,1:surf_usm_v(l)%ns)Â ) |
---|
1569 |       IF ( ALLOCATED( surf_usm_v(l)%tt_green_m  ) ) surf_usm_v(l)%tt_green_m  = 0.0_wp |
---|
1570 | Â Â Â Â ENDDO |
---|
1571 | ! |
---|
1572 | !--Â Â Â allocate wall heat flux output array and set initial values. For horizontal surfaces |
---|
1573 | !    ALLOCATE ( surf_usm_h%wshf(1:surf_usm_h%ns)  ) !can be removed |
---|
1574 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%wshf_eb(1:surf_usm_h%ns)Â ) |
---|
1575 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%wghf_eb(1:surf_usm_h%ns)Â ) |
---|
1576 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%wghf_eb_window(1:surf_usm_h%ns)Â ) |
---|
1577 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%wghf_eb_green(1:surf_usm_h%ns)Â ) |
---|
1578 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%iwghf_eb(1:surf_usm_h%ns)Â ) |
---|
1579 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%iwghf_eb_window(1:surf_usm_h%ns)Â ) |
---|
1580 |     IF ( ALLOCATED( surf_usm_h%wshf  ) ) surf_usm_h%wshf  = 0.0_wp |
---|
1581 | Â Â Â Â IFÂ (Â ALLOCATED(Â surf_usm_h%wshf_eb )Â )Â surf_usm_h%wshf_eb =Â 0.0_wp |
---|
1582 | Â Â Â Â IFÂ (Â ALLOCATED(Â surf_usm_h%wghf_eb )Â )Â surf_usm_h%wghf_eb =Â 0.0_wp |
---|
1583 | Â Â Â Â IFÂ (Â ALLOCATED(Â surf_usm_h%wghf_eb_window )Â )Â surf_usm_h%wghf_eb_window =Â 0.0_wp |
---|
1584 | Â Â Â Â IFÂ (Â ALLOCATED(Â surf_usm_h%wghf_eb_green )Â )Â surf_usm_h%wghf_eb_green =Â 0.0_wp |
---|
1585 | Â Â Â Â IFÂ (Â ALLOCATED(Â surf_usm_h%iwghf_eb )Â )Â surf_usm_h%iwghf_eb =Â 0.0_wp |
---|
1586 | Â Â Â Â IFÂ (Â ALLOCATED(Â surf_usm_h%iwghf_eb_window )Â )Â surf_usm_h%iwghf_eb_window =Â 0.0_wp |
---|
1587 | ! |
---|
1588 | !--Â Â Â Now, for vertical surfaces |
---|
1589 |     DO l = 0, 3 |
---|
1590 | !      ALLOCATE ( surf_usm_v(l)%wshf(1:surf_usm_v(l)%ns)  )  ! can be removed |
---|
1591 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%wshf_eb(1:surf_usm_v(l)%ns)Â ) |
---|
1592 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%wghf_eb(1:surf_usm_v(l)%ns)Â ) |
---|
1593 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%wghf_eb_window(1:surf_usm_v(l)%ns)Â ) |
---|
1594 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%wghf_eb_green(1:surf_usm_v(l)%ns)Â ) |
---|
1595 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%iwghf_eb(1:surf_usm_v(l)%ns)Â ) |
---|
1596 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%iwghf_eb_window(1:surf_usm_v(l)%ns)Â ) |
---|
1597 |       IF ( ALLOCATED( surf_usm_v(l)%wshf  ) ) surf_usm_v(l)%wshf  = 0.0_wp |
---|
1598 | Â Â Â Â Â Â IFÂ (Â ALLOCATED(Â surf_usm_v(l)%wshf_eb )Â )Â surf_usm_v(l)%wshf_eb =Â 0.0_wp |
---|
1599 | Â Â Â Â Â Â IFÂ (Â ALLOCATED(Â surf_usm_v(l)%wghf_eb )Â )Â surf_usm_v(l)%wghf_eb =Â 0.0_wp |
---|
1600 | Â Â Â Â Â Â IFÂ (Â ALLOCATED(Â surf_usm_v(l)%wghf_eb_window )Â )Â surf_usm_v(l)%wghf_eb_window =Â 0.0_wp |
---|
1601 | Â Â Â Â Â Â IFÂ (Â ALLOCATED(Â surf_usm_v(l)%wghf_eb_green )Â )Â surf_usm_v(l)%wghf_eb_green =Â 0.0_wp |
---|
1602 | Â Â Â Â Â Â IFÂ (Â ALLOCATED(Â surf_usm_v(l)%iwghf_eb )Â )Â surf_usm_v(l)%iwghf_eb =Â 0.0_wp |
---|
1603 | Â Â Â Â Â Â IFÂ (Â ALLOCATED(Â surf_usm_v(l)%iwghf_eb_window )Â )Â surf_usm_v(l)%iwghf_eb_window =Â 0.0_wp |
---|
1604 | Â Â Â Â ENDDO |
---|
1605 | |
---|
1606 |     CALL location_message( 'finished', .TRUE. ) |
---|
1607 | Â Â Â Â |
---|
1608 | Â Â END SUBROUTINE usm_init_arrays |
---|
1609 | |
---|
1610 | |
---|
1611 | !------------------------------------------------------------------------------! |
---|
1612 | ! Description: |
---|
1613 | ! ------------ |
---|
1614 | !> Sum up and time-average urban surface output quantities as well as allocate |
---|
1615 | !> the array necessary for storing the average. |
---|
1616 | !------------------------------------------------------------------------------! |
---|
1617 |   SUBROUTINE usm_3d_data_averaging( mode, variable ) |
---|
1618 | |
---|
1619 | Â Â Â Â IMPLICIT NONE |
---|
1620 | |
---|
1621 |     CHARACTER(LEN=*), INTENT(IN) :: mode |
---|
1622 |     CHARACTER(LEN=*), INTENT(IN) :: variable |
---|
1623 | Â |
---|
1624 |     INTEGER(iwp)                    :: i, j, k, l, m, ids, idsint, iwl, istat !< runnin indices |
---|
1625 |     CHARACTER(LEN=varnamelength)            :: var                   !< trimmed variable |
---|
1626 |     INTEGER(iwp), PARAMETER              :: nd = 5                 !< number of directions |
---|
1627 |     CHARACTER(LEN=6), DIMENSION(0:nd-1), PARAMETER   :: dirname = (/ '_roof ', '_south', '_north', '_west ', '_east ' /) |
---|
1628 |     INTEGER(iwp), DIMENSION(0:nd-1), PARAMETER     :: dirint = (/ iup_u, isouth_u, inorth_u, iwest_u, ieast_u /) |
---|
1629 | |
---|
1630 | Â Â Â Â IFÂ (Â variable(1:4)Â ==Â 'usm_'Â )Â THENÂ ! is such a check really rquired? |
---|
1631 | |
---|
1632 | ! |
---|
1633 | !--Â Â Â find the real name of the variable |
---|
1634 | Â Â Â Â ids =Â -1 |
---|
1635 | Â Â Â Â l =Â -1 |
---|
1636 | Â Â Â Â var =Â TRIM(variable) |
---|
1637 |     DO i = 0, nd-1 |
---|
1638 | Â Â Â Â Â Â k =Â len(TRIM(var)) |
---|
1639 | Â Â Â Â Â Â j =Â len(TRIM(dirname(i))) |
---|
1640 | Â Â Â Â Â Â IFÂ (Â TRIM(var(k-j+1:k))Â ==Â TRIM(dirname(i))Â )Â THEN |
---|
1641 | Â Â Â Â Â Â Â Â ids =Â i |
---|
1642 | Â Â Â Â Â Â Â Â idsint =Â dirint(ids) |
---|
1643 | Â Â Â Â Â Â Â Â var =Â var(:k-j) |
---|
1644 | Â Â Â Â Â Â Â Â EXIT |
---|
1645 | Â Â Â Â Â Â ENDIF |
---|
1646 | Â Â Â Â ENDDO |
---|
1647 | Â Â Â Â l =Â idsint -Â 2Â ! horisontal direction index - terible hack ! |
---|
1648 |     IF ( l < 0 .OR. l > 3 ) THEN |
---|
1649 | Â Â Â Â Â Â l =Â -1 |
---|
1650 | Â Â Â Â END IF |
---|
1651 | Â Â Â Â IFÂ (Â ids ==Â -1Â )Â THEN |
---|
1652 | Â Â Â Â Â Â var =Â TRIM(variable) |
---|
1653 | Â Â Â Â ENDIF |
---|
1654 |     IF ( var(1:11) == 'usm_t_wall_' .AND. len(TRIM(var)) >= 12 ) THEN |
---|
1655 | ! |
---|
1656 | !--Â Â Â Â Â wall layers |
---|
1657 |       READ(var(12:12), '(I1)', iostat=istat ) iwl |
---|
1658 |       IF ( istat == 0 .AND. iwl >= nzb_wall .AND. iwl <= nzt_wall ) THEN |
---|
1659 | Â Â Â Â Â Â Â Â var =Â var(1:10) |
---|
1660 | Â Â Â Â Â Â ELSE |
---|
1661 | ! |
---|
1662 | !--Â Â Â Â Â Â Â wrong wall layer index |
---|
1663 | Â Â Â Â Â Â Â Â RETURN |
---|
1664 | Â Â Â Â Â Â ENDIF |
---|
1665 | Â Â Â Â ENDIF |
---|
1666 |     IF ( var(1:13) == 'usm_t_window_' .AND. len(TRIM(var)) >= 14 ) THEN |
---|
1667 | ! |
---|
1668 | !--Â Â Â Â Â wall layers |
---|
1669 |       READ(var(14:14), '(I1)', iostat=istat ) iwl |
---|
1670 |       IF ( istat == 0 .AND. iwl >= nzb_wall .AND. iwl <= nzt_wall ) THEN |
---|
1671 | Â Â Â Â Â Â Â Â var =Â var(1:12) |
---|
1672 | Â Â Â Â Â Â ELSE |
---|
1673 | ! |
---|
1674 | !--Â Â Â Â Â Â Â wrong window layer index |
---|
1675 | Â Â Â Â Â Â Â Â RETURN |
---|
1676 | Â Â Â Â Â Â ENDIF |
---|
1677 | Â Â Â Â ENDIF |
---|
1678 |     IF ( var(1:12) == 'usm_t_green_' .AND. len(TRIM(var)) >= 13 ) THEN |
---|
1679 | ! |
---|
1680 | !--Â Â Â Â Â wall layers |
---|
1681 |       READ(var(13:13), '(I1)', iostat=istat ) iwl |
---|
1682 |       IF ( istat == 0 .AND. iwl >= nzb_wall .AND. iwl <= nzt_wall ) THEN |
---|
1683 | Â Â Â Â Â Â Â Â var =Â var(1:11) |
---|
1684 | Â Â Â Â Â Â ELSE |
---|
1685 | ! |
---|
1686 | !--Â Â Â Â Â Â Â wrong green layer index |
---|
1687 | Â Â Â Â Â Â Â Â RETURN |
---|
1688 | Â Â Â Â Â Â ENDIF |
---|
1689 | Â Â Â Â ENDIF |
---|
1690 |     IF ( var(1:8) == 'usm_swc_' .AND. len(TRIM(var)) >= 9 ) THEN |
---|
1691 | ! |
---|
1692 | !--Â Â Â Â Â swc layers |
---|
1693 |       READ(var(9:9), '(I1)', iostat=istat ) iwl |
---|
1694 |       IF ( istat == 0 .AND. iwl >= nzb_wall .AND. iwl <= nzt_wall ) THEN |
---|
1695 | Â Â Â Â Â Â Â Â var =Â var(1:7) |
---|
1696 | Â Â Â Â Â Â ELSE |
---|
1697 | ! |
---|
1698 | !--Â Â Â Â Â Â Â wrong swc layer index |
---|
1699 | Â Â Â Â Â Â Â Â RETURN |
---|
1700 | Â Â Â Â Â Â ENDIF |
---|
1701 | Â Â Â Â ENDIF |
---|
1702 | |
---|
1703 | Â Â Â Â IFÂ (Â mode ==Â 'allocate'Â )Â THEN |
---|
1704 | Â Â Â Â Â Â |
---|
1705 | Â Â Â Â Â Â SELECT CASEÂ (Â TRIM(Â var )Â ) |
---|
1706 | |
---|
1707 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_wshf'Â ) |
---|
1708 | ! |
---|
1709 | !--Â Â Â Â Â Â Â Â Â array of sensible heat flux from surfaces |
---|
1710 | !--Â Â Â Â Â Â Â Â Â land surfaces |
---|
1711 | Â Â Â Â Â Â Â Â Â Â IFÂ (Â l ==Â -1Â )Â THEN |
---|
1712 |             IF ( .NOT. ALLOCATED(surf_usm_h%wshf_eb_av) ) THEN |
---|
1713 | Â Â Â Â Â Â Â Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_h%wshf_eb_av(1:surf_usm_h%ns)Â ) |
---|
1714 | Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%wshf_eb_av =Â 0.0_wp |
---|
1715 | Â Â Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1716 | Â Â Â Â Â Â Â Â Â Â ELSE |
---|
1717 |             IF ( .NOT. ALLOCATED(surf_usm_v(l)%wshf_eb_av) ) THEN |
---|
1718 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%wshf_eb_av(1:surf_usm_v(l)%ns)Â ) |
---|
1719 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%wshf_eb_av =Â 0.0_wp |
---|
1720 | Â Â Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1721 | Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1722 | Â Â Â Â Â Â Â Â Â Â |
---|
1723 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_qsws'Â ) |
---|
1724 | ! |
---|
1725 | !--Â Â Â Â Â Â Â Â Â array of latent heat flux from surfaces |
---|
1726 | !--Â Â Â Â Â Â Â Â Â land surfaces |
---|
1727 |           IF ( l == -1 .AND. .NOT. ALLOCATED(surf_usm_h%qsws_eb_av) ) THEN |
---|
1728 | Â Â Â Â Â Â Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_h%qsws_eb_av(1:surf_usm_h%ns)Â ) |
---|
1729 | Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%qsws_eb_av =Â 0.0_wp |
---|
1730 | Â Â Â Â Â Â Â Â Â Â ELSE |
---|
1731 |             IF ( .NOT. ALLOCATED(surf_usm_v(l)%qsws_eb_av) ) THEN |
---|
1732 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%qsws_eb_av(1:surf_usm_v(l)%ns)Â ) |
---|
1733 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%qsws_eb_av =Â 0.0_wp |
---|
1734 | Â Â Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1735 | Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1736 | Â Â Â Â Â Â Â Â Â Â |
---|
1737 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_qsws_veg'Â ) |
---|
1738 | ! |
---|
1739 | !--Â Â Â Â Â Â Â Â Â array of latent heat flux from vegetation surfaces |
---|
1740 | !--Â Â Â Â Â Â Â Â Â land surfaces |
---|
1741 |           IF ( l == -1 .AND. .NOT. ALLOCATED(surf_usm_h%qsws_veg_av) ) THEN |
---|
1742 | Â Â Â Â Â Â Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_h%qsws_veg_av(1:surf_usm_h%ns)Â ) |
---|
1743 | Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%qsws_veg_av =Â 0.0_wp |
---|
1744 | Â Â Â Â Â Â Â Â Â Â ELSE |
---|
1745 |             IF ( .NOT. ALLOCATED(surf_usm_v(l)%qsws_veg_av) ) THEN |
---|
1746 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%qsws_veg_av(1:surf_usm_v(l)%ns)Â ) |
---|
1747 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%qsws_veg_av =Â 0.0_wp |
---|
1748 | Â Â Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1749 | Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1750 | Â Â Â Â Â Â Â Â Â Â |
---|
1751 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_qsws_liq'Â ) |
---|
1752 | ! |
---|
1753 | !--Â Â Â Â Â Â Â Â Â array of latent heat flux from surfaces with liquid |
---|
1754 | !--Â Â Â Â Â Â Â Â Â land surfaces |
---|
1755 |           IF ( l == -1 .AND. .NOT. ALLOCATED(surf_usm_h%qsws_liq_av) ) THEN |
---|
1756 | Â Â Â Â Â Â Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_h%qsws_liq_av(1:surf_usm_h%ns)Â ) |
---|
1757 | Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%qsws_liq_av =Â 0.0_wp |
---|
1758 | Â Â Â Â Â Â Â Â Â Â ELSE |
---|
1759 |             IF ( .NOT. ALLOCATED(surf_usm_v(l)%qsws_liq_av) ) THEN |
---|
1760 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%qsws_liq_av(1:surf_usm_v(l)%ns)Â ) |
---|
1761 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%qsws_liq_av =Â 0.0_wp |
---|
1762 | Â Â Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1763 | Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1764 | ! |
---|
1765 | !--Â Â Â Â Â Â Â Please note, the following output quantities belongs to the |
---|
1766 | !--Â Â Â Â Â Â Â individual tile fractions - ground heat flux at wall-, window-, |
---|
1767 | !--Â Â Â Â Â Â Â and green fraction. Aggregated ground-heat flux is treated |
---|
1768 | !--Â Â Â Â Â Â Â accordingly in average_3d_data, sum_up_3d_data, etc.. |
---|
1769 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_wghf'Â ) |
---|
1770 | ! |
---|
1771 | !--Â Â Â Â Â Â Â Â Â array of heat flux from ground (wall, roof, land) |
---|
1772 | Â Â Â Â Â Â Â Â Â Â IFÂ (Â l ==Â -1Â )Â THEN |
---|
1773 |             IF ( .NOT. ALLOCATED(surf_usm_h%wghf_eb_av) ) THEN |
---|
1774 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_h%wghf_eb_av(1:surf_usm_h%ns)Â ) |
---|
1775 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%wghf_eb_av =Â 0.0_wp |
---|
1776 | Â Â Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1777 | Â Â Â Â Â Â Â Â Â Â ELSE |
---|
1778 |             IF ( .NOT. ALLOCATED(surf_usm_v(l)%wghf_eb_av) ) THEN |
---|
1779 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%wghf_eb_av(1:surf_usm_v(l)%ns)Â ) |
---|
1780 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%wghf_eb_av =Â 0.0_wp |
---|
1781 | Â Â Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1782 | Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1783 | |
---|
1784 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_wghf_window'Â ) |
---|
1785 | ! |
---|
1786 | !--Â Â Â Â Â Â Â Â Â array of heat flux from window ground (wall, roof, land) |
---|
1787 | Â Â Â Â Â Â Â Â Â Â IFÂ (Â l ==Â -1Â )Â THEN |
---|
1788 |             IF ( .NOT. ALLOCATED(surf_usm_h%wghf_eb_window_av) ) THEN |
---|
1789 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_h%wghf_eb_window_av(1:surf_usm_h%ns)Â ) |
---|
1790 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%wghf_eb_window_av =Â 0.0_wp |
---|
1791 | Â Â Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1792 | Â Â Â Â Â Â Â Â Â Â ELSE |
---|
1793 |             IF ( .NOT. ALLOCATED(surf_usm_v(l)%wghf_eb_window_av) ) THEN |
---|
1794 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%wghf_eb_window_av(1:surf_usm_v(l)%ns)Â ) |
---|
1795 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%wghf_eb_window_av =Â 0.0_wp |
---|
1796 | Â Â Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1797 | Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1798 | |
---|
1799 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_wghf_green'Â ) |
---|
1800 | ! |
---|
1801 | !--Â Â Â Â Â Â Â Â Â array of heat flux from green ground (wall, roof, land) |
---|
1802 | Â Â Â Â Â Â Â Â Â Â IFÂ (Â l ==Â -1Â )Â THEN |
---|
1803 |             IF ( .NOT. ALLOCATED(surf_usm_h%wghf_eb_green_av) ) THEN |
---|
1804 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_h%wghf_eb_green_av(1:surf_usm_h%ns)Â ) |
---|
1805 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%wghf_eb_green_av =Â 0.0_wp |
---|
1806 | Â Â Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1807 | Â Â Â Â Â Â Â Â Â Â ELSE |
---|
1808 |             IF ( .NOT. ALLOCATED(surf_usm_v(l)%wghf_eb_green_av) ) THEN |
---|
1809 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%wghf_eb_green_av(1:surf_usm_v(l)%ns)Â ) |
---|
1810 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%wghf_eb_green_av =Â 0.0_wp |
---|
1811 | Â Â Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1812 | Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1813 | |
---|
1814 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_iwghf'Â ) |
---|
1815 | ! |
---|
1816 | !--Â Â Â Â Â Â Â Â Â array of heat flux from indoor ground (wall, roof, land) |
---|
1817 | Â Â Â Â Â Â Â Â Â Â IFÂ (Â l ==Â -1Â )Â THEN |
---|
1818 |             IF ( .NOT. ALLOCATED(surf_usm_h%iwghf_eb_av) ) THEN |
---|
1819 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_h%iwghf_eb_av(1:surf_usm_h%ns)Â ) |
---|
1820 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%iwghf_eb_av =Â 0.0_wp |
---|
1821 | Â Â Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1822 | Â Â Â Â Â Â Â Â Â Â ELSE |
---|
1823 |             IF ( .NOT. ALLOCATED(surf_usm_v(l)%iwghf_eb_av) ) THEN |
---|
1824 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%iwghf_eb_av(1:surf_usm_v(l)%ns)Â ) |
---|
1825 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%iwghf_eb_av =Â 0.0_wp |
---|
1826 | Â Â Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1827 | Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1828 | |
---|
1829 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_iwghf_window'Â ) |
---|
1830 | ! |
---|
1831 | !--Â Â Â Â Â Â Â Â Â array of heat flux from indoor window ground (wall, roof, land) |
---|
1832 | Â Â Â Â Â Â Â Â Â Â IFÂ (Â l ==Â -1Â )Â THEN |
---|
1833 |             IF ( .NOT. ALLOCATED(surf_usm_h%iwghf_eb_window_av) ) THEN |
---|
1834 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_h%iwghf_eb_window_av(1:surf_usm_h%ns)Â ) |
---|
1835 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%iwghf_eb_window_av =Â 0.0_wp |
---|
1836 | Â Â Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1837 | Â Â Â Â Â Â Â Â Â Â ELSE |
---|
1838 |             IF ( .NOT. ALLOCATED(surf_usm_v(l)%iwghf_eb_window_av) ) THEN |
---|
1839 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%iwghf_eb_window_av(1:surf_usm_v(l)%ns)Â ) |
---|
1840 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%iwghf_eb_window_av =Â 0.0_wp |
---|
1841 | Â Â Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1842 | Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1843 | |
---|
1844 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_t_surf_wall'Â ) |
---|
1845 | ! |
---|
1846 | !--Â Â Â Â Â Â Â Â Â surface temperature for surfaces |
---|
1847 | Â Â Â Â Â Â Â Â Â Â IFÂ (Â l ==Â -1Â )Â THEN |
---|
1848 |             IF ( .NOT. ALLOCATED(surf_usm_h%t_surf_wall_av) ) THEN |
---|
1849 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_h%t_surf_wall_av(1:surf_usm_h%ns)Â ) |
---|
1850 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%t_surf_wall_av =Â 0.0_wp |
---|
1851 | Â Â Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1852 | Â Â Â Â Â Â Â Â Â Â ELSE |
---|
1853 |             IF ( .NOT. ALLOCATED(surf_usm_v(l)%t_surf_wall_av) ) THEN |
---|
1854 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%t_surf_wall_av(1:surf_usm_v(l)%ns)Â ) |
---|
1855 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%t_surf_wall_av =Â 0.0_wp |
---|
1856 | Â Â Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1857 | Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1858 | |
---|
1859 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_t_surf_window'Â ) |
---|
1860 | ! |
---|
1861 | !--Â Â Â Â Â Â Â Â Â surface temperature for window surfaces |
---|
1862 | Â Â Â Â Â Â Â Â Â Â IFÂ (Â l ==Â -1Â )Â THEN |
---|
1863 |             IF ( .NOT. ALLOCATED(surf_usm_h%t_surf_window_av) ) THEN |
---|
1864 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_h%t_surf_window_av(1:surf_usm_h%ns)Â ) |
---|
1865 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%t_surf_window_av =Â 0.0_wp |
---|
1866 | Â Â Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1867 | Â Â Â Â Â Â Â Â Â Â ELSE |
---|
1868 |             IF ( .NOT. ALLOCATED(surf_usm_v(l)%t_surf_window_av) ) THEN |
---|
1869 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%t_surf_window_av(1:surf_usm_v(l)%ns)Â ) |
---|
1870 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%t_surf_window_av =Â 0.0_wp |
---|
1871 | Â Â Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1872 | Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1873 | Â Â Â Â Â Â Â Â Â Â |
---|
1874 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_t_surf_green'Â ) |
---|
1875 | ! |
---|
1876 | !--Â Â Â Â Â Â Â Â Â surface temperature for green surfaces |
---|
1877 | Â Â Â Â Â Â Â Â Â Â IFÂ (Â l ==Â -1Â )Â THEN |
---|
1878 |             IF ( .NOT. ALLOCATED(surf_usm_h%t_surf_green_av) ) THEN |
---|
1879 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_h%t_surf_green_av(1:surf_usm_h%ns)Â ) |
---|
1880 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%t_surf_green_av =Â 0.0_wp |
---|
1881 | Â Â Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1882 | Â Â Â Â Â Â Â Â Â Â ELSE |
---|
1883 |             IF ( .NOT. ALLOCATED(surf_usm_v(l)%t_surf_green_av) ) THEN |
---|
1884 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%t_surf_green_av(1:surf_usm_v(l)%ns)Â ) |
---|
1885 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%t_surf_green_av =Â 0.0_wp |
---|
1886 | Â Â Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1887 | Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1888 | Â Â Â Â Â Â Â Â |
---|
1889 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_theta_10cm'Â ) |
---|
1890 | ! |
---|
1891 | !--Â Â Â Â Â Â Â Â Â near surface (10cm) temperature for whole surfaces |
---|
1892 | Â Â Â Â Â Â Â Â Â Â IFÂ (Â l ==Â -1Â )Â THEN |
---|
1893 |             IF ( .NOT. ALLOCATED(surf_usm_h%pt_10cm_av) ) THEN |
---|
1894 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_h%pt_10cm_av(1:surf_usm_h%ns)Â ) |
---|
1895 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%pt_10cm_av =Â 0.0_wp |
---|
1896 | Â Â Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1897 | Â Â Â Â Â Â Â Â Â Â ELSE |
---|
1898 |             IF ( .NOT. ALLOCATED(surf_usm_v(l)%pt_10cm_av) ) THEN |
---|
1899 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%pt_10cm_av(1:surf_usm_v(l)%ns)Â ) |
---|
1900 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%pt_10cm_av =Â 0.0_wp |
---|
1901 | Â Â Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1902 | Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1903 | Â Â Â Â Â Â Â Â Â |
---|
1904 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_t_wall'Â ) |
---|
1905 | ! |
---|
1906 | !--Â Â Â Â Â Â Â Â Â wall temperature for iwl layer of walls and land |
---|
1907 | Â Â Â Â Â Â Â Â Â Â IFÂ (Â l ==Â -1Â )Â THEN |
---|
1908 |             IF ( .NOT. ALLOCATED(surf_usm_h%t_wall_av) ) THEN |
---|
1909 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_h%t_wall_av(nzb_wall:nzt_wall,1:surf_usm_h%ns)Â ) |
---|
1910 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%t_wall_av =Â 0.0_wp |
---|
1911 | Â Â Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1912 | Â Â Â Â Â Â Â Â Â Â ELSE |
---|
1913 |             IF ( .NOT. ALLOCATED(surf_usm_v(l)%t_wall_av) ) THEN |
---|
1914 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%t_wall_av(nzb_wall:nzt_wall,1:surf_usm_v(l)%ns)Â ) |
---|
1915 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%t_wall_av =Â 0.0_wp |
---|
1916 | Â Â Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1917 | Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1918 | |
---|
1919 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_t_window'Â ) |
---|
1920 | ! |
---|
1921 | !--Â Â Â Â Â Â Â Â Â window temperature for iwl layer of walls and land |
---|
1922 | Â Â Â Â Â Â Â Â Â Â IFÂ (Â l ==Â -1Â )Â THEN |
---|
1923 |             IF ( .NOT. ALLOCATED(surf_usm_h%t_window_av) ) THEN |
---|
1924 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_h%t_window_av(nzb_wall:nzt_wall,1:surf_usm_h%ns)Â ) |
---|
1925 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%t_window_av =Â 0.0_wp |
---|
1926 | Â Â Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1927 | Â Â Â Â Â Â Â Â Â Â ELSE |
---|
1928 |             IF ( .NOT. ALLOCATED(surf_usm_v(l)%t_window_av) ) THEN |
---|
1929 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%t_window_av(nzb_wall:nzt_wall,1:surf_usm_v(l)%ns)Â ) |
---|
1930 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%t_window_av =Â 0.0_wp |
---|
1931 | Â Â Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1932 | Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1933 | |
---|
1934 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_t_green'Â ) |
---|
1935 | ! |
---|
1936 | !--Â Â Â Â Â Â Â Â Â green temperature for iwl layer of walls and land |
---|
1937 | Â Â Â Â Â Â Â Â Â Â IFÂ (Â l ==Â -1Â )Â THEN |
---|
1938 |             IF ( .NOT. ALLOCATED(surf_usm_h%t_green_av) ) THEN |
---|
1939 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_h%t_green_av(nzb_wall:nzt_wall,1:surf_usm_h%ns)Â ) |
---|
1940 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%t_green_av =Â 0.0_wp |
---|
1941 | Â Â Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1942 | Â Â Â Â Â Â Â Â Â Â ELSE |
---|
1943 |             IF ( .NOT. ALLOCATED(surf_usm_v(l)%t_green_av) ) THEN |
---|
1944 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%t_green_av(nzb_wall:nzt_wall,1:surf_usm_v(l)%ns)Â ) |
---|
1945 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%t_green_av =Â 0.0_wp |
---|
1946 | Â Â Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1947 | Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1948 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_swc'Â ) |
---|
1949 | ! |
---|
1950 | !--Â Â Â Â Â Â Â Â Â soil water content for iwl layer of walls and land |
---|
1951 |           IF ( l == -1 .AND. .NOT. ALLOCATED(surf_usm_h%swc_av) ) THEN |
---|
1952 | Â Â Â Â Â Â Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_h%swc_av(nzb_wall:nzt_wall,1:surf_usm_h%ns)Â ) |
---|
1953 | Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%swc_av =Â 0.0_wp |
---|
1954 | Â Â Â Â Â Â Â Â Â Â ELSE |
---|
1955 |             IF ( .NOT. ALLOCATED(surf_usm_v(l)%swc_av) ) THEN |
---|
1956 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%swc_av(nzb_wall:nzt_wall,1:surf_usm_v(l)%ns)Â ) |
---|
1957 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%swc_av =Â 0.0_wp |
---|
1958 | Â Â Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1959 | Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1960 | |
---|
1961 | Â Â Â Â Â Â Â Â CASE DEFAULT |
---|
1962 | Â Â Â Â Â Â Â Â Â Â CONTINUE |
---|
1963 | |
---|
1964 | Â Â Â Â Â Â END SELECT |
---|
1965 | |
---|
1966 | Â Â Â Â ELSEIF (Â mode ==Â 'sum'Â )Â THEN |
---|
1967 | Â Â Â Â Â Â |
---|
1968 | Â Â Â Â Â Â SELECT CASEÂ (Â TRIM(Â var )Â ) |
---|
1969 | |
---|
1970 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_wshf'Â ) |
---|
1971 | ! |
---|
1972 | !--Â Â Â Â Â Â Â Â Â array of sensible heat flux from surfaces (land, roof, wall) |
---|
1973 | Â Â Â Â Â Â Â Â Â Â IFÂ (Â l ==Â -1Â )Â THEN |
---|
1974 |             DO m = 1, surf_usm_h%ns |
---|
1975 | Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%wshf_eb_av(m)Â =Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
1976 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%wshf_eb_av(m)Â +Â Â Â Â Â Â & |
---|
1977 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%wshf_eb(m) |
---|
1978 | Â Â Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1979 | Â Â Â Â Â Â Â Â Â Â ELSE |
---|
1980 |             DO m = 1, surf_usm_v(l)%ns |
---|
1981 | Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%wshf_eb_av(m)Â =Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
1982 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%wshf_eb_av(m)Â +Â Â Â Â & |
---|
1983 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%wshf_eb(m) |
---|
1984 | Â Â Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1985 | Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1986 | Â Â Â Â Â Â Â Â Â Â |
---|
1987 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_qsws'Â ) |
---|
1988 | ! |
---|
1989 | !--Â Â Â Â Â Â Â Â Â array of latent heat flux from surfaces (land, roof, wall) |
---|
1990 | Â Â Â Â Â Â Â Â Â Â IFÂ (Â l ==Â -1Â )Â THEN |
---|
1991 |           DO m = 1, surf_usm_h%ns |
---|
1992 | Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%qsws_eb_av(m)Â =Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
1993 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%qsws_eb_av(m)Â +Â Â Â Â Â Â & |
---|
1994 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%qsws_eb(m) |
---|
1995 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1996 | Â Â Â Â Â Â Â Â Â Â ELSE |
---|
1997 |             DO m = 1, surf_usm_v(l)%ns |
---|
1998 | Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%qsws_eb_av(m)Â =Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
1999 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%qsws_eb_av(m)Â +Â Â Â Â & |
---|
2000 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%qsws_eb(m) |
---|
2001 | Â Â Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2002 | Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
2003 | Â Â Â Â Â Â Â Â Â Â |
---|
2004 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_qsws_veg'Â ) |
---|
2005 | ! |
---|
2006 | !--Â Â Â Â Â Â Â Â Â array of latent heat flux from vegetation surfaces (land, roof, wall) |
---|
2007 | Â Â Â Â Â Â Â Â Â Â IFÂ (Â l ==Â -1Â )Â THEN |
---|
2008 |           DO m = 1, surf_usm_h%ns |
---|
2009 | Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%qsws_veg_av(m)Â =Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
2010 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%qsws_veg_av(m)Â +Â Â Â Â Â Â & |
---|
2011 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%qsws_veg(m) |
---|
2012 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2013 | Â Â Â Â Â Â Â Â Â Â ELSE |
---|
2014 |             DO m = 1, surf_usm_v(l)%ns |
---|
2015 | Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%qsws_veg_av(m)Â =Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
2016 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%qsws_veg_av(m)Â +Â Â Â Â & |
---|
2017 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%qsws_veg(m) |
---|
2018 | Â Â Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2019 | Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
2020 | Â Â Â Â Â Â Â Â Â Â |
---|
2021 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_qsws_liq'Â ) |
---|
2022 | ! |
---|
2023 | !--Â Â Â Â Â Â Â Â Â array of latent heat flux from surfaces with liquid (land, roof, wall) |
---|
2024 | Â Â Â Â Â Â Â Â Â Â IFÂ (Â l ==Â -1Â )Â THEN |
---|
2025 |           DO m = 1, surf_usm_h%ns |
---|
2026 | Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%qsws_liq_av(m)Â =Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
2027 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%qsws_liq_av(m)Â +Â Â Â Â Â Â & |
---|
2028 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%qsws_liq(m) |
---|
2029 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2030 | Â Â Â Â Â Â Â Â Â Â ELSE |
---|
2031 |             DO m = 1, surf_usm_v(l)%ns |
---|
2032 | Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%qsws_liq_av(m)Â =Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
2033 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%qsws_liq_av(m)Â +Â Â Â Â & |
---|
2034 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%qsws_liq(m) |
---|
2035 | Â Â Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2036 | Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
2037 | Â Â Â Â Â Â Â Â Â Â |
---|
2038 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_wghf'Â ) |
---|
2039 | ! |
---|
2040 | !--Â Â Â Â Â Â Â Â Â array of heat flux from ground (wall, roof, land) |
---|
2041 | Â Â Â Â Â Â Â Â Â Â IFÂ (Â l ==Â -1Â )Â THEN |
---|
2042 |             DO m = 1, surf_usm_h%ns |
---|
2043 | Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%wghf_eb_av(m)Â =Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
2044 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%wghf_eb_av(m)Â +Â Â Â Â Â Â & |
---|
2045 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%wghf_eb(m) |
---|
2046 | Â Â Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2047 | Â Â Â Â Â Â Â Â Â Â ELSE |
---|
2048 |             DO m = 1, surf_usm_v(l)%ns |
---|
2049 | Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%wghf_eb_av(m)Â =Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
2050 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%wghf_eb_av(m)Â +Â Â Â Â & |
---|
2051 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%wghf_eb(m) |
---|
2052 | Â Â Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2053 | Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
2054 | Â Â Â Â Â Â Â Â Â Â |
---|
2055 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_wghf_window'Â ) |
---|
2056 | ! |
---|
2057 | !--Â Â Â Â Â Â Â Â Â array of heat flux from window ground (wall, roof, land) |
---|
2058 | Â Â Â Â Â Â Â Â Â Â IFÂ (Â l ==Â -1Â )Â THEN |
---|
2059 |             DO m = 1, surf_usm_h%ns |
---|
2060 | Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%wghf_eb_window_av(m)Â =Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
2061 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%wghf_eb_window_av(m)Â +Â Â Â Â Â Â & |
---|
2062 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%wghf_eb_window(m) |
---|
2063 | Â Â Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2064 | Â Â Â Â Â Â Â Â Â Â ELSE |
---|
2065 |             DO m = 1, surf_usm_v(l)%ns |
---|
2066 | Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%wghf_eb_window_av(m)Â =Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
2067 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%wghf_eb_window_av(m)Â +Â Â Â Â & |
---|
2068 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%wghf_eb_window(m) |
---|
2069 | Â Â Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2070 | Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
2071 | |
---|
2072 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_wghf_green'Â ) |
---|
2073 | ! |
---|
2074 | !--Â Â Â Â Â Â Â Â Â array of heat flux from green ground (wall, roof, land) |
---|
2075 | Â Â Â Â Â Â Â Â Â Â IFÂ (Â l ==Â -1Â )Â THEN |
---|
2076 |             DO m = 1, surf_usm_h%ns |
---|
2077 | Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%wghf_eb_green_av(m)Â =Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
2078 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%wghf_eb_green_av(m)Â +Â Â Â Â Â Â & |
---|
2079 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%wghf_eb_green(m) |
---|
2080 | Â Â Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2081 | Â Â Â Â Â Â Â Â Â Â ELSE |
---|
2082 |             DO m = 1, surf_usm_v(l)%ns |
---|
2083 | Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%wghf_eb_green_av(m)Â =Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
2084 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%wghf_eb_green_av(m)Â +Â Â Â Â & |
---|
2085 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%wghf_eb_green(m) |
---|
2086 | Â Â Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2087 | Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
2088 | Â Â Â Â Â Â Â Â Â Â |
---|
2089 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_iwghf'Â ) |
---|
2090 | ! |
---|
2091 | !--Â Â Â Â Â Â Â Â Â array of heat flux from indoor ground (wall, roof, land) |
---|
2092 | Â Â Â Â Â Â Â Â Â Â IFÂ (Â l ==Â -1Â )Â THEN |
---|
2093 |             DO m = 1, surf_usm_h%ns |
---|
2094 | Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%iwghf_eb_av(m)Â =Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
2095 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%iwghf_eb_av(m)Â +Â Â Â Â Â Â & |
---|
2096 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%iwghf_eb(m) |
---|
2097 | Â Â Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2098 | Â Â Â Â Â Â Â Â Â Â ELSE |
---|
2099 |             DO m = 1, surf_usm_v(l)%ns |
---|
2100 | Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%iwghf_eb_av(m)Â =Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
2101 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%iwghf_eb_av(m)Â +Â Â Â Â & |
---|
2102 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%iwghf_eb(m) |
---|
2103 | Â Â Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2104 | Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
2105 | Â Â Â Â Â Â Â Â Â Â |
---|
2106 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_iwghf_window'Â ) |
---|
2107 | ! |
---|
2108 | !--Â Â Â Â Â Â Â Â Â array of heat flux from indoor window ground (wall, roof, land) |
---|
2109 | Â Â Â Â Â Â Â Â Â Â IFÂ (Â l ==Â -1Â )Â THEN |
---|
2110 |             DO m = 1, surf_usm_h%ns |
---|
2111 | Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%iwghf_eb_window_av(m)Â =Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
2112 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%iwghf_eb_window_av(m)Â +Â Â Â Â Â Â & |
---|
2113 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%iwghf_eb_window(m) |
---|
2114 | Â Â Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2115 | Â Â Â Â Â Â Â Â Â Â ELSE |
---|
2116 |             DO m = 1, surf_usm_v(l)%ns |
---|
2117 | Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%iwghf_eb_window_av(m)Â =Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
2118 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%iwghf_eb_window_av(m)Â +Â Â Â Â & |
---|
2119 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%iwghf_eb_window(m) |
---|
2120 | Â Â Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2121 | Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
2122 | Â Â Â Â Â Â Â Â Â Â |
---|
2123 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_t_surf_wall'Â ) |
---|
2124 | ! |
---|
2125 | !--Â Â Â Â Â Â Â Â Â surface temperature for surfaces |
---|
2126 | Â Â Â Â Â Â Â Â Â Â IFÂ (Â l ==Â -1Â )Â THEN |
---|
2127 |             DO m = 1, surf_usm_h%ns |
---|
2128 | Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%t_surf_wall_av(m)Â =Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â &Â |
---|
2129 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%t_surf_wall_av(m)Â +Â Â Â Â Â Â & |
---|
2130 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â t_surf_wall_h(m) |
---|
2131 | Â Â Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2132 | Â Â Â Â Â Â Â Â Â Â ELSE |
---|
2133 |             DO m = 1, surf_usm_v(l)%ns |
---|
2134 | Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%t_surf_wall_av(m)Â =Â Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
2135 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%t_surf_wall_av(m)Â +Â Â Â Â Â & |
---|
2136 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â t_surf_wall_v(l)%t(m) |
---|
2137 | Â Â Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2138 | Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
2139 | Â Â Â Â Â Â Â Â Â Â |
---|
2140 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_t_surf_window'Â ) |
---|
2141 | ! |
---|
2142 | !--Â Â Â Â Â Â Â Â Â surface temperature for window surfaces |
---|
2143 | Â Â Â Â Â Â Â Â Â Â IFÂ (Â l ==Â -1Â )Â THEN |
---|
2144 |             DO m = 1, surf_usm_h%ns |
---|
2145 | Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%t_surf_window_av(m)Â =Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
2146 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%t_surf_window_av(m)Â +Â Â Â Â Â Â & |
---|
2147 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â t_surf_window_h(m) |
---|
2148 | Â Â Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2149 | Â Â Â Â Â Â Â Â Â Â ELSE |
---|
2150 |             DO m = 1, surf_usm_v(l)%ns |
---|
2151 | Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%t_surf_window_av(m)Â =Â Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
2152 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%t_surf_window_av(m)Â +Â Â Â Â Â & |
---|
2153 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â t_surf_window_v(l)%t(m) |
---|
2154 | Â Â Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2155 | Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
2156 | Â Â Â Â Â Â Â Â Â Â |
---|
2157 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_t_surf_green'Â ) |
---|
2158 | ! |
---|
2159 | !--Â Â Â Â Â Â Â Â Â surface temperature for green surfaces |
---|
2160 | Â Â Â Â Â Â Â Â Â Â IFÂ (Â l ==Â -1Â )Â THEN |
---|
2161 |             DO m = 1, surf_usm_h%ns |
---|
2162 | Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%t_surf_green_av(m)Â =Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
2163 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%t_surf_green_av(m)Â +Â Â Â Â Â Â & |
---|
2164 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â t_surf_green_h(m) |
---|
2165 | Â Â Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2166 | Â Â Â Â Â Â Â Â Â Â ELSE |
---|
2167 |             DO m = 1, surf_usm_v(l)%ns |
---|
2168 | Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%t_surf_green_av(m)Â =Â Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
2169 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%t_surf_green_av(m)Â +Â Â Â Â Â & |
---|
2170 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â t_surf_green_v(l)%t(m) |
---|
2171 | Â Â Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2172 | Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
2173 | Â Â Â Â Â Â Â Â |
---|
2174 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_theta_10cm'Â ) |
---|
2175 | ! |
---|
2176 | !--Â Â Â Â Â Â Â Â Â near surface temperature for whole surfaces |
---|
2177 | Â Â Â Â Â Â Â Â Â Â IFÂ (Â l ==Â -1Â )Â THEN |
---|
2178 |             DO m = 1, surf_usm_h%ns |
---|
2179 | Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%pt_10cm_av(m)Â =Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
2180 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%pt_10cm_av(m)Â +Â Â Â Â Â Â & |
---|
2181 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%pt_10cm(m) |
---|
2182 | Â Â Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2183 | Â Â Â Â Â Â Â Â Â Â ELSE |
---|
2184 |             DO m = 1, surf_usm_v(l)%ns |
---|
2185 | Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%pt_10cm_av(m)Â =Â Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
2186 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%pt_10cm_av(m)Â +Â Â Â Â Â & |
---|
2187 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%pt_10cm(m) |
---|
2188 | Â Â Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2189 | Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
2190 | Â Â Â Â Â Â Â Â Â Â |
---|
2191 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_t_wall'Â ) |
---|
2192 | ! |
---|
2193 | !--         wall temperature for iwl layer of walls and land |
---|
2194 | Â Â Â Â Â Â Â Â Â Â IFÂ (Â l ==Â -1Â )Â THEN |
---|
2195 |             DO m = 1, surf_usm_h%ns |
---|
2196 | Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%t_wall_av(iwl,m)Â =Â Â Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
2197 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%t_wall_av(iwl,m)Â +Â Â Â Â & |
---|
2198 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â t_wall_h(iwl,m) |
---|
2199 | Â Â Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2200 | Â Â Â Â Â Â Â Â Â Â ELSE |
---|
2201 |             DO m = 1, surf_usm_v(l)%ns |
---|
2202 | Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%t_wall_av(iwl,m)Â =Â Â Â Â Â Â Â Â Â Â Â & |
---|
2203 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%t_wall_av(iwl,m)Â +Â Â Â & |
---|
2204 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â t_wall_v(l)%t(iwl,m) |
---|
2205 | Â Â Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2206 | Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
2207 | Â Â Â Â Â Â Â Â Â Â |
---|
2208 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_t_window'Â ) |
---|
2209 | ! |
---|
2210 | !--         window temperature for iwl layer of walls and land |
---|
2211 | Â Â Â Â Â Â Â Â Â Â IFÂ (Â l ==Â -1Â )Â THEN |
---|
2212 |             DO m = 1, surf_usm_h%ns |
---|
2213 | Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%t_window_av(iwl,m)Â =Â Â Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
2214 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%t_window_av(iwl,m)Â +Â Â Â Â & |
---|
2215 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â t_window_h(iwl,m) |
---|
2216 | Â Â Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2217 | Â Â Â Â Â Â Â Â Â Â ELSE |
---|
2218 |             DO m = 1, surf_usm_v(l)%ns |
---|
2219 | Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%t_window_av(iwl,m)Â =Â Â Â Â Â Â Â Â Â Â Â & |
---|
2220 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%t_window_av(iwl,m)Â +Â Â Â & |
---|
2221 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â t_window_v(l)%t(iwl,m) |
---|
2222 | Â Â Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2223 | Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
2224 | |
---|
2225 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_t_green'Â ) |
---|
2226 | ! |
---|
2227 | !--         green temperature for iwl layer of walls and land |
---|
2228 | Â Â Â Â Â Â Â Â Â Â IFÂ (Â l ==Â -1Â )Â THEN |
---|
2229 |             DO m = 1, surf_usm_h%ns |
---|
2230 | Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%t_green_av(iwl,m)Â =Â Â Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
2231 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%t_green_av(iwl,m)Â +Â Â Â Â & |
---|
2232 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â t_green_h(iwl,m) |
---|
2233 | Â Â Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2234 | Â Â Â Â Â Â Â Â Â Â ELSE |
---|
2235 |             DO m = 1, surf_usm_v(l)%ns |
---|
2236 | Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%t_green_av(iwl,m)Â =Â Â Â Â Â Â Â Â Â Â Â & |
---|
2237 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%t_green_av(iwl,m)Â +Â Â Â & |
---|
2238 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â t_green_v(l)%t(iwl,m) |
---|
2239 | Â Â Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2240 | Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
2241 | |
---|
2242 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_swc'Â ) |
---|
2243 | ! |
---|
2244 | !--         soil water content for iwl layer of walls and land |
---|
2245 | Â Â Â Â Â Â Â Â Â Â IFÂ (Â l ==Â -1Â )Â THEN |
---|
2246 |           DO m = 1, surf_usm_h%ns |
---|
2247 | Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%swc_av(iwl,m)Â =Â Â Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
2248 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%swc_av(iwl,m)Â +Â Â Â Â & |
---|
2249 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â swc_h(iwl,m) |
---|
2250 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2251 | Â Â Â Â Â Â Â Â Â Â ELSE |
---|
2252 |             DO m = 1, surf_usm_v(l)%ns |
---|
2253 | Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%swc_av(iwl,m)Â =Â Â Â Â Â Â Â Â Â Â Â & |
---|
2254 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%swc_av(iwl,m)Â +Â Â Â & |
---|
2255 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â swc_v(l)%t(iwl,m) |
---|
2256 | Â Â Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2257 | Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
2258 | |
---|
2259 | Â Â Â Â Â Â Â Â CASE DEFAULT |
---|
2260 | Â Â Â Â Â Â Â Â Â Â CONTINUE |
---|
2261 | |
---|
2262 | Â Â Â Â Â Â END SELECT |
---|
2263 | |
---|
2264 | Â Â Â Â ELSEIF (Â mode ==Â 'average'Â )Â THEN |
---|
2265 | Â Â Â Â Â Â |
---|
2266 | Â Â Â Â Â Â SELECT CASEÂ (Â TRIM(Â var )Â ) |
---|
2267 | |
---|
2268 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_wshf'Â ) |
---|
2269 | ! |
---|
2270 | !--Â Â Â Â Â Â Â Â Â array of sensible heat flux from surfaces (land, roof, wall) |
---|
2271 | Â Â Â Â Â Â Â Â Â Â IFÂ (Â l ==Â -1Â )Â THEN |
---|
2272 |             DO m = 1, surf_usm_h%ns |
---|
2273 | Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%wshf_eb_av(m)Â =Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
2274 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%wshf_eb_av(m)Â /Â Â Â Â Â Â & |
---|
2275 |                        REAL( average_count_3d, kind=wp ) |
---|
2276 | Â Â Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2277 | Â Â Â Â Â Â Â Â Â Â ELSE |
---|
2278 |             DO m = 1, surf_usm_v(l)%ns |
---|
2279 | Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%wshf_eb_av(m)Â =Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
2280 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%wshf_eb_av(m)Â /Â Â Â Â & |
---|
2281 |                      REAL( average_count_3d, kind=wp ) |
---|
2282 | Â Â Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2283 | Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
2284 | Â Â Â Â Â Â Â Â Â Â |
---|
2285 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_qsws'Â ) |
---|
2286 | ! |
---|
2287 | !--Â Â Â Â Â Â Â Â Â array of latent heat flux from surfaces (land, roof, wall) |
---|
2288 | Â Â Â Â Â Â Â Â Â Â IFÂ (Â l ==Â -1Â )Â THEN |
---|
2289 |           DO m = 1, surf_usm_h%ns |
---|
2290 | Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%qsws_eb_av(m)Â =Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
2291 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%qsws_eb_av(m)Â /Â Â Â Â Â Â & |
---|
2292 |                      REAL( average_count_3d, kind=wp ) |
---|
2293 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2294 | Â Â Â Â Â Â Â Â Â Â ELSE |
---|
2295 |             DO m = 1, surf_usm_v(l)%ns |
---|
2296 | Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%qsws_eb_av(m)Â =Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
2297 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%qsws_eb_av(m)Â /Â Â Â Â & |
---|
2298 |                      REAL( average_count_3d, kind=wp ) |
---|
2299 | Â Â Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2300 | Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
2301 | |
---|
2302 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_qsws_veg'Â ) |
---|
2303 | ! |
---|
2304 | !--Â Â Â Â Â Â Â Â Â array of latent heat flux from vegetation surfaces (land, roof, wall) |
---|
2305 | Â Â Â Â Â Â Â Â Â Â IFÂ (Â l ==Â -1Â )Â THEN |
---|
2306 |           DO m = 1, surf_usm_h%ns |
---|
2307 | Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%qsws_veg_av(m)Â =Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
2308 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%qsws_veg_av(m)Â /Â Â Â Â Â Â & |
---|
2309 |                      REAL( average_count_3d, kind=wp ) |
---|
2310 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2311 | Â Â Â Â Â Â Â Â Â Â ELSE |
---|
2312 |             DO m = 1, surf_usm_v(l)%ns |
---|
2313 | Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%qsws_veg_av(m)Â =Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
2314 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%qsws_veg_av(m)Â /Â Â Â Â & |
---|
2315 |                      REAL( average_count_3d, kind=wp ) |
---|
2316 | Â Â Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2317 | Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
2318 | Â Â Â Â Â Â Â Â Â Â |
---|
2319 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_qsws_liq'Â ) |
---|
2320 | ! |
---|
2321 | !--Â Â Â Â Â Â Â Â Â array of latent heat flux from surfaces with liquid (land, roof, wall) |
---|
2322 | Â Â Â Â Â Â Â Â Â Â IFÂ (Â l ==Â -1Â )Â THEN |
---|
2323 |           DO m = 1, surf_usm_h%ns |
---|
2324 | Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%qsws_liq_av(m)Â =Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
2325 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%qsws_liq_av(m)Â /Â Â Â Â Â Â & |
---|
2326 |                      REAL( average_count_3d, kind=wp ) |
---|
2327 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2328 | Â Â Â Â Â Â Â Â Â Â ELSE |
---|
2329 |             DO m = 1, surf_usm_v(l)%ns |
---|
2330 | Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%qsws_liq_av(m)Â =Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
2331 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%qsws_liq_av(m)Â /Â Â Â Â & |
---|
2332 |                      REAL( average_count_3d, kind=wp ) |
---|
2333 | Â Â Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2334 | Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
2335 | Â Â Â Â Â Â Â Â Â Â |
---|
2336 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_wghf'Â ) |
---|
2337 | ! |
---|
2338 | !--Â Â Â Â Â Â Â Â Â array of heat flux from ground (wall, roof, land) |
---|
2339 | Â Â Â Â Â Â Â Â Â Â IFÂ (Â l ==Â -1Â )Â THEN |
---|
2340 |             DO m = 1, surf_usm_h%ns |
---|
2341 | Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%wghf_eb_av(m)Â =Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
2342 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%wghf_eb_av(m)Â /Â Â Â Â Â Â & |
---|
2343 |                        REAL( average_count_3d, kind=wp ) |
---|
2344 | Â Â Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2345 | Â Â Â Â Â Â Â Â Â Â ELSE |
---|
2346 |             DO m = 1, surf_usm_v(l)%ns |
---|
2347 | Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%wghf_eb_av(m)Â =Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
2348 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%wghf_eb_av(m)Â /Â Â Â Â & |
---|
2349 |                      REAL( average_count_3d, kind=wp ) |
---|
2350 | Â Â Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2351 | Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
2352 | Â Â Â Â Â Â Â Â Â Â |
---|
2353 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_wghf_window'Â ) |
---|
2354 | ! |
---|
2355 | !--Â Â Â Â Â Â Â Â Â array of heat flux from window ground (wall, roof, land) |
---|
2356 | Â Â Â Â Â Â Â Â Â Â IFÂ (Â l ==Â -1Â )Â THEN |
---|
2357 |             DO m = 1, surf_usm_h%ns |
---|
2358 | Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%wghf_eb_window_av(m)Â =Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
2359 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%wghf_eb_window_av(m)Â /Â Â Â Â Â Â & |
---|
2360 |                        REAL( average_count_3d, kind=wp ) |
---|
2361 | Â Â Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2362 | Â Â Â Â Â Â Â Â Â Â ELSE |
---|
2363 |             DO m = 1, surf_usm_v(l)%ns |
---|
2364 | Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%wghf_eb_window_av(m)Â =Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
2365 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%wghf_eb_window_av(m)Â /Â Â Â Â & |
---|
2366 |                      REAL( average_count_3d, kind=wp ) |
---|
2367 | Â Â Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2368 | Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
2369 | |
---|
2370 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_wghf_green'Â ) |
---|
2371 | ! |
---|
2372 | !--Â Â Â Â Â Â Â Â Â array of heat flux from green ground (wall, roof, land) |
---|
2373 | Â Â Â Â Â Â Â Â Â Â IFÂ (Â l ==Â -1Â )Â THEN |
---|
2374 |             DO m = 1, surf_usm_h%ns |
---|
2375 | Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%wghf_eb_green_av(m)Â =Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
2376 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%wghf_eb_green_av(m)Â /Â Â Â Â Â Â & |
---|
2377 |                        REAL( average_count_3d, kind=wp ) |
---|
2378 | Â Â Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2379 | Â Â Â Â Â Â Â Â Â Â ELSE |
---|
2380 |             DO m = 1, surf_usm_v(l)%ns |
---|
2381 | Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%wghf_eb_green_av(m)Â =Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
2382 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%wghf_eb_green_av(m)Â /Â Â Â Â & |
---|
2383 |                      REAL( average_count_3d, kind=wp ) |
---|
2384 | Â Â Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2385 | Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
2386 | |
---|
2387 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_iwghf'Â ) |
---|
2388 | ! |
---|
2389 | !--Â Â Â Â Â Â Â Â Â array of heat flux from indoor ground (wall, roof, land) |
---|
2390 | Â Â Â Â Â Â Â Â Â Â IFÂ (Â l ==Â -1Â )Â THEN |
---|
2391 |             DO m = 1, surf_usm_h%ns |
---|
2392 | Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%iwghf_eb_av(m)Â =Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
2393 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%iwghf_eb_av(m)Â /Â Â Â Â Â Â & |
---|
2394 |                        REAL( average_count_3d, kind=wp ) |
---|
2395 | Â Â Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2396 | Â Â Â Â Â Â Â Â Â Â ELSE |
---|
2397 |             DO m = 1, surf_usm_v(l)%ns |
---|
2398 | Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%iwghf_eb_av(m)Â =Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
2399 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%iwghf_eb_av(m)Â /Â Â Â Â & |
---|
2400 |                      REAL( average_count_3d, kind=wp ) |
---|
2401 | Â Â Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2402 | Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
2403 | Â Â Â Â Â Â Â Â Â Â |
---|
2404 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_iwghf_window'Â ) |
---|
2405 | ! |
---|
2406 | !--Â Â Â Â Â Â Â Â Â array of heat flux from indoor window ground (wall, roof, land) |
---|
2407 | Â Â Â Â Â Â Â Â Â Â IFÂ (Â l ==Â -1Â )Â THEN |
---|
2408 |             DO m = 1, surf_usm_h%ns |
---|
2409 | Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%iwghf_eb_window_av(m)Â =Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
2410 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%iwghf_eb_window_av(m)Â /Â Â Â Â Â Â & |
---|
2411 |                        REAL( average_count_3d, kind=wp ) |
---|
2412 | Â Â Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2413 | Â Â Â Â Â Â Â Â Â Â ELSE |
---|
2414 |             DO m = 1, surf_usm_v(l)%ns |
---|
2415 | Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%iwghf_eb_window_av(m)Â =Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
2416 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%iwghf_eb_window_av(m)Â /Â Â Â Â & |
---|
2417 |                      REAL( average_count_3d, kind=wp ) |
---|
2418 | Â Â Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2419 | Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
2420 | Â Â Â Â Â Â Â Â Â Â |
---|
2421 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_t_surf_wall'Â ) |
---|
2422 | ! |
---|
2423 | !--Â Â Â Â Â Â Â Â Â surface temperature for surfaces |
---|
2424 | Â Â Â Â Â Â Â Â Â Â IFÂ (Â l ==Â -1Â )Â THEN |
---|
2425 |             DO m = 1, surf_usm_h%ns |
---|
2426 | Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%t_surf_wall_av(m)Â =Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â &Â |
---|
2427 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%t_surf_wall_av(m)Â /Â Â Â Â Â Â & |
---|
2428 |                        REAL( average_count_3d, kind=wp ) |
---|
2429 | Â Â Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2430 | Â Â Â Â Â Â Â Â Â Â ELSE |
---|
2431 |             DO m = 1, surf_usm_v(l)%ns |
---|
2432 | Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%t_surf_wall_av(m)Â =Â Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
2433 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%t_surf_wall_av(m)Â /Â Â Â Â Â & |
---|
2434 |                      REAL( average_count_3d, kind=wp ) |
---|
2435 | Â Â Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2436 | Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
2437 | Â Â Â Â Â Â Â Â Â Â |
---|
2438 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_t_surf_window'Â ) |
---|
2439 | ! |
---|
2440 | !--Â Â Â Â Â Â Â Â Â surface temperature for window surfaces |
---|
2441 | Â Â Â Â Â Â Â Â Â Â IFÂ (Â l ==Â -1Â )Â THEN |
---|
2442 |             DO m = 1, surf_usm_h%ns |
---|
2443 | Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%t_surf_window_av(m)Â =Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
2444 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%t_surf_window_av(m)Â /Â Â Â Â Â Â & |
---|
2445 |                        REAL( average_count_3d, kind=wp ) |
---|
2446 | Â Â Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2447 | Â Â Â Â Â Â Â Â Â Â ELSE |
---|
2448 |             DO m = 1, surf_usm_v(l)%ns |
---|
2449 | Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%t_surf_window_av(m)Â =Â Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
2450 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%t_surf_window_av(m)Â /Â Â Â Â Â & |
---|
2451 |                      REAL( average_count_3d, kind=wp ) |
---|
2452 | Â Â Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2453 | Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
2454 | Â Â Â Â Â Â Â Â Â Â |
---|
2455 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_t_surf_green'Â ) |
---|
2456 | ! |
---|
2457 | !--Â Â Â Â Â Â Â Â Â surface temperature for green surfaces |
---|
2458 | Â Â Â Â Â Â Â Â Â Â IFÂ (Â l ==Â -1Â )Â THEN |
---|
2459 |             DO m = 1, surf_usm_h%ns |
---|
2460 | Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%t_surf_green_av(m)Â =Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
2461 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%t_surf_green_av(m)Â /Â Â Â Â Â Â & |
---|
2462 |                        REAL( average_count_3d, kind=wp ) |
---|
2463 | Â Â Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2464 | Â Â Â Â Â Â Â Â Â Â ELSE |
---|
2465 |             DO m = 1, surf_usm_v(l)%ns |
---|
2466 | Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%t_surf_green_av(m)Â =Â Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
2467 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%t_surf_green_av(m)Â /Â Â Â Â Â & |
---|
2468 |                      REAL( average_count_3d, kind=wp ) |
---|
2469 | Â Â Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2470 | Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
2471 | Â Â Â Â Â Â Â Â Â Â |
---|
2472 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_theta_10cm'Â ) |
---|
2473 | ! |
---|
2474 | !--Â Â Â Â Â Â Â Â Â near surface temperature for whole surfaces |
---|
2475 | Â Â Â Â Â Â Â Â Â Â IFÂ (Â l ==Â -1Â )Â THEN |
---|
2476 |             DO m = 1, surf_usm_h%ns |
---|
2477 | Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%pt_10cm_av(m)Â =Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
2478 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%pt_10cm_av(m)Â /Â Â Â Â Â Â & |
---|
2479 |                        REAL( average_count_3d, kind=wp ) |
---|
2480 | Â Â Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2481 | Â Â Â Â Â Â Â Â Â Â ELSE |
---|
2482 |             DO m = 1, surf_usm_v(l)%ns |
---|
2483 | Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%pt_10cm_av(m)Â =Â Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
2484 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%pt_10cm_av(m)Â /Â Â Â Â Â & |
---|
2485 |                      REAL( average_count_3d, kind=wp ) |
---|
2486 | Â Â Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2487 | Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
2488 | |
---|
2489 | Â Â Â Â Â Â Â Â Â Â |
---|
2490 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_t_wall'Â ) |
---|
2491 | ! |
---|
2492 | !--         wall temperature for iwl layer of walls and land |
---|
2493 | Â Â Â Â Â Â Â Â Â Â IFÂ (Â l ==Â -1Â )Â THEN |
---|
2494 |             DO m = 1, surf_usm_h%ns |
---|
2495 | Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%t_wall_av(iwl,m)Â =Â Â Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
2496 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%t_wall_av(iwl,m)Â /Â Â Â Â & |
---|
2497 |                        REAL( average_count_3d, kind=wp ) |
---|
2498 | Â Â Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2499 | Â Â Â Â Â Â Â Â Â Â ELSE |
---|
2500 |             DO m = 1, surf_usm_v(l)%ns |
---|
2501 | Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%t_wall_av(iwl,m)Â =Â Â Â Â Â Â Â Â Â Â Â & |
---|
2502 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%t_wall_av(iwl,m)Â /Â Â Â & |
---|
2503 |                      REAL( average_count_3d, kind=wp ) |
---|
2504 | Â Â Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2505 | Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
2506 | |
---|
2507 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_t_window'Â ) |
---|
2508 | ! |
---|
2509 | !--         window temperature for iwl layer of walls and land |
---|
2510 | Â Â Â Â Â Â Â Â Â Â IFÂ (Â l ==Â -1Â )Â THEN |
---|
2511 |             DO m = 1, surf_usm_h%ns |
---|
2512 | Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%t_window_av(iwl,m)Â =Â Â Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
2513 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%t_window_av(iwl,m)Â /Â Â Â Â & |
---|
2514 |                        REAL( average_count_3d, kind=wp ) |
---|
2515 | Â Â Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2516 | Â Â Â Â Â Â Â Â Â Â ELSE |
---|
2517 |             DO m = 1, surf_usm_v(l)%ns |
---|
2518 | Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%t_window_av(iwl,m)Â =Â Â Â Â Â Â Â Â Â Â Â & |
---|
2519 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%t_window_av(iwl,m)Â /Â Â Â & |
---|
2520 |                      REAL( average_count_3d, kind=wp ) |
---|
2521 | Â Â Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2522 | Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
2523 | |
---|
2524 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_t_green'Â ) |
---|
2525 | ! |
---|
2526 | !--         green temperature for iwl layer of walls and land |
---|
2527 | Â Â Â Â Â Â Â Â Â Â IFÂ (Â l ==Â -1Â )Â THEN |
---|
2528 |             DO m = 1, surf_usm_h%ns |
---|
2529 | Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%t_green_av(iwl,m)Â =Â Â Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
2530 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%t_green_av(iwl,m)Â /Â Â Â Â & |
---|
2531 |                        REAL( average_count_3d, kind=wp ) |
---|
2532 | Â Â Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2533 | Â Â Â Â Â Â Â Â Â Â ELSE |
---|
2534 |             DO m = 1, surf_usm_v(l)%ns |
---|
2535 | Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%t_green_av(iwl,m)Â =Â Â Â Â Â Â Â Â Â Â Â & |
---|
2536 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%t_green_av(iwl,m)Â /Â Â Â & |
---|
2537 |                      REAL( average_count_3d, kind=wp ) |
---|
2538 | Â Â Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2539 | Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
2540 | Â Â Â Â Â Â Â Â Â Â |
---|
2541 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_swc'Â ) |
---|
2542 | ! |
---|
2543 | !--         soil water content for iwl layer of walls and land |
---|
2544 | Â Â Â Â Â Â Â Â Â Â IFÂ (Â l ==Â -1Â )Â THEN |
---|
2545 |           DO m = 1, surf_usm_h%ns |
---|
2546 | Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%swc_av(iwl,m)Â =Â Â Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
2547 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%swc_av(iwl,m)Â /Â Â Â Â & |
---|
2548 |                      REAL( average_count_3d, kind=wp ) |
---|
2549 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2550 | Â Â Â Â Â Â Â Â Â Â ELSE |
---|
2551 |             DO m = 1, surf_usm_v(l)%ns |
---|
2552 | Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%swc_av(iwl,m)Â =Â Â Â Â Â Â Â Â Â Â Â & |
---|
2553 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%swc_av(iwl,m)Â /Â Â Â & |
---|
2554 |                      REAL( average_count_3d, kind=wp ) |
---|
2555 | Â Â Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2556 | Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
2557 | |
---|
2558 | |
---|
2559 | Â Â Â Â Â Â END SELECT |
---|
2560 | |
---|
2561 | Â Â Â Â ENDIF |
---|
2562 | |
---|
2563 | Â Â Â Â ENDIF |
---|
2564 | |
---|
2565 | Â Â END SUBROUTINE usm_3d_data_averaging |
---|
2566 | |
---|
2567 | |
---|
2568 | |
---|
2569 | !------------------------------------------------------------------------------! |
---|
2570 | ! Description: |
---|
2571 | ! ------------ |
---|
2572 | !> Set internal Neumann boundary condition at outer soil grid points |
---|
2573 | !> for temperature and humidity. |
---|
2574 | !------------------------------------------------------------------------------! |
---|
2575 | Â SUBROUTINE usm_boundary_condition |
---|
2576 | Â |
---|
2577 | Â Â IMPLICIT NONE |
---|
2578 | |
---|
2579 |   INTEGER(iwp) :: i   !< grid index x-direction |
---|
2580 |   INTEGER(iwp) :: ioff  !< offset index x-direction indicating location of soil grid point |
---|
2581 |   INTEGER(iwp) :: j   !< grid index y-direction |
---|
2582 |   INTEGER(iwp) :: joff  !< offset index x-direction indicating location of soil grid point |
---|
2583 |   INTEGER(iwp) :: k   !< grid index z-direction |
---|
2584 |   INTEGER(iwp) :: koff  !< offset index x-direction indicating location of soil grid point |
---|
2585 |   INTEGER(iwp) :: l   !< running index surface-orientation |
---|
2586 |   INTEGER(iwp) :: m   !< running index surface elements |
---|
2587 | |
---|
2588 | Â Â koff =Â surf_usm_h%koff |
---|
2589 |   DO m = 1, surf_usm_h%ns |
---|
2590 | Â Â Â Â i =Â surf_usm_h%i(m) |
---|
2591 | Â Â Â Â j =Â surf_usm_h%j(m) |
---|
2592 | Â Â Â Â k =Â surf_usm_h%k(m) |
---|
2593 | Â Â Â Â pt(k+koff,j,i)Â =Â pt(k,j,i) |
---|
2594 | Â Â ENDDO |
---|
2595 | |
---|
2596 |   DO l = 0, 3 |
---|
2597 | Â Â Â Â ioff =Â surf_usm_v(l)%ioff |
---|
2598 | Â Â Â Â joff =Â surf_usm_v(l)%joff |
---|
2599 |     DO m = 1, surf_usm_v(l)%ns |
---|
2600 | Â Â Â Â Â i =Â surf_usm_v(l)%i(m) |
---|
2601 | Â Â Â Â Â j =Â surf_usm_v(l)%j(m) |
---|
2602 | Â Â Â Â Â k =Â surf_usm_v(l)%k(m) |
---|
2603 | Â Â Â Â Â pt(k,j+joff,i+ioff)Â =Â pt(k,j,i) |
---|
2604 | Â Â Â Â ENDDO |
---|
2605 | Â Â ENDDO |
---|
2606 | |
---|
2607 | Â END SUBROUTINE usm_boundary_condition |
---|
2608 | |
---|
2609 | |
---|
2610 | !------------------------------------------------------------------------------! |
---|
2611 | ! |
---|
2612 | ! Description: |
---|
2613 | ! ------------ |
---|
2614 | !> Subroutine checks variables and assigns units. |
---|
2615 | !> It is called out from subroutine check_parameters. |
---|
2616 | !------------------------------------------------------------------------------! |
---|
2617 |   SUBROUTINE usm_check_data_output( variable, unit ) |
---|
2618 | |
---|
2619 | Â Â Â Â IMPLICIT NONE |
---|
2620 | |
---|
2621 |     CHARACTER(LEN=*),INTENT(IN)  :: variable  !< |
---|
2622 |     CHARACTER(LEN=*),INTENT(OUT)  :: unit    !< |
---|
2623 | |
---|
2624 |     INTEGER(iwp)                 :: i,j,l     !< index |
---|
2625 | Â Â Â Â CHARACTER(LEN=2)Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â ::Â ls |
---|
2626 |     CHARACTER(LEN=varnamelength)         :: var      !< TRIM(variable) |
---|
2627 |     INTEGER(iwp), PARAMETER            :: nl1 = 16   !< number of directional usm variables |
---|
2628 |     CHARACTER(LEN=varnamelength), DIMENSION(nl1) :: varlist1 = & !< list of directional usm variables |
---|
2629 |          (/'usm_wshf           ', & |
---|
2630 |           'usm_wghf           ', & |
---|
2631 |           'usm_wghf_window        ', & |
---|
2632 |           'usm_wghf_green        ', & |
---|
2633 |           'usm_iwghf           ', & |
---|
2634 |           'usm_iwghf_window       ', & |
---|
2635 |           'usm_surfz           ', & |
---|
2636 |           'usm_surfwintrans       ', & |
---|
2637 |           'usm_surfcat          ', & |
---|
2638 |           'usm_surfalb          ', & |
---|
2639 |           'usm_surfemis         ', & |
---|
2640 |           'usm_t_surf_wall        ', & |
---|
2641 |           'usm_t_surf_window       ', & |
---|
2642 |           'usm_t_surf_green       ', & |
---|
2643 |           'usm_t_green          ', & |
---|
2644 |           'usm_theta_10cm        '/) |
---|
2645 | |
---|
2646 |     INTEGER(iwp), PARAMETER            :: nl2 = 3    !< number of directional layer usm variables |
---|
2647 |     CHARACTER(LEN=varnamelength), DIMENSION(nl2) :: varlist2 = & !< list of directional layer usm variables |
---|
2648 |          (/'usm_t_wall          ', & |
---|
2649 |           'usm_t_window         ', & |
---|
2650 |           'usm_t_green          '/) |
---|
2651 | |
---|
2652 |     INTEGER(iwp), PARAMETER            :: nd = 5   !< number of directions |
---|
2653 |     CHARACTER(LEN=6), DIMENSION(nd), PARAMETER :: dirname = & !< direction names |
---|
2654 | Â Â Â Â Â Â Â Â Â (/'_roof ','_south','_north','_west ','_east '/) |
---|
2655 |     LOGICAL                    :: lfound   !< flag if the variable is found |
---|
2656 | |
---|
2657 | |
---|
2658 | Â Â Â Â lfound =Â .FALSE. |
---|
2659 | |
---|
2660 | Â Â Â Â var =Â TRIM(variable) |
---|
2661 | |
---|
2662 | ! |
---|
2663 | !--Â Â Â check if variable exists |
---|
2664 | !--Â Â Â directional variables |
---|
2665 |     DO i = 1, nl1 |
---|
2666 |       DO j = 1, nd |
---|
2667 | Â Â Â Â Â Â Â IFÂ (Â TRIM(var)Â ==Â TRIM(varlist1(i))//TRIM(dirname(j))Â )Â THEN |
---|
2668 | Â Â Â Â Â Â Â Â Â lfound =Â .TRUE. |
---|
2669 | Â Â Â Â Â Â Â Â Â EXIT |
---|
2670 | Â Â Â Â Â Â Â ENDIF |
---|
2671 | Â Â Â Â Â Â Â IFÂ (Â lfound )Â EXIT |
---|
2672 | Â Â Â Â Â Â ENDDO |
---|
2673 | Â Â Â Â ENDDO |
---|
2674 | Â Â Â Â IFÂ (Â lfound )Â GOTO 10 |
---|
2675 | ! |
---|
2676 | !--Â Â Â directional layer variables |
---|
2677 |     DO i = 1, nl2 |
---|
2678 |       DO j = 1, nd |
---|
2679 |        DO l = nzb_wall, nzt_wall |
---|
2680 | Â Â Â Â Â Â Â Â Â WRITE(ls,'(A1,I1)')Â '_',l |
---|
2681 | Â Â Â Â Â Â Â Â Â IFÂ (Â TRIM(var)Â ==Â TRIM(varlist2(i))//TRIM(ls)//TRIM(dirname(j))Â )Â THEN |
---|
2682 | Â Â Â Â Â Â Â Â Â Â lfound =Â .TRUE. |
---|
2683 | Â Â Â Â Â Â Â Â Â Â EXIT |
---|
2684 | Â Â Â Â Â Â Â Â Â ENDIF |
---|
2685 | Â Â Â Â Â Â Â ENDDO |
---|
2686 | Â Â Â Â Â Â Â IFÂ (Â lfound )Â EXIT |
---|
2687 | Â Â Â Â Â Â ENDDO |
---|
2688 | Â Â Â Â ENDDO |
---|
2689 |     IF ( .NOT. lfound ) THEN |
---|
2690 | Â Â Â Â Â Â unit =Â 'illegal' |
---|
2691 | Â Â Â Â Â Â RETURN |
---|
2692 | Â Â Â Â ENDIF |
---|
2693 | 10Â Â Â CONTINUE |
---|
2694 | |
---|
2695 |     IF ( var(1:9) == 'usm_wshf_' .OR. var(1:9) == 'usm_wghf_' .OR.         & |
---|
2696 |        var(1:16) == 'usm_wghf_window_' .OR. var(1:15) == 'usm_wghf_green_' .OR.   & |
---|
2697 |        var(1:10) == 'usm_iwghf_' .OR. var(1:17) == 'usm_iwghf_window_'  .OR.   & |
---|
2698 |        var(1:17) == 'usm_surfwintrans_' .OR.                    & |
---|
2699 |        var(1:9) == 'usm_qsws_' .OR. var(1:13) == 'usm_qsws_veg_' .OR.     & |
---|
2700 | Â Â Â Â Â Â Â var(1:13)Â ==Â 'usm_qsws_liq_'Â )Â THEN |
---|
2701 | Â Â Â Â Â Â unit =Â 'W/m2' |
---|
2702 |     ELSE IF ( var(1:15) == 'usm_t_surf_wall'  .OR. var(1:10) == 'usm_t_wall' .OR.  & |
---|
2703 |          var(1:12) == 'usm_t_window' .OR. var(1:17) == 'usm_t_surf_window' .OR. & |
---|
2704 |          var(1:16) == 'usm_t_surf_green' .OR.                  & |
---|
2705 |          var(1:11) == 'usm_t_green' .OR. var(1:7) == 'usm_swc' .OR.       & |
---|
2706 | Â Â Â Â Â Â Â Â Â var(1:14)Â ==Â 'usm_theta_10cm'Â )Â THEN |
---|
2707 | Â Â Â Â Â Â unit =Â 'K' |
---|
2708 |     ELSE IF ( var(1:9) == 'usm_surfz' .OR. var(1:11) == 'usm_surfcat' .OR.     & |
---|
2709 |          var(1:11) == 'usm_surfalb' .OR. var(1:12) == 'usm_surfemis' ) THEN |
---|
2710 | Â Â Â Â Â Â unit =Â '1' |
---|
2711 | Â Â Â Â ELSE |
---|
2712 | Â Â Â Â Â Â unit =Â 'illegal' |
---|
2713 | Â Â Â Â ENDIF |
---|
2714 | |
---|
2715 | Â Â END SUBROUTINE usm_check_data_output |
---|
2716 | |
---|
2717 | |
---|
2718 | !------------------------------------------------------------------------------! |
---|
2719 | ! Description: |
---|
2720 | ! ------------ |
---|
2721 | !> Check parameters routine for urban surface model |
---|
2722 | !------------------------------------------------------------------------------! |
---|
2723 | Â Â SUBROUTINE usm_check_parameters |
---|
2724 | |
---|
2725 |     USE control_parameters,                         & |
---|
2726 |       ONLY: bc_pt_b, bc_q_b, constant_flux_layer, large_scale_forcing,  & |
---|
2727 |          lsf_surf, topography |
---|
2728 | |
---|
2729 |     USE netcdf_data_input_mod,                       & |
---|
2730 | Â Â Â Â Â Â ONLY:Â building_type_f |
---|
2731 | |
---|
2732 | Â Â Â Â IMPLICIT NONE |
---|
2733 | |
---|
2734 |     INTEGER(iwp) :: i    !< running index, x-dimension |
---|
2735 |     INTEGER(iwp) :: j    !< running index, y-dimension |
---|
2736 | |
---|
2737 | ! |
---|
2738 | !--Â Â Dirichlet boundary conditions are required as the surface fluxes are |
---|
2739 | !--Â Â calculated from the temperature/humidity gradients in the urban surface |
---|
2740 | !--Â Â model |
---|
2741 |     IF ( bc_pt_b == 'neumann'  .OR.  bc_q_b == 'neumann' ) THEN |
---|
2742 | Â Â Â Â Â message_string =Â 'urban surface model requires setting of '//Â Â Â Â & |
---|
2743 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â 'bc_pt_b = "dirichlet" and '//Â Â Â Â Â Â Â Â Â Â Â & |
---|
2744 |               'bc_q_b = "dirichlet"' |
---|
2745 |      CALL message( 'usm_check_parameters', 'PA0590', 1, 2, 0, 6, 0 ) |
---|
2746 | Â Â Â Â ENDIF |
---|
2747 | |
---|
2748 |     IF ( .NOT. constant_flux_layer ) THEN |
---|
2749 | Â Â Â Â Â message_string =Â 'urban surface model requires '//Â Â Â Â Â Â Â Â Â Â & |
---|
2750 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â 'constant_flux_layer = .T.' |
---|
2751 |      CALL message( 'usm_check_parameters', 'PA0084', 1, 2, 0, 6, 0 ) |
---|
2752 | Â Â Â Â ENDIF |
---|
2753 | |
---|
2754 |     IF ( .NOT. radiation ) THEN |
---|
2755 | Â Â Â Â Â message_string =Â 'urban surface model requires '//Â Â Â Â Â Â Â Â Â Â & |
---|
2756 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â 'the radiation model to be switched on' |
---|
2757 |      CALL message( 'usm_check_parameters', 'PA0084', 1, 2, 0, 6, 0 ) |
---|
2758 | Â Â Â Â ENDIF |
---|
2759 | !    |
---|
2760 | !--Â Â Surface forcing has to be disabled for LSF in case of enabled |
---|
2761 | !--Â Â urban surface module |
---|
2762 | Â Â Â Â IFÂ (Â large_scale_forcing )Â THEN |
---|
2763 | Â Â Â Â Â lsf_surf =Â .FALSE. |
---|
2764 | Â Â Â Â ENDIF |
---|
2765 | ! |
---|
2766 | !--Â Â Topography |
---|
2767 | Â Â Â Â IFÂ (Â topography ==Â 'flat'Â )Â THEN |
---|
2768 | Â Â Â Â Â message_string =Â 'topography /= "flat" is required '//Â Â Â Â Â Â Â Â & |
---|
2769 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â 'when using the urban surface model' |
---|
2770 |      CALL message( 'usm_check_parameters', 'PA0592', 1, 2, 0, 6, 0 ) |
---|
2771 | Â Â Â Â ENDIF |
---|
2772 | ! |
---|
2773 | !--Â Â naheatlayers |
---|
2774 | Â Â Â Â IFÂ (Â naheatlayers >Â nzt )Â THEN |
---|
2775 | Â Â Â Â Â message_string =Â 'number of anthropogenic heat layers '//Â Â Â Â Â Â & |
---|
2776 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â '"naheatlayers" can not be larger than'//Â Â Â Â Â Â & |
---|
2777 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â ' number of domain layers "nzt"' |
---|
2778 |      CALL message( 'usm_check_parameters', 'PA0593', 1, 2, 0, 6, 0 ) |
---|
2779 | Â Â Â Â ENDIF |
---|
2780 | ! |
---|
2781 | !--Â Â Check if building types are set within a valid range. |
---|
2782 |     IF ( building_type < LBOUND( building_pars, 2 ) .AND.         & |
---|
2783 |       building_type > UBOUND( building_pars, 2 ) ) THEN |
---|
2784 |      WRITE( message_string, * ) 'building_type = ', building_type,    & |
---|
2785 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â ' is out of the valid range' |
---|
2786 |      CALL message( 'usm_check_parameters', 'PA0529', 2, 2, 0, 6, 0 ) |
---|
2787 | Â Â Â Â ENDIF |
---|
2788 | Â Â Â Â IFÂ (Â building_type_f%from_file )Â THEN |
---|
2789 |      DO i = nxl, nxr |
---|
2790 |        DO j = nys, nyn |
---|
2791 |         IF ( building_type_f%var(j,i) /= building_type_f%fill .AND.  & |
---|
2792 |        ( building_type_f%var(j,i) < LBOUND( building_pars, 2 ) .OR.  & |
---|
2793 |         building_type_f%var(j,i) > UBOUND( building_pars, 2 ) ) )   & |
---|
2794 | Â Â Â Â Â Â Â Â THEN |
---|
2795 |           WRITE( message_string, * ) 'building_type = is out of ' // & |
---|
2796 |                     'the valid range at (j,i) = ', j, i |
---|
2797 |           CALL message( 'usm_check_parameters', 'PA0529', 2, 2, 0, 6, 0 ) |
---|
2798 | Â Â Â Â Â Â Â Â ENDIF |
---|
2799 | Â Â Â Â Â Â Â ENDDO |
---|
2800 | Â Â Â Â Â ENDDO |
---|
2801 | Â Â Â Â ENDIF |
---|
2802 | Â Â END SUBROUTINE usm_check_parameters |
---|
2803 | |
---|
2804 | |
---|
2805 | !------------------------------------------------------------------------------! |
---|
2806 | ! |
---|
2807 | ! Description: |
---|
2808 | ! ------------ |
---|
2809 | !> Output of the 3D-arrays in netCDF and/or AVS format |
---|
2810 | !> for variables of urban_surface model. |
---|
2811 | !> It resorts the urban surface module output quantities from surf style |
---|
2812 | !> indexing into temporary 3D array with indices (i,j,k). |
---|
2813 | !> It is called from subroutine data_output_3d. |
---|
2814 | !------------------------------------------------------------------------------! |
---|
2815 |   SUBROUTINE usm_data_output_3d( av, variable, found, local_pf, nzb_do, nzt_do ) |
---|
2816 | Â Â Â Â |
---|
2817 | Â Â Â Â IMPLICIT NONE |
---|
2818 | |
---|
2819 |     INTEGER(iwp), INTENT(IN)    :: av    !< flag if averaged |
---|
2820 |     CHARACTER (len=*), INTENT(IN) :: variable !< variable name |
---|
2821 |     INTEGER(iwp), INTENT(IN)    :: nzb_do  !< lower limit of the data output (usually 0) |
---|
2822 |     INTEGER(iwp), INTENT(IN)    :: nzt_do  !< vertical upper limit of the data output (usually nz_do3d) |
---|
2823 |     LOGICAL, INTENT(OUT)      :: found   !< |
---|
2824 |     REAL(sp), DIMENSION(nxl:nxr,nys:nyn,nzb_do:nzt_do) :: local_pf  !< sp - it has to correspond to module data_output_3d |
---|
2825 |     REAL(wp), DIMENSION(nzb:nzt+1,nys:nyn,nxl:nxr)   :: temp_pf  !< temp array for urban surface output procedure |
---|
2826 | Â Â Â Â |
---|
2827 |     CHARACTER (len=varnamelength)             :: var   !< trimmed variable name |
---|
2828 |     INTEGER(iwp), PARAMETER                :: nd = 5 !< number of directions |
---|
2829 |     CHARACTER(len=6), DIMENSION(0:nd-1), PARAMETER     :: dirname = (/ '_roof ', '_south', '_north', '_west ', '_east ' /) |
---|
2830 |     INTEGER(iwp), DIMENSION(0:nd-1), PARAMETER       :: dirint = (/  iup_u, isouth_u, inorth_u, iwest_u, ieast_u /) |
---|
2831 |     INTEGER(iwp), DIMENSION(0:nd-1), PARAMETER       :: diridx = (/    -1,    1,    0,    3,    2 /) |
---|
2832 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â !< index for surf_*_v: 0:3 = (North, South, East, West) |
---|
2833 | Â Â Â Â INTEGER(iwp)Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â ::Â ids,idsint,idsidx,isvf |
---|
2834 |     INTEGER(iwp)                      :: i,j,k,iwl,istat, l, m !< running indices |
---|
2835 | |
---|
2836 | Â Â Â Â found =Â .TRUE. |
---|
2837 | Â Â Â Â temp_pf =Â -1._wp |
---|
2838 | Â Â Â Â |
---|
2839 | Â Â Â Â ids =Â -1 |
---|
2840 | Â Â Â Â var =Â TRIM(variable) |
---|
2841 |     DO i = 0, nd-1 |
---|
2842 | Â Â Â Â Â Â k =Â len(TRIM(var)) |
---|
2843 | Â Â Â Â Â Â j =Â len(TRIM(dirname(i))) |
---|
2844 | Â Â Â Â Â Â IFÂ (Â TRIM(var(k-j+1:k))Â ==Â TRIM(dirname(i))Â )Â THEN |
---|
2845 | Â Â Â Â Â Â Â Â ids =Â i |
---|
2846 | Â Â Â Â Â Â Â Â idsint =Â dirint(ids) |
---|
2847 | Â Â Â Â Â Â Â Â idsidx =Â diridx(ids) |
---|
2848 | Â Â Â Â Â Â Â Â var =Â var(:k-j) |
---|
2849 | Â Â Â Â Â Â Â Â EXIT |
---|
2850 | Â Â Â Â Â Â ENDIF |
---|
2851 | Â Â Â Â ENDDO |
---|
2852 | Â Â Â Â IFÂ (Â ids ==Â -1Â )Â THEN |
---|
2853 | Â Â Â Â Â Â var =Â TRIM(variable) |
---|
2854 | Â Â Â Â ENDIF |
---|
2855 |     IF ( var(1:11) == 'usm_t_wall_' .AND. len(TRIM(var)) >= 12 ) THEN |
---|
2856 | ! |
---|
2857 | !--Â Â Â Â Â wall layers |
---|
2858 |       READ(var(12:12), '(I1)', iostat=istat ) iwl |
---|
2859 |       IF ( istat == 0 .AND. iwl >= nzb_wall .AND. iwl <= nzt_wall ) THEN |
---|
2860 | Â Â Â Â Â Â Â Â var =Â var(1:10) |
---|
2861 | Â Â Â Â Â Â ENDIF |
---|
2862 | Â Â Â Â ENDIF |
---|
2863 |     IF ( var(1:13) == 'usm_t_window_' .AND. len(TRIM(var)) >= 14 ) THEN |
---|
2864 | ! |
---|
2865 | !--Â Â Â Â Â window layers |
---|
2866 |       READ(var(14:14), '(I1)', iostat=istat ) iwl |
---|
2867 |       IF ( istat == 0 .AND. iwl >= nzb_wall .AND. iwl <= nzt_wall ) THEN |
---|
2868 | Â Â Â Â Â Â Â Â var =Â var(1:12) |
---|
2869 | Â Â Â Â Â Â ENDIF |
---|
2870 | Â Â Â Â ENDIF |
---|
2871 |     IF ( var(1:12) == 'usm_t_green_' .AND. len(TRIM(var)) >= 13 ) THEN |
---|
2872 | ! |
---|
2873 | !--Â Â Â Â Â green layers |
---|
2874 |       READ(var(13:13), '(I1)', iostat=istat ) iwl |
---|
2875 |       IF ( istat == 0 .AND. iwl >= nzb_wall .AND. iwl <= nzt_wall ) THEN |
---|
2876 | Â Â Â Â Â Â Â Â var =Â var(1:11) |
---|
2877 | Â Â Â Â Â Â ENDIF |
---|
2878 | Â Â Â Â ENDIF |
---|
2879 |     IF ( var(1:8) == 'usm_swc_' .AND. len(TRIM(var)) >= 9 ) THEN |
---|
2880 | ! |
---|
2881 | !--Â Â Â Â Â green layers soil water content |
---|
2882 |       READ(var(9:9), '(I1)', iostat=istat ) iwl |
---|
2883 |       IF ( istat == 0 .AND. iwl >= nzb_wall .AND. iwl <= nzt_wall ) THEN |
---|
2884 | Â Â Â Â Â Â Â Â var =Â var(1:7) |
---|
2885 | Â Â Â Â Â Â ENDIF |
---|
2886 | Â Â Â Â ENDIF |
---|
2887 | Â Â Â Â |
---|
2888 | Â Â Â Â SELECT CASEÂ (Â TRIM(var)Â ) |
---|
2889 | |
---|
2890 | Â Â Â Â Â CASEÂ (Â 'usm_surfz'Â ) |
---|
2891 | ! |
---|
2892 | !--Â Â Â Â Â Â array of surface height (z) |
---|
2893 | Â Â Â Â Â Â Â IFÂ (Â idsint ==Â iup_u )Â THEN |
---|
2894 |          DO m = 1, surf_usm_h%ns |
---|
2895 | Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_h%i(m) |
---|
2896 | Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_h%j(m) |
---|
2897 | Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_h%k(m) |
---|
2898 |           temp_pf(0,j,i) = MAX( temp_pf(0,j,i), REAL( k, kind=wp) ) |
---|
2899 | Â Â Â Â Â Â Â Â Â ENDDO |
---|
2900 | Â Â Â Â Â Â Â ELSE |
---|
2901 | Â Â Â Â Â Â Â Â Â l =Â idsidx |
---|
2902 |          DO m = 1, surf_usm_v(l)%ns |
---|
2903 | Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_v(l)%i(m) |
---|
2904 | Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_v(l)%j(m) |
---|
2905 | Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_v(l)%k(m) |
---|
2906 |           temp_pf(0,j,i) = MAX( temp_pf(0,j,i), REAL( k, kind=wp) + 1.0_wp ) |
---|
2907 | Â Â Â Â Â Â Â Â Â ENDDO |
---|
2908 | Â Â Â Â Â Â Â ENDIF |
---|
2909 | |
---|
2910 | Â Â Â Â Â CASEÂ (Â 'usm_surfcat'Â ) |
---|
2911 | ! |
---|
2912 | !--Â Â Â Â Â Â surface category |
---|
2913 | Â Â Â Â Â Â Â IFÂ (Â idsint ==Â iup_u )Â THEN |
---|
2914 |          DO m = 1, surf_usm_h%ns |
---|
2915 | Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_h%i(m) |
---|
2916 | Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_h%j(m) |
---|
2917 | Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_h%k(m) |
---|
2918 | Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_h%surface_types(m) |
---|
2919 | Â Â Â Â Â Â Â Â Â ENDDO |
---|
2920 | Â Â Â Â Â Â Â ELSE |
---|
2921 | Â Â Â Â Â Â Â Â Â l =Â idsidx |
---|
2922 |          DO m = 1, surf_usm_v(l)%ns |
---|
2923 | Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_v(l)%i(m) |
---|
2924 | Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_v(l)%j(m) |
---|
2925 | Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_v(l)%k(m) |
---|
2926 | Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_v(l)%surface_types(m) |
---|
2927 | Â Â Â Â Â Â Â Â Â ENDDO |
---|
2928 | Â Â Â Â Â Â Â ENDIF |
---|
2929 | Â Â Â Â Â Â Â |
---|
2930 | Â Â Â Â Â CASEÂ (Â 'usm_surfalb'Â ) |
---|
2931 | ! |
---|
2932 | !--Â Â Â Â Â Â surface albedo, weighted average |
---|
2933 | Â Â Â Â Â Â Â IFÂ (Â idsint ==Â iup_u )Â THEN |
---|
2934 |          DO m = 1, surf_usm_h%ns |
---|
2935 | Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_h%i(m) |
---|
2936 | Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_h%j(m) |
---|
2937 | Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_h%k(m) |
---|
2938 | Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_h%frac(ind_veg_wall,m)Â Â Â *Â Â Â & |
---|
2939 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%albedo(ind_veg_wall,m)Â +Â Â Â & |
---|
2940 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%frac(ind_pav_green,m)Â Â *Â Â Â & |
---|
2941 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%albedo(ind_pav_green,m)Â +Â Â Â & |
---|
2942 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%frac(ind_wat_win,m)Â Â Â *Â Â Â & |
---|
2943 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%albedo(ind_wat_win,m) |
---|
2944 | Â Â Â Â Â Â Â Â Â ENDDO |
---|
2945 | Â Â Â Â Â Â Â ELSE |
---|
2946 | Â Â Â Â Â Â Â Â Â l =Â idsidx |
---|
2947 |          DO m = 1, surf_usm_v(l)%ns |
---|
2948 | Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_v(l)%i(m) |
---|
2949 | Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_v(l)%j(m) |
---|
2950 | Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_v(l)%k(m) |
---|
2951 | Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_v(l)%frac(ind_veg_wall,m)Â Â Â *Â & |
---|
2952 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%albedo(ind_veg_wall,m)Â +Â Â & |
---|
2953 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%frac(ind_pav_green,m)Â Â *Â & |
---|
2954 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%albedo(ind_pav_green,m)Â +Â Â & |
---|
2955 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%frac(ind_wat_win,m)Â Â Â *Â & |
---|
2956 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%albedo(ind_wat_win,m) |
---|
2957 | Â Â Â Â Â Â Â Â Â ENDDO |
---|
2958 | Â Â Â Â Â Â Â ENDIF |
---|
2959 | Â Â Â Â Â Â Â |
---|
2960 | Â Â Â Â Â CASEÂ (Â 'usm_surfemis'Â ) |
---|
2961 | ! |
---|
2962 | !--Â Â Â Â Â Â surface emissivity, weighted average |
---|
2963 | Â Â Â Â Â Â Â IFÂ (Â idsint ==Â iup_u )Â THEN |
---|
2964 |          DO m = 1, surf_usm_h%ns |
---|
2965 | Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_h%i(m) |
---|
2966 | Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_h%j(m) |
---|
2967 | Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_h%k(m) |
---|
2968 | Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_h%frac(ind_veg_wall,m)Â Â Â *Â Â & |
---|
2969 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%emissivity(ind_veg_wall,m)Â +Â & |
---|
2970 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%frac(ind_pav_green,m)Â Â Â *Â Â & |
---|
2971 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%emissivity(ind_pav_green,m)Â +Â & |
---|
2972 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%frac(ind_wat_win,m)Â Â Â Â *Â Â & |
---|
2973 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%emissivity(ind_wat_win,m) |
---|
2974 | Â Â Â Â Â Â Â Â Â ENDDO |
---|
2975 | Â Â Â Â Â Â Â ELSE |
---|
2976 | Â Â Â Â Â Â Â Â Â l =Â idsidx |
---|
2977 |          DO m = 1, surf_usm_v(l)%ns |
---|
2978 | Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_v(l)%i(m) |
---|
2979 | Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_v(l)%j(m) |
---|
2980 | Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_v(l)%k(m) |
---|
2981 | Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_v(l)%frac(ind_veg_wall,m)Â Â Â Â *& |
---|
2982 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%emissivity(ind_veg_wall,m)Â +& |
---|
2983 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%frac(ind_pav_green,m)Â Â Â *& |
---|
2984 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%emissivity(ind_pav_green,m)+& |
---|
2985 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%frac(ind_wat_win,m)Â Â Â Â *& |
---|
2986 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%emissivity(ind_wat_win,m) |
---|
2987 | Â Â Â Â Â Â Â Â Â ENDDO |
---|
2988 | Â Â Â Â Â Â Â ENDIF |
---|
2989 | |
---|
2990 | Â Â Â Â Â CASEÂ (Â 'usm_surfwintrans'Â ) |
---|
2991 | ! |
---|
2992 | !--Â Â Â Â Â Â transmissivity window tiles |
---|
2993 | Â Â Â Â Â Â Â IFÂ (Â idsint ==Â iup_u )Â THEN |
---|
2994 |          DO m = 1, surf_usm_h%ns |
---|
2995 | Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_h%i(m) |
---|
2996 | Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_h%j(m) |
---|
2997 | Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_h%k(m) |
---|
2998 | Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_h%transmissivity(m) |
---|
2999 | Â Â Â Â Â Â Â Â Â ENDDO |
---|
3000 | Â Â Â Â Â Â Â ELSE |
---|
3001 | Â Â Â Â Â Â Â Â Â l =Â idsidx |
---|
3002 |          DO m = 1, surf_usm_v(l)%ns |
---|
3003 | Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_v(l)%i(m) |
---|
3004 | Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_v(l)%j(m) |
---|
3005 | Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_v(l)%k(m) |
---|
3006 | Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_v(l)%transmissivity(m) |
---|
3007 | Â Â Â Â Â Â Â Â Â ENDDO |
---|
3008 | Â Â Â Â Â Â Â ENDIF |
---|
3009 | |
---|
3010 | Â Â Â Â Â CASEÂ (Â 'usm_wshf'Â ) |
---|
3011 | ! |
---|
3012 | !--Â Â Â Â Â Â array of sensible heat flux from surfaces |
---|
3013 | Â Â Â Â Â Â Â IFÂ (Â av ==Â 0Â )Â THEN |
---|
3014 | Â Â Â Â Â Â Â Â Â IFÂ (Â idsint ==Â iup_u )Â THEN |
---|
3015 |           DO m = 1, surf_usm_h%ns |
---|
3016 | Â Â Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_h%i(m) |
---|
3017 | Â Â Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_h%j(m) |
---|
3018 | Â Â Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_h%k(m) |
---|
3019 | Â Â Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_h%wshf_eb(m) |
---|
3020 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
3021 | Â Â Â Â Â Â Â Â Â ELSE |
---|
3022 | Â Â Â Â Â Â Â Â Â Â l =Â idsidx |
---|
3023 |           DO m = 1, surf_usm_v(l)%ns |
---|
3024 | Â Â Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_v(l)%i(m) |
---|
3025 | Â Â Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_v(l)%j(m) |
---|
3026 | Â Â Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_v(l)%k(m) |
---|
3027 | Â Â Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_v(l)%wshf_eb(m) |
---|
3028 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
3029 | Â Â Â Â Â Â Â Â Â ENDIF |
---|
3030 | Â Â Â Â Â Â Â ELSE |
---|
3031 | Â Â Â Â Â Â Â Â Â IFÂ (Â idsint ==Â iup_u )Â THEN |
---|
3032 |           DO m = 1, surf_usm_h%ns |
---|
3033 | Â Â Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_h%i(m) |
---|
3034 | Â Â Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_h%j(m) |
---|
3035 | Â Â Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_h%k(m) |
---|
3036 | Â Â Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_h%wshf_eb_av(m) |
---|
3037 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
3038 | Â Â Â Â Â Â Â Â Â ELSE |
---|
3039 | Â Â Â Â Â Â Â Â Â Â l =Â idsidx |
---|
3040 |           DO m = 1, surf_usm_v(l)%ns |
---|
3041 | Â Â Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_v(l)%i(m) |
---|
3042 | Â Â Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_v(l)%j(m) |
---|
3043 | Â Â Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_v(l)%k(m) |
---|
3044 | Â Â Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_v(l)%wshf_eb_av(m) |
---|
3045 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
3046 | Â Â Â Â Â Â Â Â Â ENDIF |
---|
3047 | Â Â Â Â Â Â Â ENDIF |
---|
3048 | Â Â Â Â Â Â Â |
---|
3049 | Â Â Â Â Â Â Â |
---|
3050 | Â Â Â Â Â CASEÂ (Â 'usm_qsws'Â ) |
---|
3051 | ! |
---|
3052 | !--Â Â Â Â Â Â array of latent heat flux from surfaces |
---|
3053 | Â Â Â Â Â Â Â IFÂ (Â av ==Â 0Â )Â THEN |
---|
3054 | Â Â Â Â Â Â Â Â Â IFÂ (Â idsint ==Â iup_u )Â THEN |
---|
3055 |           DO m = 1, surf_usm_h%ns |
---|
3056 | Â Â Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_h%i(m) |
---|
3057 | Â Â Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_h%j(m) |
---|
3058 | Â Â Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_h%k(m) |
---|
3059 | Â Â Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_h%qsws_eb(m) |
---|
3060 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
3061 | Â Â Â Â Â Â Â Â Â ELSE |
---|
3062 | Â Â Â Â Â Â Â Â Â Â l =Â idsidx |
---|
3063 |           DO m = 1, surf_usm_v(l)%ns |
---|
3064 | Â Â Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_v(l)%i(m) |
---|
3065 | Â Â Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_v(l)%j(m) |
---|
3066 | Â Â Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_v(l)%k(m) |
---|
3067 | Â Â Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_v(l)%qsws_eb(m) |
---|
3068 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
3069 | Â Â Â Â Â Â Â Â Â ENDIF |
---|
3070 | Â Â Â Â Â Â Â ELSE |
---|
3071 | Â Â Â Â Â Â Â Â Â IFÂ (Â idsint ==Â iup_u )Â THEN |
---|
3072 |           DO m = 1, surf_usm_h%ns |
---|
3073 | Â Â Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_h%i(m) |
---|
3074 | Â Â Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_h%j(m) |
---|
3075 | Â Â Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_h%k(m) |
---|
3076 | Â Â Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_h%qsws_eb_av(m) |
---|
3077 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
3078 | Â Â Â Â Â Â Â Â Â ELSE |
---|
3079 | Â Â Â Â Â Â Â Â Â Â l =Â idsidx |
---|
3080 |           DO m = 1, surf_usm_v(l)%ns |
---|
3081 | Â Â Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_v(l)%i(m) |
---|
3082 | Â Â Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_v(l)%j(m) |
---|
3083 | Â Â Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_v(l)%k(m) |
---|
3084 | Â Â Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_v(l)%qsws_eb_av(m) |
---|
3085 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
3086 | Â Â Â Â Â Â Â Â Â ENDIF |
---|
3087 | Â Â Â Â Â Â Â ENDIF |
---|
3088 | Â Â Â Â Â Â Â |
---|
3089 | Â Â Â Â Â CASEÂ (Â 'usm_qsws_veg'Â ) |
---|
3090 | ! |
---|
3091 | !--Â Â Â Â Â Â array of latent heat flux from vegetation surfaces |
---|
3092 | Â Â Â Â Â Â Â IFÂ (Â av ==Â 0Â )Â THEN |
---|
3093 | Â Â Â Â Â Â Â Â Â IFÂ (Â idsint ==Â iup_u )Â THEN |
---|
3094 |           DO m = 1, surf_usm_h%ns |
---|
3095 | Â Â Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_h%i(m) |
---|
3096 | Â Â Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_h%j(m) |
---|
3097 | Â Â Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_h%k(m) |
---|
3098 | Â Â Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_h%qsws_veg(m) |
---|
3099 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
3100 | Â Â Â Â Â Â Â Â Â ELSE |
---|
3101 | Â Â Â Â Â Â Â Â Â Â l =Â idsidx |
---|
3102 |           DO m = 1, surf_usm_v(l)%ns |
---|
3103 | Â Â Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_v(l)%i(m) |
---|
3104 | Â Â Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_v(l)%j(m) |
---|
3105 | Â Â Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_v(l)%k(m) |
---|
3106 | Â Â Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_v(l)%qsws_veg(m) |
---|
3107 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
3108 | Â Â Â Â Â Â Â Â Â ENDIF |
---|
3109 | Â Â Â Â Â Â Â ELSE |
---|
3110 | Â Â Â Â Â Â Â Â Â IFÂ (Â idsint ==Â iup_u )Â THEN |
---|
3111 |           DO m = 1, surf_usm_h%ns |
---|
3112 | Â Â Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_h%i(m) |
---|
3113 | Â Â Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_h%j(m) |
---|
3114 | Â Â Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_h%k(m) |
---|
3115 | Â Â Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_h%qsws_veg_av(m) |
---|
3116 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
3117 | Â Â Â Â Â Â Â Â Â ELSE |
---|
3118 | Â Â Â Â Â Â Â Â Â Â l =Â idsidx |
---|
3119 |           DO m = 1, surf_usm_v(l)%ns |
---|
3120 | Â Â Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_v(l)%i(m) |
---|
3121 | Â Â Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_v(l)%j(m) |
---|
3122 | Â Â Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_v(l)%k(m) |
---|
3123 | Â Â Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_v(l)%qsws_veg_av(m) |
---|
3124 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
3125 | Â Â Â Â Â Â Â Â Â ENDIF |
---|
3126 | Â Â Â Â Â Â Â ENDIF |
---|
3127 | Â Â Â Â Â Â Â |
---|
3128 | Â Â Â Â Â CASEÂ (Â 'usm_qsws_liq'Â ) |
---|
3129 | ! |
---|
3130 | !--Â Â Â Â Â Â array of latent heat flux from surfaces with liquid |
---|
3131 | Â Â Â Â Â Â Â IFÂ (Â av ==Â 0Â )Â THEN |
---|
3132 | Â Â Â Â Â Â Â Â Â IFÂ (Â idsint ==Â iup_u )Â THEN |
---|
3133 |           DO m = 1, surf_usm_h%ns |
---|
3134 | Â Â Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_h%i(m) |
---|
3135 | Â Â Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_h%j(m) |
---|
3136 | Â Â Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_h%k(m) |
---|
3137 | Â Â Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_h%qsws_liq(m) |
---|
3138 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
3139 | Â Â Â Â Â Â Â Â Â ELSE |
---|
3140 | Â Â Â Â Â Â Â Â Â Â l =Â idsidx |
---|
3141 |           DO m = 1, surf_usm_v(l)%ns |
---|
3142 | Â Â Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_v(l)%i(m) |
---|
3143 | Â Â Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_v(l)%j(m) |
---|
3144 | Â Â Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_v(l)%k(m) |
---|
3145 | Â Â Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_v(l)%qsws_liq(m) |
---|
3146 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
3147 | Â Â Â Â Â Â Â Â Â ENDIF |
---|
3148 | Â Â Â Â Â Â Â ELSE |
---|
3149 | Â Â Â Â Â Â Â Â Â IFÂ (Â idsint ==Â iup_u )Â THEN |
---|
3150 |           DO m = 1, surf_usm_h%ns |
---|
3151 | Â Â Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_h%i(m) |
---|
3152 | Â Â Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_h%j(m) |
---|
3153 | Â Â Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_h%k(m) |
---|
3154 | Â Â Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_h%qsws_liq_av(m) |
---|
3155 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
3156 | Â Â Â Â Â Â Â Â Â ELSE |
---|
3157 | Â Â Â Â Â Â Â Â Â Â l =Â idsidx |
---|
3158 |           DO m = 1, surf_usm_v(l)%ns |
---|
3159 | Â Â Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_v(l)%i(m) |
---|
3160 | Â Â Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_v(l)%j(m) |
---|
3161 | Â Â Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_v(l)%k(m) |
---|
3162 | Â Â Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_v(l)%qsws_liq_av(m) |
---|
3163 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
3164 | Â Â Â Â Â Â Â Â Â ENDIF |
---|
3165 | Â Â Â Â Â Â Â ENDIF |
---|
3166 | |
---|
3167 | Â Â Â Â Â CASEÂ (Â 'usm_wghf'Â ) |
---|
3168 | ! |
---|
3169 | !--Â Â Â Â Â Â array of heat flux from ground (land, wall, roof) |
---|
3170 | Â Â Â Â Â Â Â IFÂ (Â av ==Â 0Â )Â THEN |
---|
3171 | Â Â Â Â Â Â Â Â Â IFÂ (Â idsint ==Â iup_u )Â THEN |
---|
3172 |           DO m = 1, surf_usm_h%ns |
---|
3173 | Â Â Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_h%i(m) |
---|
3174 | Â Â Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_h%j(m) |
---|
3175 | Â Â Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_h%k(m) |
---|
3176 | Â Â Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_h%wghf_eb(m) |
---|
3177 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
3178 | Â Â Â Â Â Â Â Â Â ELSE |
---|
3179 | Â Â Â Â Â Â Â Â Â Â l =Â idsidx |
---|
3180 |           DO m = 1, surf_usm_v(l)%ns |
---|
3181 | Â Â Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_v(l)%i(m) |
---|
3182 | Â Â Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_v(l)%j(m) |
---|
3183 | Â Â Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_v(l)%k(m) |
---|
3184 | Â Â Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_v(l)%wghf_eb(m) |
---|
3185 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
3186 | Â Â Â Â Â Â Â Â Â ENDIF |
---|
3187 | Â Â Â Â Â Â Â ELSE |
---|
3188 | Â Â Â Â Â Â Â Â Â IFÂ (Â idsint ==Â iup_u )Â THEN |
---|
3189 |           DO m = 1, surf_usm_h%ns |
---|
3190 | Â Â Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_h%i(m) |
---|
3191 | Â Â Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_h%j(m) |
---|
3192 | Â Â Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_h%k(m) |
---|
3193 | Â Â Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_h%wghf_eb_av(m) |
---|
3194 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
3195 | Â Â Â Â Â Â Â Â Â ELSE |
---|
3196 | Â Â Â Â Â Â Â Â Â Â l =Â idsidx |
---|
3197 |           DO m = 1, surf_usm_v(l)%ns |
---|
3198 | Â Â Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_v(l)%i(m) |
---|
3199 | Â Â Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_v(l)%j(m) |
---|
3200 | Â Â Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_v(l)%k(m) |
---|
3201 | Â Â Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_v(l)%wghf_eb_av(m) |
---|
3202 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
3203 | Â Â Â Â Â Â Â Â Â ENDIF |
---|
3204 | Â Â Â Â Â Â Â ENDIF |
---|
3205 | |
---|
3206 | Â Â Â Â Â CASEÂ (Â 'usm_wghf_window'Â ) |
---|
3207 | ! |
---|
3208 | !--Â Â Â Â Â Â array of heat flux from window ground (land, wall, roof) |
---|
3209 | Â Â Â Â Â Â Â IFÂ (Â av ==Â 0Â )Â THEN |
---|
3210 | Â Â Â Â Â Â Â Â Â IFÂ (Â idsint ==Â iup_u )Â THEN |
---|
3211 |           DO m = 1, surf_usm_h%ns |
---|
3212 | Â Â Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_h%i(m) |
---|
3213 | Â Â Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_h%j(m) |
---|
3214 | Â Â Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_h%k(m) |
---|
3215 | Â Â Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_h%wghf_eb_window(m) |
---|
3216 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
3217 | Â Â Â Â Â Â Â Â Â ELSE |
---|
3218 | Â Â Â Â Â Â Â Â Â Â l =Â idsidx |
---|
3219 |           DO m = 1, surf_usm_v(l)%ns |
---|
3220 | Â Â Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_v(l)%i(m) |
---|
3221 | Â Â Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_v(l)%j(m) |
---|
3222 | Â Â Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_v(l)%k(m) |
---|
3223 | Â Â Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_v(l)%wghf_eb_window(m) |
---|
3224 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
3225 | Â Â Â Â Â Â Â Â Â ENDIF |
---|
3226 | Â Â Â Â Â Â Â ELSE |
---|
3227 | Â Â Â Â Â Â Â Â Â IFÂ (Â idsint ==Â iup_u )Â THEN |
---|
3228 |           DO m = 1, surf_usm_h%ns |
---|
3229 | Â Â Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_h%i(m) |
---|
3230 | Â Â Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_h%j(m) |
---|
3231 | Â Â Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_h%k(m) |
---|
3232 | Â Â Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_h%wghf_eb_window_av(m) |
---|
3233 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
3234 | Â Â Â Â Â Â Â Â Â ELSE |
---|
3235 | Â Â Â Â Â Â Â Â Â Â l =Â idsidx |
---|
3236 |           DO m = 1, surf_usm_v(l)%ns |
---|
3237 | Â Â Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_v(l)%i(m) |
---|
3238 | Â Â Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_v(l)%j(m) |
---|
3239 | Â Â Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_v(l)%k(m) |
---|
3240 | Â Â Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_v(l)%wghf_eb_window_av(m) |
---|
3241 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
3242 | Â Â Â Â Â Â Â Â Â ENDIF |
---|
3243 | Â Â Â Â Â Â Â ENDIF |
---|
3244 | |
---|
3245 | Â Â Â Â Â CASEÂ (Â 'usm_wghf_green'Â ) |
---|
3246 | ! |
---|
3247 | !--Â Â Â Â Â Â array of heat flux from green ground (land, wall, roof) |
---|
3248 | Â Â Â Â Â Â Â IFÂ (Â av ==Â 0Â )Â THEN |
---|
3249 | Â Â Â Â Â Â Â Â Â IFÂ (Â idsint ==Â iup_u )Â THEN |
---|
3250 |           DO m = 1, surf_usm_h%ns |
---|
3251 | Â Â Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_h%i(m) |
---|
3252 | Â Â Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_h%j(m) |
---|
3253 | Â Â Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_h%k(m) |
---|
3254 | Â Â Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_h%wghf_eb_green(m) |
---|
3255 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
3256 | Â Â Â Â Â Â Â Â Â ELSE |
---|
3257 | Â Â Â Â Â Â Â Â Â Â l =Â idsidx |
---|
3258 |           DO m = 1, surf_usm_v(l)%ns |
---|
3259 | Â Â Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_v(l)%i(m) |
---|
3260 | Â Â Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_v(l)%j(m) |
---|
3261 | Â Â Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_v(l)%k(m) |
---|
3262 | Â Â Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_v(l)%wghf_eb_green(m) |
---|
3263 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
3264 | Â Â Â Â Â Â Â Â Â ENDIF |
---|
3265 | Â Â Â Â Â Â Â ELSE |
---|
3266 | Â Â Â Â Â Â Â Â Â IFÂ (Â idsint ==Â iup_u )Â THEN |
---|
3267 |           DO m = 1, surf_usm_h%ns |
---|
3268 | Â Â Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_h%i(m) |
---|
3269 | Â Â Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_h%j(m) |
---|
3270 | Â Â Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_h%k(m) |
---|
3271 | Â Â Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_h%wghf_eb_green_av(m) |
---|
3272 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
3273 | Â Â Â Â Â Â Â Â Â ELSE |
---|
3274 | Â Â Â Â Â Â Â Â Â Â l =Â idsidx |
---|
3275 |           DO m = 1, surf_usm_v(l)%ns |
---|
3276 | Â Â Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_v(l)%i(m) |
---|
3277 | Â Â Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_v(l)%j(m) |
---|
3278 | Â Â Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_v(l)%k(m) |
---|
3279 | Â Â Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_v(l)%wghf_eb_green_av(m) |
---|
3280 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
3281 | Â Â Â Â Â Â Â Â Â ENDIF |
---|
3282 | Â Â Â Â Â Â Â ENDIF |
---|
3283 | |
---|
3284 | Â Â Â Â Â CASEÂ (Â 'usm_iwghf'Â ) |
---|
3285 | ! |
---|
3286 | !--Â Â Â Â Â Â array of heat flux from indoor ground (land, wall, roof) |
---|
3287 | Â Â Â Â Â Â Â IFÂ (Â av ==Â 0Â )Â THEN |
---|
3288 | Â Â Â Â Â Â Â Â Â IFÂ (Â idsint ==Â iup_u )Â THEN |
---|
3289 |           DO m = 1, surf_usm_h%ns |
---|
3290 | Â Â Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_h%i(m) |
---|
3291 | Â Â Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_h%j(m) |
---|
3292 | Â Â Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_h%k(m) |
---|
3293 | Â Â Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_h%iwghf_eb(m) |
---|
3294 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
3295 | Â Â Â Â Â Â Â Â Â ELSE |
---|
3296 | Â Â Â Â Â Â Â Â Â Â l =Â idsidx |
---|
3297 |           DO m = 1, surf_usm_v(l)%ns |
---|
3298 | Â Â Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_v(l)%i(m) |
---|
3299 | Â Â Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_v(l)%j(m) |
---|
3300 | Â Â Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_v(l)%k(m) |
---|
3301 | Â Â Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_v(l)%iwghf_eb(m) |
---|
3302 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
3303 | Â Â Â Â Â Â Â Â Â ENDIF |
---|
3304 | Â Â Â Â Â Â Â ELSE |
---|
3305 | Â Â Â Â Â Â Â Â Â IFÂ (Â idsint ==Â iup_u )Â THEN |
---|
3306 |           DO m = 1, surf_usm_h%ns |
---|
3307 | Â Â Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_h%i(m) |
---|
3308 | Â Â Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_h%j(m) |
---|
3309 | Â Â Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_h%k(m) |
---|
3310 | Â Â Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_h%iwghf_eb_av(m) |
---|
3311 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
3312 | Â Â Â Â Â Â Â Â Â ELSE |
---|
3313 | Â Â Â Â Â Â Â Â Â Â l =Â idsidx |
---|
3314 |           DO m = 1, surf_usm_v(l)%ns |
---|
3315 | Â Â Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_v(l)%i(m) |
---|
3316 | Â Â Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_v(l)%j(m) |
---|
3317 | Â Â Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_v(l)%k(m) |
---|
3318 | Â Â Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_v(l)%iwghf_eb_av(m) |
---|
3319 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
3320 | Â Â Â Â Â Â Â Â Â ENDIF |
---|
3321 | Â Â Â Â Â Â Â ENDIF |
---|
3322 | |
---|
3323 | Â Â Â Â Â CASEÂ (Â 'usm_iwghf_window'Â ) |
---|
3324 | ! |
---|
3325 | !--Â Â Â Â Â Â array of heat flux from indoor window ground (land, wall, roof) |
---|
3326 | Â Â Â Â Â Â Â IFÂ (Â av ==Â 0Â )Â THEN |
---|
3327 | Â Â Â Â Â Â Â Â Â IFÂ (Â idsint ==Â iup_u )Â THEN |
---|
3328 |           DO m = 1, surf_usm_h%ns |
---|
3329 | Â Â Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_h%i(m) |
---|
3330 | Â Â Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_h%j(m) |
---|
3331 | Â Â Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_h%k(m) |
---|
3332 | Â Â Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_h%iwghf_eb_window(m) |
---|
3333 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
3334 | Â Â Â Â Â Â Â Â Â ELSE |
---|
3335 | Â Â Â Â Â Â Â Â Â Â l =Â idsidx |
---|
3336 |           DO m = 1, surf_usm_v(l)%ns |
---|
3337 | Â Â Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_v(l)%i(m) |
---|
3338 | Â Â Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_v(l)%j(m) |
---|
3339 | Â Â Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_v(l)%k(m) |
---|
3340 | Â Â Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_v(l)%iwghf_eb_window(m) |
---|
3341 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
3342 | Â Â Â Â Â Â Â Â Â ENDIF |
---|
3343 | Â Â Â Â Â Â Â ELSE |
---|
3344 | Â Â Â Â Â Â Â Â Â IFÂ (Â idsint ==Â iup_u )Â THEN |
---|
3345 |           DO m = 1, surf_usm_h%ns |
---|
3346 | Â Â Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_h%i(m) |
---|
3347 | Â Â Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_h%j(m) |
---|
3348 | Â Â Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_h%k(m) |
---|
3349 | Â Â Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_h%iwghf_eb_window_av(m) |
---|
3350 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
3351 | Â Â Â Â Â Â Â Â Â ELSE |
---|
3352 | Â Â Â Â Â Â Â Â Â Â l =Â idsidx |
---|
3353 |           DO m = 1, surf_usm_v(l)%ns |
---|
3354 | Â Â Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_v(l)%i(m) |
---|
3355 | Â Â Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_v(l)%j(m) |
---|
3356 | Â Â Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_v(l)%k(m) |
---|
3357 | Â Â Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_v(l)%iwghf_eb_window_av(m) |
---|
3358 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
3359 | Â Â Â Â Â Â Â Â Â ENDIF |
---|
3360 | Â Â Â Â Â Â Â ENDIF |
---|
3361 | Â Â Â Â Â Â Â |
---|
3362 | Â Â Â Â Â CASEÂ (Â 'usm_t_surf_wall'Â ) |
---|
3363 | ! |
---|
3364 | !--Â Â Â Â Â Â surface temperature for surfaces |
---|
3365 | Â Â Â Â Â Â Â IFÂ (Â av ==Â 0Â )Â THEN |
---|
3366 | Â Â Â Â Â Â Â Â Â IFÂ (Â idsint ==Â iup_u )Â THEN |
---|
3367 |           DO m = 1, surf_usm_h%ns |
---|
3368 | Â Â Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_h%i(m) |
---|
3369 | Â Â Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_h%j(m) |
---|
3370 | Â Â Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_h%k(m) |
---|
3371 | Â Â Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â t_surf_wall_h(m) |
---|
3372 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
3373 | Â Â Â Â Â Â Â Â Â ELSE |
---|
3374 | Â Â Â Â Â Â Â Â Â Â l =Â idsidx |
---|
3375 |           DO m = 1, surf_usm_v(l)%ns |
---|
3376 | Â Â Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_v(l)%i(m) |
---|
3377 | Â Â Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_v(l)%j(m) |
---|
3378 | Â Â Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_v(l)%k(m) |
---|
3379 | Â Â Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â t_surf_wall_v(l)%t(m) |
---|
3380 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
3381 | Â Â Â Â Â Â Â Â Â ENDIF |
---|
3382 | Â Â Â Â Â Â Â ELSE |
---|
3383 | Â Â Â Â Â Â Â Â Â IFÂ (Â idsint ==Â iup_u )Â THEN |
---|
3384 |           DO m = 1, surf_usm_h%ns |
---|
3385 | Â Â Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_h%i(m) |
---|
3386 | Â Â Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_h%j(m) |
---|
3387 | Â Â Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_h%k(m) |
---|
3388 | Â Â Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_h%t_surf_wall_av(m) |
---|
3389 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
3390 | Â Â Â Â Â Â Â Â Â ELSE |
---|
3391 | Â Â Â Â Â Â Â Â Â Â l =Â idsidx |
---|
3392 |           DO m = 1, surf_usm_v(l)%ns |
---|
3393 | Â Â Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_v(l)%i(m) |
---|
3394 | Â Â Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_v(l)%j(m) |
---|
3395 | Â Â Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_v(l)%k(m) |
---|
3396 | Â Â Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_v(l)%t_surf_wall_av(m) |
---|
3397 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
3398 | Â Â Â Â Â Â Â Â Â ENDIF |
---|
3399 | Â Â Â Â Â Â Â ENDIF |
---|
3400 | Â Â Â Â Â Â Â |
---|
3401 | Â Â Â Â Â CASEÂ (Â 'usm_t_surf_window'Â ) |
---|
3402 | ! |
---|
3403 | !--Â Â Â Â Â Â surface temperature for window surfaces |
---|
3404 | Â Â Â Â Â Â Â IFÂ (Â av ==Â 0Â )Â THEN |
---|
3405 | Â Â Â Â Â Â Â Â Â IFÂ (Â idsint ==Â iup_u )Â THEN |
---|
3406 |           DO m = 1, surf_usm_h%ns |
---|
3407 | Â Â Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_h%i(m) |
---|
3408 | Â Â Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_h%j(m) |
---|
3409 | Â Â Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_h%k(m) |
---|
3410 | Â Â Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â t_surf_window_h(m) |
---|
3411 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
3412 | Â Â Â Â Â Â Â Â Â ELSE |
---|
3413 | Â Â Â Â Â Â Â Â Â Â l =Â idsidx |
---|
3414 |           DO m = 1, surf_usm_v(l)%ns |
---|
3415 | Â Â Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_v(l)%i(m) |
---|
3416 | Â Â Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_v(l)%j(m) |
---|
3417 | Â Â Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_v(l)%k(m) |
---|
3418 | Â Â Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â t_surf_window_v(l)%t(m) |
---|
3419 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
3420 | Â Â Â Â Â Â Â Â Â ENDIF |
---|
3421 | |
---|
3422 | Â Â Â Â Â Â Â ELSE |
---|
3423 | Â Â Â Â Â Â Â Â Â IFÂ (Â idsint ==Â iup_u )Â THEN |
---|
3424 |           DO m = 1, surf_usm_h%ns |
---|
3425 | Â Â Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_h%i(m) |
---|
3426 | Â Â Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_h%j(m) |
---|
3427 | Â Â Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_h%k(m) |
---|
3428 | Â Â Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_h%t_surf_window_av(m) |
---|
3429 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
3430 | Â Â Â Â Â Â Â Â Â ELSE |
---|
3431 | Â Â Â Â Â Â Â Â Â Â l =Â idsidx |
---|
3432 |           DO m = 1, surf_usm_v(l)%ns |
---|
3433 | Â Â Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_v(l)%i(m) |
---|
3434 | Â Â Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_v(l)%j(m) |
---|
3435 | Â Â Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_v(l)%k(m) |
---|
3436 | Â Â Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_v(l)%t_surf_window_av(m) |
---|
3437 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
3438 | |
---|
3439 | Â Â Â Â Â Â Â Â Â ENDIF |
---|
3440 | |
---|
3441 | Â Â Â Â Â Â Â ENDIF |
---|
3442 | |
---|
3443 | Â Â Â Â Â CASEÂ (Â 'usm_t_surf_green'Â ) |
---|
3444 | ! |
---|
3445 | !--Â Â Â Â Â Â surface temperature for green surfaces |
---|
3446 | Â Â Â Â Â Â Â IFÂ (Â av ==Â 0Â )Â THEN |
---|
3447 | Â Â Â Â Â Â Â Â Â IFÂ (Â idsint ==Â iup_u )Â THEN |
---|
3448 |           DO m = 1, surf_usm_h%ns |
---|
3449 | Â Â Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_h%i(m) |
---|
3450 | Â Â Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_h%j(m) |
---|
3451 | Â Â Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_h%k(m) |
---|
3452 | Â Â Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â t_surf_green_h(m) |
---|
3453 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
3454 | Â Â Â Â Â Â Â Â Â ELSE |
---|
3455 | Â Â Â Â Â Â Â Â Â Â l =Â idsidx |
---|
3456 |           DO m = 1, surf_usm_v(l)%ns |
---|
3457 | Â Â Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_v(l)%i(m) |
---|
3458 | Â Â Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_v(l)%j(m) |
---|
3459 | Â Â Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_v(l)%k(m) |
---|
3460 | Â Â Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â t_surf_green_v(l)%t(m) |
---|
3461 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
3462 | Â Â Â Â Â Â Â Â Â ENDIF |
---|
3463 | |
---|
3464 | Â Â Â Â Â Â Â ELSE |
---|
3465 | Â Â Â Â Â Â Â Â Â IFÂ (Â idsint ==Â iup_u )Â THEN |
---|
3466 |           DO m = 1, surf_usm_h%ns |
---|
3467 | Â Â Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_h%i(m) |
---|
3468 | Â Â Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_h%j(m) |
---|
3469 | Â Â Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_h%k(m) |
---|
3470 | Â Â Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_h%t_surf_green_av(m) |
---|
3471 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
3472 | Â Â Â Â Â Â Â Â Â ELSE |
---|
3473 | Â Â Â Â Â Â Â Â Â Â l =Â idsidx |
---|
3474 |           DO m = 1, surf_usm_v(l)%ns |
---|
3475 | Â Â Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_v(l)%i(m) |
---|
3476 | Â Â Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_v(l)%j(m) |
---|
3477 | Â Â Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_v(l)%k(m) |
---|
3478 | Â Â Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_v(l)%t_surf_green_av(m) |
---|
3479 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
3480 | |
---|
3481 | Â Â Â Â Â Â Â Â Â ENDIF |
---|
3482 | |
---|
3483 | Â Â Â Â Â Â Â ENDIF |
---|
3484 | |
---|
3485 | Â Â Â Â Â CASEÂ (Â 'usm_theta_10cm'Â ) |
---|
3486 | ! |
---|
3487 | !--Â Â Â Â Â Â near surface temperature for whole surfaces |
---|
3488 | Â Â Â Â Â Â Â IFÂ (Â av ==Â 0Â )Â THEN |
---|
3489 | Â Â Â Â Â Â Â Â Â IFÂ (Â idsint ==Â iup_u )Â THEN |
---|
3490 |           DO m = 1, surf_usm_h%ns |
---|
3491 | Â Â Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_h%i(m) |
---|
3492 | Â Â Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_h%j(m) |
---|
3493 | Â Â Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_h%k(m) |
---|
3494 | Â Â Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_h%pt_10cm(m) |
---|
3495 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
3496 | Â Â Â Â Â Â Â Â Â ELSE |
---|
3497 | Â Â Â Â Â Â Â Â Â Â l =Â idsidx |
---|
3498 |           DO m = 1, surf_usm_v(l)%ns |
---|
3499 | Â Â Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_v(l)%i(m) |
---|
3500 | Â Â Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_v(l)%j(m) |
---|
3501 | Â Â Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_v(l)%k(m) |
---|
3502 | Â Â Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_v(l)%pt_10cm(m) |
---|
3503 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
3504 | Â Â Â Â Â Â Â Â Â ENDIF |
---|
3505 | Â Â Â Â Â Â Â |
---|
3506 | Â Â Â Â Â Â Â |
---|
3507 | Â Â Â Â Â Â Â ELSE |
---|
3508 | Â Â Â Â Â Â Â Â Â IFÂ (Â idsint ==Â iup_u )Â THEN |
---|
3509 |           DO m = 1, surf_usm_h%ns |
---|
3510 | Â Â Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_h%i(m) |
---|
3511 | Â Â Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_h%j(m) |
---|
3512 | Â Â Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_h%k(m) |
---|
3513 | Â Â Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_h%pt_10cm_av(m) |
---|
3514 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
3515 | Â Â Â Â Â Â Â Â Â ELSE |
---|
3516 | Â Â Â Â Â Â Â Â Â Â l =Â idsidx |
---|
3517 |           DO m = 1, surf_usm_v(l)%ns |
---|
3518 | Â Â Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_v(l)%i(m) |
---|
3519 | Â Â Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_v(l)%j(m) |
---|
3520 | Â Â Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_v(l)%k(m) |
---|
3521 | Â Â Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_v(l)%pt_10cm_av(m) |
---|
3522 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
3523 | |
---|
3524 | Â Â Â Â Â Â Â Â Â ENDIF |
---|
3525 | Â Â Â Â Â Â Â ENDIF |
---|
3526 | Â Â Â Â Â Â Â |
---|
3527 | Â Â Â Â Â CASEÂ (Â 'usm_t_wall'Â ) |
---|
3528 | ! |
---|
3529 | !--      wall temperature for iwl layer of walls and land |
---|
3530 | Â Â Â Â Â Â Â IFÂ (Â av ==Â 0Â )Â THEN |
---|
3531 | Â Â Â Â Â Â Â Â Â IFÂ (Â idsint ==Â iup_u )Â THEN |
---|
3532 |           DO m = 1, surf_usm_h%ns |
---|
3533 | Â Â Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_h%i(m) |
---|
3534 | Â Â Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_h%j(m) |
---|
3535 | Â Â Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_h%k(m) |
---|
3536 | Â Â Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â t_wall_h(iwl,m) |
---|
3537 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
3538 | Â Â Â Â Â Â Â Â Â ELSE |
---|
3539 | Â Â Â Â Â Â Â Â Â Â l =Â idsidx |
---|
3540 |           DO m = 1, surf_usm_v(l)%ns |
---|
3541 | Â Â Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_v(l)%i(m) |
---|
3542 | Â Â Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_v(l)%j(m) |
---|
3543 | Â Â Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_v(l)%k(m) |
---|
3544 | Â Â Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â t_wall_v(l)%t(iwl,m) |
---|
3545 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
3546 | Â Â Â Â Â Â Â Â Â ENDIF |
---|
3547 | Â Â Â Â Â Â Â ELSE |
---|
3548 | Â Â Â Â Â Â Â Â Â IFÂ (Â idsint ==Â iup_u )Â THEN |
---|
3549 |           DO m = 1, surf_usm_h%ns |
---|
3550 | Â Â Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_h%i(m) |
---|
3551 | Â Â Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_h%j(m) |
---|
3552 | Â Â Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_h%k(m) |
---|
3553 | Â Â Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_h%t_wall_av(iwl,m) |
---|
3554 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
3555 | Â Â Â Â Â Â Â Â Â ELSE |
---|
3556 | Â Â Â Â Â Â Â Â Â Â l =Â idsidx |
---|
3557 |           DO m = 1, surf_usm_v(l)%ns |
---|
3558 | Â Â Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_v(l)%i(m) |
---|
3559 | Â Â Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_v(l)%j(m) |
---|
3560 | Â Â Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_v(l)%k(m) |
---|
3561 | Â Â Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_v(l)%t_wall_av(iwl,m) |
---|
3562 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
3563 | Â Â Â Â Â Â Â Â Â ENDIF |
---|
3564 | Â Â Â Â Â Â Â ENDIF |
---|
3565 | Â Â Â Â Â Â Â |
---|
3566 | Â Â Â Â Â CASEÂ (Â 'usm_t_window'Â ) |
---|
3567 | ! |
---|
3568 | !--Â Â Â Â Â Â window temperature for iwl layer of walls and land |
---|
3569 | Â Â Â Â Â Â Â IFÂ (Â av ==Â 0Â )Â THEN |
---|
3570 | Â Â Â Â Â Â Â Â Â IFÂ (Â idsint ==Â iup_u )Â THEN |
---|
3571 |           DO m = 1, surf_usm_h%ns |
---|
3572 | Â Â Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_h%i(m) |
---|
3573 | Â Â Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_h%j(m) |
---|
3574 | Â Â Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_h%k(m) |
---|
3575 | Â Â Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â t_window_h(iwl,m) |
---|
3576 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
3577 | Â Â Â Â Â Â Â Â Â ELSE |
---|
3578 | Â Â Â Â Â Â Â Â Â Â l =Â idsidx |
---|
3579 |           DO m = 1, surf_usm_v(l)%ns |
---|
3580 | Â Â Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_v(l)%i(m) |
---|
3581 | Â Â Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_v(l)%j(m) |
---|
3582 | Â Â Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_v(l)%k(m) |
---|
3583 | Â Â Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â t_window_v(l)%t(iwl,m) |
---|
3584 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
3585 | Â Â Â Â Â Â Â Â Â ENDIF |
---|
3586 | Â Â Â Â Â Â Â ELSE |
---|
3587 | Â Â Â Â Â Â Â Â Â IFÂ (Â idsint ==Â iup_u )Â THEN |
---|
3588 |           DO m = 1, surf_usm_h%ns |
---|
3589 | Â Â Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_h%i(m) |
---|
3590 | Â Â Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_h%j(m) |
---|
3591 | Â Â Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_h%k(m) |
---|
3592 | Â Â Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_h%t_window_av(iwl,m) |
---|
3593 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
3594 | Â Â Â Â Â Â Â Â Â ELSE |
---|
3595 | Â Â Â Â Â Â Â Â Â Â l =Â idsidx |
---|
3596 |           DO m = 1, surf_usm_v(l)%ns |
---|
3597 | Â Â Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_v(l)%i(m) |
---|
3598 | Â Â Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_v(l)%j(m) |
---|
3599 | Â Â Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_v(l)%k(m) |
---|
3600 | Â Â Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_v(l)%t_window_av(iwl,m) |
---|
3601 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
3602 | Â Â Â Â Â Â Â Â Â ENDIF |
---|
3603 | Â Â Â Â Â Â Â ENDIF |
---|
3604 | |
---|
3605 | Â Â Â Â Â CASEÂ (Â 'usm_t_green'Â ) |
---|
3606 | ! |
---|
3607 | !--      green temperature for iwl layer of walls and land |
---|
3608 | Â Â Â Â Â Â Â IFÂ (Â av ==Â 0Â )Â THEN |
---|
3609 | Â Â Â Â Â Â Â Â Â IFÂ (Â idsint ==Â iup_u )Â THEN |
---|
3610 |           DO m = 1, surf_usm_h%ns |
---|
3611 | Â Â Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_h%i(m) |
---|
3612 | Â Â Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_h%j(m) |
---|
3613 | Â Â Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_h%k(m) |
---|
3614 | Â Â Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â t_green_h(iwl,m) |
---|
3615 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
3616 | Â Â Â Â Â Â Â Â Â ELSE |
---|
3617 | Â Â Â Â Â Â Â Â Â Â l =Â idsidx |
---|
3618 |           DO m = 1, surf_usm_v(l)%ns |
---|
3619 | Â Â Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_v(l)%i(m) |
---|
3620 | Â Â Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_v(l)%j(m) |
---|
3621 | Â Â Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_v(l)%k(m) |
---|
3622 | Â Â Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â t_green_v(l)%t(iwl,m) |
---|
3623 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
3624 | Â Â Â Â Â Â Â Â Â ENDIF |
---|
3625 | Â Â Â Â Â Â Â ELSE |
---|
3626 | Â Â Â Â Â Â Â Â Â IFÂ (Â idsint ==Â iup_u )Â THEN |
---|
3627 |           DO m = 1, surf_usm_h%ns |
---|
3628 | Â Â Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_h%i(m) |
---|
3629 | Â Â Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_h%j(m) |
---|
3630 | Â Â Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_h%k(m) |
---|
3631 | Â Â Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_h%t_green_av(iwl,m) |
---|
3632 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
3633 | Â Â Â Â Â Â Â Â Â ELSE |
---|
3634 | Â Â Â Â Â Â Â Â Â Â l =Â idsidx |
---|
3635 |           DO m = 1, surf_usm_v(l)%ns |
---|
3636 | Â Â Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_v(l)%i(m) |
---|
3637 | Â Â Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_v(l)%j(m) |
---|
3638 | Â Â Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_v(l)%k(m) |
---|
3639 | Â Â Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_v(l)%t_green_av(iwl,m) |
---|
3640 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
3641 | Â Â Â Â Â Â Â Â Â ENDIF |
---|
3642 | Â Â Â Â Â Â Â ENDIF |
---|
3643 | Â Â Â Â Â Â Â |
---|
3644 | Â Â Â Â Â Â Â CASEÂ (Â 'usm_swc'Â ) |
---|
3645 | ! |
---|
3646 | !--      soil water content for iwl layer of walls and land |
---|
3647 | Â Â Â Â Â Â Â IFÂ (Â av ==Â 0Â )Â THEN |
---|
3648 | Â Â Â Â Â Â Â Â Â IFÂ (Â idsint ==Â iup_u )Â THEN |
---|
3649 |           DO m = 1, surf_usm_h%ns |
---|
3650 | Â Â Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_h%i(m) |
---|
3651 | Â Â Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_h%j(m) |
---|
3652 | Â Â Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_h%k(m) |
---|
3653 | Â Â Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â swc_h(iwl,m) |
---|
3654 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
3655 | Â Â Â Â Â Â Â Â Â ELSE |
---|
3656 | Â Â Â Â Â Â Â Â Â Â l =Â idsidx |
---|
3657 |           DO m = 1, surf_usm_v(l)%ns |
---|
3658 | Â Â Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_v(l)%i(m) |
---|
3659 | Â Â Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_v(l)%j(m) |
---|
3660 | Â Â Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_v(l)%k(m) |
---|
3661 | Â Â Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â swc_v(l)%t(iwl,m) |
---|
3662 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
3663 | Â Â Â Â Â Â Â Â Â ENDIF |
---|
3664 | Â Â Â Â Â Â Â ELSE |
---|
3665 | Â Â Â Â Â Â Â Â Â IFÂ (Â idsint ==Â iup_u )Â THEN |
---|
3666 |           DO m = 1, surf_usm_h%ns |
---|
3667 | Â Â Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_h%i(m) |
---|
3668 | Â Â Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_h%j(m) |
---|
3669 | Â Â Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_h%k(m) |
---|
3670 | Â Â Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_h%swc_av(iwl,m) |
---|
3671 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
3672 | Â Â Â Â Â Â Â Â Â ELSE |
---|
3673 | Â Â Â Â Â Â Â Â Â Â l =Â idsidx |
---|
3674 |           DO m = 1, surf_usm_v(l)%ns |
---|
3675 | Â Â Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_v(l)%i(m) |
---|
3676 | Â Â Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_v(l)%j(m) |
---|
3677 | Â Â Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_v(l)%k(m) |
---|
3678 | Â Â Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_v(l)%swc_av(iwl,m) |
---|
3679 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
3680 | Â Â Â Â Â Â Â Â Â ENDIF |
---|
3681 | Â Â Â Â Â Â Â ENDIF |
---|
3682 | |
---|
3683 | Â Â Â Â Â Â Â |
---|
3684 | Â Â Â Â Â CASE DEFAULT |
---|
3685 | Â Â Â Â Â Â Â found =Â .FALSE. |
---|
3686 | Â Â Â Â Â Â Â RETURN |
---|
3687 | Â Â Â Â END SELECT |
---|
3688 | |
---|
3689 | ! |
---|
3690 | !--Â Â Â Rearrange dimensions for NetCDF output |
---|
3691 | !--Â Â Â FIXME: this may generate FPE overflow upon conversion from DP to SP |
---|
3692 |     DO j = nys, nyn |
---|
3693 |       DO i = nxl, nxr |
---|
3694 |         DO k = nzb_do, nzt_do |
---|
3695 | Â Â Â Â Â Â Â Â Â Â local_pf(i,j,k)Â =Â temp_pf(k,j,i) |
---|
3696 | Â Â Â Â Â Â Â Â ENDDO |
---|
3697 | Â Â Â Â Â Â ENDDO |
---|
3698 | Â Â Â Â ENDDO |
---|
3699 | Â Â Â Â |
---|
3700 | Â Â END SUBROUTINE usm_data_output_3d |
---|
3701 | Â Â |
---|
3702 | |
---|
3703 | !------------------------------------------------------------------------------! |
---|
3704 | ! |
---|
3705 | ! Description: |
---|
3706 | ! ------------ |
---|
3707 | !> Soubroutine defines appropriate grid for netcdf variables. |
---|
3708 | !> It is called out from subroutine netcdf. |
---|
3709 | !------------------------------------------------------------------------------! |
---|
3710 |   SUBROUTINE usm_define_netcdf_grid( variable, found, grid_x, grid_y, grid_z ) |
---|
3711 | Â Â |
---|
3712 | Â Â Â Â IMPLICIT NONE |
---|
3713 | |
---|
3714 |     CHARACTER (len=*), INTENT(IN) :: variable  !< |
---|
3715 |     LOGICAL, INTENT(OUT)      :: found    !< |
---|
3716 |     CHARACTER (len=*), INTENT(OUT) :: grid_x   !< |
---|
3717 |     CHARACTER (len=*), INTENT(OUT) :: grid_y   !< |
---|
3718 |     CHARACTER (len=*), INTENT(OUT) :: grid_z   !< |
---|
3719 | |
---|
3720 | Â Â Â Â CHARACTERÂ (len=varnamelength)Â ::Â var |
---|
3721 | |
---|
3722 | Â Â Â Â var =Â TRIM(variable) |
---|
3723 |     IF ( var(1:9) == 'usm_wshf_' .OR. var(1:9) == 'usm_wghf_' .OR.          & |
---|
3724 |        var(1:16) == 'usm_wghf_window_' .OR. var(1:15) == 'usm_wghf_green_' .OR.   & |
---|
3725 |        var(1:10) == 'usm_iwghf_' .OR. var(1:17) == 'usm_iwghf_window_' .OR.     & |
---|
3726 |        var(1:9) == 'usm_qsws_' .OR. var(1:13) == 'usm_qsws_veg_' .OR.       & |
---|
3727 |        var(1:13) == 'usm_qsws_liq_' .OR.                       & |
---|
3728 |        var(1:15) == 'usm_t_surf_wall' .OR. var(1:10) == 'usm_t_wall' .OR.     & |
---|
3729 |        var(1:17) == 'usm_t_surf_window' .OR. var(1:12) == 'usm_t_window' .OR.   & |
---|
3730 |        var(1:16) == 'usm_t_surf_green' .OR. var(1:11) == 'usm_t_green' .OR.     & |
---|
3731 |        var(1:15) == 'usm_theta_10cm' .OR.                       & |
---|
3732 |        var(1:9) == 'usm_surfz' .OR. var(1:11) == 'usm_surfcat' .OR.        & |
---|
3733 |        var(1:11) == 'usm_surfalb' .OR. var(1:12) == 'usm_surfemis' .OR.      & |
---|
3734 |        var(1:16) == 'usm_surfwintrans' .OR. var(1:7) == 'usm_swc' ) THEN |
---|
3735 | |
---|
3736 | Â Â Â Â Â Â found =Â .TRUE. |
---|
3737 | Â Â Â Â Â Â grid_x =Â 'x' |
---|
3738 | Â Â Â Â Â Â grid_y =Â 'y' |
---|
3739 | Â Â Â Â Â Â grid_z =Â 'zu' |
---|
3740 | Â Â Â Â ELSE |
---|
3741 |       found = .FALSE. |
---|
3742 | Â Â Â Â Â Â grid_x =Â 'none' |
---|
3743 | Â Â Â Â Â Â grid_y =Â 'none' |
---|
3744 | Â Â Â Â Â Â grid_z =Â 'none' |
---|
3745 | Â Â Â Â ENDIF |
---|
3746 | |
---|
3747 | Â Â END SUBROUTINE usm_define_netcdf_grid |
---|
3748 | Â Â |
---|
3749 | |
---|
3750 | !------------------------------------------------------------------------------! |
---|
3751 | ! Description: |
---|
3752 | ! ------------ |
---|
3753 | !> Initialization of the wall surface model |
---|
3754 | !------------------------------------------------------------------------------! |
---|
3755 | Â Â SUBROUTINE usm_init_material_model |
---|
3756 | |
---|
3757 | Â Â Â Â IMPLICIT NONE |
---|
3758 | |
---|
3759 |     INTEGER(iwp) :: k, l, m      !< running indices |
---|
3760 | Â Â Â Â |
---|
3761 |     CALL location_message( '  initialization of wall surface model', .TRUE. ) |
---|
3762 | |
---|
3763 | ! |
---|
3764 | !--Â Â Â Calculate wall grid spacings. |
---|
3765 | !--Â Â Â Temperature is defined at the center of the wall layers, |
---|
3766 | !--Â Â Â whereas gradients/fluxes are defined at the edges (_stag)Â Â Â |
---|
3767 | !--Â Â Â apply for all particular surface grids. First for horizontal surfaces |
---|
3768 |     DO m = 1, surf_usm_h%ns |
---|
3769 | |
---|
3770 | Â Â Â Â Â Â surf_usm_h%dz_wall(nzb_wall,m)Â =Â surf_usm_h%zw(nzb_wall,m) |
---|
3771 |       DO k = nzb_wall+1, nzt_wall |
---|
3772 | Â Â Â Â Â Â Â Â surf_usm_h%dz_wall(k,m)Â =Â surf_usm_h%zw(k,m)Â -Â Â Â Â Â Â Â Â Â & |
---|
3773 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%zw(k-1,m) |
---|
3774 | Â Â Â Â Â Â ENDDO |
---|
3775 | Â Â Â Â Â Â surf_usm_h%dz_window(nzb_wall,m)Â =Â surf_usm_h%zw_window(nzb_wall,m) |
---|
3776 |       DO k = nzb_wall+1, nzt_wall |
---|
3777 | Â Â Â Â Â Â Â Â surf_usm_h%dz_window(k,m)Â =Â surf_usm_h%zw_window(k,m)Â -Â Â Â Â Â & |
---|
3778 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%zw_window(k-1,m) |
---|
3779 | Â Â Â Â Â Â ENDDO |
---|
3780 | Â Â Â Â Â Â |
---|
3781 | Â Â Â Â Â Â surf_usm_h%dz_wall(nzt_wall+1,m)Â =Â surf_usm_h%dz_wall(nzt_wall,m) |
---|
3782 | |
---|
3783 |       DO k = nzb_wall, nzt_wall-1 |
---|
3784 | Â Â Â Â Â Â Â Â surf_usm_h%dz_wall_stag(k,m)Â =Â 0.5Â *Â (Â Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
3785 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%dz_wall(k+1,m)Â +Â surf_usm_h%dz_wall(k,m)Â ) |
---|
3786 | Â Â Â Â Â Â ENDDO |
---|
3787 | Â Â Â Â Â Â surf_usm_h%dz_wall_stag(nzt_wall,m)Â =Â surf_usm_h%dz_wall(nzt_wall,m) |
---|
3788 | Â Â Â Â Â Â |
---|
3789 | Â Â Â Â Â Â surf_usm_h%dz_window(nzt_wall+1,m)Â =Â surf_usm_h%dz_window(nzt_wall,m) |
---|
3790 | |
---|
3791 |       DO k = nzb_wall, nzt_wall-1 |
---|
3792 | Â Â Â Â Â Â Â Â surf_usm_h%dz_window_stag(k,m)Â =Â 0.5Â *Â (Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
3793 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%dz_window(k+1,m)Â +Â surf_usm_h%dz_window(k,m)Â ) |
---|
3794 | Â Â Â Â Â Â ENDDO |
---|
3795 | Â Â Â Â Â Â surf_usm_h%dz_window_stag(nzt_wall,m)Â =Â surf_usm_h%dz_window(nzt_wall,m) |
---|
3796 | |
---|
3797 |       IF (surf_usm_h%green_type_roof(m) == 2.0_wp ) THEN |
---|
3798 | ! |
---|
3799 | !-- extensive green roof |
---|
3800 | !-- set ratio of substrate layer thickness, soil-type and LAI |
---|
3801 | Â Â Â Â Â Â Â soil_type =Â 3 |
---|
3802 | Â Â Â Â Â Â Â surf_usm_h%lai(m)Â =Â 2.0_wp |
---|
3803 | Â Â Â Â Â Â Â |
---|
3804 | Â Â Â Â Â Â Â surf_usm_h%zw_green(nzb_wall,m)Â Â =Â 0.05_wp |
---|
3805 | Â Â Â Â Â Â Â surf_usm_h%zw_green(nzb_wall+1,m)Â =Â 0.10_wp |
---|
3806 | Â Â Â Â Â Â Â surf_usm_h%zw_green(nzb_wall+2,m)Â =Â 0.15_wp |
---|
3807 | Â Â Â Â Â Â Â surf_usm_h%zw_green(nzb_wall+3,m)Â =Â 0.20_wp |
---|
3808 | Â Â Â Â Â Â ELSE |
---|
3809 | ! |
---|
3810 | !-- intensiv green roof |
---|
3811 | !-- set ratio of substrate layer thickness, soil-type and LAI |
---|
3812 | Â Â Â Â Â Â Â soil_type =Â 6 |
---|
3813 | Â Â Â Â Â Â Â surf_usm_h%lai(m)Â =Â 4.0_wp |
---|
3814 | Â Â Â Â Â Â Â |
---|
3815 | Â Â Â Â Â Â Â surf_usm_h%zw_green(nzb_wall,m)Â Â =Â 0.05_wp |
---|
3816 | Â Â Â Â Â Â Â surf_usm_h%zw_green(nzb_wall+1,m)Â =Â 0.10_wp |
---|
3817 | Â Â Â Â Â Â Â surf_usm_h%zw_green(nzb_wall+2,m)Â =Â 0.40_wp |
---|
3818 | Â Â Â Â Â Â Â surf_usm_h%zw_green(nzb_wall+3,m)Â =Â 0.80_wp |
---|
3819 | Â Â Â Â Â Â ENDIF |
---|
3820 | Â Â Â Â Â Â |
---|
3821 | Â Â Â Â Â Â surf_usm_h%dz_green(nzb_wall,m)Â =Â surf_usm_h%zw_green(nzb_wall,m) |
---|
3822 |       DO k = nzb_wall+1, nzt_wall |
---|
3823 | Â Â Â Â Â Â Â Â surf_usm_h%dz_green(k,m)Â =Â surf_usm_h%zw_green(k,m)Â -Â Â Â Â Â Â & |
---|
3824 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%zw_green(k-1,m) |
---|
3825 | Â Â Â Â Â Â ENDDO |
---|
3826 | Â Â Â Â Â Â surf_usm_h%dz_green(nzt_wall+1,m)Â =Â surf_usm_h%dz_green(nzt_wall,m) |
---|
3827 | |
---|
3828 |       DO k = nzb_wall, nzt_wall-1 |
---|
3829 | Â Â Â Â Â Â Â Â surf_usm_h%dz_green_stag(k,m)Â =Â 0.5Â *Â (Â Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
3830 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%dz_green(k+1,m)Â +Â surf_usm_h%dz_green(k,m)Â ) |
---|
3831 | Â Â Â Â Â Â ENDDO |
---|
3832 | Â Â Â Â Â Â surf_usm_h%dz_green_stag(nzt_wall,m)Â =Â surf_usm_h%dz_green(nzt_wall,m) |
---|
3833 | Â Â Â Â Â Â |
---|
3834 |      IF ( alpha_vangenuchten == 9999999.9_wp ) THEN |
---|
3835 | Â Â Â Â Â Â Â alpha_vangenuchten =Â soil_pars(0,soil_type) |
---|
3836 | Â Â Â Â Â ENDIF |
---|
3837 | |
---|
3838 |      IF ( l_vangenuchten == 9999999.9_wp ) THEN |
---|
3839 | Â Â Â Â Â Â Â l_vangenuchten =Â soil_pars(1,soil_type) |
---|
3840 | Â Â Â Â Â ENDIF |
---|
3841 | |
---|
3842 |      IF ( n_vangenuchten == 9999999.9_wp ) THEN |
---|
3843 | Â Â Â Â Â Â Â n_vangenuchten =Â soil_pars(2,soil_type)Â Â Â Â Â Â |
---|
3844 | Â Â Â Â Â ENDIF |
---|
3845 | |
---|
3846 |      IF ( hydraulic_conductivity == 9999999.9_wp ) THEN |
---|
3847 | Â Â Â Â Â Â Â hydraulic_conductivity =Â soil_pars(3,soil_type)Â Â Â Â Â Â |
---|
3848 | Â Â Â Â Â ENDIF |
---|
3849 | |
---|
3850 |      IF ( saturation_moisture == 9999999.9_wp ) THEN |
---|
3851 | Â Â Â Â Â Â Â saturation_moisture =Â m_soil_pars(0,soil_type)Â Â Â Â Â Â |
---|
3852 | Â Â Â Â Â ENDIF |
---|
3853 | |
---|
3854 |      IF ( field_capacity == 9999999.9_wp ) THEN |
---|
3855 | Â Â Â Â Â Â Â field_capacity =Â m_soil_pars(1,soil_type)Â Â Â Â Â Â |
---|
3856 | Â Â Â Â Â ENDIF |
---|
3857 | |
---|
3858 |      IF ( wilting_point == 9999999.9_wp ) THEN |
---|
3859 | Â Â Â Â Â Â Â wilting_point =Â m_soil_pars(2,soil_type)Â Â Â Â Â Â |
---|
3860 | Â Â Â Â Â ENDIF |
---|
3861 | |
---|
3862 |      IF ( residual_moisture == 9999999.9_wp ) THEN |
---|
3863 | Â Â Â Â Â Â Â residual_moisture =Â m_soil_pars(3,soil_type)Â Â Â Â |
---|
3864 | Â Â Â Â Â ENDIF |
---|
3865 | Â Â Â Â Â |
---|
3866 |      DO k = nzb_wall, nzt_wall+1 |
---|
3867 | Â Â Â Â Â Â Â swc_h(k,m)Â =Â field_capacity |
---|
3868 | Â Â Â Â Â Â Â rootfr_h(k,m)Â =Â 0.5_wp |
---|
3869 | Â Â Â Â Â Â Â surf_usm_h%alpha_vg_green(m)Â Â Â =Â alpha_vangenuchten |
---|
3870 | Â Â Â Â Â Â Â surf_usm_h%l_vg_green(m)Â Â Â Â Â =Â l_vangenuchten |
---|
3871 | Â Â Â Â Â Â Â surf_usm_h%n_vg_green(m)Â Â Â Â Â =Â n_vangenuchten |
---|
3872 | Â Â Â Â Â Â Â surf_usm_h%gamma_w_green_sat(k,m)Â =Â hydraulic_conductivity |
---|
3873 | Â Â Â Â Â Â Â swc_sat_h(k,m)Â Â Â Â Â Â Â Â Â Â =Â saturation_moisture |
---|
3874 | Â Â Â Â Â Â Â fc_h(k,m)Â Â Â Â Â Â Â Â Â Â Â Â Â =Â field_capacity |
---|
3875 | Â Â Â Â Â Â Â wilt_h(k,m)Â Â Â Â Â Â Â Â Â Â Â Â =Â wilting_point |
---|
3876 | Â Â Â Â Â Â Â swc_res_h(k,m)Â Â Â Â Â Â Â Â Â Â =Â residual_moisture |
---|
3877 | Â Â Â Â Â ENDDO |
---|
3878 | |
---|
3879 | Â Â Â Â ENDDO |
---|
3880 | |
---|
3881 |     surf_usm_h%ddz_wall    = 1.0_wp / surf_usm_h%dz_wall |
---|
3882 |     surf_usm_h%ddz_wall_stag  = 1.0_wp / surf_usm_h%dz_wall_stag |
---|
3883 |     surf_usm_h%ddz_window   = 1.0_wp / surf_usm_h%dz_window |
---|
3884 |     surf_usm_h%ddz_window_stag = 1.0_wp / surf_usm_h%dz_window_stag |
---|
3885 |     surf_usm_h%ddz_green    = 1.0_wp / surf_usm_h%dz_green |
---|
3886 |     surf_usm_h%ddz_green_stag = 1.0_wp / surf_usm_h%dz_green_stag |
---|
3887 | !    |
---|
3888 | !--Â Â Â For vertical surfaces |
---|
3889 |     DO l = 0, 3 |
---|
3890 |       DO m = 1, surf_usm_v(l)%ns |
---|
3891 | Â Â Â Â Â Â Â surf_usm_v(l)%dz_wall(nzb_wall,m)Â =Â surf_usm_v(l)%zw(nzb_wall,m) |
---|
3892 |        DO k = nzb_wall+1, nzt_wall |
---|
3893 | Â Â Â Â Â Â Â Â Â surf_usm_v(l)%dz_wall(k,m)Â =Â surf_usm_v(l)%zw(k,m)Â -Â Â Â Â Â & |
---|
3894 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%zw(k-1,m) |
---|
3895 | Â Â Â Â Â Â Â ENDDO |
---|
3896 | Â Â Â Â Â Â Â surf_usm_v(l)%dz_window(nzb_wall,m)Â =Â surf_usm_v(l)%zw_window(nzb_wall,m) |
---|
3897 |        DO k = nzb_wall+1, nzt_wall |
---|
3898 | Â Â Â Â Â Â Â Â Â surf_usm_v(l)%dz_window(k,m)Â =Â surf_usm_v(l)%zw_window(k,m)Â -Â & |
---|
3899 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%zw_window(k-1,m) |
---|
3900 | Â Â Â Â Â Â Â ENDDO |
---|
3901 | Â Â Â Â Â Â Â surf_usm_v(l)%dz_green(nzb_wall,m)Â =Â surf_usm_v(l)%zw_green(nzb_wall,m) |
---|
3902 |        DO k = nzb_wall+1, nzt_wall |
---|
3903 | Â Â Â Â Â Â Â Â Â surf_usm_v(l)%dz_green(k,m)Â =Â surf_usm_v(l)%zw_green(k,m)Â -Â & |
---|
3904 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%zw_green(k-1,m) |
---|
3905 | Â Â Â Â Â Â Â ENDDO |
---|
3906 | Â Â Â Â Â Â |
---|
3907 | Â Â Â Â Â Â Â surf_usm_v(l)%dz_wall(nzt_wall+1,m)Â =Â Â Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
3908 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%dz_wall(nzt_wall,m) |
---|
3909 | |
---|
3910 |        DO k = nzb_wall, nzt_wall-1 |
---|
3911 | Â Â Â Â Â Â Â Â Â surf_usm_v(l)%dz_wall_stag(k,m)Â =Â 0.5Â *Â (Â Â Â Â Â Â Â Â Â Â & |
---|
3912 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%dz_wall(k+1,m)Â +Â & |
---|
3913 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%dz_wall(k,m)Â ) |
---|
3914 | Â Â Â Â Â Â Â ENDDO |
---|
3915 | Â Â Â Â Â Â Â surf_usm_v(l)%dz_wall_stag(nzt_wall,m)Â =Â Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
3916 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%dz_wall(nzt_wall,m) |
---|
3917 | Â Â Â Â Â Â Â surf_usm_v(l)%dz_window(nzt_wall+1,m)Â =Â Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
3918 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%dz_window(nzt_wall,m) |
---|
3919 | |
---|
3920 |        DO k = nzb_wall, nzt_wall-1 |
---|
3921 | Â Â Â Â Â Â Â Â Â surf_usm_v(l)%dz_window_stag(k,m)Â =Â 0.5Â *Â (Â Â Â Â Â Â Â Â Â Â & |
---|
3922 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%dz_window(k+1,m)Â +Â & |
---|
3923 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%dz_window(k,m)Â ) |
---|
3924 | Â Â Â Â Â Â Â ENDDO |
---|
3925 | Â Â Â Â Â Â Â surf_usm_v(l)%dz_window_stag(nzt_wall,m)Â =Â Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
3926 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%dz_window(nzt_wall,m) |
---|
3927 | Â Â Â Â Â Â Â surf_usm_v(l)%dz_green(nzt_wall+1,m)Â =Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
3928 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%dz_green(nzt_wall,m) |
---|
3929 | |
---|
3930 |        DO k = nzb_wall, nzt_wall-1 |
---|
3931 | Â Â Â Â Â Â Â Â Â surf_usm_v(l)%dz_green_stag(k,m)Â =Â 0.5Â *Â (Â Â Â Â Â Â Â Â Â Â & |
---|
3932 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%dz_green(k+1,m)Â +Â & |
---|
3933 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%dz_green(k,m)Â ) |
---|
3934 | Â Â Â Â Â Â Â ENDDO |
---|
3935 | Â Â Â Â Â Â Â surf_usm_v(l)%dz_green_stag(nzt_wall,m)Â =Â Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
3936 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%dz_green(nzt_wall,m) |
---|
3937 | Â Â Â Â Â Â ENDDO |
---|
3938 |       surf_usm_v(l)%ddz_wall    = 1.0_wp / surf_usm_v(l)%dz_wall |
---|
3939 |       surf_usm_v(l)%ddz_wall_stag  = 1.0_wp / surf_usm_v(l)%dz_wall_stag |
---|
3940 |       surf_usm_v(l)%ddz_window   = 1.0_wp / surf_usm_v(l)%dz_window |
---|
3941 |       surf_usm_v(l)%ddz_window_stag = 1.0_wp / surf_usm_v(l)%dz_window_stag |
---|
3942 |       surf_usm_v(l)%ddz_green    = 1.0_wp / surf_usm_v(l)%dz_green |
---|
3943 |       surf_usm_v(l)%ddz_green_stag = 1.0_wp / surf_usm_v(l)%dz_green_stag |
---|
3944 | Â Â Â Â ENDDOÂ Â Â |
---|
3945 | |
---|
3946 | Â Â Â Â |
---|
3947 |     CALL location_message( '  wall structures filed out', .TRUE. ) |
---|
3948 | |
---|
3949 |     CALL location_message( '  initialization of wall surface model finished', .TRUE. ) |
---|
3950 | |
---|
3951 | Â Â END SUBROUTINE usm_init_material_model |
---|
3952 | |
---|
3953 | Â |
---|
3954 | !------------------------------------------------------------------------------! |
---|
3955 | ! Description: |
---|
3956 | ! ------------ |
---|
3957 | !> Initialization of the urban surface model |
---|
3958 | !------------------------------------------------------------------------------! |
---|
3959 | Â Â SUBROUTINE usm_init |
---|
3960 | |
---|
3961 |     USE arrays_3d,                             & |
---|
3962 | Â Â Â Â Â Â ONLY:Â zw |
---|
3963 | |
---|
3964 |     USE netcdf_data_input_mod,                       & |
---|
3965 |       ONLY: building_pars_f, building_type_f, terrain_height_f |
---|
3966 | Â Â |
---|
3967 | Â Â Â Â IMPLICIT NONE |
---|
3968 | |
---|
3969 |     INTEGER(iwp) :: i          !< loop index x-dirction |
---|
3970 |     INTEGER(iwp) :: ind_alb_green    !< index in input list for green albedo |
---|
3971 |     INTEGER(iwp) :: ind_alb_wall    !< index in input list for wall albedo |
---|
3972 |     INTEGER(iwp) :: ind_alb_win     !< index in input list for window albedo |
---|
3973 |     INTEGER(iwp) :: ind_emis_wall    !< index in input list for wall emissivity |
---|
3974 |     INTEGER(iwp) :: ind_emis_green   !< index in input list for green emissivity |
---|
3975 |     INTEGER(iwp) :: ind_emis_win    !< index in input list for window emissivity |
---|
3976 |     INTEGER(iwp) :: ind_green_frac_w  !< index in input list for green fraction on wall |
---|
3977 |     INTEGER(iwp) :: ind_green_frac_r  !< index in input list for green fraction on roof |
---|
3978 | Â Â Â Â INTEGER(iwp)Â ::Â ind_hc1Â Â Â Â Â Â Â !< index in input list for heat capacity at first wall layer |
---|
3979 |     INTEGER(iwp) :: ind_hc1_win     !< index in input list for heat capacity at first window layer |
---|
3980 | Â Â Â Â INTEGER(iwp)Â ::Â ind_hc2Â Â Â Â Â Â Â !< index in input list for heat capacity at second wall layer |
---|
3981 |     INTEGER(iwp) :: ind_hc2_win     !< index in input list for heat capacity at second window layer |
---|
3982 | Â Â Â Â INTEGER(iwp)Â ::Â ind_hc3Â Â Â Â Â Â Â !< index in input list for heat capacity at third wall layer |
---|
3983 |     INTEGER(iwp) :: ind_hc3_win     !< index in input list for heat capacity at third window layer |
---|
3984 |     INTEGER(iwp) :: ind_lai_r      !< index in input list for LAI on roof |
---|
3985 |     INTEGER(iwp) :: ind_lai_w      !< index in input list for LAI on wall |
---|
3986 | Â Â Â Â INTEGER(iwp)Â ::Â ind_tc1Â Â Â Â Â Â Â !< index in input list for thermal conductivity at first wall layer |
---|
3987 |     INTEGER(iwp) :: ind_tc1_win     !< index in input list for thermal conductivity at first window layer |
---|
3988 | Â Â Â Â INTEGER(iwp)Â ::Â ind_tc2Â Â Â Â Â Â Â !< index in input list for thermal conductivity at second wall layer |
---|
3989 |     INTEGER(iwp) :: ind_tc2_win     !< index in input list for thermal conductivity at second window layer |
---|
3990 | Â Â Â Â INTEGER(iwp)Â ::Â ind_tc3Â Â Â Â Â Â Â !< index in input list for thermal conductivity at third wall layer |
---|
3991 |     INTEGER(iwp) :: ind_tc3_win     !< index in input list for thermal conductivity at third window layer |
---|
3992 | Â Â Â Â INTEGER(iwp)Â ::Â ind_thick_1Â Â Â Â Â !< index in input list for thickness of first wall layer |
---|
3993 |     INTEGER(iwp) :: ind_thick_1_win   !< index in input list for thickness of first window layer |
---|
3994 | Â Â Â Â INTEGER(iwp)Â ::Â ind_thick_2Â Â Â Â Â !< index in input list for thickness of second wall layer |
---|
3995 |     INTEGER(iwp) :: ind_thick_2_win   !< index in input list for thickness of second window layer |
---|
3996 | Â Â Â Â INTEGER(iwp)Â ::Â ind_thick_3Â Â Â Â Â !< index in input list for thickness of third wall layer |
---|
3997 |     INTEGER(iwp) :: ind_thick_3_win   !< index in input list for thickness of third window layer |
---|
3998 | Â Â Â Â INTEGER(iwp)Â ::Â ind_thick_4Â Â Â Â Â !< index in input list for thickness of fourth wall layer |
---|
3999 |     INTEGER(iwp) :: ind_thick_4_win   !< index in input list for thickness of fourth window layer |
---|
4000 |     INTEGER(iwp) :: ind_trans      !< index in input list for window transmissivity |
---|
4001 |     INTEGER(iwp) :: ind_wall_frac    !< index in input list for wall fraction |
---|
4002 |     INTEGER(iwp) :: ind_win_frac    !< index in input list for window fraction |
---|
4003 | Â Â Â Â INTEGER(iwp)Â ::Â ind_z0Â Â Â Â Â Â Â !< index in input list for z0 |
---|
4004 |     INTEGER(iwp) :: ind_z0qh      !< index in input list for z0h / z0q |
---|
4005 |     INTEGER(iwp) :: j          !< loop index y-dirction |
---|
4006 |     INTEGER(iwp) :: k          !< loop index z-dirction |
---|
4007 |     INTEGER(iwp) :: l          !< loop index surface orientation |
---|
4008 |     INTEGER(iwp) :: m          !< loop index surface element |
---|
4009 |     INTEGER(iwp) :: st         !< dummy |
---|
4010 | |
---|
4011 |     REAL(wp)   :: c, d, tin, twin |
---|
4012 |     REAL(wp)   :: ground_floor_level_l     !< local height of ground floor level |
---|
4013 |     REAL(wp)   :: z_agl            !< height above ground |
---|
4014 | |
---|
4015 |     CALL location_message( 'initializing urban surface model', .FALSE. ) |
---|
4016 | |
---|
4017 |     CALL cpu_log( log_point_s(78), 'usm_init', 'start' ) |
---|
4018 | ! |
---|
4019 | !--Â Â Â surface forcing have to be disabled for LSF |
---|
4020 | !--Â Â Â in case of enabled urban surface module |
---|
4021 | Â Â Â Â IFÂ (Â large_scale_forcing )Â THEN |
---|
4022 | Â Â Â Â Â Â lsf_surf =Â .FALSE. |
---|
4023 | Â Â Â Â ENDIF |
---|
4024 | |
---|
4025 | ! |
---|
4026 | !--Â Â Â Flag surface elements belonging to the ground floor level. Therefore, |
---|
4027 | !--Â Â Â use terrain height array from file, if available. This flag is later used |
---|
4028 | !--Â Â Â to control initialization of surface attributes. |
---|
4029 | !--Â Â Â Todo: for the moment disable initialization of building roofs with |
---|
4030 | !--Â Â Â ground-floor-level properties. |
---|
4031 |     surf_usm_h%ground_level = .FALSE. |
---|
4032 | !     DO m = 1, surf_usm_h%ns |
---|
4033 | !      i = surf_usm_h%i(m) |
---|
4034 | !      j = surf_usm_h%j(m) |
---|
4035 | !      k = surf_usm_h%k(m) |
---|
4036 | ! ! |
---|
4037 | ! !--Â Â Â Â Get local ground level. If no ground level is given in input file, |
---|
4038 | ! !--Â Â Â Â use default value. |
---|
4039 | !      ground_floor_level_l = ground_floor_level |
---|
4040 | !      IF ( building_pars_f%from_file ) THEN |
---|
4041 | !        IF ( building_pars_f%pars_xy(ind_gflh,j,i) /=          & |
---|
4042 | !          building_pars_f%fill ) & |
---|
4043 | !         ground_floor_level_l = building_pars_f%pars_xy(ind_gflh,j,i)     |
---|
4044 | !      ENDIF |
---|
4045 | ! ! |
---|
4046 | ! !--Â Â Â Â Determine height of surface element above ground level |
---|
4047 | !      IF ( terrain_height_f%from_file ) THEN |
---|
4048 | !        z_agl = zw(k) - terrain_height_f%var(j,i) |
---|
4049 | !      ELSE |
---|
4050 | !        z_agl = zw(k) |
---|
4051 | !      ENDIF |
---|
4052 | ! ! |
---|
4053 | ! !--Â Â Â Â Set flag for ground level |
---|
4054 | !      IF ( z_agl <= ground_floor_level_l )                & |
---|
4055 | !        surf_usm_h%ground_level(m) = .TRUE. |
---|
4056 | !     ENDDO |
---|
4057 | |
---|
4058 |     DO l = 0, 3 |
---|
4059 | Â Â Â Â Â Â surf_usm_v(l)%ground_level =Â .FALSE. |
---|
4060 |       DO m = 1, surf_usm_v(l)%ns |
---|
4061 | Â Â Â Â Â Â Â i =Â surf_usm_v(l)%i(m)Â +Â surf_usm_v(l)%ioff |
---|
4062 | Â Â Â Â Â Â Â j =Â surf_usm_v(l)%j(m)Â +Â surf_usm_v(l)%joff |
---|
4063 | Â Â Â Â Â Â Â k =Â surf_usm_v(l)%k(m) |
---|
4064 | ! |
---|
4065 | !--Â Â Â Â Â Â Get local ground level. If no ground level is given in input file, |
---|
4066 | !--Â Â Â Â Â Â use default value. |
---|
4067 | Â Â Â Â Â Â Â ground_floor_level_l =Â ground_floor_level |
---|
4068 | Â Â Â Â Â Â Â IFÂ (Â building_pars_f%from_file )Â THEN |
---|
4069 | Â Â Â Â Â Â Â Â Â IFÂ (Â building_pars_f%pars_xy(ind_gflh,j,i)Â /=Â Â Â Â Â Â Â Â Â & |
---|
4070 | Â Â Â Â Â Â Â Â Â Â Â building_pars_f%fill )Â & |
---|
4071 | Â Â Â Â Â Â Â Â Â Â ground_floor_level_l =Â building_pars_f%pars_xy(ind_gflh,j,i) |
---|
4072 | Â Â Â Â Â Â Â ENDIF |
---|
4073 | ! |
---|
4074 | !--Â Â Â Â Â Â Determine height of surface element above ground level. Please |
---|
4075 | !--Â Â Â Â Â Â note, height of surface element is determined with respect to |
---|
4076 | !--Â Â Â Â Â Â its height of the adjoing atmospheric grid point. |
---|
4077 | Â Â Â Â Â Â Â IFÂ (Â terrain_height_f%from_file )Â THEN |
---|
4078 |          z_agl = zw(k) - terrain_height_f%var(j-surf_usm_v(l)%joff,  & |
---|
4079 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â i-surf_usm_v(l)%ioff) |
---|
4080 | Â Â Â Â Â Â Â ELSE |
---|
4081 | Â Â Â Â Â Â Â Â Â z_agl =Â zw(k) |
---|
4082 | Â Â Â Â Â Â Â ENDIF |
---|
4083 | ! |
---|
4084 | !--Â Â Â Â Â Â Set flag for ground level |
---|
4085 | Â Â Â Â Â Â Â IFÂ (Â z_agl <=Â ground_floor_level_l )Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
4086 | Â Â Â Â Â Â Â Â Â surf_usm_v(l)%ground_level(m)Â =Â .TRUE. |
---|
4087 | |
---|
4088 | Â Â Â Â Â Â ENDDO |
---|
4089 | Â Â Â Â ENDDO |
---|
4090 | ! |
---|
4091 | !--Â Â Â Initialization of resistances. |
---|
4092 |     DO m = 1, surf_usm_h%ns |
---|
4093 | Â Â Â Â Â Â surf_usm_h%r_a(m)Â Â Â Â =Â 50.0_wp |
---|
4094 | Â Â Â Â Â Â surf_usm_h%r_a_green(m)Â =Â 50.0_wp |
---|
4095 | Â Â Â Â Â Â surf_usm_h%r_a_window(m)Â =Â 50.0_wp |
---|
4096 | Â Â Â Â ENDDO |
---|
4097 |     DO l = 0, 3 |
---|
4098 |       DO m = 1, surf_usm_v(l)%ns |
---|
4099 | Â Â Â Â Â Â Â surf_usm_v(l)%r_a(m)Â Â Â Â =Â 50.0_wp |
---|
4100 | Â Â Â Â Â Â Â surf_usm_v(l)%r_a_green(m)Â =Â 50.0_wp |
---|
4101 | Â Â Â Â Â Â Â surf_usm_v(l)%r_a_window(m)Â =Â 50.0_wp |
---|
4102 | Â Â Â Â Â Â ENDDO |
---|
4103 | Â Â Â Â ENDDO |
---|
4104 | Â Â Â Â |
---|
4105 | ! |
---|
4106 | !--Â Â Map values onto horizontal elemements |
---|
4107 |     DO m = 1, surf_usm_h%ns |
---|
4108 |        surf_usm_h%r_canopy_min(m)   = 200.0_wp !< min_canopy_resistance |
---|
4109 |        surf_usm_h%g_d(m)       = 0.0_wp  !< canopy_resistance_coefficient |
---|
4110 | Â Â Â Â ENDDO |
---|
4111 | ! |
---|
4112 | !--Â Â Map values onto vertical elements, even though this does not make |
---|
4113 | !--Â Â much sense. |
---|
4114 |     DO l = 0, 3 |
---|
4115 |      DO m = 1, surf_usm_v(l)%ns |
---|
4116 |         surf_usm_v(l)%r_canopy_min(m)   = 200.0_wp !< min_canopy_resistance |
---|
4117 |         surf_usm_v(l)%g_d(m)       = 0.0_wp  !< canopy_resistance_coefficient |
---|
4118 | Â Â Â Â Â ENDDO |
---|
4119 | Â Â Â Â ENDDO |
---|
4120 | |
---|
4121 | ! |
---|
4122 | !--Â Â Â Initialize urban-type surface attribute. According to initialization in |
---|
4123 | !--Â Â Â land-surface model, follow a 3-level approach. |
---|
4124 | !--Â Â Â Level 1 - initialization via default attributes |
---|
4125 |     DO m = 1, surf_usm_h%ns |
---|
4126 | ! |
---|
4127 | !--Â Â Â Â Now, all horizontal surfaces are roof surfaces (?) |
---|
4128 | Â Â Â Â Â Â surf_usm_h%isroof_surf(m)Â Â =Â .TRUE. |
---|
4129 |       surf_usm_h%surface_types(m) = roof_category     !< default category for root surface |
---|
4130 | ! |
---|
4131 | !--Â Â Â Â In order to distinguish between ground floor level and |
---|
4132 | !--Â Â Â Â above-ground-floor level surfaces, set input indices. |
---|
4133 | |
---|
4134 |       ind_green_frac_r = MERGE( ind_green_frac_r_gfl, ind_green_frac_r_agfl, & |
---|
4135 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%ground_level(m)Â ) |
---|
4136 |       ind_lai_r    = MERGE( ind_lai_r_gfl,    ind_lai_r_agfl,    & |
---|
4137 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%ground_level(m)Â ) |
---|
4138 |       ind_z0      = MERGE( ind_z0_gfl,      ind_z0_agfl,      & |
---|
4139 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%ground_level(m)Â ) |
---|
4140 |       ind_z0qh     = MERGE( ind_z0qh_gfl,     ind_z0qh_agfl,     & |
---|
4141 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%ground_level(m)Â ) |
---|
4142 | ! |
---|
4143 | !--Â Â Â Â Store building type and its name on each surface element |
---|
4144 | Â Â Â Â Â Â surf_usm_h%building_type(m)Â Â Â =Â building_type |
---|
4145 | Â Â Â Â Â Â surf_usm_h%building_type_name(m)Â =Â building_type_name(building_type) |
---|
4146 | ! |
---|
4147 | !--Â Â Â Â Initialize relatvie wall- (0), green- (1) and window (2) fractions |
---|
4148 | Â Â Â Â Â Â surf_usm_h%frac(ind_veg_wall,m)Â =Â building_pars(ind_wall_frac_r,building_type)Â Â |
---|
4149 | Â Â Â Â Â Â surf_usm_h%frac(ind_pav_green,m)Â =Â building_pars(ind_green_frac_r,building_type)Â |
---|
4150 | Â Â Â Â Â Â surf_usm_h%frac(ind_wat_win,m)Â Â =Â building_pars(ind_win_frac_r,building_type)Â |
---|
4151 | Â Â Â Â Â Â surf_usm_h%lai(m)Â Â Â Â Â Â Â Â =Â building_pars(ind_lai_r,building_type)Â |
---|
4152 | |
---|
4153 | Â Â Â Â Â Â surf_usm_h%rho_c_wall(nzb_wall,m)Â Â =Â building_pars(ind_hc1_wall_r,building_type)Â |
---|
4154 | Â Â Â Â Â Â surf_usm_h%rho_c_wall(nzb_wall+1,m)Â =Â building_pars(ind_hc1_wall_r,building_type) |
---|
4155 | Â Â Â Â Â Â surf_usm_h%rho_c_wall(nzb_wall+2,m)Â =Â building_pars(ind_hc2_wall_r,building_type) |
---|
4156 | Â Â Â Â Â Â surf_usm_h%rho_c_wall(nzb_wall+3,m)Â =Â building_pars(ind_hc3_wall_r,building_type)Â Â |
---|
4157 | Â Â Â Â Â Â surf_usm_h%lambda_h(nzb_wall,m)Â Â =Â building_pars(ind_tc1_wall_r,building_type)Â |
---|
4158 | Â Â Â Â Â Â surf_usm_h%lambda_h(nzb_wall+1,m)Â =Â building_pars(ind_tc1_wall_r,building_type)Â |
---|
4159 | Â Â Â Â Â Â surf_usm_h%lambda_h(nzb_wall+2,m)Â =Â building_pars(ind_tc2_wall_r,building_type) |
---|
4160 | Â Â Â Â Â Â surf_usm_h%lambda_h(nzb_wall+3,m)Â =Â building_pars(ind_tc3_wall_r,building_type)Â Â |
---|
4161 | Â Â Â Â Â Â surf_usm_h%rho_c_green(nzb_wall,m)Â Â =Â rho_c_soil !building_pars(ind_hc1_wall_r,building_type)Â |
---|
4162 | Â Â Â Â Â Â surf_usm_h%rho_c_green(nzb_wall+1,m)Â =Â rho_c_soil !building_pars(ind_hc1_wall_r,building_type) |
---|
4163 | Â Â Â Â Â Â surf_usm_h%rho_c_green(nzb_wall+2,m)Â =Â rho_c_soil !building_pars(ind_hc2_wall_r,building_type) |
---|
4164 | Â Â Â Â Â Â surf_usm_h%rho_c_green(nzb_wall+3,m)Â =Â rho_c_soil !building_pars(ind_hc3_wall_r,building_type)Â Â |
---|
4165 | Â Â Â Â Â Â surf_usm_h%lambda_h_green(nzb_wall,m)Â Â =Â lambda_h_green_sm !building_pars(ind_tc1_wall_r,building_type)Â |
---|
4166 | Â Â Â Â Â Â surf_usm_h%lambda_h_green(nzb_wall+1,m)Â =Â lambda_h_green_sm !building_pars(ind_tc1_wall_r,building_type) |
---|
4167 | Â Â Â Â Â Â surf_usm_h%lambda_h_green(nzb_wall+2,m)Â =Â lambda_h_green_sm !building_pars(ind_tc2_wall_r,building_type) |
---|
4168 | Â Â Â Â Â Â surf_usm_h%lambda_h_green(nzb_wall+3,m)Â =Â lambda_h_green_sm !building_pars(ind_tc3_wall_r,building_type) |
---|
4169 | Â Â Â Â Â Â surf_usm_h%rho_c_window(nzb_wall,m)Â Â =Â building_pars(ind_hc1_win_r,building_type)Â |
---|
4170 | Â Â Â Â Â Â surf_usm_h%rho_c_window(nzb_wall+1,m)Â =Â building_pars(ind_hc1_win_r,building_type) |
---|
4171 | Â Â Â Â Â Â surf_usm_h%rho_c_window(nzb_wall+2,m)Â =Â building_pars(ind_hc2_win_r,building_type) |
---|
4172 | Â Â Â Â Â Â surf_usm_h%rho_c_window(nzb_wall+3,m)Â =Â building_pars(ind_hc3_win_r,building_type)Â Â |
---|
4173 | Â Â Â Â Â Â surf_usm_h%lambda_h_window(nzb_wall,m)Â Â =Â building_pars(ind_tc1_win_r,building_type)Â |
---|
4174 | Â Â Â Â Â Â surf_usm_h%lambda_h_window(nzb_wall+1,m)Â =Â building_pars(ind_tc1_win_r,building_type)Â |
---|
4175 | Â Â Â Â Â Â surf_usm_h%lambda_h_window(nzb_wall+2,m)Â =Â building_pars(ind_tc2_win_r,building_type) |
---|
4176 | Â Â Â Â Â Â surf_usm_h%lambda_h_window(nzb_wall+3,m)Â =Â building_pars(ind_tc3_win_r,building_type)Â Â |
---|
4177 | |
---|
4178 | Â Â Â Â Â Â surf_usm_h%target_temp_summer(m)Â =Â building_pars(117,building_type)Â Â |
---|
4179 | Â Â Â Â Â Â surf_usm_h%target_temp_winter(m)Â =Â building_pars(118,building_type)Â Â |
---|
4180 | ! |
---|
4181 | !--Â Â Â Â emissivity of wall-, green- and window fraction |
---|
4182 | Â Â Â Â Â Â surf_usm_h%emissivity(ind_veg_wall,m)Â =Â building_pars(ind_emis_wall_r,building_type) |
---|
4183 | Â Â Â Â Â Â surf_usm_h%emissivity(ind_pav_green,m)Â =Â building_pars(ind_emis_green_r,building_type) |
---|
4184 | Â Â Â Â Â Â surf_usm_h%emissivity(ind_wat_win,m)Â Â =Â building_pars(ind_emis_win_r,building_type) |
---|
4185 | |
---|
4186 | Â Â Â Â Â Â surf_usm_h%transmissivity(m)Â Â Â =Â building_pars(ind_trans_r,building_type) |
---|
4187 | |
---|
4188 | Â Â Â Â Â Â surf_usm_h%z0(m)Â Â Â Â Â Â Â Â Â =Â building_pars(ind_z0,building_type) |
---|
4189 | Â Â Â Â Â Â surf_usm_h%z0h(m)Â Â Â Â Â Â Â Â Â =Â building_pars(ind_z0qh,building_type) |
---|
4190 | Â Â Â Â Â Â surf_usm_h%z0q(m)Â Â Â Â Â Â Â Â Â =Â building_pars(ind_z0qh,building_type) |
---|
4191 | ! |
---|
4192 | !--Â Â Â Â albedo type for wall fraction, green fraction, window fraction |
---|
4193 | Â Â Â Â Â Â surf_usm_h%albedo_type(ind_veg_wall,m)Â =Â INT(Â building_pars(ind_alb_wall_r,building_type)Â ) |
---|
4194 | Â Â Â Â Â Â surf_usm_h%albedo_type(ind_pav_green,m)Â =Â INT(Â building_pars(ind_alb_green_r,building_type)Â ) |
---|
4195 | Â Â Â Â Â Â surf_usm_h%albedo_type(ind_wat_win,m)Â Â =Â INT(Â building_pars(ind_alb_win_r,building_type)Â Â ) |
---|
4196 | |
---|
4197 | Â Â Â Â Â Â surf_usm_h%zw(nzb_wall,m)Â Â Â Â Â =Â building_pars(ind_thick_1_wall_r,building_type) |
---|
4198 | Â Â Â Â Â Â surf_usm_h%zw(nzb_wall+1,m)Â Â Â Â =Â building_pars(ind_thick_2_wall_r,building_type) |
---|
4199 | Â Â Â Â Â Â surf_usm_h%zw(nzb_wall+2,m)Â Â Â Â =Â building_pars(ind_thick_3_wall_r,building_type) |
---|
4200 | Â Â Â Â Â Â surf_usm_h%zw(nzb_wall+3,m)Â Â Â Â =Â building_pars(ind_thick_4_wall_r,building_type) |
---|
4201 | Â Â Â Â Â Â |
---|
4202 | Â Â Â Â Â Â surf_usm_h%zw_green(nzb_wall,m)Â Â Â Â Â =Â building_pars(ind_thick_1_wall_r,building_type) |
---|
4203 | Â Â Â Â Â Â surf_usm_h%zw_green(nzb_wall+1,m)Â Â Â Â =Â building_pars(ind_thick_2_wall_r,building_type) |
---|
4204 | Â Â Â Â Â Â surf_usm_h%zw_green(nzb_wall+2,m)Â Â Â Â =Â building_pars(ind_thick_3_wall_r,building_type) |
---|
4205 | Â Â Â Â Â Â surf_usm_h%zw_green(nzb_wall+3,m)Â Â Â Â =Â building_pars(ind_thick_4_wall_r,building_type) |
---|
4206 | Â Â Â Â Â Â |
---|
4207 | Â Â Â Â Â Â surf_usm_h%zw_window(nzb_wall,m)Â Â Â Â Â =Â building_pars(ind_thick_1_win_r,building_type) |
---|
4208 | Â Â Â Â Â Â surf_usm_h%zw_window(nzb_wall+1,m)Â Â Â Â =Â building_pars(ind_thick_2_win_r,building_type) |
---|
4209 | Â Â Â Â Â Â surf_usm_h%zw_window(nzb_wall+2,m)Â Â Â Â =Â building_pars(ind_thick_3_win_r,building_type) |
---|
4210 | Â Â Â Â Â Â surf_usm_h%zw_window(nzb_wall+3,m)Â Â Â Â =Â building_pars(ind_thick_4_win_r,building_type) |
---|
4211 | |
---|
4212 | Â Â Â Â Â Â surf_usm_h%c_surface(m)Â Â Â Â Â Â =Â building_pars(0,building_type)Â |
---|
4213 | Â Â Â Â Â Â surf_usm_h%lambda_surf(m)Â Â Â Â Â =Â building_pars(3,building_type)Â |
---|
4214 | Â Â Â Â Â Â surf_usm_h%c_surface_green(m)Â Â Â =Â building_pars(2,building_type)Â |
---|
4215 | Â Â Â Â Â Â surf_usm_h%lambda_surf_green(m)Â Â =Â building_pars(5,building_type)Â |
---|
4216 | Â Â Â Â Â Â surf_usm_h%c_surface_window(m)Â Â =Â building_pars(1,building_type)Â |
---|
4217 | Â Â Â Â Â Â surf_usm_h%lambda_surf_window(m)Â =Â building_pars(4,building_type)Â |
---|
4218 | Â Â Â Â Â Â |
---|
4219 | Â Â Â Â Â Â surf_usm_h%green_type_roof(m)Â Â Â =Â building_pars(ind_green_type_roof,building_type) |
---|
4220 | |
---|
4221 | Â Â Â Â ENDDO |
---|
4222 | |
---|
4223 |     DO l = 0, 3 |
---|
4224 |       DO m = 1, surf_usm_v(l)%ns |
---|
4225 | |
---|
4226 |        surf_usm_v(l)%surface_types(m) = wall_category     !< default category for root surface |
---|
4227 | ! |
---|
4228 | !--Â Â Â Â Â Â In order to distinguish between ground floor level and |
---|
4229 | !--Â Â Â Â Â Â above-ground-floor level surfaces, set input indices. |
---|
4230 |        ind_alb_green  = MERGE( ind_alb_green_gfl,  ind_alb_green_agfl,  & |
---|
4231 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%ground_level(m)Â ) |
---|
4232 |        ind_alb_wall   = MERGE( ind_alb_wall_gfl,   ind_alb_wall_agfl,   & |
---|
4233 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%ground_level(m)Â ) |
---|
4234 |        ind_alb_win   = MERGE( ind_alb_win_gfl,   ind_alb_win_agfl,   & |
---|
4235 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%ground_level(m)Â ) |
---|
4236 |        ind_wall_frac  = MERGE( ind_wall_frac_gfl,  ind_wall_frac_agfl,  & |
---|
4237 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%ground_level(m)Â ) |
---|
4238 |        ind_win_frac   = MERGE( ind_win_frac_gfl,   ind_win_frac_agfl,   & |
---|
4239 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%ground_level(m)Â ) |
---|
4240 |        ind_green_frac_w = MERGE( ind_green_frac_w_gfl, ind_green_frac_w_agfl, & |
---|
4241 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%ground_level(m)Â ) |
---|
4242 |        ind_green_frac_r = MERGE( ind_green_frac_r_gfl, ind_green_frac_r_agfl, & |
---|
4243 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%ground_level(m)Â ) |
---|
4244 |        ind_lai_r    = MERGE( ind_lai_r_gfl,    ind_lai_r_agfl,    & |
---|
4245 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%ground_level(m)Â ) |
---|
4246 |        ind_lai_w    = MERGE( ind_lai_w_gfl,    ind_lai_w_agfl,    & |
---|
4247 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%ground_level(m)Â ) |
---|
4248 |        ind_hc1     = MERGE( ind_hc1_gfl,     ind_hc1_agfl,     & |
---|
4249 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%ground_level(m)Â ) |
---|
4250 |        ind_hc1_win   = MERGE( ind_hc1_win_gfl,   ind_hc1_win_agfl,   & |
---|
4251 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%ground_level(m)Â ) |
---|
4252 |        ind_hc2     = MERGE( ind_hc2_gfl,     ind_hc2_agfl,     & |
---|
4253 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%ground_level(m)Â ) |
---|
4254 |        ind_hc2_win   = MERGE( ind_hc2_win_gfl,   ind_hc2_win_agfl,   & |
---|
4255 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%ground_level(m)Â ) |
---|
4256 |        ind_hc3     = MERGE( ind_hc3_gfl,     ind_hc3_agfl,     & |
---|
4257 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%ground_level(m)Â ) |
---|
4258 |        ind_hc3_win   = MERGE( ind_hc3_win_gfl,   ind_hc3_win_agfl,   & |
---|
4259 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%ground_level(m)Â ) |
---|
4260 |        ind_tc1     = MERGE( ind_tc1_gfl,     ind_tc1_agfl,     & |
---|
4261 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%ground_level(m)Â ) |
---|
4262 |        ind_tc1_win   = MERGE( ind_tc1_win_gfl,   ind_tc1_win_agfl,   & |
---|
4263 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%ground_level(m)Â ) |
---|
4264 |        ind_tc2     = MERGE( ind_tc2_gfl,     ind_tc2_agfl,     & |
---|
4265 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%ground_level(m)Â ) |
---|
4266 |        ind_tc2_win   = MERGE( ind_tc2_win_gfl,   ind_tc2_win_agfl,   & |
---|
4267 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%ground_level(m)Â ) |
---|
4268 |        ind_tc3     = MERGE( ind_tc3_gfl,     ind_tc3_agfl,     & |
---|
4269 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%ground_level(m)Â ) |
---|
4270 |        ind_tc3_win   = MERGE( ind_tc3_win_gfl,   ind_tc3_win_agfl,   & |
---|
4271 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%ground_level(m)Â ) |
---|
4272 |        ind_thick_1   = MERGE( ind_thick_1_gfl,   ind_thick_1_agfl,   & |
---|
4273 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%ground_level(m)Â ) |
---|
4274 |        ind_thick_1_win = MERGE( ind_thick_1_win_gfl, ind_thick_1_win_agfl, & |
---|
4275 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%ground_level(m)Â ) |
---|
4276 |        ind_thick_2   = MERGE( ind_thick_2_gfl,   ind_thick_2_agfl,   & |
---|
4277 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%ground_level(m)Â ) |
---|
4278 |        ind_thick_2_win = MERGE( ind_thick_2_win_gfl, ind_thick_2_win_agfl, & |
---|
4279 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%ground_level(m)Â ) |
---|
4280 |        ind_thick_3   = MERGE( ind_thick_3_gfl,   ind_thick_3_agfl,   & |
---|
4281 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%ground_level(m)Â ) |
---|
4282 |        ind_thick_3_win = MERGE( ind_thick_3_win_gfl, ind_thick_3_win_agfl, & |
---|
4283 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%ground_level(m)Â ) |
---|
4284 |        ind_thick_4   = MERGE( ind_thick_4_gfl,   ind_thick_4_agfl,   & |
---|
4285 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%ground_level(m)Â ) |
---|
4286 |        ind_thick_4_win = MERGE( ind_thick_4_win_gfl, ind_thick_4_win_agfl, & |
---|
4287 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%ground_level(m)Â ) |
---|
4288 |        ind_emis_wall  = MERGE( ind_emis_wall_gfl,  ind_emis_wall_agfl,  & |
---|
4289 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%ground_level(m)Â ) |
---|
4290 |        ind_emis_green  = MERGE( ind_emis_green_gfl,  ind_emis_green_agfl,  & |
---|
4291 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%ground_level(m)Â ) |
---|
4292 |        ind_emis_win   = MERGE( ind_emis_win_gfl,   ind_emis_win_agfl,   & |
---|
4293 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%ground_level(m)Â ) |
---|
4294 |        ind_trans    = MERGE( ind_trans_gfl,    ind_trans_agfl,     & |
---|
4295 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%ground_level(m)Â ) |
---|
4296 |        ind_z0      = MERGE( ind_z0_gfl,      ind_z0_agfl,      & |
---|
4297 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%ground_level(m)Â ) |
---|
4298 |        ind_z0qh     = MERGE( ind_z0qh_gfl,     ind_z0qh_agfl,     & |
---|
4299 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%ground_level(m)Â ) |
---|
4300 | ! |
---|
4301 | !--Â Â Â Â Â Â Store building type and its name on each surface element |
---|
4302 | Â Â Â Â Â Â Â surf_usm_v(l)%building_type(m)Â Â Â =Â building_type |
---|
4303 | Â Â Â Â Â Â Â surf_usm_v(l)%building_type_name(m)Â =Â building_type_name(building_type) |
---|
4304 | ! |
---|
4305 | !--Â Â Â Â Â Â Initialize relatvie wall- (0), green- (1) and window (2) fractions |
---|
4306 | Â Â Â Â Â Â Â surf_usm_v(l)%frac(ind_veg_wall,m)Â Â =Â building_pars(ind_wall_frac,building_type)Â Â |
---|
4307 | Â Â Â Â Â Â Â surf_usm_v(l)%frac(ind_pav_green,m)Â =Â building_pars(ind_green_frac_w,building_type)Â |
---|
4308 | Â Â Â Â Â Â Â surf_usm_v(l)%frac(ind_wat_win,m)Â Â =Â building_pars(ind_win_frac,building_type)Â |
---|
4309 | Â Â Â Â Â Â Â surf_usm_v(l)%lai(m)Â Â Â Â Â Â Â Â Â =Â building_pars(ind_lai_w,building_type)Â |
---|
4310 | |
---|
4311 | Â Â Â Â Â Â Â surf_usm_v(l)%rho_c_wall(nzb_wall,m)Â Â =Â building_pars(ind_hc1,building_type)Â |
---|
4312 | Â Â Â Â Â Â Â surf_usm_v(l)%rho_c_wall(nzb_wall+1,m)Â =Â building_pars(ind_hc1,building_type) |
---|
4313 | Â Â Â Â Â Â Â surf_usm_v(l)%rho_c_wall(nzb_wall+2,m)Â =Â building_pars(ind_hc2,building_type) |
---|
4314 | Â Â Â Â Â Â Â surf_usm_v(l)%rho_c_wall(nzb_wall+3,m)Â =Â building_pars(ind_hc3,building_type)Â Â |
---|
4315 | Â Â Â Â Â Â Â |
---|
4316 | Â Â Â Â Â Â Â surf_usm_v(l)%rho_c_green(nzb_wall,m)Â Â =Â rho_c_soil !building_pars(ind_hc1,building_type)Â |
---|
4317 | Â Â Â Â Â Â Â surf_usm_v(l)%rho_c_green(nzb_wall+1,m)Â =Â rho_c_soil !building_pars(ind_hc1,building_type) |
---|
4318 | Â Â Â Â Â Â Â surf_usm_v(l)%rho_c_green(nzb_wall+2,m)Â =Â rho_c_soil !building_pars(ind_hc2,building_type) |
---|
4319 | Â Â Â Â Â Â Â surf_usm_v(l)%rho_c_green(nzb_wall+3,m)Â =Â rho_c_soil !building_pars(ind_hc3,building_type)Â Â |
---|
4320 | Â Â Â Â Â Â Â |
---|
4321 | Â Â Â Â Â Â Â surf_usm_v(l)%rho_c_window(nzb_wall,m)Â Â =Â building_pars(ind_hc1_win,building_type)Â |
---|
4322 | Â Â Â Â Â Â Â surf_usm_v(l)%rho_c_window(nzb_wall+1,m)Â =Â building_pars(ind_hc1_win,building_type) |
---|
4323 | Â Â Â Â Â Â Â surf_usm_v(l)%rho_c_window(nzb_wall+2,m)Â =Â building_pars(ind_hc2_win,building_type) |
---|
4324 | Â Â Â Â Â Â Â surf_usm_v(l)%rho_c_window(nzb_wall+3,m)Â =Â building_pars(ind_hc3_win,building_type)Â Â |
---|
4325 | |
---|
4326 | Â Â Â Â Â Â Â surf_usm_v(l)%lambda_h(nzb_wall,m)Â Â =Â building_pars(ind_tc1,building_type)Â |
---|
4327 | Â Â Â Â Â Â Â surf_usm_v(l)%lambda_h(nzb_wall+1,m)Â =Â building_pars(ind_tc1,building_type)Â |
---|
4328 | Â Â Â Â Â Â Â surf_usm_v(l)%lambda_h(nzb_wall+2,m)Â =Â building_pars(ind_tc2,building_type) |
---|
4329 | Â Â Â Â Â Â Â surf_usm_v(l)%lambda_h(nzb_wall+3,m)Â =Â building_pars(ind_tc3,building_type)Â Â |
---|
4330 | Â Â Â Â Â Â Â |
---|
4331 | Â Â Â Â Â Â Â surf_usm_v(l)%lambda_h_green(nzb_wall,m)Â Â =Â lambda_h_green_sm !building_pars(ind_tc1,building_type)Â |
---|
4332 | Â Â Â Â Â Â Â surf_usm_v(l)%lambda_h_green(nzb_wall+1,m)Â =Â lambda_h_green_sm !building_pars(ind_tc1,building_type) |
---|
4333 | Â Â Â Â Â Â Â surf_usm_v(l)%lambda_h_green(nzb_wall+2,m)Â =Â lambda_h_green_sm !building_pars(ind_tc2,building_type) |
---|
4334 | Â Â Â Â Â Â Â surf_usm_v(l)%lambda_h_green(nzb_wall+3,m)Â =Â lambda_h_green_sm !building_pars(ind_tc3,building_type)Â Â |
---|
4335 | |
---|
4336 | Â Â Â Â Â Â Â surf_usm_v(l)%lambda_h_window(nzb_wall,m)Â Â =Â building_pars(ind_tc1_win,building_type)Â |
---|
4337 | Â Â Â Â Â Â Â surf_usm_v(l)%lambda_h_window(nzb_wall+1,m)Â =Â building_pars(ind_tc1_win,building_type)Â |
---|
4338 | Â Â Â Â Â Â Â surf_usm_v(l)%lambda_h_window(nzb_wall+2,m)Â =Â building_pars(ind_tc2_win,building_type) |
---|
4339 | Â Â Â Â Â Â Â surf_usm_v(l)%lambda_h_window(nzb_wall+3,m)Â =Â building_pars(ind_tc3_win,building_type)Â Â |
---|
4340 | |
---|
4341 | Â Â Â Â Â Â Â surf_usm_v(l)%target_temp_summer(m)Â =Â building_pars(117,building_type)Â Â |
---|
4342 | Â Â Â Â Â Â Â surf_usm_v(l)%target_temp_winter(m)Â =Â building_pars(118,building_type)Â Â |
---|
4343 | ! |
---|
4344 | !--Â Â Â Â Â Â emissivity of wall-, green- and window fraction |
---|
4345 | Â Â Â Â Â Â Â surf_usm_v(l)%emissivity(ind_veg_wall,m)Â =Â building_pars(ind_emis_wall,building_type) |
---|
4346 | Â Â Â Â Â Â Â surf_usm_v(l)%emissivity(ind_pav_green,m)Â =Â building_pars(ind_emis_green,building_type) |
---|
4347 | Â Â Â Â Â Â Â surf_usm_v(l)%emissivity(ind_wat_win,m)Â Â =Â building_pars(ind_emis_win,building_type) |
---|
4348 | |
---|
4349 | Â Â Â Â Â Â Â surf_usm_v(l)%transmissivity(m)Â Â Â =Â building_pars(ind_trans,building_type) |
---|
4350 | |
---|
4351 | Â Â Â Â Â Â Â surf_usm_v(l)%z0(m)Â Â Â Â Â Â Â Â Â =Â building_pars(ind_z0,building_type) |
---|
4352 | Â Â Â Â Â Â Â surf_usm_v(l)%z0h(m)Â Â Â Â Â Â Â Â Â =Â building_pars(ind_z0qh,building_type) |
---|
4353 | Â Â Â Â Â Â Â surf_usm_v(l)%z0q(m)Â Â Â Â Â Â Â Â Â =Â building_pars(ind_z0qh,building_type) |
---|
4354 | |
---|
4355 | Â Â Â Â Â Â Â surf_usm_v(l)%albedo_type(ind_veg_wall,m)Â =Â INT(Â building_pars(ind_alb_wall,building_type)Â ) |
---|
4356 | Â Â Â Â Â Â Â surf_usm_v(l)%albedo_type(ind_pav_green,m)Â =Â INT(Â building_pars(ind_alb_green,building_type)Â ) |
---|
4357 | Â Â Â Â Â Â Â surf_usm_v(l)%albedo_type(ind_wat_win,m)Â Â =Â INT(Â building_pars(ind_alb_win,building_type)Â ) |
---|
4358 | |
---|
4359 | Â Â Â Â Â Â Â surf_usm_v(l)%zw(nzb_wall,m)Â Â Â Â Â =Â building_pars(ind_thick_1,building_type) |
---|
4360 | Â Â Â Â Â Â Â surf_usm_v(l)%zw(nzb_wall+1,m)Â Â Â Â =Â building_pars(ind_thick_2,building_type) |
---|
4361 | Â Â Â Â Â Â Â surf_usm_v(l)%zw(nzb_wall+2,m)Â Â Â Â =Â building_pars(ind_thick_3,building_type) |
---|
4362 | Â Â Â Â Â Â Â surf_usm_v(l)%zw(nzb_wall+3,m)Â Â Â Â =Â building_pars(ind_thick_4,building_type) |
---|
4363 | Â Â Â Â Â Â Â |
---|
4364 | Â Â Â Â Â Â Â surf_usm_v(l)%zw_green(nzb_wall,m)Â Â Â Â Â =Â building_pars(ind_thick_1,building_type) |
---|
4365 | Â Â Â Â Â Â Â surf_usm_v(l)%zw_green(nzb_wall+1,m)Â Â Â Â =Â building_pars(ind_thick_2,building_type) |
---|
4366 | Â Â Â Â Â Â Â surf_usm_v(l)%zw_green(nzb_wall+2,m)Â Â Â Â =Â building_pars(ind_thick_3,building_type) |
---|
4367 | Â Â Â Â Â Â Â surf_usm_v(l)%zw_green(nzb_wall+3,m)Â Â Â Â =Â building_pars(ind_thick_4,building_type) |
---|
4368 | |
---|
4369 | Â Â Â Â Â Â Â surf_usm_v(l)%zw_window(nzb_wall,m)Â Â Â Â Â =Â building_pars(ind_thick_1_win,building_type) |
---|
4370 | Â Â Â Â Â Â Â surf_usm_v(l)%zw_window(nzb_wall+1,m)Â Â Â Â =Â building_pars(ind_thick_2_win,building_type) |
---|
4371 | Â Â Â Â Â Â Â surf_usm_v(l)%zw_window(nzb_wall+2,m)Â Â Â Â =Â building_pars(ind_thick_3_win,building_type) |
---|
4372 | Â Â Â Â Â Â Â surf_usm_v(l)%zw_window(nzb_wall+3,m)Â Â Â Â =Â building_pars(ind_thick_4_win,building_type) |
---|
4373 | |
---|
4374 | Â Â Â Â Â Â Â surf_usm_v(l)%c_surface(m)Â Â Â Â Â Â =Â building_pars(0,building_type)Â |
---|
4375 | Â Â Â Â Â Â Â surf_usm_v(l)%lambda_surf(m)Â Â Â Â Â =Â building_pars(3,building_type) |
---|
4376 | Â Â Â Â Â Â Â surf_usm_v(l)%c_surface_green(m)Â Â Â =Â building_pars(2,building_type)Â |
---|
4377 | Â Â Â Â Â Â Â surf_usm_v(l)%lambda_surf_green(m)Â Â =Â building_pars(5,building_type) |
---|
4378 | Â Â Â Â Â Â Â surf_usm_v(l)%c_surface_window(m)Â Â =Â building_pars(1,building_type)Â |
---|
4379 | Â Â Â Â Â Â Â surf_usm_v(l)%lambda_surf_window(m)Â =Â building_pars(4,building_type) |
---|
4380 | |
---|
4381 | Â Â Â Â Â Â ENDDO |
---|
4382 | Â Â Â Â ENDDO |
---|
4383 | ! |
---|
4384 | !--Â Â Â Level 2 - initialization via building type read from file |
---|
4385 | Â Â Â Â IFÂ (Â building_type_f%from_file )Â THEN |
---|
4386 |       DO m = 1, surf_usm_h%ns |
---|
4387 | Â Â Â Â Â Â Â i =Â surf_usm_h%i(m) |
---|
4388 | Â Â Â Â Â Â Â j =Â surf_usm_h%j(m) |
---|
4389 | ! |
---|
4390 | !--Â Â Â Â Â Â For the moment, limit building type to 6 (to overcome errors in input file). |
---|
4391 | Â Â Â Â Â Â Â st =Â building_type_f%var(j,i) |
---|
4392 | Â Â Â Â Â Â Â IFÂ (Â st /=Â building_type_f%fill )Â THEN |
---|
4393 | |
---|
4394 | ! |
---|
4395 | !--Â Â Â Â Â Â Â In order to distinguish between ground floor level and |
---|
4396 | !--Â Â Â Â Â Â Â above-ground-floor level surfaces, set input indices. |
---|
4397 | |
---|
4398 |          ind_green_frac_r = MERGE( ind_green_frac_r_gfl, ind_green_frac_r_agfl, & |
---|
4399 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%ground_level(m)Â ) |
---|
4400 |          ind_lai_r    = MERGE( ind_lai_r_gfl,    ind_lai_r_agfl,    & |
---|
4401 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%ground_level(m)Â ) |
---|
4402 |          ind_z0      = MERGE( ind_z0_gfl,      ind_z0_agfl,      & |
---|
4403 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%ground_level(m)Â ) |
---|
4404 |          ind_z0qh     = MERGE( ind_z0qh_gfl,     ind_z0qh_agfl,     & |
---|
4405 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%ground_level(m)Â ) |
---|
4406 | ! |
---|
4407 | !--Â Â Â Â Â Â Â Store building type and its name on each surface element |
---|
4408 | Â Â Â Â Â Â Â Â Â surf_usm_h%building_type(m)Â Â Â =Â st |
---|
4409 | Â Â Â Â Â Â Â Â Â surf_usm_h%building_type_name(m)Â =Â building_type_name(st) |
---|
4410 | ! |
---|
4411 | !--Â Â Â Â Â Â Â Initialize relatvie wall- (0), green- (1) and window (2) fractions |
---|
4412 | Â Â Â Â Â Â Â Â Â surf_usm_h%frac(ind_veg_wall,m)Â =Â building_pars(ind_wall_frac_r,st)Â Â |
---|
4413 | Â Â Â Â Â Â Â Â Â surf_usm_h%frac(ind_pav_green,m)Â =Â building_pars(ind_green_frac_r,st)Â |
---|
4414 | Â Â Â Â Â Â Â Â Â surf_usm_h%frac(ind_wat_win,m)Â Â =Â building_pars(ind_win_frac_r,st)Â |
---|
4415 | Â Â Â Â Â Â Â Â Â surf_usm_h%lai(m)Â Â Â Â Â Â Â Â =Â building_pars(ind_lai_r,st)Â |
---|
4416 | |
---|
4417 | Â Â Â Â Â Â Â Â Â surf_usm_h%rho_c_wall(nzb_wall,m)Â Â =Â building_pars(ind_hc1_wall_r,st)Â |
---|
4418 | Â Â Â Â Â Â Â Â Â surf_usm_h%rho_c_wall(nzb_wall+1,m)Â =Â building_pars(ind_hc1_wall_r,st) |
---|
4419 | Â Â Â Â Â Â Â Â Â surf_usm_h%rho_c_wall(nzb_wall+2,m)Â =Â building_pars(ind_hc2_wall_r,st) |
---|
4420 | Â Â Â Â Â Â Â Â Â surf_usm_h%rho_c_wall(nzb_wall+3,m)Â =Â building_pars(ind_hc3_wall_r,st)Â Â |
---|
4421 | Â Â Â Â Â Â Â Â Â surf_usm_h%lambda_h(nzb_wall,m)Â Â =Â building_pars(ind_tc1_wall_r,st)Â |
---|
4422 | Â Â Â Â Â Â Â Â Â surf_usm_h%lambda_h(nzb_wall+1,m)Â =Â building_pars(ind_tc1_wall_r,st)Â |
---|
4423 | Â Â Â Â Â Â Â Â Â surf_usm_h%lambda_h(nzb_wall+2,m)Â =Â building_pars(ind_tc2_wall_r,st) |
---|
4424 | Â Â Â Â Â Â Â Â Â surf_usm_h%lambda_h(nzb_wall+3,m)Â =Â building_pars(ind_tc3_wall_r,st)Â Â |
---|
4425 | Â Â Â Â Â Â |
---|