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-2018 Czech Technical University in Prague |
---|
18 | ! Copyright 1997-2018 Leibniz Universitaet Hannover |
---|
19 | !------------------------------------------------------------------------------! |
---|
20 | ! |
---|
21 | ! Current revisions: |
---|
22 | ! ------------------ |
---|
23 | ! |
---|
24 | ! |
---|
25 | ! Former revisions: |
---|
26 | ! ----------------- |
---|
27 | ! $Id: urban_surface_mod.f90 2746 2018-01-15 12:06:04Z suehring $ |
---|
28 | ! Move flag plant canopy to modules |
---|
29 | ! |
---|
30 | ! 2737 2018-01-11 14:58:11Z kanani |
---|
31 | ! Removed unused variables t_surf_whole... |
---|
32 | ! |
---|
33 | ! 2735 2018-01-11 12:01:27Z suehring |
---|
34 | ! resistances are saved in surface attributes |
---|
35 | ! |
---|
36 | ! 2723 2018-01-05 09:27:03Z maronga |
---|
37 | ! Bugfix for spinups (end_time was increased twice in case of LSM + USM runs) |
---|
38 | ! |
---|
39 | ! 2720 2018-01-02 16:27:15Z kanani |
---|
40 | ! Correction of comment |
---|
41 | ! |
---|
42 | ! 2718 2018-01-02 08:49:38Z maronga |
---|
43 | ! Corrected "Former revisions" section |
---|
44 | ! |
---|
45 | ! 2705 2017-12-18 11:26:23Z maronga |
---|
46 | ! Changes from last commit documented |
---|
47 | ! |
---|
48 | ! 2703 2017-12-15 20:12:38Z maronga |
---|
49 | ! Workaround for calculation of r_a |
---|
50 | ! |
---|
51 | ! 2696 2017-12-14 17:12:51Z kanani |
---|
52 | ! - Change in file header (GPL part) |
---|
53 | ! - Bugfix in calculation of pt_surface and related fluxes. (BM) |
---|
54 | ! - Do not write surface temperatures onto pt array as this might cause |
---|
55 | !  problems with nesting. (MS) |
---|
56 | ! - Revised calculation of pt1 (now done in surface_layer_fluxes). |
---|
57 | !  Bugfix, f_shf_window and f_shf_green were not set at vertical surface |
---|
58 | !  elements. (MS) |
---|
59 | ! - merged with branch ebsolver |
---|
60 | !  green building surfaces do not evaporate yet |
---|
61 | !  properties of green wall layers and window layers are taken from wall layers |
---|
62 | !  this input data is missing. (RvT) |
---|
63 | ! - Merged with branch radiation (developed by Mohamed Salim) |
---|
64 | ! - Revised initialization. (MS) |
---|
65 | ! - Rename emiss_surf into emissivity, roughness_wall into z0, albedo_surf into |
---|
66 | !  albedo. (MS) |
---|
67 | ! - Move first call of usm_radiatin from usm_init to init_3d_model |
---|
68 | ! - fixed problem with near surface temperature |
---|
69 | ! - added near surface temperature t_surf_10cm_h(m), t_surf_10cm_v(l)%t(m) |
---|
70 | ! - does not work with temp profile including stability, ol |
---|
71 | !  t_surf_10cm = pt1 now |
---|
72 | ! - merged with 2357 bugfix, error message for nopointer version |
---|
73 | ! - added indoor model coupling with wall heat flux |
---|
74 | ! - added green substrate/ dry vegetation layer for buildings |
---|
75 | ! - merged with 2232 new surface-type structure |
---|
76 | ! - added transmissivity of window tiles |
---|
77 | ! - added MOSAIK tile approach for 3 different surfaces (RvT) |
---|
78 | ! |
---|
79 | ! 2583 2017-10-26 13:58:38Z knoop |
---|
80 | ! Bugfix: reverted MPI_Win_allocate_cptr introduction in last commit |
---|
81 | ! |
---|
82 | ! 2582 2017-10-26 13:19:46Z hellstea |
---|
83 | ! Workaround for gnufortran compiler added in usm_calc_svf. CALL MPI_Win_allocate is |
---|
84 | ! replaced by CALL MPI_Win_allocate_cptr if defined ( __gnufortran ). |
---|
85 | ! |
---|
86 | ! 2544 2017-10-13 18:09:32Z maronga |
---|
87 | ! Date and time quantities are now read from date_and_time_mod. Solar constant is |
---|
88 | ! read from radiation_model_mod |
---|
89 | ! |
---|
90 | ! 2516 2017-10-04 11:03:04Z suehring |
---|
91 | ! Remove tabs |
---|
92 | ! |
---|
93 | ! 2514 2017-10-04 09:52:37Z suehring |
---|
94 | ! upper bounds of 3d output changed from nx+1,ny+1 to nx,ny |
---|
95 | ! no output of ghost layer data |
---|
96 | ! |
---|
97 | ! 2350 2017-08-15 11:48:26Z kanani |
---|
98 | ! Bugfix and error message for nopointer version. |
---|
99 | ! Additional "! defined(__nopointer)" as workaround to enable compilation of |
---|
100 | ! nopointer version. |
---|
101 | ! |
---|
102 | ! 2318 2017-07-20 17:27:44Z suehring |
---|
103 | ! Get topography top index via Function call |
---|
104 | ! |
---|
105 | ! 2317 2017-07-20 17:27:19Z suehring |
---|
106 | ! Bugfix: adjust output of shf. Added support for spinups |
---|
107 | ! |
---|
108 | ! 2287 2017-06-15 16:46:30Z suehring |
---|
109 | ! Bugfix in determination topography-top index |
---|
110 | ! |
---|
111 | ! 2269 2017-06-09 11:57:32Z suehring |
---|
112 | ! Enable restart runs with different number of PEs |
---|
113 | ! Bugfixes nopointer branch |
---|
114 | ! |
---|
115 | ! 2258 2017-06-08 07:55:13Z suehring |
---|
116 | ! Bugfix, add pre-preprocessor directives to enable non-parrallel mode |
---|
117 | ! |
---|
118 | ! 2233 2017-05-30 18:08:54Z suehring |
---|
119 | ! |
---|
120 | ! 2232 2017-05-30 17:47:52Z suehring |
---|
121 | ! Adjustments according to new surface-type structure. Remove usm_wall_heat_flux; |
---|
122 | ! insteat, heat fluxes are directly applied in diffusion_s. |
---|
123 | ! |
---|
124 | ! 2213 2017-04-24 15:10:35Z kanani |
---|
125 | ! Removal of output quantities usm_lad and usm_canopy_hr |
---|
126 | ! |
---|
127 | ! 2209 2017-04-19 09:34:46Z kanani |
---|
128 | ! cpp switch __mpi3 removed, |
---|
129 | ! minor formatting, |
---|
130 | ! small bugfix for division by zero (Krc) |
---|
131 | ! |
---|
132 | ! 2113 2017-01-12 13:40:46Z kanani |
---|
133 | ! cpp switch __mpi3 added for MPI-3 standard code (Ketelsen) |
---|
134 | ! |
---|
135 | ! 2071 2016-11-17 11:22:14Z maronga |
---|
136 | ! Small bugfix (Resler) |
---|
137 | ! |
---|
138 | ! 2031 2016-10-21 15:11:58Z knoop |
---|
139 | ! renamed variable rho to rho_ocean |
---|
140 | ! |
---|
141 | ! 2024 2016-10-12 16:42:37Z kanani |
---|
142 | ! Bugfixes in deallocation of array plantt and reading of csf/csfsurf, |
---|
143 | ! optimization of MPI-RMA operations, |
---|
144 | ! declaration of pcbl as integer, |
---|
145 | ! renamed usm_radnet -> usm_rad_net, usm_canopy_khf -> usm_canopy_hr, |
---|
146 | ! splitted arrays svf -> svf & csf, svfsurf -> svfsurf & csfsurf, |
---|
147 | ! use of new control parameter varnamelength, |
---|
148 | ! added output variables usm_rad_ressw, usm_rad_reslw, |
---|
149 | ! minor formatting changes, |
---|
150 | ! minor optimizations. |
---|
151 | ! |
---|
152 | ! 2011 2016-09-19 17:29:57Z kanani |
---|
153 | ! Major reformatting according to PALM coding standard (comments, blanks, |
---|
154 | ! alphabetical ordering, etc.), |
---|
155 | ! removed debug_prints, |
---|
156 | ! removed auxiliary SUBROUTINE get_usm_info, instead, USM flag urban_surface is |
---|
157 | ! defined in MODULE control_parameters (modules.f90) to avoid circular |
---|
158 | ! dependencies, |
---|
159 | ! renamed canopy_heat_flux to pc_heating_rate, as meaning of quantity changed. |
---|
160 | ! |
---|
161 | ! 2007 2016-08-24 15:47:17Z kanani |
---|
162 | ! Initial revision |
---|
163 | ! |
---|
164 | ! |
---|
165 | ! Description: |
---|
166 | ! ------------ |
---|
167 | ! 2016/6/9 - Initial version of the USM (Urban Surface Model) |
---|
168 | !      authors: Jaroslav Resler, Pavel Krc |
---|
169 | !           (Czech Technical University in Prague and Institute of |
---|
170 | !           Computer Science of the Czech Academy of Sciences, Prague) |
---|
171 | !      with contributions: Michal Belda, Nina Benesova, Ondrej Vlcek |
---|
172 | !      partly inspired by PALM LSM (B. Maronga) |
---|
173 | !      parameterizations of Ra checked with TUF3D (E. S. Krayenhoff) |
---|
174 | !> Module for Urban Surface Model (USM) |
---|
175 | !> The module includes: |
---|
176 | !>Â Â 1. radiation model with direct/diffuse radiation, shading, reflections |
---|
177 | !>Â Â Â Â and integration with plant canopy |
---|
178 | !>Â Â 2. wall and wall surface model |
---|
179 | !>Â Â 3. surface layer energy balance |
---|
180 | !>Â Â 4. anthropogenic heat (only from transportation so far) |
---|
181 | !>Â Â 5. necessary auxiliary subroutines (reading inputs, writing outputs, |
---|
182 | !>Â Â Â Â restart simulations, ...) |
---|
183 | !> It also make use of standard radiation and integrates it into |
---|
184 | !> urban surface model. |
---|
185 | !> |
---|
186 | !> Further work: |
---|
187 | !> ------------- |
---|
188 | !> 1. Reduce number of shape view factors by merging factors for distant surfaces |
---|
189 | !>Â Â under shallow angles. Idea: Iteratively select the smallest shape view |
---|
190 | !>Â Â factor by value (among all sources and targets) which has a similarly |
---|
191 | !>Â Â oriented source neighbor (or near enough) SVF and merge them by adding |
---|
192 | !>Â Â value of the smaller SVF to the larger one and deleting the smaller one. |
---|
193 | !>Â Â This will allow for better scaling at higher resolutions. |
---|
194 | !> |
---|
195 | !> 2. Remove global arrays surfouts, surfoutl and only keep track of radiosity |
---|
196 | !>Â Â from surfaces that are visible from local surfaces (i.e. there is a SVF |
---|
197 | !>Â Â where target is local). To do that, radiosity will be exchanged after each |
---|
198 | !>Â Â reflection step using MPI_Alltoall instead of current MPI_Allgather. |
---|
199 | !> |
---|
200 | !> 3. Temporarily large values of surface heat flux can be observed, up to |
---|
201 | !>Â Â 1.2 Km/s, which seem to be not realistic. |
---|
202 | !> |
---|
203 | !> @todo Output of _av variables in case of restarts |
---|
204 | !> @todo Revise flux conversion in energy-balance solver |
---|
205 | !> @todo Bugfixing in nopointer branch |
---|
206 | !> @todo Check optimizations for RMA operations |
---|
207 | !> @todo Alternatives for MPI_WIN_ALLOCATE? (causes problems with openmpi) |
---|
208 | !> @todo Check for load imbalances in CPU measures, e.g. for exchange_horiz_prog |
---|
209 | !>Â Â Â Â factor 3 between min and max time |
---|
210 | !> @todo Move setting of flag indoor_model to indoor_model_mod once available |
---|
211 | !> @todo Check divisions in wtend (etc.) calculations for possible division |
---|
212 | !>Â Â Â Â by zero, e.g. in case fraq(0,m) + fraq(1,m) = 0?! |
---|
213 | !> @todo Use unit 90 for OPEN/CLOSE of input files (FK) |
---|
214 | !------------------------------------------------------------------------------! |
---|
215 | Â MODULE urban_surface_mod |
---|
216 | |
---|
217 | #if ! defined( __nopointer ) |
---|
218 |   USE arrays_3d,                               & |
---|
219 |     ONLY: zu, pt, pt_1, pt_2, p, u, v, w, hyp, tend |
---|
220 | #endif |
---|
221 | |
---|
222 |   USE cloud_parameters,                           & |
---|
223 |     ONLY: cp, r_d |
---|
224 | |
---|
225 |   USE constants,                               & |
---|
226 | Â Â Â Â ONLY:Â pi |
---|
227 | Â Â |
---|
228 |   USE control_parameters,                          & |
---|
229 |     ONLY: coupling_start_time, dz, topography, dt_3d,           & |
---|
230 |         intermediate_timestep_count, initializing_actions,       & |
---|
231 |         intermediate_timestep_count_max, simulated_time, end_time,   & |
---|
232 |         timestep_scheme, tsc, coupling_char, io_blocks, io_group,    & |
---|
233 |         message_string, time_since_reference_point, surface_pressure,  & |
---|
234 |         g, pt_surface, large_scale_forcing, lsf_surf, spinup,      & |
---|
235 |         spinup_pt_mean, spinup_time, time_do3d, dt_do3d,        & |
---|
236 |         average_count_3d, varnamelength, urban_surface, kappa,     & |
---|
237 | Â Â Â Â Â Â Â Â plant_canopy |
---|
238 | |
---|
239 |   USE cpulog,                                & |
---|
240 |     ONLY: cpu_log, log_point, log_point_s |
---|
241 | |
---|
242 |   USE date_and_time_mod,                           & |
---|
243 |     ONLY: d_seconds_year, day_of_year_init, time_utc_init |
---|
244 | |
---|
245 |   USE grid_variables,                            & |
---|
246 |     ONLY: dx, dy, ddx, ddy, ddx2, ddy2 |
---|
247 | |
---|
248 |   USE indices,                                & |
---|
249 |     ONLY: nx, ny, nnx, nny, nnz, nxl, nxlg, nxr, nxrg, nyn, nyng, nys,  & |
---|
250 |         nysg, nzb, nzt, nbgp, wall_flags_0 |
---|
251 | |
---|
252 |   USE, INTRINSIC :: iso_c_binding |
---|
253 | |
---|
254 | Â Â USE kinds |
---|
255 | Â Â Â Â Â Â Â |
---|
256 | Â Â USE pegrid |
---|
257 | Â Â |
---|
258 |   USE plant_canopy_model_mod,                        & |
---|
259 |     ONLY: pc_heating_rate, usm_lad_rma |
---|
260 | Â Â |
---|
261 |   USE radiation_model_mod,                          & |
---|
262 |     ONLY: albedo_type, radiation, calc_zenith, zenith,          & |
---|
263 |         rad_sw_in, rad_lw_in, rad_sw_out, rad_lw_out,          & |
---|
264 |         sigma_sb, solar_constant, sun_direction, sun_dir_lat,      & |
---|
265 |         sun_dir_lon,                          & |
---|
266 |         force_radiation_call, surfinsw, surfinlw, surfinswdir,     & |
---|
267 |         surfinswdif, surfoutsw, surfoutlw, surfins,nsvfl, svf, svfsurf, & |
---|
268 |         surfinl, surfinlwdif, energy_balance_surf_h,          & |
---|
269 |         energy_balance_surf_v, rad_sw_in_dir, rad_sw_in_diff,      & |
---|
270 |         rad_lw_in_diff, surfouts, surfoutl, surfoutsl, surfoutll, surf, & |
---|
271 |         surfl, nsurfl, nsurfs, surfstart, pcbinsw, pcbinlw, pcbl, npcbl, startenergy,   & |
---|
272 |         endenergy, nenergy, iup_u, inorth_u, isouth_u, ieast_u, iwest_u, iup_l, & |
---|
273 |         inorth_l, isouth_l, ieast_l, iwest_l, startsky, endsky,id,   & |
---|
274 |         iz, iy, ix, idir, jdir, kdir, startborder, endborder, nsurf_type, nzub, nzut,  & |
---|
275 |         isky, inorth_b,idown_a, isouth_b, ieast_b, iwest_b, nzu, pch, nsurf, & |
---|
276 |         iup_a, inorth_a, isouth_a, ieast_a, iwest_a, idsvf, ndsvf,   & |
---|
277 |         idcsf, ndcsf, kdcsf, pct, startland, endland, startwall, endwall |
---|
278 | |
---|
279 |   USE statistics,                              & |
---|
280 |     ONLY: hom, statistic_regions |
---|
281 | |
---|
282 | Â Â USE surface_mod |
---|
283 | |
---|
284 | |
---|
285 | Â Â IMPLICIT NONE |
---|
286 | |
---|
287 | |
---|
288 | !-- configuration parameters (they can be setup in PALM config) |
---|
289 |   LOGICAL                    :: usm_material_model = .TRUE.    !< flag parameter indicating wheather the model of heat in materials is used |
---|
290 |   LOGICAL                    :: usm_anthropogenic_heat = .FALSE.  !< flag parameter indicating wheather the anthropogenic heat sources (e.g.transportation) are used |
---|
291 |   LOGICAL                    :: force_radiation_call_l = .FALSE.  !< flag parameter for unscheduled radiation model calls |
---|
292 |   LOGICAL                    :: indoor_model = .FALSE.       !< whether to use the indoor model |
---|
293 | |
---|
294 | Â Â |
---|
295 | Â Â INTEGER(iwp)Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â ::Â building_type =Â 1Â Â Â Â Â Â Â Â Â !< default building type (preleminary setting) |
---|
296 | Â Â INTEGER(iwp)Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â ::Â land_category =Â 2Â Â Â Â Â Â Â Â Â !< default category for land surface |
---|
297 | Â Â INTEGER(iwp)Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â ::Â wall_category =Â 2Â Â Â Â Â Â Â Â Â !< default category for wall surface over pedestrian zone |
---|
298 | Â Â INTEGER(iwp)Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â ::Â pedestrant_category =Â 2Â Â Â Â Â Â !< default category for wall surface in pedestrian zone |
---|
299 | Â Â INTEGER(iwp)Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â ::Â roof_category =Â 2Â Â Â Â Â Â Â Â Â !< default category for root surface |
---|
300 | |
---|
301 | ! |
---|
302 | !-- Indices of input attributes for (above) ground floor level |
---|
303 |   INTEGER(iwp) :: ind_alb_wall     = 38 !< index in input list for albedo_type of wall fraction |
---|
304 |   INTEGER(iwp) :: ind_alb_green     = 39 !< index in input list for albedo_type of green fraction |
---|
305 |   INTEGER(iwp) :: ind_alb_win      = 40 !< index in input list for albedo_type of window fraction |
---|
306 |   INTEGER(iwp) :: ind_emis_wall_agfl  = 14 !< index in input list for wall emissivity, above ground floor level |
---|
307 |   INTEGER(iwp) :: ind_emis_wall_gfl   = 32 !< index in input list for wall emissivity, ground floor level |
---|
308 |   INTEGER(iwp) :: ind_emis_green_agfl  = 15 !< index in input list for green emissivity, above ground floor level |
---|
309 |   INTEGER(iwp) :: ind_emis_green_gfl  = 33 !< index in input list for green emissivity, ground floor level |
---|
310 |   INTEGER(iwp) :: ind_emis_win_agfl   = 16 !< index in input list for window emissivity, above ground floor level |
---|
311 |   INTEGER(iwp) :: ind_emis_win_gfl   = 34 !< index in input list for window emissivity, ground floor level |
---|
312 | Â Â INTEGER(iwp)Â ::Â ind_green_frac_w_agfl =Â 2Â !< index in input list for green fraction on wall, above ground floor level |
---|
313 |   INTEGER(iwp) :: ind_green_frac_w_gfl = 23 !< index in input list for green fraction on wall, ground floor level |
---|
314 | Â Â INTEGER(iwp)Â ::Â ind_green_frac_r_agfl =Â 3Â !< index in input list for green fraction on roof, above ground floor level |
---|
315 |   INTEGER(iwp) :: ind_green_frac_r_gfl = 24 !< index in input list for green fraction on roof, ground floor level |
---|
316 |   INTEGER(iwp) :: ind_hc1_agfl     = 6 !< index in input list for heat capacity at first wall layer, above ground floor level |
---|
317 |   INTEGER(iwp) :: ind_hc1_gfl      = 26 !< index in input list for heat capacity at first wall layer, ground floor level |
---|
318 |   INTEGER(iwp) :: ind_hc2_agfl     = 7 !< index in input list for heat capacity at second wall layer, above ground floor level |
---|
319 |   INTEGER(iwp) :: ind_hc2_gfl      = 27 !< index in input list for heat capacity at second wall layer, ground floor level |
---|
320 |   INTEGER(iwp) :: ind_hc3_agfl     = 8 !< index in input list for heat capacity at third wall layer, above ground floor level |
---|
321 |   INTEGER(iwp) :: ind_hc3_gfl      = 28 !< index in input list for heat capacity at third wall layer, ground floor level |
---|
322 |   INTEGER(iwp) :: ind_gflh       = 20 !< index in input list for ground floor level height |
---|
323 |   INTEGER(iwp) :: ind_lai_r_agfl    = 4 !< index in input list for LAI on roof, above ground floor level |
---|
324 |   INTEGER(iwp) :: ind_lai_r_gfl     = 4 !< index in input list for LAI on roof, ground floor level |
---|
325 |   INTEGER(iwp) :: ind_lai_w_agfl    = 5 !< index in input list for LAI on wall, above ground floor level |
---|
326 |   INTEGER(iwp) :: ind_lai_w_gfl     = 25 !< index in input list for LAI on wall, ground floor level |
---|
327 |   INTEGER(iwp) :: ind_tc1_agfl     = 9 !< index in input list for thermal conductivity at first wall layer, above ground floor level |
---|
328 |   INTEGER(iwp) :: ind_tc1_gfl      = 29 !< index in input list for thermal conductivity at first wall layer, ground floor level |
---|
329 |   INTEGER(iwp) :: ind_tc2_agfl     = 10 !< index in input list for thermal conductivity at second wall layer, above ground floor level |
---|
330 |   INTEGER(iwp) :: ind_tc2_gfl      = 30 !< index in input list for thermal conductivity at second wall layer, ground floor level |
---|
331 |   INTEGER(iwp) :: ind_tc3_agfl     = 11 !< index in input list for thermal conductivity at third wall layer, above ground floor level |
---|
332 |   INTEGER(iwp) :: ind_tc3_gfl      = 31 !< index in input list for thermal conductivity at third wall layer, ground floor level |
---|
333 | Â Â INTEGER(iwp)Â ::Â ind_thick_1Â Â Â Â Â Â =Â 41Â !< index for wall layer thickness - 1st layer |
---|
334 | Â Â INTEGER(iwp)Â ::Â ind_thick_2Â Â Â Â Â Â =Â 42Â !< index for wall layer thickness - 2nd layer |
---|
335 | Â Â INTEGER(iwp)Â ::Â ind_thick_3Â Â Â Â Â Â =Â 43Â !< index for wall layer thickness - 3rd layer |
---|
336 | Â Â INTEGER(iwp)Â ::Â ind_thick_4Â Â Â Â Â Â =Â 44Â !< index for wall layer thickness - 4th layer |
---|
337 |   INTEGER(iwp) :: ind_trans_agfl    = 17 !< index in input list for window transmissivity, above ground floor level |
---|
338 |   INTEGER(iwp) :: ind_trans_gfl     = 35 !< index in input list for window transmissivity, ground floor level |
---|
339 |   INTEGER(iwp) :: ind_wall_frac_agfl  = 0 !< index in input list for wall fraction, above ground floor level |
---|
340 |   INTEGER(iwp) :: ind_wall_frac_gfl   = 21 !< index in input list for wall fraction, ground floor level |
---|
341 |   INTEGER(iwp) :: ind_win_frac_agfl   = 1 !< index in input list for window fraction, above ground floor level |
---|
342 |   INTEGER(iwp) :: ind_win_frac_gfl   = 22 !< index in input list for window fraction, ground floor level |
---|
343 |   INTEGER(iwp) :: ind_z0_agfl      = 18 !< index in input list for z0, above ground floor level |
---|
344 |   INTEGER(iwp) :: ind_z0_gfl      = 36 !< index in input list for z0, ground floor level |
---|
345 |   INTEGER(iwp) :: ind_z0qh_agfl     = 19 !< index in input list for z0h / z0q, above ground floor level |
---|
346 |   INTEGER(iwp) :: ind_z0qh_gfl     = 37 !< index in input list for z0h / z0q, ground floor level |
---|
347 | |
---|
348 | |
---|
349 |   REAL(wp) :: roof_height_limit = 4._wp     !< height for distinguish between land surfaces and roofs |
---|
350 |   REAL(wp) :: ground_floor_level = 4.0_wp    !< default ground floor level |
---|
351 |   REAL(wp) :: ra_horiz_coef = 5.0_wp       !< mysterious coefficient for correction of overestimation |
---|
352 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â !< of r_a for horizontal surfaces -> TODO |
---|
353 | |
---|
354 |   CHARACTER(37), DIMENSION(0:6), PARAMETER :: building_type_name = (/   & |
---|
355 |                   'user-defined             ', & ! 0 |
---|
356 |                   'residential - 1950          ', & ! 1 |
---|
357 |                   'residential 1951 - 2000       ', & ! 2 |
---|
358 |                   'residential 2001 -          ', & ! 3 |
---|
359 |                   'office - 1950            ', & ! 4 |
---|
360 |                   'office 1951 - 2000          ', & ! 5 |
---|
361 |                   'office 2001 -            ' & ! 6 |
---|
362 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â /) |
---|
363 | ! |
---|
364 | !-- building parameters, 4 different types |
---|
365 | !-- 0 - wall fraction, 1- window fraction, 2 - green fraction on wall, 3- green fraction |
---|
366 | !-- at roof, 4 - lai of green fraction at roof, 5 - lai of green fraction at wall, |
---|
367 | !-- 6 - heat capacity of wall layer 1, 7 - heat capacity of wall layer 2, |
---|
368 | !-- 8 - heat capacity of wall layer 3, 9 - thermal conductivity of wall layer 1, |
---|
369 | !-- 10 - thermal conductivity of wall layer 2, 11 - thermal conductivity of wall layer 3, |
---|
370 | !-- 12 - indoor target summer temperature ( K ), 13 - indoor target winter temperature (K), |
---|
371 | !-- 14 - emissivity of wall fraction, 15 - emissivity of green fraction, 16 - emissivity of window fraction, |
---|
372 | !-- 17 - transmissivity of window fraction, 18 - z0, 19 - z0h/z0q, 20 - ground floor height, |
---|
373 | !-- 21 - ground floor wall fraction, 22 - ground floor window fraction, 23 ground floor green fraction, |
---|
374 | !-- 24 - ground floor green fraction on roof, 25 - ground floor lai of green fraction, |
---|
375 | !-- 26 - ground floor heat capacity of wall layer 1, 27 - ground floor heat capacity of wall layer 1, |
---|
376 | !-- 28 - ground floor heat capacity of wall layer 3, 29 - ground floor thermal conductivity of wall layer 1, |
---|
377 | !-- 30 - ground floor thermal conductivity of wall layer 2, 31 - ground floor thermal conductivity of wall layer 3, |
---|
378 | !-- 32 - ground floor emissivity of wall fraction, 33 - ground floor emissivity of green fraction, |
---|
379 | !-- 34 - ground floor emissivity of window fraction, 35 - ground floor transmissivity of window fraction, |
---|
380 | !-- 36 - ground floor z0, 37 - ground floor z0h/z0q, 38 - albedo type wall fraction |
---|
381 | !-- 39 - albedo type green fraction, 40 - albedo type window fraction |
---|
382 | !-- 41 - wall layer thickness - 1st layer, 42 - wall layer thickness - 2nd layer, |
---|
383 | !-- 43 - wall layer thickness - 3rd layer, 44 - wall layer thickness - 4th layer, |
---|
384 | !-- 45 - heat capacity of the wall surface, 46 - heat conductivity |
---|
385 | !-- Please note, only preleminary dummy values so far! |
---|
386 |   REAL(wp), DIMENSION(0:46,1:6), PARAMETER :: building_pars = RESHAPE( (/  & |
---|
387 |     1.0_wp, 0.0_wp, 0.0_wp, 0.0_wp, 1.0_wp, 1.0_wp,            & !parameter 0-5 |
---|
388 |     1000000.0_wp, 1000000.0_wp, 1000000.0_wp, 0.3_wp, 0.3_wp, 0.3_wp,   & !parameter 6-11 |
---|
389 |     296.15_wp, 293.15_wp, 0.9_wp, 0.9_wp, 0.01_wp, 0.99_wp,        & !parameter 12-17 |
---|
390 |     0.01_wp, 0.001_wp, 4.0_wp,                       & !parameter 18-20 |
---|
391 |     1.0_wp, 0.0_wp, 0.0_wp, 0.0_wp, 3.0_wp,                & !parameter 21-25 |
---|
392 |     1000000.0_wp, 1000000.0_wp, 1000000.0_wp,               & !parameter 26-28           |
---|
393 |     0.3_wp, 0.3_wp, 0.3_wp,                        & !parameter 29-31    |
---|
394 |     0.4_wp, 0.4_wp, 0.4_wp, 0.4_wp, 0.01_wp, 0.001_wp,           & !parameter 32-37 |
---|
395 |     24.0_wp, 24.0_wp, 24.0_wp,                       & !parameter 38-40 |
---|
396 |     0.0242_wp, 0.0969_wp, 0.346_wp, 1.0_wp,                & !parameter 41-44 |
---|
397 |     20000.0_wp, 10.0_wp,                          & !parameter 45-46 - end of type 1 |
---|
398 |     1.0_wp, 0.0_wp, 0.0_wp, 0.0_wp, 1.0_wp, 1.0_wp,            & !parameter 0-5 |
---|
399 |     1000000.0_wp, 1000000.0_wp, 1000000.0_wp, 0.3_wp, 0.3_wp, 0.3_wp,   & !parameter 6-11 |
---|
400 |     296.15_wp, 293.15_wp, 0.9_wp, 0.9_wp, 0.01_wp, 0.99_wp,        & !parameter 12-17 |
---|
401 |     0.01_wp, 0.001_wp, 4.0_wp,                       & !parameter 18-20 |
---|
402 |     1.0_wp, 0.0_wp, 0.0_wp, 0.0_wp, 3.0_wp,                & !parameter 21-25 |
---|
403 |     1000000.0_wp, 1000000.0_wp, 1000000.0_wp,               & !parameter 26-28           |
---|
404 |     0.3_wp, 0.3_wp, 0.3_wp,                        & !parameter 29-31    |
---|
405 |     0.4_wp, 0.4_wp, 0.4_wp, 0.4_wp, 0.01_wp, 0.001_wp,           & !parameter 32-37 |
---|
406 |     24.0_wp, 24.0_wp, 24.0_wp,                       & !parameter 38-40 |
---|
407 |     0.0242_wp, 0.0969_wp, 0.346_wp, 1.0_wp,                & !parameter 41-44 |
---|
408 |     20000.0_wp, 10.0_wp,                          & !parameter 45-46 - end of type 2 |
---|
409 |     1.0_wp, 0.0_wp, 0.0_wp, 0.0_wp, 1.0_wp, 1.0_wp,            & !parameter 0-5 |
---|
410 |     1000000.0_wp, 1000000.0_wp, 1000000.0_wp, 0.3_wp, 0.3_wp, 0.3_wp,   & !parameter 6-11 |
---|
411 |     296.15_wp, 293.15_wp, 0.9_wp, 0.9_wp, 0.01_wp, 0.99_wp,        & !parameter 12-17 |
---|
412 |     0.01_wp, 0.001_wp, 4.0_wp,                       & !parameter 18-20 |
---|
413 |     1.0_wp, 0.0_wp, 0.0_wp, 0.0_wp, 3.0_wp,                & !parameter 21-25 |
---|
414 |     1000000.0_wp, 1000000.0_wp, 1000000.0_wp,               & !parameter 26-28           |
---|
415 |     0.3_wp, 0.3_wp, 0.3_wp,                        & !parameter 29-31    |
---|
416 |     0.4_wp, 0.4_wp, 0.4_wp, 0.4_wp, 0.01_wp, 0.001_wp,           & !parameter 32-37 |
---|
417 |     24.0_wp, 24.0_wp, 24.0_wp,                       & !parameter 38-40 |
---|
418 |     0.0242_wp, 0.0969_wp, 0.346_wp, 1.0_wp,                & !parameter 41-44 |
---|
419 |     20000.0_wp, 10.0_wp,                          & !parameter 45-46 - end of type 3 |
---|
420 |     1.0_wp, 0.0_wp, 0.0_wp, 0.0_wp, 1.0_wp, 1.0_wp,            & !parameter 0-5 |
---|
421 |     1000000.0_wp, 1000000.0_wp, 1000000.0_wp, 0.3_wp, 0.3_wp, 0.3_wp,   & !parameter 6-11 |
---|
422 |     296.15_wp, 293.15_wp, 0.9_wp, 0.9_wp, 0.01_wp, 0.99_wp,        & !parameter 12-17 |
---|
423 |     0.01_wp, 0.001_wp, 4.0_wp,                       & !parameter 18-20 |
---|
424 |     1.0_wp, 0.0_wp, 0.0_wp, 0.0_wp, 3.0_wp,                & !parameter 21-25 |
---|
425 |     1000000.0_wp, 1000000.0_wp, 1000000.0_wp,               & !parameter 26-28           |
---|
426 |     0.3_wp, 0.3_wp, 0.3_wp,                        & !parameter 29-31    |
---|
427 |     0.4_wp, 0.4_wp, 0.4_wp, 0.4_wp, 0.01_wp, 0.001_wp,           & !parameter 32-37 |
---|
428 |     24.0_wp, 24.0_wp, 24.0_wp,                       & !parameter 38-40 |
---|
429 |     0.0242_wp, 0.0969_wp, 0.346_wp, 1.0_wp,                & !parameter 41-44 |
---|
430 |     20000.0_wp, 10.0_wp,                          & !parameter 45-46 - end of type 4 |
---|
431 |     1.0_wp, 0.0_wp, 0.0_wp, 0.0_wp, 1.0_wp, 1.0_wp,            & !parameter 0-5 |
---|
432 |     1000000.0_wp, 1000000.0_wp, 1000000.0_wp, 0.3_wp, 0.3_wp, 0.3_wp,   & !parameter 6-11 |
---|
433 |     296.15_wp, 293.15_wp, 0.9_wp, 0.9_wp, 0.01_wp, 0.99_wp,        & !parameter 12-17 |
---|
434 |     0.01_wp, 0.001_wp, 4.0_wp,                       & !parameter 18-20 |
---|
435 |     1.0_wp, 0.0_wp, 0.0_wp, 0.0_wp, 3.0_wp,                & !parameter 21-25 |
---|
436 |     1000000.0_wp, 1000000.0_wp, 1000000.0_wp,               & !parameter 26-28           |
---|
437 |     0.3_wp, 0.3_wp, 0.3_wp,                        & !parameter 29-31    |
---|
438 |     0.4_wp, 0.4_wp, 0.4_wp, 0.4_wp, 0.01_wp, 0.001_wp,           & !parameter 32-37 |
---|
439 |     24.0_wp, 24.0_wp, 24.0_wp,                       & !parameter 38-40 |
---|
440 |     0.0242_wp, 0.0969_wp, 0.346_wp, 1.0_wp,                & !parameter 41-44 |
---|
441 |     20000.0_wp, 10.0_wp,                          & !parameter 45-46 - end of type 5 |
---|
442 |     1.0_wp, 0.0_wp, 0.0_wp, 0.0_wp, 1.0_wp, 1.0_wp,            & !parameter 0-5 |
---|
443 |     1000000.0_wp, 1000000.0_wp, 1000000.0_wp, 0.3_wp, 0.3_wp, 0.3_wp,   & !parameter 6-11 |
---|
444 |     296.15_wp, 293.15_wp, 0.9_wp, 0.9_wp, 0.01_wp, 0.99_wp,        & !parameter 12-17 |
---|
445 |     0.01_wp, 0.001_wp, 4.0_wp,                       & !parameter 18-20 |
---|
446 |     1.0_wp, 0.0_wp, 0.0_wp, 0.0_wp, 3.0_wp,                & !parameter 21-25 |
---|
447 |     1000000.0_wp, 1000000.0_wp, 1000000.0_wp,               & !parameter 26-28           |
---|
448 |     0.3_wp, 0.3_wp, 0.3_wp,                        & !parameter 29-31    |
---|
449 |     0.4_wp, 0.4_wp, 0.4_wp, 0.4_wp, 0.01_wp, 0.001_wp,           & !parameter 32-37 |
---|
450 |     24.0_wp, 24.0_wp, 24.0_wp,                       & !parameter 38-40 |
---|
451 |     0.0242_wp, 0.0969_wp, 0.346_wp, 1.0_wp,                & !parameter 41-44 |
---|
452 |     20000.0_wp, 10.0_wp                          & !parameter 45-46 - end of type 6 |
---|
453 |                                      /), & |
---|
454 |                                 (/47, 6/) ) |
---|
455 | |
---|
456 | ! |
---|
457 | !-- Type for surface temperatures at vertical walls. Is not necessary for horizontal walls. |
---|
458 | Â Â TYPE t_surf_vertical |
---|
459 |     REAL(wp), DIMENSION(:), ALLOCATABLE     :: t |
---|
460 | Â Â END TYPE t_surf_vertical |
---|
461 | ! |
---|
462 | !-- Type for wall temperatures at vertical walls. Is not necessary for horizontal walls. |
---|
463 | Â Â TYPE t_wall_vertical |
---|
464 |     REAL(wp), DIMENSION(:,:), ALLOCATABLE    :: t |
---|
465 | Â Â END TYPE t_wall_vertical |
---|
466 | |
---|
467 | |
---|
468 | !-- arrays for time averages |
---|
469 | !-- Attention: the variable rad_net_av is also used in the 3d field variable in radiation_model_mod.f90. It may be better to rename it |
---|
470 |   REAL(wp), DIMENSION(:), ALLOCATABLE      :: rad_net_av    !< average of rad_net_l |
---|
471 |   REAL(wp), DIMENSION(:), ALLOCATABLE      :: surfinsw_av   !< average of sw radiation falling to local surface including radiation from reflections |
---|
472 |   REAL(wp), DIMENSION(:), ALLOCATABLE      :: surfinlw_av   !< average of lw radiation falling to local surface including radiation from reflections |
---|
473 |   REAL(wp), DIMENSION(:), ALLOCATABLE      :: surfinswdir_av  !< average of direct sw radiation falling to local surface |
---|
474 |   REAL(wp), DIMENSION(:), ALLOCATABLE      :: surfinswdif_av  !< average of diffuse sw radiation from sky and model boundary falling to local surface |
---|
475 |   REAL(wp), DIMENSION(:), ALLOCATABLE      :: surfinlwdif_av  !< average of diffuse lw radiation from sky and model boundary falling to local surface |
---|
476 |   REAL(wp), DIMENSION(:), ALLOCATABLE      :: surfinswref_av  !< average of sw radiation falling to surface from reflections |
---|
477 |   REAL(wp), DIMENSION(:), ALLOCATABLE      :: surfinlwref_av  !< average of lw radiation falling to surface from reflections |
---|
478 |   REAL(wp), DIMENSION(:), ALLOCATABLE      :: surfoutsw_av   !< average of total sw radiation outgoing from nonvirtual surfaces surfaces after all reflection |
---|
479 |   REAL(wp), DIMENSION(:), ALLOCATABLE      :: surfoutlw_av   !< average of total lw radiation outgoing from nonvirtual surfaces surfaces after all reflection |
---|
480 |   REAL(wp), DIMENSION(:), ALLOCATABLE      :: surfins_av    !< average of array of residua of sw radiation absorbed in surface after last reflection |
---|
481 |   REAL(wp), DIMENSION(:), ALLOCATABLE      :: surfinl_av    !< average of array of residua of lw radiation absorbed in surface after last reflection |
---|
482 |   REAL(wp), DIMENSION(:), ALLOCATABLE      :: surfhf_av    !< average of total radiation flux incoming to minus outgoing from local surface |
---|
483 |   REAL(wp), DIMENSION(:), ALLOCATABLE      :: wghf_eb_av    !< average of wghf_eb |
---|
484 |   REAL(wp), DIMENSION(:), ALLOCATABLE      :: wshf_eb_av    !< average of wshf_eb |
---|
485 |   REAL(wp), DIMENSION(:,:), ALLOCATABLE     :: t_wall_av    !< Average of t_wall |
---|
486 |   REAL(wp), DIMENSION(:), ALLOCATABLE      :: wghf_eb_green_av !< average of wghf_eb_green |
---|
487 |   REAL(wp), DIMENSION(:,:), ALLOCATABLE     :: t_green_av    !< Average of t_green |
---|
488 |   REAL(wp), DIMENSION(:), ALLOCATABLE      :: wghf_eb_window_av !< average of wghf_eb_window |
---|
489 |   REAL(wp), DIMENSION(:,:), ALLOCATABLE     :: t_window_av   !< Average of t_window  |
---|
490 | Â Â |
---|
491 | |
---|
492 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
---|
493 | !-- anthropogenic heat sources |
---|
494 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
---|
495 |   REAL(wp), DIMENSION(:,:), ALLOCATABLE     :: aheat       !< daily average of anthropogenic heat (W/m2) |
---|
496 |   REAL(wp), DIMENSION(:), ALLOCATABLE      :: aheatprof     !< diurnal profile of anthropogenic heat |
---|
497 | |
---|
498 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
---|
499 | !-- wall surface model |
---|
500 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
---|
501 | !-- wall surface model constants |
---|
502 |   INTEGER(iwp), PARAMETER            :: nzb_wall = 0    !< inner side of the wall model (to be switched) |
---|
503 |   INTEGER(iwp), PARAMETER            :: nzt_wall = 3    !< outer side of the wall model (to be switched) |
---|
504 |   INTEGER(iwp), PARAMETER            :: nzw = 4      !< number of wall layers (fixed for now) |
---|
505 | |
---|
506 |   REAL(wp), DIMENSION(nzb_wall:nzt_wall)     :: zwn_default = (/0.0242_wp, 0.0969_wp, 0.346_wp, 1.0_wp /) |
---|
507 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â !< normalized soil, wall and roof layer depths (m/m) |
---|
508 | !  REAL(wp), DIMENSION(nzb_wall:nzt_wall)     :: zwn_default = (/0.33_wp, 0.66_wp, 1.0_wp /) |
---|
509 |   REAL(wp), DIMENSION(nzb_wall:nzt_wall)     :: zwn_default_window = (/0.25_wp, 0.5_wp, 0.75_wp, 1.0_wp /) |
---|
510 | !  REAL(wp), DIMENSION(nzb_wall:nzt_wall)     :: zwn_default_window = (/0.33_wp, 0.66_wp, 1.0_wp /) |
---|
511 | !  REAL(wp), DIMENSION(nzb_wall:nzt_wall)     :: zwn_default_window = (/0.0242_wp, 0.0969_wp, 0.346_wp, 1.0_wp /) |
---|
512 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â !< normalized window layer depths (m/m) |
---|
513 | !  REAL(wp), DIMENSION(nzb_wall:nzt_wall)     :: zwn_default_green = (/0.0242_wp, 0.0969_wp, 0.346_wp, 1.0_wp /) |
---|
514 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â !< normalized green layer depths (m/m) |
---|
515 |   REAL(wp), DIMENSION(nzb_wall:nzt_wall)     :: zwn_default_green = (/0.25_wp, 0.5_wp, 0.75_wp, 1.0_wp /) |
---|
516 | !  REAL(wp), DIMENSION(nzb_wall:nzt_wall)     :: zwn_default_green = (/0.33_wp, 0.66_wp, 1.0_wp /) |
---|
517 | |
---|
518 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â |
---|
519 |   REAL(wp)                    ::  wall_inner_temperature = 296.0_wp  !< temperature of the inner wall surface (~23 degrees C) (K) |
---|
520 |   REAL(wp)                    ::  roof_inner_temperature = 296.0_wp  !< temperature of the inner roof surface (~23 degrees C) (K) |
---|
521 |   REAL(wp)                    ::  soil_inner_temperature = 283.0_wp  !< temperature of the deep soil (~10 degrees C) (K) |
---|
522 |   REAL(wp)                    ::  window_inner_temperature = 296.0_wp !< temperature of the inner window surface (~23 degrees C) (K) |
---|
523 | |
---|
524 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
---|
525 | !-- surface and material model variables for walls, ground, roofs |
---|
526 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
---|
527 |   REAL(wp), DIMENSION(:), ALLOCATABLE      :: zwn        !< normalized wall layer depths (m) |
---|
528 |   REAL(wp), DIMENSION(:), ALLOCATABLE      :: zwn_window     !< normalized window layer depths (m) |
---|
529 |   REAL(wp), DIMENSION(:), ALLOCATABLE      :: zwn_green     !< normalized green layer depths (m) |
---|
530 | |
---|
531 | #if defined( __nopointer ) |
---|
532 |   REAL(wp), DIMENSION(:), ALLOCATABLE, TARGET  :: t_surf_h      !< wall surface temperature (K) at horizontal walls |
---|
533 |   REAL(wp), DIMENSION(:), ALLOCATABLE, TARGET  :: t_surf_h_p     !< progn. wall surface temperature (K) at horizontal walls |
---|
534 |   REAL(wp), DIMENSION(:), ALLOCATABLE, TARGET  :: t_surf_window_h  !< window surface temperature (K) at horizontal walls |
---|
535 |   REAL(wp), DIMENSION(:), ALLOCATABLE, TARGET  :: t_surf_window_h_p !< progn. window surface temperature (K) at horizontal walls |
---|
536 |   REAL(wp), DIMENSION(:), ALLOCATABLE, TARGET  :: t_surf_green_h   !< green surface temperature (K) at horizontal walls |
---|
537 |   REAL(wp), DIMENSION(:), ALLOCATABLE, TARGET  :: t_surf_green_h_p  !< progn. green surface temperature (K) at horizontal walls |
---|
538 |   REAL(wp), DIMENSION(:), ALLOCATABLE, TARGET  :: t_surf_10cm_h   !< near surface temperature (10cm) (K) at horizontal walls |
---|
539 |   REAL(wp), DIMENSION(:), ALLOCATABLE, TARGET  :: t_surf_10cm_h_p  !< progn. near surface temperature (10cm) (K) at horizontal walls |
---|
540 |   TYPE(t_surf_vertical), DIMENSION(0:3), TARGET :: t_surf_v |
---|
541 |   TYPE(t_surf_vertical), DIMENSION(0:3), TARGET :: t_surf_v_p |
---|
542 |   TYPE(t_surf_vertical), DIMENSION(0:3), TARGET :: t_surf_window_v |
---|
543 |   TYPE(t_surf_vertical), DIMENSION(0:3), TARGET :: t_surf_window_v_p |
---|
544 |   TYPE(t_surf_vertical), DIMENSION(0:3), TARGET :: t_surf_green_v |
---|
545 |   TYPE(t_surf_vertical), DIMENSION(0:3), TARGET :: t_surf_green_v_p |
---|
546 |   TYPE(t_surf_vertical), DIMENSION(0:3), TARGET :: t_surf_10cm_v |
---|
547 |   TYPE(t_surf_vertical), DIMENSION(0:3), TARGET :: t_surf_10cm_v_p |
---|
548 | #else |
---|
549 |   REAL(wp), DIMENSION(:), POINTER        :: t_surf_h |
---|
550 |   REAL(wp), DIMENSION(:), POINTER        :: t_surf_h_p |
---|
551 |   REAL(wp), DIMENSION(:), POINTER        :: t_surf_window_h |
---|
552 |   REAL(wp), DIMENSION(:), POINTER        :: t_surf_window_h_p |
---|
553 |   REAL(wp), DIMENSION(:), POINTER        :: t_surf_green_h |
---|
554 |   REAL(wp), DIMENSION(:), POINTER        :: t_surf_green_h_p |
---|
555 |   REAL(wp), DIMENSION(:), POINTER        :: t_surf_10cm_h |
---|
556 |   REAL(wp), DIMENSION(:), POINTER        :: t_surf_10cm_h_p |
---|
557 | |
---|
558 |   REAL(wp), DIMENSION(:), ALLOCATABLE, TARGET  :: t_surf_h_1 |
---|
559 |   REAL(wp), DIMENSION(:), ALLOCATABLE, TARGET  :: t_surf_h_2 |
---|
560 |   REAL(wp), DIMENSION(:), ALLOCATABLE, TARGET  :: t_surf_window_h_1 |
---|
561 |   REAL(wp), DIMENSION(:), ALLOCATABLE, TARGET  :: t_surf_window_h_2 |
---|
562 |   REAL(wp), DIMENSION(:), ALLOCATABLE, TARGET  :: t_surf_green_h_1 |
---|
563 |   REAL(wp), DIMENSION(:), ALLOCATABLE, TARGET  :: t_surf_green_h_2 |
---|
564 |   REAL(wp), DIMENSION(:), ALLOCATABLE, TARGET  :: t_surf_10cm_h_1 |
---|
565 |   REAL(wp), DIMENSION(:), ALLOCATABLE, TARGET  :: t_surf_10cm_h_2 |
---|
566 | |
---|
567 |   TYPE(t_surf_vertical), DIMENSION(:), POINTER :: t_surf_v |
---|
568 |   TYPE(t_surf_vertical), DIMENSION(:), POINTER :: t_surf_v_p |
---|
569 |   TYPE(t_surf_vertical), DIMENSION(:), POINTER :: t_surf_window_v |
---|
570 |   TYPE(t_surf_vertical), DIMENSION(:), POINTER :: t_surf_window_v_p |
---|
571 |   TYPE(t_surf_vertical), DIMENSION(:), POINTER :: t_surf_green_v |
---|
572 |   TYPE(t_surf_vertical), DIMENSION(:), POINTER :: t_surf_green_v_p |
---|
573 |   TYPE(t_surf_vertical), DIMENSION(:), POINTER :: t_surf_10cm_v |
---|
574 |   TYPE(t_surf_vertical), DIMENSION(:), POINTER :: t_surf_10cm_v_p |
---|
575 | |
---|
576 |   TYPE(t_surf_vertical), DIMENSION(0:3), TARGET :: t_surf_v_1 |
---|
577 |   TYPE(t_surf_vertical), DIMENSION(0:3), TARGET :: t_surf_v_2 |
---|
578 |   TYPE(t_surf_vertical), DIMENSION(0:3), TARGET :: t_surf_window_v_1 |
---|
579 |   TYPE(t_surf_vertical), DIMENSION(0:3), TARGET :: t_surf_window_v_2 |
---|
580 |   TYPE(t_surf_vertical), DIMENSION(0:3), TARGET :: t_surf_green_v_1 |
---|
581 |   TYPE(t_surf_vertical), DIMENSION(0:3), TARGET :: t_surf_green_v_2 |
---|
582 |   TYPE(t_surf_vertical), DIMENSION(0:3), TARGET :: t_surf_10cm_v_1 |
---|
583 |   TYPE(t_surf_vertical), DIMENSION(0:3), TARGET :: t_surf_10cm_v_2 |
---|
584 | Â Â |
---|
585 | #endif |
---|
586 |   REAL(wp), DIMENSION(:), ALLOCATABLE, TARGET  :: t_surf_av     !< average of wall surface temperature (K) |
---|
587 |   REAL(wp), DIMENSION(:), ALLOCATABLE, TARGET  :: t_surf_window_av  !< average of window surface temperature (K) |
---|
588 |   REAL(wp), DIMENSION(:), ALLOCATABLE, TARGET  :: t_surf_green_av  !< average of green wall surface temperature (K) |
---|
589 |   REAL(wp), DIMENSION(:), ALLOCATABLE, TARGET  :: t_surf_10cm_av  !< average of whole wall surface temperature (K) |
---|
590 | |
---|
591 | !-- Temporal tendencies for time stepping      |
---|
592 |   REAL(wp), DIMENSION(:), ALLOCATABLE      :: tt_surface_m    !< surface temperature tendency of wall (K) |
---|
593 |   REAL(wp), DIMENSION(:), ALLOCATABLE      :: tt_surface_window_m !< surface temperature tendency of window (K) |
---|
594 |   REAL(wp), DIMENSION(:), ALLOCATABLE      :: tt_surface_green_m !< surface temperature tendency of green wall (K) |
---|
595 | |
---|
596 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
---|
597 | !-- Energy balance variables |
---|
598 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
---|
599 | !-- parameters of the land, roof and wall surfaces |
---|
600 | |
---|
601 | #if defined( __nopointer ) |
---|
602 |   REAL(wp), DIMENSION(:,:), ALLOCATABLE, TARGET  :: t_wall_h       !< Wall temperature (K) |
---|
603 |   REAL(wp), DIMENSION(:,:), ALLOCATABLE, TARGET  :: t_wall_h_av     !< Average of t_wall |
---|
604 |   REAL(wp), DIMENSION(:,:), ALLOCATABLE, TARGET  :: t_wall_h_p      !< Prog. wall temperature (K) |
---|
605 |   REAL(wp), DIMENSION(:,:), ALLOCATABLE, TARGET  :: t_window_h      !< Window temperature (K) |
---|
606 |   REAL(wp), DIMENSION(:,:), ALLOCATABLE, TARGET  :: t_window_h_av    !< Average of t_window |
---|
607 |   REAL(wp), DIMENSION(:,:), ALLOCATABLE, TARGET  :: t_window_h_p     !< Prog. window temperature (K) |
---|
608 |   REAL(wp), DIMENSION(:,:), ALLOCATABLE, TARGET  :: t_green_h      !< Green temperature (K) |
---|
609 |   REAL(wp), DIMENSION(:,:), ALLOCATABLE, TARGET  :: t_green_h_av     !< Average of t_green |
---|
610 |   REAL(wp), DIMENSION(:,:), ALLOCATABLE, TARGET  :: t_green_h_p     !< Prog. green temperature (K) |
---|
611 | |
---|
612 |   TYPE(t_wall_vertical), DIMENSION(0:3), TARGET :: t_wall_v       !< Wall temperature (K) |
---|
613 |   TYPE(t_wall_vertical), DIMENSION(0:3), TARGET :: t_wall_v_av     !< Average of t_wall |
---|
614 |   TYPE(t_wall_vertical), DIMENSION(0:3), TARGET :: t_wall_v_p      !< Prog. wall temperature (K) |
---|
615 |   TYPE(t_wall_vertical), DIMENSION(0:3), TARGET :: t_window_v      !< Window temperature (K) |
---|
616 |   TYPE(t_wall_vertical), DIMENSION(0:3), TARGET :: t_window_v_av    !< Average of t_window |
---|
617 |   TYPE(t_wall_vertical), DIMENSION(0:3), TARGET :: t_window_v_p     !< Prog. window temperature (K) |
---|
618 |   TYPE(t_wall_vertical), DIMENSION(0:3), TARGET :: t_green_v      !< Green temperature (K) |
---|
619 |   TYPE(t_wall_vertical), DIMENSION(0:3), TARGET :: t_green_v_av     !< Average of t_green |
---|
620 |   TYPE(t_wall_vertical), DIMENSION(0:3), TARGET :: t_green_v_p     !< Prog. green temperature (K) |
---|
621 | #else |
---|
622 |   REAL(wp), DIMENSION(:,:), POINTER        :: t_wall_h, t_wall_h_p |
---|
623 |   REAL(wp), DIMENSION(:,:), ALLOCATABLE, TARGET  :: t_wall_h_av, t_wall_h_1, t_wall_h_2 |
---|
624 |   REAL(wp), DIMENSION(:,:), POINTER        :: t_window_h, t_window_h_p |
---|
625 |   REAL(wp), DIMENSION(:,:), ALLOCATABLE, TARGET  :: t_window_h_av, t_window_h_1, t_window_h_2 |
---|
626 |   REAL(wp), DIMENSION(:,:), POINTER        :: t_green_h, t_green_h_p |
---|
627 |   REAL(wp), DIMENSION(:,:), ALLOCATABLE, TARGET  :: t_green_h_av, t_green_h_1, t_green_h_2 |
---|
628 | |
---|
629 |   TYPE(t_wall_vertical), DIMENSION(:), POINTER  :: t_wall_v, t_wall_v_p |
---|
630 |   TYPE(t_wall_vertical), DIMENSION(0:3), TARGET :: t_wall_v_av, t_wall_v_1, t_wall_v_2 |
---|
631 |   TYPE(t_wall_vertical), DIMENSION(:), POINTER  :: t_window_v, t_window_v_p |
---|
632 |   TYPE(t_wall_vertical), DIMENSION(0:3), TARGET :: t_window_v_av, t_window_v_1, t_window_v_2 |
---|
633 |   TYPE(t_wall_vertical), DIMENSION(:), POINTER  :: t_green_v, t_green_v_p |
---|
634 |   TYPE(t_wall_vertical), DIMENSION(0:3), TARGET :: t_green_v_av, t_green_v_1, t_green_v_2 |
---|
635 | #endif |
---|
636 | |
---|
637 | !-- Wall temporal tendencies for time stepping |
---|
638 |   REAL(wp), DIMENSION(:,:), ALLOCATABLE     :: tt_wall_m     !< t_wall prognostic array |
---|
639 |   REAL(wp), DIMENSION(:,:), ALLOCATABLE     :: tt_window_m    !< t_window prognostic array |
---|
640 |   REAL(wp), DIMENSION(:,:), ALLOCATABLE     :: tt_green_m     !< t_green prognostic array |
---|
641 | |
---|
642 | !-- Surface and material parameters classes (surface_type) |
---|
643 | !-- albedo, emissivity, lambda_surf, roughness, thickness, volumetric heat capacity, thermal conductivity |
---|
644 |   INTEGER(iwp)                  :: n_surface_types   !< number of the wall type categories |
---|
645 |   INTEGER(iwp), PARAMETER            :: n_surface_params = 8 !< number of parameters for each type of the wall |
---|
646 |   INTEGER(iwp), PARAMETER            :: ialbedo = 1     !< albedo of the surface |
---|
647 |   INTEGER(iwp), PARAMETER            :: iemiss  = 2     !< emissivity of the surface |
---|
648 |   INTEGER(iwp), PARAMETER            :: ilambdas = 3     !< heat conductivity λS between air and surface ( W m−2 K−1 ) |
---|
649 |   INTEGER(iwp), PARAMETER            :: irough  = 4     !< roughness relative to concrete |
---|
650 |   INTEGER(iwp), PARAMETER            :: icsurf  = 5     !< Surface skin layer heat capacity (J m−2 K−1 ) |
---|
651 |   INTEGER(iwp), PARAMETER            :: ithick  = 6     !< thickness of the surface (wall, roof, land) ( m ) |
---|
652 |   INTEGER(iwp), PARAMETER            :: irhoC  = 7     !< volumetric heat capacity rho*C of the material ( J m−3 K−1 ) |
---|
653 |   INTEGER(iwp), PARAMETER            :: ilambdah = 8     !< thermal conductivity λH of the wall (W m−1 K−1 ) |
---|
654 |   CHARACTER(12), DIMENSION(:), ALLOCATABLE    :: surface_type_names  !< names of wall types (used only for reports) |
---|
655 |   INTEGER(iwp), DIMENSION(:), ALLOCATABLE    :: surface_type_codes  !< codes of wall types |
---|
656 |   REAL(wp), DIMENSION(:,:), ALLOCATABLE     :: surface_params    !< parameters of wall types |
---|
657 | |
---|
658 | Â Â |
---|
659 | !-- interfaces of subroutines accessed from outside of this module |
---|
660 | Â Â INTERFACE usm_boundary_condition |
---|
661 | Â Â Â Â MODULE PROCEDURE usm_boundary_condition |
---|
662 | Â Â END INTERFACE usm_boundary_condition |
---|
663 | |
---|
664 | Â Â INTERFACE usm_check_data_output |
---|
665 | Â Â Â Â MODULE PROCEDURE usm_check_data_output |
---|
666 | Â Â END INTERFACE usm_check_data_output |
---|
667 | Â Â |
---|
668 | Â Â INTERFACE usm_check_parameters |
---|
669 | Â Â Â Â MODULE PROCEDURE usm_check_parameters |
---|
670 | Â Â END INTERFACE usm_check_parameters |
---|
671 | Â Â |
---|
672 | Â Â INTERFACE usm_data_output_3d |
---|
673 | Â Â Â Â MODULE PROCEDURE usm_data_output_3d |
---|
674 | Â Â END INTERFACE usm_data_output_3d |
---|
675 | Â Â |
---|
676 | Â Â INTERFACE usm_define_netcdf_grid |
---|
677 | Â Â Â Â MODULE PROCEDURE usm_define_netcdf_grid |
---|
678 | Â Â END INTERFACE usm_define_netcdf_grid |
---|
679 | |
---|
680 | Â Â INTERFACE usm_init_urban_surface |
---|
681 | Â Â Â Â MODULE PROCEDURE usm_init_urban_surface |
---|
682 | Â Â END INTERFACE usm_init_urban_surface |
---|
683 | |
---|
684 | Â Â INTERFACE usm_material_heat_model |
---|
685 | Â Â Â Â MODULE PROCEDURE usm_material_heat_model |
---|
686 | Â Â END INTERFACE usm_material_heat_model |
---|
687 | Â Â |
---|
688 | Â Â INTERFACE usm_green_heat_model |
---|
689 | Â Â Â Â MODULE PROCEDURE usm_green_heat_model |
---|
690 | Â Â END INTERFACE usm_green_heat_model |
---|
691 | Â Â |
---|
692 | Â Â INTERFACE usm_parin |
---|
693 | Â Â Â Â MODULE PROCEDURE usm_parin |
---|
694 | Â Â END INTERFACE usm_parin |
---|
695 | Â Â |
---|
696 | Â Â INTERFACE usm_temperature_near_surface |
---|
697 | Â Â Â Â MODULE PROCEDURE usm_temperature_near_surface |
---|
698 | Â Â END INTERFACE usm_temperature_near_surface |
---|
699 | |
---|
700 | Â Â INTERFACE usm_read_restart_data |
---|
701 | Â Â Â Â MODULE PROCEDURE usm_read_restart_data |
---|
702 | Â Â END INTERFACE usm_read_restart_data |
---|
703 | |
---|
704 | Â Â INTERFACE usm_surface_energy_balance |
---|
705 | Â Â Â Â MODULE PROCEDURE usm_surface_energy_balance |
---|
706 | Â Â END INTERFACE usm_surface_energy_balance |
---|
707 | Â Â |
---|
708 | Â Â INTERFACE usm_swap_timelevel |
---|
709 | Â Â Â Â MODULE PROCEDURE usm_swap_timelevel |
---|
710 | Â Â END INTERFACE usm_swap_timelevel |
---|
711 | Â Â Â Â |
---|
712 | Â Â INTERFACE usm_write_restart_data |
---|
713 | Â Â Â Â MODULE PROCEDURE usm_write_restart_data |
---|
714 | Â Â END INTERFACE usm_write_restart_data |
---|
715 | |
---|
716 | Â Â INTERFACE usm_allocate_surface |
---|
717 | Â Â Â Â MODULE PROCEDURE usm_allocate_surface |
---|
718 | Â Â END INTERFACE usm_allocate_surface |
---|
719 | |
---|
720 | Â Â INTERFACE usm_average_3d_data |
---|
721 | Â Â Â Â MODULE PROCEDURE usm_average_3d_data |
---|
722 | Â Â END INTERFACE usm_average_3d_data |
---|
723 | |
---|
724 | Â Â |
---|
725 | Â Â SAVE |
---|
726 | |
---|
727 | Â Â PRIVATEÂ |
---|
728 | Â Â |
---|
729 | !-- Public functions |
---|
730 |   PUBLIC usm_boundary_condition, usm_check_parameters, usm_init_urban_surface,& |
---|
731 |       usm_read_restart_data,                        & |
---|
732 |       usm_surface_energy_balance, usm_material_heat_model,         & |
---|
733 |       usm_swap_timelevel, usm_check_data_output, usm_average_3d_data,   & |
---|
734 |       usm_data_output_3d, usm_define_netcdf_grid, usm_parin,        & |
---|
735 |       usm_write_restart_data, usm_allocate_surface |
---|
736 | |
---|
737 | !-- Public parameters, constants and initial values |
---|
738 |   PUBLIC usm_anthropogenic_heat, usm_material_model, ra_horiz_coef,      & |
---|
739 |       usm_green_heat_model, usm_temperature_near_surface |
---|
740 | |
---|
741 | |
---|
742 | |
---|
743 | Â CONTAINS |
---|
744 | |
---|
745 | !------------------------------------------------------------------------------! |
---|
746 | ! Description: |
---|
747 | ! ------------ |
---|
748 | !> This subroutine creates the necessary indices of the urban surfaces |
---|
749 | !> and plant canopy and it allocates the needed arrays for USM |
---|
750 | !------------------------------------------------------------------------------! |
---|
751 | Â Â SUBROUTINE usm_allocate_surface |
---|
752 | Â Â |
---|
753 | Â Â Â Â IMPLICIT NONE |
---|
754 | Â Â Â Â |
---|
755 | Â Â Â Â INTEGER(iwp)Â ::Â l |
---|
756 | |
---|
757 | ! |
---|
758 | !--Â Â Â Allocate radiation arrays which are part of the new data type. |
---|
759 | !--Â Â Â For horizontal surfaces. |
---|
760 | Â Â Â Â ALLOCATE(Â surf_usm_h%surfhf(1:surf_usm_h%ns)Â Â ) |
---|
761 | Â Â Â Â ALLOCATE(Â surf_usm_h%rad_net_l(1:surf_usm_h%ns)Â ) |
---|
762 | ! |
---|
763 | !--Â Â Â For vertical surfaces |
---|
764 |     DO l = 0, 3 |
---|
765 | Â Â Â Â Â Â ALLOCATE(Â surf_usm_v(l)%surfhf(1:surf_usm_v(l)%ns)Â Â ) |
---|
766 | Â Â Â Â Â Â ALLOCATE(Â surf_usm_v(l)%rad_net_l(1:surf_usm_v(l)%ns)Â ) |
---|
767 | Â Â Â Â ENDDO |
---|
768 | |
---|
769 | !--Â Â Â Wall surface model |
---|
770 | !--Â Â Â allocate arrays for wall surface model and define pointers |
---|
771 | Â Â Â Â |
---|
772 | !--Â Â Â allocate array of wall types and wall parameters |
---|
773 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%surface_types(1:surf_usm_h%ns)Â ) |
---|
774 |     DO l = 0, 3 |
---|
775 | Â Â Â Â Â Â ALLOCATE(Â surf_usm_v(l)%surface_types(1:surf_usm_v(l)%ns)Â ) |
---|
776 | Â Â Â Â ENDDO |
---|
777 | ! |
---|
778 | !--Â Â Â Allocate albedo_type and albedo. Each surface element |
---|
779 | !--Â Â Â has 3 values, 0: wall fraction, 1: green fraction, 2: window fraction. |
---|
780 | Â Â Â Â ALLOCATE(Â surf_usm_h%albedo_type(0:2,1:surf_usm_h%ns)Â ) |
---|
781 | Â Â Â Â ALLOCATE(Â surf_usm_h%albedo(0:2,1:surf_usm_h%ns)Â Â Â ) |
---|
782 | Â Â Â Â surf_usm_h%albedo_type =Â albedo_type |
---|
783 |     DO l = 0, 3 |
---|
784 | Â Â Â Â Â Â ALLOCATE(Â surf_usm_v(l)%albedo_type(0:2,1:surf_usm_v(l)%ns)Â ) |
---|
785 | Â Â Â Â Â Â ALLOCATE(Â surf_usm_v(l)%albedo(0:2,1:surf_usm_v(l)%ns)Â Â Â ) |
---|
786 | Â Â Â Â Â Â surf_usm_v(l)%albedo_type =Â albedo_type |
---|
787 | Â Â Â Â ENDDOÂ Â Â Â |
---|
788 | |
---|
789 | |
---|
790 | ! |
---|
791 | !--Â Â Â Allocate indoor target temperature for summer and winter |
---|
792 | Â Â Â Â ALLOCATE(Â surf_usm_h%target_temp_summer(1:surf_usm_h%ns)Â ) |
---|
793 | Â Â Â Â ALLOCATE(Â surf_usm_h%target_temp_winter(1:surf_usm_h%ns)Â ) |
---|
794 |     DO l = 0, 3 |
---|
795 | Â Â Â Â Â Â ALLOCATE(Â surf_usm_v(l)%target_temp_summer(1:surf_usm_v(l)%ns)Â ) |
---|
796 | Â Â Â Â Â Â ALLOCATE(Â surf_usm_v(l)%target_temp_winter(1:surf_usm_v(l)%ns)Â ) |
---|
797 | Â Â Â Â ENDDOÂ Â |
---|
798 | ! |
---|
799 | !--Â Â Â Allocate flag indicating ground floor level surface elements |
---|
800 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%ground_level(1:surf_usm_h%ns)Â )Â |
---|
801 |     DO l = 0, 3 |
---|
802 | Â Â Â Â Â Â ALLOCATE(Â surf_usm_v(l)%ground_level(1:surf_usm_v(l)%ns)Â ) |
---|
803 | Â Â Â Â ENDDOÂ Â |
---|
804 | ! |
---|
805 | !--Â Â Â Allocate arrays for relative surface fraction. |
---|
806 | !--Â Â Â 0 - wall fraction, 1 - green fraction, 2 - window fraction |
---|
807 | Â Â Â Â Â ALLOCATE(Â surf_usm_h%frac(0:2,1:surf_usm_h%ns)Â ) |
---|
808 | Â Â Â Â Â surf_usm_h%frac =Â 0.0_wp |
---|
809 |      DO l = 0, 3 |
---|
810 | Â Â Â Â Â Â ALLOCATE(Â surf_usm_v(l)%frac(0:2,1:surf_usm_v(l)%ns)Â ) |
---|
811 | Â Â Â Â Â Â surf_usm_v(l)%frac =Â 0.0_wp |
---|
812 | Â Â Â Â Â ENDDO |
---|
813 | Â Â Â Â |
---|
814 | !--Â Â Â wall and roof surface parameters. First for horizontal surfaces |
---|
815 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%isroof_surf(1:surf_usm_h%ns)Â Â Â ) |
---|
816 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%lambda_surf(1:surf_usm_h%ns)Â Â Â ) |
---|
817 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%lambda_surf_window(1:surf_usm_h%ns)Â ) |
---|
818 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%lambda_surf_green(1:surf_usm_h%ns)Â ) |
---|
819 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%c_surface(1:surf_usm_h%ns)Â Â Â Â ) |
---|
820 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%c_surface_window(1:surf_usm_h%ns)Â Â ) |
---|
821 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%c_surface_green(1:surf_usm_h%ns)Â Â ) |
---|
822 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%transmissivity(1:surf_usm_h%ns)Â ) |
---|
823 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%lai(1:surf_usm_h%ns)Â Â Â Â Â Â Â ) |
---|
824 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%emissivity(0:2,1:surf_usm_h%ns)Â ) |
---|
825 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%r_a(1:surf_usm_h%ns)Â Â Â Â Â Â Â ) |
---|
826 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%r_a_green(1:surf_usm_h%ns)Â Â Â Â ) |
---|
827 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%r_a_window(1:surf_usm_h%ns)Â Â Â ) |
---|
828 | |
---|
829 | ! |
---|
830 | !--Â Â Â For vertical surfaces. |
---|
831 |     DO l = 0, 3 |
---|
832 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%lambda_surf(1:surf_usm_v(l)%ns)Â Â Â ) |
---|
833 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%c_surface(1:surf_usm_v(l)%ns)Â Â Â Â ) |
---|
834 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%lambda_surf_window(1:surf_usm_v(l)%ns)Â ) |
---|
835 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%c_surface_window(1:surf_usm_v(l)%ns)Â Â ) |
---|
836 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%lambda_surf_green(1:surf_usm_v(l)%ns)Â ) |
---|
837 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%c_surface_green(1:surf_usm_v(l)%ns)Â Â ) |
---|
838 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%transmissivity(1:surf_usm_v(l)%ns)Â ) |
---|
839 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%lai(1:surf_usm_v(l)%ns)Â Â Â Â Â Â Â ) |
---|
840 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%emissivity(0:2,1:surf_usm_v(l)%ns)Â ) |
---|
841 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%r_a(1:surf_usm_v(l)%ns)Â Â Â Â Â Â Â ) |
---|
842 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%r_a_green(1:surf_usm_v(l)%ns)Â Â Â Â ) |
---|
843 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%r_a_window(1:surf_usm_v(l)%ns)Â Â Â ) |
---|
844 | Â Â Â Â ENDDO |
---|
845 | |
---|
846 | !    |
---|
847 | !--Â Â Â allocate wall and roof material parameters. First for horizontal surfaces |
---|
848 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%thickness_wall(1:surf_usm_h%ns)Â Â Â Â Â Â Â Â ) |
---|
849 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%thickness_window(1:surf_usm_h%ns)Â Â Â Â Â Â Â Â Â ) |
---|
850 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%thickness_green(1:surf_usm_h%ns)Â Â Â Â Â Â Â Â Â Â ) |
---|
851 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%lambda_h(nzb_wall:nzt_wall,1:surf_usm_h%ns)Â Â ) |
---|
852 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%rho_c_wall(nzb_wall:nzt_wall,1:surf_usm_h%ns)Â ) |
---|
853 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%lambda_h_window(nzb_wall:nzt_wall,1:surf_usm_h%ns)Â ) |
---|
854 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%rho_c_window(nzb_wall:nzt_wall,1:surf_usm_h%ns)Â Â ) |
---|
855 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%lambda_h_green(nzb_wall:nzt_wall,1:surf_usm_h%ns)Â ) |
---|
856 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%rho_c_green(nzb_wall:nzt_wall,1:surf_usm_h%ns)Â Â Â ) |
---|
857 | |
---|
858 | ! |
---|
859 | !--Â Â Â For vertical surfaces. |
---|
860 |     DO l = 0, 3 |
---|
861 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%thickness_wall(1:surf_usm_v(l)%ns)Â Â Â Â Â Â Â Â ) |
---|
862 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%thickness_window(1:surf_usm_v(l)%ns)Â Â Â Â Â Â Â Â Â ) |
---|
863 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%thickness_green(1:surf_usm_v(l)%ns)Â Â Â Â Â Â Â Â Â Â ) |
---|
864 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%lambda_h(nzb_wall:nzt_wall,1:surf_usm_v(l)%ns)Â Â ) |
---|
865 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%rho_c_wall(nzb_wall:nzt_wall,1:surf_usm_v(l)%ns)Â ) |
---|
866 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%lambda_h_window(nzb_wall:nzt_wall,1:surf_usm_v(l)%ns)Â ) |
---|
867 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%rho_c_window(nzb_wall:nzt_wall,1:surf_usm_v(l)%ns)Â Â ) |
---|
868 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%lambda_h_green(nzb_wall:nzt_wall,1:surf_usm_v(l)%ns)Â ) |
---|
869 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%rho_c_green(nzb_wall:nzt_wall,1:surf_usm_v(l)%ns)Â Â Â ) |
---|
870 | Â Â Â Â ENDDO |
---|
871 | |
---|
872 | !--Â Â Â allocate wall and roof layers sizes. For horizontal surfaces. |
---|
873 | Â Â Â Â ALLOCATEÂ (Â zwn(nzb_wall:nzt_wall)Â ) |
---|
874 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%dz_wall(nzb_wall:nzt_wall+1,1:surf_usm_h%ns)Â Â Â ) |
---|
875 | Â Â Â Â ALLOCATEÂ (Â zwn_window(nzb_wall:nzt_wall)Â ) |
---|
876 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%dz_window(nzb_wall:nzt_wall+1,1:surf_usm_h%ns)Â Â Â ) |
---|
877 | Â Â Â Â ALLOCATEÂ (Â zwn_green(nzb_wall:nzt_wall)Â ) |
---|
878 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%dz_green(nzb_wall:nzt_wall+1,1:surf_usm_h%ns)Â Â Â ) |
---|
879 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%ddz_wall(nzb_wall:nzt_wall+1,1:surf_usm_h%ns)Â Â ) |
---|
880 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%dz_wall_stag(nzb_wall:nzt_wall,1:surf_usm_h%ns)Â ) |
---|
881 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%ddz_wall_stag(nzb_wall:nzt_wall,1:surf_usm_h%ns)Â ) |
---|
882 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%zw(nzb_wall:nzt_wall,1:surf_usm_h%ns)Â Â Â Â Â Â ) |
---|
883 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%ddz_window(nzb_wall:nzt_wall+1,1:surf_usm_h%ns)Â Â ) |
---|
884 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%dz_window_stag(nzb_wall:nzt_wall,1:surf_usm_h%ns)Â ) |
---|
885 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%ddz_window_stag(nzb_wall:nzt_wall,1:surf_usm_h%ns)Â ) |
---|
886 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%zw_window(nzb_wall:nzt_wall,1:surf_usm_h%ns)Â Â Â Â ) |
---|
887 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%ddz_green(nzb_wall:nzt_wall+1,1:surf_usm_h%ns)Â Â Â ) |
---|
888 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%dz_green_stag(nzb_wall:nzt_wall,1:surf_usm_h%ns)Â Â ) |
---|
889 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%ddz_green_stag(nzb_wall:nzt_wall,1:surf_usm_h%ns)Â ) |
---|
890 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%zw_green(nzb_wall:nzt_wall,1:surf_usm_h%ns)Â Â Â Â ) |
---|
891 | ! |
---|
892 | !--Â Â Â For vertical surfaces. |
---|
893 |     DO l = 0, 3 |
---|
894 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%dz_wall(nzb_wall:nzt_wall+1,1:surf_usm_v(l)%ns)Â Â Â ) |
---|
895 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%dz_window(nzb_wall:nzt_wall+1,1:surf_usm_v(l)%ns)Â Â Â ) |
---|
896 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%dz_green(nzb_wall:nzt_wall+1,1:surf_usm_v(l)%ns)Â Â Â ) |
---|
897 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%ddz_wall(nzb_wall:nzt_wall+1,1:surf_usm_v(l)%ns)Â Â ) |
---|
898 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%dz_wall_stag(nzb_wall:nzt_wall,1:surf_usm_v(l)%ns)Â ) |
---|
899 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%ddz_wall_stag(nzb_wall:nzt_wall,1:surf_usm_v(l)%ns)Â ) |
---|
900 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%zw(nzb_wall:nzt_wall,1:surf_usm_v(l)%ns)Â Â Â Â Â Â ) |
---|
901 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%ddz_window(nzb_wall:nzt_wall+1,1:surf_usm_v(l)%ns)Â Â ) |
---|
902 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%dz_window_stag(nzb_wall:nzt_wall,1:surf_usm_v(l)%ns)Â ) |
---|
903 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%ddz_window_stag(nzb_wall:nzt_wall,1:surf_usm_v(l)%ns)Â ) |
---|
904 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%zw_window(nzb_wall:nzt_wall,1:surf_usm_v(l)%ns)Â Â Â Â ) |
---|
905 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%ddz_green(nzb_wall:nzt_wall+1,1:surf_usm_v(l)%ns)Â Â Â ) |
---|
906 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%dz_green_stag(nzb_wall:nzt_wall,1:surf_usm_v(l)%ns)Â Â ) |
---|
907 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%ddz_green_stag(nzb_wall:nzt_wall,1:surf_usm_v(l)%ns)Â ) |
---|
908 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%zw_green(nzb_wall:nzt_wall,1:surf_usm_v(l)%ns)Â Â Â Â ) |
---|
909 | Â Â Â Â ENDDO |
---|
910 | |
---|
911 | !--Â Â Â allocate wall and roof temperature arrays, for horizontal walls |
---|
912 | #if defined( __nopointer ) |
---|
913 |     IF ( .NOT. ALLOCATED( t_surf_h ) )                   & |
---|
914 | Â Â Â Â Â Â ALLOCATEÂ (Â t_surf_h(1:surf_usm_h%ns)Â ) |
---|
915 |     IF ( .NOT. ALLOCATED( t_surf_h_p ) )                  & |
---|
916 | Â Â Â Â Â Â ALLOCATEÂ (Â t_surf_h_p(1:surf_usm_h%ns)Â ) |
---|
917 |     IF ( .NOT. ALLOCATED( t_wall_h ) )                   &      |
---|
918 | Â Â Â Â Â Â ALLOCATEÂ (Â t_wall_h(nzb_wall:nzt_wall+1,1:surf_usm_h%ns)Â )Â |
---|
919 |     IF ( .NOT. ALLOCATED( t_wall_h_p ) )                  &      |
---|
920 | Â Â Â Â Â Â ALLOCATEÂ (Â t_wall_h_p(nzb_wall:nzt_wall+1,1:surf_usm_h%ns)Â )Â |
---|
921 |     IF ( .NOT. ALLOCATED( t_surf_window_h ) )               & |
---|
922 | Â Â Â Â Â Â ALLOCATEÂ (Â t_surf_window_h(1:surf_usm_h%ns)Â ) |
---|
923 |     IF ( .NOT. ALLOCATED( t_surf_window_h_p ) )              & |
---|
924 | Â Â Â Â Â Â ALLOCATEÂ (Â t_surf_window_h_p(1:surf_usm_h%ns)Â ) |
---|
925 |     IF ( .NOT. ALLOCATED( t_window_h ) )                  &      |
---|
926 | Â Â Â Â Â Â ALLOCATEÂ (Â t_window_h(nzb_wall:nzt_wall+1,1:surf_usm_h%ns)Â )Â |
---|
927 |     IF ( .NOT. ALLOCATED( t_window_h_p ) )                 &      |
---|
928 | Â Â Â Â Â Â ALLOCATEÂ (Â t_window_h_p(nzb_wall:nzt_wall+1,1:surf_usm_h%ns)Â )Â |
---|
929 |     IF ( .NOT. ALLOCATED( t_surf_green_h ) )                & |
---|
930 | Â Â Â Â Â Â ALLOCATEÂ (Â t_surf_green_h(1:surf_usm_h%ns)Â ) |
---|
931 |     IF ( .NOT. ALLOCATED( t_surf_green_h_p ) )               & |
---|
932 | Â Â Â Â Â Â ALLOCATEÂ (Â t_surf_green_h_p(1:surf_usm_h%ns)Â )Â Â Â Â Â Â |
---|
933 |     IF ( .NOT. ALLOCATED( t_green_h ) )                  &      |
---|
934 | Â Â Â Â Â Â ALLOCATEÂ (Â t_green_h(nzb_wall:nzt_wall+1,1:surf_usm_h%ns)Â )Â |
---|
935 |     IF ( .NOT. ALLOCATED( t_green_h_p ) )                 &      |
---|
936 | Â Â Â Â Â Â ALLOCATEÂ (Â t_green_h_p(nzb_wall:nzt_wall+1,1:surf_usm_h%ns)Â )Â |
---|
937 |     IF ( .NOT. ALLOCATED( t_surf_10cm_h ) )                & |
---|
938 | Â Â Â Â Â Â ALLOCATEÂ (Â t_surf_10cm_h(1:surf_usm_h%ns)Â ) |
---|
939 |     IF ( .NOT. ALLOCATED( t_surf_10cm_h_p ) )               & |
---|
940 | Â Â Â Â Â Â ALLOCATEÂ (Â t_surf_10cm_h_p(1:surf_usm_h%ns)Â ) |
---|
941 | #else |
---|
942 | ! |
---|
943 | !--Â Â Â Allocate if required. Note, in case of restarts, some of these arrays |
---|
944 | !--Â Â Â might be already allocated. |
---|
945 |     IF ( .NOT. ALLOCATED( t_surf_h_1 ) )                  & |
---|
946 | Â Â Â Â Â Â ALLOCATEÂ (Â t_surf_h_1(1:surf_usm_h%ns)Â ) |
---|
947 |     IF ( .NOT. ALLOCATED( t_surf_h_2 ) )                  & |
---|
948 | Â Â Â Â Â Â ALLOCATEÂ (Â t_surf_h_2(1:surf_usm_h%ns)Â ) |
---|
949 |     IF ( .NOT. ALLOCATED( t_wall_h_1 ) )                  &      |
---|
950 | Â Â Â Â Â Â ALLOCATEÂ (Â t_wall_h_1(nzb_wall:nzt_wall+1,1:surf_usm_h%ns)Â )Â |
---|
951 |     IF ( .NOT. ALLOCATED( t_wall_h_2 ) )                  &      |
---|
952 | Â Â Â Â Â Â ALLOCATEÂ (Â t_wall_h_2(nzb_wall:nzt_wall+1,1:surf_usm_h%ns)Â )Â Â Â Â Â |
---|
953 |     IF ( .NOT. ALLOCATED( t_surf_window_h_1 ) )              & |
---|
954 | Â Â Â Â Â Â ALLOCATEÂ (Â t_surf_window_h_1(1:surf_usm_h%ns)Â ) |
---|
955 |     IF ( .NOT. ALLOCATED( t_surf_window_h_2 ) )              & |
---|
956 | Â Â Â Â Â Â ALLOCATEÂ (Â t_surf_window_h_2(1:surf_usm_h%ns)Â ) |
---|
957 |     IF ( .NOT. ALLOCATED( t_window_h_1 ) )                 &      |
---|
958 | Â Â Â Â Â Â ALLOCATEÂ (Â t_window_h_1(nzb_wall:nzt_wall+1,1:surf_usm_h%ns)Â )Â |
---|
959 |     IF ( .NOT. ALLOCATED( t_window_h_2 ) )                 &      |
---|
960 | Â Â Â Â Â Â ALLOCATEÂ (Â t_window_h_2(nzb_wall:nzt_wall+1,1:surf_usm_h%ns)Â )Â Â Â Â Â |
---|
961 |     IF ( .NOT. ALLOCATED( t_surf_green_h_1 ) )               & |
---|
962 | Â Â Â Â Â Â ALLOCATEÂ (Â t_surf_green_h_1(1:surf_usm_h%ns)Â ) |
---|
963 |     IF ( .NOT. ALLOCATED( t_surf_green_h_2 ) )               & |
---|
964 | Â Â Â Â Â Â ALLOCATEÂ (Â t_surf_green_h_2(1:surf_usm_h%ns)Â ) |
---|
965 |     IF ( .NOT. ALLOCATED( t_green_h_1 ) )                 &      |
---|
966 | Â Â Â Â Â Â ALLOCATEÂ (Â t_green_h_1(nzb_wall:nzt_wall+1,1:surf_usm_h%ns)Â )Â |
---|
967 |     IF ( .NOT. ALLOCATED( t_green_h_2 ) )                 &      |
---|
968 | Â Â Â Â Â Â ALLOCATEÂ (Â t_green_h_2(nzb_wall:nzt_wall+1,1:surf_usm_h%ns)Â )Â Â Â Â Â |
---|
969 |     IF ( .NOT. ALLOCATED( t_surf_10cm_h_1 ) )               & |
---|
970 | Â Â Â Â Â Â ALLOCATEÂ (Â t_surf_10cm_h_1(1:surf_usm_h%ns)Â ) |
---|
971 |     IF ( .NOT. ALLOCATED( t_surf_10cm_h_2 ) )               & |
---|
972 | Â Â Â Â Â Â ALLOCATEÂ (Â t_surf_10cm_h_2(1:surf_usm_h%ns)Â ) |
---|
973 | !      |
---|
974 | !--Â Â Â initial assignment of the pointers |
---|
975 |     t_wall_h  => t_wall_h_1;  t_wall_h_p  => t_wall_h_2 |
---|
976 |     t_window_h  => t_window_h_1;  t_window_h_p  => t_window_h_2 |
---|
977 |     t_green_h  => t_green_h_1;  t_green_h_p  => t_green_h_2 |
---|
978 | Â Â Â Â t_surf_h =>Â t_surf_h_1;Â t_surf_h_p =>Â t_surf_h_2Â Â Â Â Â Â |
---|
979 | Â Â Â Â t_surf_window_h =>Â t_surf_window_h_1;Â t_surf_window_h_p =>Â t_surf_window_h_2Â |
---|
980 | Â Â Â Â t_surf_green_h =>Â t_surf_green_h_1;Â t_surf_green_h_p =>Â t_surf_green_h_2Â Â Â Â Â Â |
---|
981 | Â Â Â Â t_surf_10cm_h =>Â t_surf_10cm_h_1;Â t_surf_10cm_h_p =>Â t_surf_10cm_h_2Â |
---|
982 | Â |
---|
983 | #endif |
---|
984 | |
---|
985 | !--Â Â Â allocate wall and roof temperature arrays, for vertical walls if required |
---|
986 | #if defined( __nopointer ) |
---|
987 |     DO l = 0, 3 |
---|
988 |       IF ( .NOT. ALLOCATED( t_surf_v(l)%t ) )               & |
---|
989 | Â Â Â Â Â Â Â ALLOCATEÂ (Â t_surf_v(l)%t(1:surf_usm_v(l)%ns)Â ) |
---|
990 |       IF ( .NOT. ALLOCATED( t_surf_v_p(l)%t ) )              & |
---|
991 | Â Â Â Â Â Â Â ALLOCATEÂ (Â t_surf_v_p(l)%t(1:surf_usm_v(l)%ns)Â ) |
---|
992 |       IF ( .NOT. ALLOCATED( t_wall_v(l)%t ) )               & |
---|
993 | Â Â Â Â Â Â Â ALLOCATEÂ (Â t_wall_v(l)%t(nzb_wall:nzt_wall+1,1:surf_usm_v(l)%ns)Â ) |
---|
994 |       IF ( .NOT. ALLOCATED( t_wall_v_p(l)%t ) )              &         |
---|
995 | Â Â Â Â Â Â Â ALLOCATEÂ (Â t_wall_v_p(l)%t(nzb_wall:nzt_wall+1,1:surf_usm_v(l)%ns)Â ) |
---|
996 |       IF ( .NOT. ALLOCATED( t_surf_window_v(l)%t ) )           & |
---|
997 | Â Â Â Â Â Â Â ALLOCATEÂ (Â t_surf_window_v(l)%t(1:surf_usm_v(l)%ns)Â ) |
---|
998 |       IF ( .NOT. ALLOCATED( t_surf_window_v_p(l)%t ) )          & |
---|
999 | Â Â Â Â Â Â Â ALLOCATEÂ (Â t_surf_window_v_p(l)%t(1:surf_usm_v(l)%ns)Â ) |
---|
1000 |       IF ( .NOT. ALLOCATED( t_window_v(l)%t ) )              & |
---|
1001 | Â Â Â Â Â Â Â ALLOCATEÂ (Â t_window_v(l)%t(nzb_wall:nzt_wall+1,1:surf_usm_v(l)%ns)Â ) |
---|
1002 |       IF ( .NOT. ALLOCATED( t_window_v_p(l)%t ) )             &         |
---|
1003 | Â Â Â Â Â Â Â ALLOCATEÂ (Â t_window_v_p(l)%t(nzb_wall:nzt_wall+1,1:surf_usm_v(l)%ns)Â ) |
---|
1004 |       IF ( .NOT. ALLOCATED( t_green_v(l)%t ) )              & |
---|
1005 | Â Â Â Â Â Â Â ALLOCATEÂ (Â t_green_v(l)%t(nzb_wall:nzt_wall+1,1:surf_usm_v(l)%ns)Â ) |
---|
1006 |       IF ( .NOT. ALLOCATED( t_green_v_p(l)%t ) )             &         |
---|
1007 | Â Â Â Â Â Â Â ALLOCATEÂ (Â t_green_v_p(l)%t(nzb_wall:nzt_wall+1,1:surf_usm_v(l)%ns)Â ) |
---|
1008 |       IF ( .NOT. ALLOCATED( t_surf_green_v(l)%t ) )            & |
---|
1009 | Â Â Â Â Â Â Â ALLOCATEÂ (Â t_surf_green_v(l)%t(1:surf_usm_v(l)%ns)Â ) |
---|
1010 |       IF ( .NOT. ALLOCATED( t_surf_green_v_p(l)%t ) )           & |
---|
1011 | Â Â Â Â Â Â Â ALLOCATEÂ (Â t_surf_green_v_p(l)%t(1:surf_usm_v(l)%ns)Â ) |
---|
1012 |       IF ( .NOT. ALLOCATED( t_surf_10cm_v(l)%t ) )            & |
---|
1013 | Â Â Â Â Â Â Â ALLOCATEÂ (Â t_surf_10cm_v(l)%t(1:surf_usm_v(l)%ns)Â ) |
---|
1014 |       IF ( .NOT. ALLOCATED( t_surf_10cm_v_p(l)%t ) )            & |
---|
1015 | Â Â Â Â Â Â Â ALLOCATEÂ (Â t_surf_10cm_v_p(l)%t(1:surf_usm_v(l)%ns)Â ) |
---|
1016 | Â Â Â Â ENDDO |
---|
1017 | #else |
---|
1018 | ! |
---|
1019 | !--Â Â Â Allocate if required. Note, in case of restarts, some of these arrays |
---|
1020 | !--Â Â Â might be already allocated. |
---|
1021 |     DO l = 0, 3 |
---|
1022 |       IF ( .NOT. ALLOCATED( t_surf_v_1(l)%t ) )              & |
---|
1023 | Â Â Â Â Â Â Â ALLOCATEÂ (Â t_surf_v_1(l)%t(1:surf_usm_v(l)%ns)Â ) |
---|
1024 |       IF ( .NOT. ALLOCATED( t_surf_v_2(l)%t ) )              & |
---|
1025 | Â Â Â Â Â Â Â ALLOCATEÂ (Â t_surf_v_2(l)%t(1:surf_usm_v(l)%ns)Â ) |
---|
1026 |       IF ( .NOT. ALLOCATED( t_wall_v_1(l)%t ) )              &      |
---|
1027 | Â Â Â Â Â Â Â ALLOCATEÂ (Â t_wall_v_1(l)%t(nzb_wall:nzt_wall+1,1:surf_usm_v(l)%ns)Â )Â |
---|
1028 |       IF ( .NOT. ALLOCATED( t_wall_v_2(l)%t ) )              &      |
---|
1029 | Â Â Â Â Â Â Â ALLOCATEÂ (Â t_wall_v_2(l)%t(nzb_wall:nzt_wall+1,1:surf_usm_v(l)%ns)Â )Â |
---|
1030 |       IF ( .NOT. ALLOCATED( t_surf_window_v_1(l)%t ) )          & |
---|
1031 | Â Â Â Â Â Â Â ALLOCATEÂ (Â t_surf_window_v_1(l)%t(1:surf_usm_v(l)%ns)Â ) |
---|
1032 |       IF ( .NOT. ALLOCATED( t_surf_window_v_2(l)%t ) )          & |
---|
1033 | Â Â Â Â Â Â Â ALLOCATEÂ (Â t_surf_window_v_2(l)%t(1:surf_usm_v(l)%ns)Â ) |
---|
1034 |       IF ( .NOT. ALLOCATED( t_window_v_1(l)%t ) )             &      |
---|
1035 | Â Â Â Â Â Â Â ALLOCATEÂ (Â t_window_v_1(l)%t(nzb_wall:nzt_wall+1,1:surf_usm_v(l)%ns)Â )Â |
---|
1036 |       IF ( .NOT. ALLOCATED( t_window_v_2(l)%t ) )             &      |
---|
1037 | Â Â Â Â Â Â Â ALLOCATEÂ (Â t_window_v_2(l)%t(nzb_wall:nzt_wall+1,1:surf_usm_v(l)%ns)Â )Â |
---|
1038 |       IF ( .NOT. ALLOCATED( t_surf_green_v_1(l)%t ) )           & |
---|
1039 | Â Â Â Â Â Â Â ALLOCATEÂ (Â t_surf_green_v_1(l)%t(1:surf_usm_v(l)%ns)Â ) |
---|
1040 |       IF ( .NOT. ALLOCATED( t_surf_green_v_2(l)%t ) )           & |
---|
1041 | Â Â Â Â Â Â Â ALLOCATEÂ (Â t_surf_green_v_2(l)%t(1:surf_usm_v(l)%ns)Â ) |
---|
1042 |       IF ( .NOT. ALLOCATED( t_green_v_1(l)%t ) )             &      |
---|
1043 | Â Â Â Â Â Â Â ALLOCATEÂ (Â t_green_v_1(l)%t(nzb_wall:nzt_wall+1,1:surf_usm_v(l)%ns)Â )Â |
---|
1044 |       IF ( .NOT. ALLOCATED( t_green_v_2(l)%t ) )             &      |
---|
1045 | Â Â Â Â Â Â Â ALLOCATEÂ (Â t_green_v_2(l)%t(nzb_wall:nzt_wall+1,1:surf_usm_v(l)%ns)Â )Â |
---|
1046 |       IF ( .NOT. ALLOCATED( t_surf_10cm_v_1(l)%t ) )           & |
---|
1047 | Â Â Â Â Â Â Â ALLOCATEÂ (Â t_surf_10cm_v_1(l)%t(1:surf_usm_v(l)%ns)Â ) |
---|
1048 |       IF ( .NOT. ALLOCATED( t_surf_10cm_v_2(l)%t ) )           & |
---|
1049 | Â Â Â Â Â Â Â ALLOCATEÂ (Â t_surf_10cm_v_2(l)%t(1:surf_usm_v(l)%ns)Â ) |
---|
1050 | Â Â Â Â ENDDO |
---|
1051 | ! |
---|
1052 | !--Â Â Â initial assignment of the pointers |
---|
1053 |     t_wall_v  => t_wall_v_1;  t_wall_v_p  => t_wall_v_2 |
---|
1054 | Â Â Â Â t_surf_v =>Â t_surf_v_1;Â t_surf_v_p =>Â t_surf_v_2 |
---|
1055 |     t_window_v  => t_window_v_1;  t_window_v_p  => t_window_v_2 |
---|
1056 |     t_green_v  => t_green_v_1;  t_green_v_p  => t_green_v_2 |
---|
1057 | Â Â Â Â t_surf_window_v =>Â t_surf_window_v_1;Â t_surf_window_v_p =>Â t_surf_window_v_2 |
---|
1058 | Â Â Â Â t_surf_green_v =>Â t_surf_green_v_1;Â t_surf_green_v_p =>Â t_surf_green_v_2 |
---|
1059 | Â Â Â Â t_surf_10cm_v =>Â t_surf_10cm_v_1;Â t_surf_10cm_v_p =>Â t_surf_10cm_v_2 |
---|
1060 | |
---|
1061 | #endif |
---|
1062 | ! |
---|
1063 | !--Â Â Â Allocate intermediate timestep arrays. For horizontal surfaces. |
---|
1064 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%tt_surface_m(1:surf_usm_h%ns)Â Â Â Â Â Â Â Â Â ) |
---|
1065 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%tt_wall_m(nzb_wall:nzt_wall+1,1:surf_usm_h%ns)Â ) |
---|
1066 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%tt_surface_window_m(1:surf_usm_h%ns)Â Â Â Â Â Â Â ) |
---|
1067 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%tt_window_m(nzb_wall:nzt_wall+1,1:surf_usm_h%ns)Â ) |
---|
1068 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%tt_green_m(nzb_wall:nzt_wall+1,1:surf_usm_h%ns)Â ) |
---|
1069 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%tt_surface_green_m(1:surf_usm_h%ns)Â Â Â Â Â Â Â ) |
---|
1070 | |
---|
1071 | ! |
---|
1072 | !--Â Â Â Set inital values for prognostic quantities |
---|
1073 | Â Â Â Â IFÂ (Â ALLOCATED(Â surf_usm_h%tt_surface_m )Â )Â surf_usm_h%tt_surface_m =Â 0.0_wp |
---|
1074 |     IF ( ALLOCATED( surf_usm_h%tt_wall_m  ) ) surf_usm_h%tt_wall_m  = 0.0_wp |
---|
1075 | Â Â Â Â IFÂ (Â ALLOCATED(Â surf_usm_h%tt_surface_window_m )Â )Â surf_usm_h%tt_surface_window_m =Â 0.0_wp |
---|
1076 |     IF ( ALLOCATED( surf_usm_h%tt_window_m  )   ) surf_usm_h%tt_window_m     = 0.0_wp |
---|
1077 |     IF ( ALLOCATED( surf_usm_h%tt_green_m  )    ) surf_usm_h%tt_green_m     = 0.0_wp |
---|
1078 |     IF ( ALLOCATED( surf_usm_h%tt_surface_green_m ) ) surf_usm_h%tt_surface_green_m = 0.0_wp |
---|
1079 | ! |
---|
1080 | !--Â Â Â Now, for vertical surfaces |
---|
1081 |     DO l = 0, 3 |
---|
1082 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%tt_surface_m(1:surf_usm_v(l)%ns)Â Â Â Â Â Â Â Â Â ) |
---|
1083 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%tt_wall_m(nzb_wall:nzt_wall+1,1:surf_usm_v(l)%ns)Â ) |
---|
1084 | Â Â Â Â Â Â IFÂ (Â ALLOCATED(Â surf_usm_v(l)%tt_surface_m )Â )Â surf_usm_v(l)%tt_surface_m =Â 0.0_wp |
---|
1085 |       IF ( ALLOCATED( surf_usm_v(l)%tt_wall_m  ) ) surf_usm_v(l)%tt_wall_m  = 0.0_wp |
---|
1086 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%tt_surface_window_m(1:surf_usm_v(l)%ns)Â Â Â Â Â Â Â ) |
---|
1087 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%tt_window_m(nzb_wall:nzt_wall+1,1:surf_usm_v(l)%ns)Â ) |
---|
1088 | Â Â Â Â Â Â IFÂ (Â ALLOCATED(Â surf_usm_v(l)%tt_surface_window_m )Â )Â surf_usm_v(l)%tt_surface_window_m =Â 0.0_wp |
---|
1089 |       IF ( ALLOCATED( surf_usm_v(l)%tt_window_m ) ) surf_usm_v(l)%tt_window_m  = 0.0_wp |
---|
1090 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%tt_surface_green_m(1:surf_usm_v(l)%ns)Â Â Â Â Â Â Â ) |
---|
1091 | Â Â Â Â Â Â IFÂ (Â ALLOCATED(Â surf_usm_v(l)%tt_surface_green_m )Â )Â surf_usm_v(l)%tt_surface_green_m =Â 0.0_wp |
---|
1092 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%tt_green_m(nzb_wall:nzt_wall+1,1:surf_usm_v(l)%ns)Â ) |
---|
1093 |       IF ( ALLOCATED( surf_usm_v(l)%tt_green_m  ) ) surf_usm_v(l)%tt_green_m  = 0.0_wp |
---|
1094 | Â Â Â Â ENDDO |
---|
1095 | |
---|
1096 | !--Â Â Â allocate wall heat flux output array and set initial values. For horizontal surfaces |
---|
1097 | !     ALLOCATE ( surf_usm_h%wshf(1:surf_usm_h%ns)  ) !can be removed |
---|
1098 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%wshf_eb(1:surf_usm_h%ns)Â ) |
---|
1099 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%wghf_eb(1:surf_usm_h%ns)Â ) |
---|
1100 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%wghf_eb_window(1:surf_usm_h%ns)Â ) |
---|
1101 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%wghf_eb_green(1:surf_usm_h%ns)Â ) |
---|
1102 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%iwghf_eb(1:surf_usm_h%ns)Â ) |
---|
1103 | Â Â Â Â ALLOCATEÂ (Â surf_usm_h%iwghf_eb_window(1:surf_usm_h%ns)Â ) |
---|
1104 |     IF ( ALLOCATED( surf_usm_h%wshf  ) ) surf_usm_h%wshf  = 0.0_wp |
---|
1105 | Â Â Â Â IFÂ (Â ALLOCATED(Â surf_usm_h%wshf_eb )Â )Â surf_usm_h%wshf_eb =Â 0.0_wp |
---|
1106 | Â Â Â Â IFÂ (Â ALLOCATED(Â surf_usm_h%wghf_eb )Â )Â surf_usm_h%wghf_eb =Â 0.0_wp |
---|
1107 | Â Â Â Â IFÂ (Â ALLOCATED(Â surf_usm_h%wghf_eb_window )Â )Â surf_usm_h%wghf_eb_window =Â 0.0_wp |
---|
1108 | Â Â Â Â IFÂ (Â ALLOCATED(Â surf_usm_h%wghf_eb_green )Â )Â surf_usm_h%wghf_eb_green =Â 0.0_wp |
---|
1109 | Â Â Â Â IFÂ (Â ALLOCATED(Â surf_usm_h%iwghf_eb )Â )Â surf_usm_h%iwghf_eb =Â 0.0_wp |
---|
1110 | Â Â Â Â IFÂ (Â ALLOCATED(Â surf_usm_h%iwghf_eb_window )Â )Â surf_usm_h%iwghf_eb_window =Â 0.0_wp |
---|
1111 | ! |
---|
1112 | !--Â Â Â Now, for vertical surfaces |
---|
1113 |     DO l = 0, 3 |
---|
1114 | !      ALLOCATE ( surf_usm_v(l)%wshf(1:surf_usm_v(l)%ns)  )  ! can be removed |
---|
1115 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%wshf_eb(1:surf_usm_v(l)%ns)Â ) |
---|
1116 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%wghf_eb(1:surf_usm_v(l)%ns)Â ) |
---|
1117 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%wghf_eb_window(1:surf_usm_v(l)%ns)Â ) |
---|
1118 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%wghf_eb_green(1:surf_usm_v(l)%ns)Â ) |
---|
1119 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%iwghf_eb(1:surf_usm_v(l)%ns)Â ) |
---|
1120 | Â Â Â Â Â Â ALLOCATEÂ (Â surf_usm_v(l)%iwghf_eb_window(1:surf_usm_v(l)%ns)Â ) |
---|
1121 |       IF ( ALLOCATED( surf_usm_v(l)%wshf  ) ) surf_usm_v(l)%wshf  = 0.0_wp |
---|
1122 | Â Â Â Â Â Â IFÂ (Â ALLOCATED(Â surf_usm_v(l)%wshf_eb )Â )Â surf_usm_v(l)%wshf_eb =Â 0.0_wp |
---|
1123 | Â Â Â Â Â Â IFÂ (Â ALLOCATED(Â surf_usm_v(l)%wghf_eb )Â )Â surf_usm_v(l)%wghf_eb =Â 0.0_wp |
---|
1124 | Â Â Â Â Â Â IFÂ (Â ALLOCATED(Â surf_usm_v(l)%wghf_eb_window )Â )Â surf_usm_v(l)%wghf_eb_window =Â 0.0_wp |
---|
1125 | Â Â Â Â Â Â IFÂ (Â ALLOCATED(Â surf_usm_v(l)%wghf_eb_green )Â )Â surf_usm_v(l)%wghf_eb_green =Â 0.0_wp |
---|
1126 | Â Â Â Â Â Â IFÂ (Â ALLOCATED(Â surf_usm_v(l)%iwghf_eb )Â )Â surf_usm_v(l)%iwghf_eb =Â 0.0_wp |
---|
1127 | Â Â Â Â Â Â IFÂ (Â ALLOCATED(Â surf_usm_v(l)%iwghf_eb_window )Â )Â surf_usm_v(l)%iwghf_eb_window =Â 0.0_wp |
---|
1128 | Â Â Â Â ENDDO |
---|
1129 | Â Â Â Â |
---|
1130 | Â Â END SUBROUTINE usm_allocate_surface |
---|
1131 | |
---|
1132 | |
---|
1133 | !------------------------------------------------------------------------------! |
---|
1134 | ! Description: |
---|
1135 | ! ------------ |
---|
1136 | !> Sum up and time-average urban surface output quantities as well as allocate |
---|
1137 | !> the array necessary for storing the average. |
---|
1138 | !------------------------------------------------------------------------------! |
---|
1139 |   SUBROUTINE usm_average_3d_data( mode, variable ) |
---|
1140 | |
---|
1141 | Â Â Â Â IMPLICIT NONE |
---|
1142 | |
---|
1143 |     CHARACTER (len=*), INTENT(IN) :: mode |
---|
1144 |     CHARACTER (len=*), INTENT(IN) :: variable |
---|
1145 | Â |
---|
1146 |     INTEGER(iwp)                    :: i, j, k, l, m, ids, iwl,istat |
---|
1147 |     CHARACTER (len=varnamelength)           :: var, surfid |
---|
1148 |     INTEGER(iwp), PARAMETER              :: nd = 5 |
---|
1149 |     CHARACTER(len=6), DIMENSION(0:nd-1), PARAMETER   :: dirname = (/ '_roof ', '_south', '_north', '_west ', '_east ' /) |
---|
1150 | |
---|
1151 | !--Â Â Â find the real name of the variable |
---|
1152 | Â Â Â Â var =Â TRIM(variable) |
---|
1153 |     DO i = 0, nd-1 |
---|
1154 | Â Â Â Â Â Â k =Â len(TRIM(var)) |
---|
1155 | Â Â Â Â Â Â j =Â len(TRIM(dirname(i))) |
---|
1156 | Â Â Â Â Â Â IFÂ (Â var(k-j+1:k)Â ==Â dirname(i)Â )Â THEN |
---|
1157 | Â Â Â Â Â Â Â Â ids =Â i |
---|
1158 | Â Â Â Â Â Â Â Â var =Â var(:k-j) |
---|
1159 | Â Â Â Â Â Â Â Â EXIT |
---|
1160 | Â Â Â Â Â Â ENDIF |
---|
1161 | Â Â Â Â ENDDO |
---|
1162 | Â Â Â Â IFÂ (Â ids ==Â -1Â )Â THEN |
---|
1163 | Â Â Â Â Â Â var =Â TRIM(variable) |
---|
1164 | Â Â Â Â ENDIF |
---|
1165 |     IF ( var(1:11) == 'usm_t_wall_' .AND. len(TRIM(var)) >= 12 ) THEN |
---|
1166 | !--Â Â Â Â Â wall layers |
---|
1167 |       READ(var(12:12), '(I1)', iostat=istat ) iwl |
---|
1168 |       IF ( istat == 0 .AND. iwl >= nzb_wall .AND. iwl <= nzt_wall ) THEN |
---|
1169 | Â Â Â Â Â Â Â Â var =Â var(1:10) |
---|
1170 | Â Â Â Â Â Â ELSE |
---|
1171 | !--Â Â Â Â Â Â Â wrong wall layer index |
---|
1172 | Â Â Â Â Â Â Â Â RETURN |
---|
1173 | Â Â Â Â Â Â ENDIF |
---|
1174 | Â Â Â Â ENDIF |
---|
1175 |     IF ( var(1:13) == 'usm_t_window_' .AND. len(TRIM(var)) >= 14 ) THEN |
---|
1176 | !--Â Â Â Â Â wall layers |
---|
1177 |       READ(var(14:14), '(I1)', iostat=istat ) iwl |
---|
1178 |       IF ( istat == 0 .AND. iwl >= nzb_wall .AND. iwl <= nzt_wall ) THEN |
---|
1179 | Â Â Â Â Â Â Â Â var =Â var(1:12) |
---|
1180 | Â Â Â Â Â Â ELSE |
---|
1181 | !--Â Â Â Â Â Â Â wrong window layer index |
---|
1182 | Â Â Â Â Â Â Â Â RETURN |
---|
1183 | Â Â Â Â Â Â ENDIF |
---|
1184 | Â Â Â Â ENDIF |
---|
1185 |     IF ( var(1:12) == 'usm_t_green_' .AND. len(TRIM(var)) >= 13 ) THEN |
---|
1186 | !--Â Â Â Â Â wall layers |
---|
1187 |       READ(var(13:13), '(I1)', iostat=istat ) iwl |
---|
1188 |       IF ( istat == 0 .AND. iwl >= nzb_wall .AND. iwl <= nzt_wall ) THEN |
---|
1189 | Â Â Â Â Â Â Â Â var =Â var(1:11) |
---|
1190 | Â Â Â Â Â Â ELSE |
---|
1191 | !--Â Â Â Â Â Â Â wrong green layer index |
---|
1192 | Â Â Â Â Â Â Â Â RETURN |
---|
1193 | Â Â Â Â Â Â ENDIF |
---|
1194 | Â Â Â Â ENDIF |
---|
1195 | |
---|
1196 | Â Â Â Â IFÂ (Â mode ==Â 'allocate'Â )Â THEN |
---|
1197 | Â Â Â Â Â Â |
---|
1198 | Â Â Â Â Â Â SELECT CASEÂ (Â TRIM(Â var )Â ) |
---|
1199 | Â Â Â Â Â Â Â Â |
---|
1200 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_rad_net'Â ) |
---|
1201 | !--Â Â Â Â Â Â Â Â Â array of complete radiation balance |
---|
1202 |           IF ( .NOT. ALLOCATED(surf_usm_h%rad_net_av) ) THEN |
---|
1203 | Â Â Â Â Â Â Â Â Â Â Â Â ALLOCATE(Â surf_usm_h%rad_net_av(1:surf_usm_h%ns)Â ) |
---|
1204 | Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%rad_net_av =Â 0.0_wp |
---|
1205 | Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1206 |           DO l = 0, 3 |
---|
1207 |             IF ( .NOT. ALLOCATED(surf_usm_v(l)%rad_net_av) ) THEN |
---|
1208 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â ALLOCATE(Â surf_usm_v(l)%rad_net_av(1:surf_usm_v(l)%ns)Â ) |
---|
1209 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%rad_net_av =Â 0.0_wp |
---|
1210 | Â Â Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1211 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1212 | Â Â Â Â Â Â Â Â Â Â |
---|
1213 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_rad_insw'Â ) |
---|
1214 | !--Â Â Â Â Â Â Â Â Â array of sw radiation falling to surface after i-th reflection |
---|
1215 |           IF ( .NOT. ALLOCATED(surf_usm_h%surfinsw_av) ) THEN |
---|
1216 | Â Â Â Â Â Â Â Â Â Â Â Â ALLOCATE(Â surf_usm_h%surfinsw_av(1:surf_usm_h%ns)Â ) |
---|
1217 | Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%surfinsw_av =Â 0.0_wp |
---|
1218 | Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1219 |           DO l = 0, 3 |
---|
1220 |             IF ( .NOT. ALLOCATED(surf_usm_v(l)%surfinsw_av) ) THEN |
---|
1221 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â ALLOCATE(Â surf_usm_v(l)%surfinsw_av(1:surf_usm_v(l)%ns)Â ) |
---|
1222 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%surfinsw_av =Â 0.0_wp |
---|
1223 | Â Â Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1224 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1225 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â |
---|
1226 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_rad_inlw'Â ) |
---|
1227 | !--Â Â Â Â Â Â Â Â Â array of lw radiation falling to surface after i-th reflection |
---|
1228 |           IF ( .NOT. ALLOCATED(surf_usm_h%surfinlw_av) ) THEN |
---|
1229 | Â Â Â Â Â Â Â Â Â Â Â Â ALLOCATE(Â surf_usm_h%surfinlw_av(1:surf_usm_h%ns)Â ) |
---|
1230 | Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%surfinlw_av =Â 0.0_wp |
---|
1231 | Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1232 |           DO l = 0, 3 |
---|
1233 |             IF ( .NOT. ALLOCATED(surf_usm_v(l)%surfinlw_av) ) THEN |
---|
1234 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â ALLOCATE(Â surf_usm_v(l)%surfinlw_av(1:surf_usm_v(l)%ns)Â ) |
---|
1235 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%surfinlw_av =Â 0.0_wp |
---|
1236 | Â Â Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1237 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1238 | |
---|
1239 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_rad_inswdir'Â ) |
---|
1240 | !--Â Â Â Â Â Â Â Â Â array of direct sw radiation falling to surface from sun |
---|
1241 |           IF ( .NOT. ALLOCATED(surfinswdir_av) ) THEN |
---|
1242 | Â Â Â Â Â Â Â Â Â Â Â Â ALLOCATE(Â surfinswdir_av(startenergy:endenergy)Â ) |
---|
1243 | Â Â Â Â Â Â Â Â Â Â Â Â surfinswdir_av =Â 0.0_wp |
---|
1244 | Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1245 | |
---|
1246 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_rad_inswdif'Â ) |
---|
1247 | !--Â Â Â Â Â Â Â Â Â array of difusion sw radiation falling to surface from sky and borders of the domain |
---|
1248 |           IF ( .NOT. ALLOCATED(surfinswdif_av) ) THEN |
---|
1249 | Â Â Â Â Â Â Â Â Â Â Â Â ALLOCATE(Â surfinswdif_av(startenergy:endenergy)Â ) |
---|
1250 | Â Â Â Â Â Â Â Â Â Â Â Â surfinswdif_av =Â 0.0_wp |
---|
1251 | Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1252 | |
---|
1253 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_rad_inswref'Â ) |
---|
1254 | !--Â Â Â Â Â Â Â Â Â array of sw radiation falling to surface from reflections |
---|
1255 |           IF ( .NOT. ALLOCATED(surfinswref_av) ) THEN |
---|
1256 | Â Â Â Â Â Â Â Â Â Â Â Â ALLOCATE(Â surfinswref_av(startenergy:endenergy)Â ) |
---|
1257 | Â Â Â Â Â Â Â Â Â Â Â Â surfinswref_av =Â 0.0_wp |
---|
1258 | Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1259 | |
---|
1260 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_rad_inlwdif'Â ) |
---|
1261 | !--Â Â Â Â Â Â Â Â Â array of sw radiation falling to surface after i-th reflection |
---|
1262 |           IF ( .NOT. ALLOCATED(surfinlwdif_av) ) THEN |
---|
1263 | Â Â Â Â Â Â Â Â Â Â Â Â ALLOCATE(Â surfinlwdif_av(startenergy:endenergy)Â ) |
---|
1264 | Â Â Â Â Â Â Â Â Â Â Â Â surfinlwdif_av =Â 0.0_wp |
---|
1265 | Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1266 | |
---|
1267 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_rad_inlwref'Â ) |
---|
1268 | !--Â Â Â Â Â Â Â Â Â array of lw radiation falling to surface from reflections |
---|
1269 |           IF ( .NOT. ALLOCATED(surfinlwref_av) ) THEN |
---|
1270 | Â Â Â Â Â Â Â Â Â Â Â Â ALLOCATE(Â surfinlwref_av(startenergy:endenergy)Â ) |
---|
1271 | Â Â Â Â Â Â Â Â Â Â Â Â surfinlwref_av =Â 0.0_wp |
---|
1272 | Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1273 | |
---|
1274 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_rad_outsw'Â ) |
---|
1275 | !--Â Â Â Â Â Â Â Â Â array of sw radiation emitted from surface after i-th reflection |
---|
1276 |           IF ( .NOT. ALLOCATED(surfoutsw_av) ) THEN |
---|
1277 | Â Â Â Â Â Â Â Â Â Â Â Â ALLOCATE(Â surfoutsw_av(startenergy:endenergy)Â ) |
---|
1278 | Â Â Â Â Â Â Â Â Â Â Â Â surfoutsw_av =Â 0.0_wp |
---|
1279 | Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1280 | |
---|
1281 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_rad_outlw'Â ) |
---|
1282 | !--Â Â Â Â Â Â Â Â Â array of lw radiation emitted from surface after i-th reflection |
---|
1283 |           IF ( .NOT. ALLOCATED(surfoutlw_av) ) THEN |
---|
1284 | Â Â Â Â Â Â Â Â Â Â Â Â ALLOCATE(Â surfoutlw_av(startenergy:endenergy)Â ) |
---|
1285 | Â Â Â Â Â Â Â Â Â Â Â Â surfoutlw_av =Â 0.0_wp |
---|
1286 | Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1287 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_rad_ressw'Â ) |
---|
1288 | !--Â Â Â Â Â Â Â Â Â array of residua of sw radiation absorbed in surface after last reflection |
---|
1289 |           IF ( .NOT. ALLOCATED(surfins_av) ) THEN |
---|
1290 | Â Â Â Â Â Â Â Â Â Â Â Â ALLOCATE(Â surfins_av(startenergy:endenergy)Â ) |
---|
1291 | Â Â Â Â Â Â Â Â Â Â Â Â surfins_av =Â 0.0_wp |
---|
1292 | Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1293 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â |
---|
1294 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_rad_reslw'Â ) |
---|
1295 | !--Â Â Â Â Â Â Â Â Â array of residua of lw radiation absorbed in surface after last reflection |
---|
1296 |           IF ( .NOT. ALLOCATED(surfinl_av) ) THEN |
---|
1297 | Â Â Â Â Â Â Â Â Â Â Â Â ALLOCATE(Â surfinl_av(startenergy:endenergy)Â ) |
---|
1298 | Â Â Â Â Â Â Â Â Â Â Â Â surfinl_av =Â 0.0_wp |
---|
1299 | Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1300 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â |
---|
1301 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_rad_hf'Â ) |
---|
1302 | !--Â Â Â Â Â Â Â Â Â array of heat flux from radiation for surfaces after i-th reflection |
---|
1303 |           IF ( .NOT. ALLOCATED(surf_usm_h%surfhf_av) ) THEN |
---|
1304 | Â Â Â Â Â Â Â Â Â Â Â Â ALLOCATE(Â surf_usm_h%surfhf_av(1:surf_usm_h%ns)Â ) |
---|
1305 | Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%surfhf_av =Â 0.0_wp |
---|
1306 | Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1307 |           DO l = 0, 3 |
---|
1308 |             IF ( .NOT. ALLOCATED(surf_usm_v(l)%surfhf_av) ) THEN |
---|
1309 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â ALLOCATE(Â surf_usm_v(l)%surfhf_av(1:surf_usm_v(l)%ns)Â ) |
---|
1310 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%surfhf_av =Â 0.0_wp |
---|
1311 | Â Â Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1312 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1313 | |
---|
1314 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_wshf'Â ) |
---|
1315 | !--Â Â Â Â Â Â Â Â Â array of sensible heat flux from surfaces |
---|
1316 | !--Â Â Â Â Â Â Â Â Â land surfaces |
---|
1317 |           IF ( .NOT. ALLOCATED(surf_usm_h%wshf_eb_av) ) THEN |
---|
1318 | Â Â Â Â Â Â Â Â Â Â Â Â ALLOCATE(Â surf_usm_h%wshf_eb_av(1:surf_usm_h%ns)Â ) |
---|
1319 | Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%wshf_eb_av =Â 0.0_wp |
---|
1320 | Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1321 |           DO l = 0, 3 |
---|
1322 |             IF ( .NOT. ALLOCATED(surf_usm_v(l)%wshf_eb_av) ) THEN |
---|
1323 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â ALLOCATE(Â surf_usm_v(l)%wshf_eb_av(1:surf_usm_v(l)%ns)Â ) |
---|
1324 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%wshf_eb_av =Â 0.0_wp |
---|
1325 | Â Â Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1326 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1327 | |
---|
1328 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_wghf'Â ) |
---|
1329 | !--Â Â Â Â Â Â Â Â Â array of heat flux from ground (wall, roof, land) |
---|
1330 |           IF ( .NOT. ALLOCATED(surf_usm_h%wghf_eb_av) ) THEN |
---|
1331 | Â Â Â Â Â Â Â Â Â Â Â Â ALLOCATE(Â surf_usm_h%wghf_eb_av(1:surf_usm_h%ns)Â ) |
---|
1332 | Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%wghf_eb_av =Â 0.0_wp |
---|
1333 | Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1334 |           DO l = 0, 3 |
---|
1335 |             IF ( .NOT. ALLOCATED(surf_usm_v(l)%wghf_eb_av) ) THEN |
---|
1336 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â ALLOCATE(Â surf_usm_v(l)%wghf_eb_av(1:surf_usm_v(l)%ns)Â ) |
---|
1337 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%wghf_eb_av =Â 0.0_wp |
---|
1338 | Â Â Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1339 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1340 | |
---|
1341 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_wghf_window'Â ) |
---|
1342 | !--Â Â Â Â Â Â Â Â Â array of heat flux from window ground (wall, roof, land) |
---|
1343 |           IF ( .NOT. ALLOCATED(surf_usm_h%wghf_eb_window_av) ) THEN |
---|
1344 | Â Â Â Â Â Â Â Â Â Â Â Â ALLOCATE(Â surf_usm_h%wghf_eb_window_av(1:surf_usm_h%ns)Â ) |
---|
1345 | Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%wghf_eb_window_av =Â 0.0_wp |
---|
1346 | Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1347 |           DO l = 0, 3 |
---|
1348 |             IF ( .NOT. ALLOCATED(surf_usm_v(l)%wghf_eb_window_av) ) THEN |
---|
1349 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â ALLOCATE(Â surf_usm_v(l)%wghf_eb_window_av(1:surf_usm_v(l)%ns)Â ) |
---|
1350 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%wghf_eb_window_av =Â 0.0_wp |
---|
1351 | Â Â Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1352 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1353 | |
---|
1354 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_wghf_green'Â ) |
---|
1355 | !--Â Â Â Â Â Â Â Â Â array of heat flux from green ground (wall, roof, land) |
---|
1356 |           IF ( .NOT. ALLOCATED(surf_usm_h%wghf_eb_green_av) ) THEN |
---|
1357 | Â Â Â Â Â Â Â Â Â Â Â Â ALLOCATE(Â surf_usm_h%wghf_eb_green_av(1:surf_usm_h%ns)Â ) |
---|
1358 | Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%wghf_eb_green_av =Â 0.0_wp |
---|
1359 | Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1360 |           DO l = 0, 3 |
---|
1361 |             IF ( .NOT. ALLOCATED(surf_usm_v(l)%wghf_eb_green_av) ) THEN |
---|
1362 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â ALLOCATE(Â surf_usm_v(l)%wghf_eb_green_av(1:surf_usm_v(l)%ns)Â ) |
---|
1363 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%wghf_eb_green_av =Â 0.0_wp |
---|
1364 | Â Â Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1365 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1366 | |
---|
1367 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_iwghf'Â ) |
---|
1368 | !--Â Â Â Â Â Â Â Â Â array of heat flux from indoor ground (wall, roof, land) |
---|
1369 |           IF ( .NOT. ALLOCATED(surf_usm_h%iwghf_eb_av) ) THEN |
---|
1370 | Â Â Â Â Â Â Â Â Â Â Â Â ALLOCATE(Â surf_usm_h%iwghf_eb_av(1:surf_usm_h%ns)Â ) |
---|
1371 | Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%iwghf_eb_av =Â 0.0_wp |
---|
1372 | Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1373 |           DO l = 0, 3 |
---|
1374 |             IF ( .NOT. ALLOCATED(surf_usm_v(l)%iwghf_eb_av) ) THEN |
---|
1375 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â ALLOCATE(Â surf_usm_v(l)%iwghf_eb_av(1:surf_usm_v(l)%ns)Â ) |
---|
1376 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%iwghf_eb_av =Â 0.0_wp |
---|
1377 | Â Â Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1378 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1379 | |
---|
1380 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_iwghf_window'Â ) |
---|
1381 | !--Â Â Â Â Â Â Â Â Â array of heat flux from indoor window ground (wall, roof, land) |
---|
1382 |           IF ( .NOT. ALLOCATED(surf_usm_h%iwghf_eb_window_av) ) THEN |
---|
1383 | Â Â Â Â Â Â Â Â Â Â Â Â ALLOCATE(Â surf_usm_h%iwghf_eb_window_av(1:surf_usm_h%ns)Â ) |
---|
1384 | Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%iwghf_eb_window_av =Â 0.0_wp |
---|
1385 | Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1386 |           DO l = 0, 3 |
---|
1387 |             IF ( .NOT. ALLOCATED(surf_usm_v(l)%iwghf_eb_window_av) ) THEN |
---|
1388 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â ALLOCATE(Â surf_usm_v(l)%iwghf_eb_window_av(1:surf_usm_v(l)%ns)Â ) |
---|
1389 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%iwghf_eb_window_av =Â 0.0_wp |
---|
1390 | Â Â Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1391 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1392 | Â Â Â Â Â Â Â Â Â Â |
---|
1393 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_t_surf'Â ) |
---|
1394 | !--Â Â Â Â Â Â Â Â Â surface temperature for surfaces |
---|
1395 |           IF ( .NOT. ALLOCATED(surf_usm_h%t_surf_av) ) THEN |
---|
1396 | Â Â Â Â Â Â Â Â Â Â Â Â ALLOCATE(Â surf_usm_h%t_surf_av(1:surf_usm_h%ns)Â ) |
---|
1397 | Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%t_surf_av =Â 0.0_wp |
---|
1398 | Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1399 |           DO l = 0, 3 |
---|
1400 |             IF ( .NOT. ALLOCATED(surf_usm_v(l)%t_surf_av) ) THEN |
---|
1401 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â ALLOCATE(Â surf_usm_v(l)%t_surf_av(1:surf_usm_v(l)%ns)Â ) |
---|
1402 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%t_surf_av =Â 0.0_wp |
---|
1403 | Â Â Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1404 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1405 | |
---|
1406 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_t_surf_window'Â ) |
---|
1407 | !--Â Â Â Â Â Â Â Â Â surface temperature for window surfaces |
---|
1408 |           IF ( .NOT. ALLOCATED(surf_usm_h%t_surf_window_av) ) THEN |
---|
1409 | Â Â Â Â Â Â Â Â Â Â Â Â ALLOCATE(Â surf_usm_h%t_surf_window_av(1:surf_usm_h%ns)Â ) |
---|
1410 | Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%t_surf_window_av =Â 0.0_wp |
---|
1411 | Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1412 |           DO l = 0, 3 |
---|
1413 |             IF ( .NOT. ALLOCATED(surf_usm_v(l)%t_surf_window_av) ) THEN |
---|
1414 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â ALLOCATE(Â surf_usm_v(l)%t_surf_window_av(1:surf_usm_v(l)%ns)Â ) |
---|
1415 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%t_surf_window_av =Â 0.0_wp |
---|
1416 | Â Â Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1417 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1418 | Â Â Â Â Â Â Â Â Â Â |
---|
1419 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_t_surf_green'Â ) |
---|
1420 | !--Â Â Â Â Â Â Â Â Â surface temperature for green surfaces |
---|
1421 |           IF ( .NOT. ALLOCATED(surf_usm_h%t_surf_green_av) ) THEN |
---|
1422 | Â Â Â Â Â Â Â Â Â Â Â Â ALLOCATE(Â surf_usm_h%t_surf_green_av(1:surf_usm_h%ns)Â ) |
---|
1423 | Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%t_surf_green_av =Â 0.0_wp |
---|
1424 | Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1425 |           DO l = 0, 3 |
---|
1426 |             IF ( .NOT. ALLOCATED(surf_usm_v(l)%t_surf_green_av) ) THEN |
---|
1427 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â ALLOCATE(Â surf_usm_v(l)%t_surf_green_av(1:surf_usm_v(l)%ns)Â ) |
---|
1428 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%t_surf_green_av =Â 0.0_wp |
---|
1429 | Â Â Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1430 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1431 | Â Â Â Â Â Â Â Â |
---|
1432 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_t_surf_10cm'Â ) |
---|
1433 | !--Â Â Â Â Â Â Â Â Â near surface temperature for whole surfaces |
---|
1434 |           IF ( .NOT. ALLOCATED(surf_usm_h%t_surf_10cm_av) ) THEN |
---|
1435 | Â Â Â Â Â Â Â Â Â Â Â Â ALLOCATE(Â surf_usm_h%t_surf_10cm_av(1:surf_usm_h%ns)Â ) |
---|
1436 | Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%t_surf_10cm_av =Â 0.0_wp |
---|
1437 | Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1438 |           DO l = 0, 3 |
---|
1439 |             IF ( .NOT. ALLOCATED(surf_usm_v(l)%t_surf_10cm_av) ) THEN |
---|
1440 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â ALLOCATE(Â surf_usm_v(l)%t_surf_10cm_av(1:surf_usm_v(l)%ns)Â ) |
---|
1441 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%t_surf_10cm_av =Â 0.0_wp |
---|
1442 | Â Â Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1443 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1444 | |
---|
1445 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_t_wall'Â ) |
---|
1446 | !--Â Â Â Â Â Â Â Â Â wall temperature for iwl layer of walls and land |
---|
1447 |           IF ( .NOT. ALLOCATED(surf_usm_h%t_wall_av) ) THEN |
---|
1448 | Â Â Â Â Â Â Â Â Â Â Â Â ALLOCATE(Â surf_usm_h%t_wall_av(nzb_wall:nzt_wall,1:surf_usm_h%ns)Â ) |
---|
1449 | Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%t_wall_av =Â 0.0_wp |
---|
1450 | Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1451 |           DO l = 0, 3 |
---|
1452 |             IF ( .NOT. ALLOCATED(surf_usm_v(l)%t_wall_av) ) THEN |
---|
1453 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â ALLOCATE(Â surf_usm_v(l)%t_wall_av(nzb_wall:nzt_wall,1:surf_usm_v(l)%ns)Â ) |
---|
1454 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%t_wall_av =Â 0.0_wp |
---|
1455 | Â Â Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1456 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1457 | |
---|
1458 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_t_window'Â ) |
---|
1459 | !--Â Â Â Â Â Â Â Â Â window temperature for iwl layer of walls and land |
---|
1460 |           IF ( .NOT. ALLOCATED(surf_usm_h%t_window_av) ) THEN |
---|
1461 | Â Â Â Â Â Â Â Â Â Â Â Â ALLOCATE(Â surf_usm_h%t_window_av(nzb_wall:nzt_wall,1:surf_usm_h%ns)Â ) |
---|
1462 | Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%t_window_av =Â 0.0_wp |
---|
1463 | Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1464 |           DO l = 0, 3 |
---|
1465 |             IF ( .NOT. ALLOCATED(surf_usm_v(l)%t_window_av) ) THEN |
---|
1466 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â ALLOCATE(Â surf_usm_v(l)%t_window_av(nzb_wall:nzt_wall,1:surf_usm_v(l)%ns)Â ) |
---|
1467 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%t_window_av =Â 0.0_wp |
---|
1468 | Â Â Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1469 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1470 | |
---|
1471 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_t_green'Â ) |
---|
1472 | !--Â Â Â Â Â Â Â Â Â green temperature for iwl layer of walls and land |
---|
1473 |           IF ( .NOT. ALLOCATED(surf_usm_h%t_green_av) ) THEN |
---|
1474 | Â Â Â Â Â Â Â Â Â Â Â Â ALLOCATE(Â surf_usm_h%t_green_av(nzb_wall:nzt_wall,1:surf_usm_h%ns)Â ) |
---|
1475 | Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%t_green_av =Â 0.0_wp |
---|
1476 | Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1477 |           DO l = 0, 3 |
---|
1478 |             IF ( .NOT. ALLOCATED(surf_usm_v(l)%t_green_av) ) THEN |
---|
1479 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â ALLOCATE(Â surf_usm_v(l)%t_green_av(nzb_wall:nzt_wall,1:surf_usm_v(l)%ns)Â ) |
---|
1480 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%t_green_av =Â 0.0_wp |
---|
1481 | Â Â Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1482 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1483 | |
---|
1484 | Â Â Â Â Â Â Â Â CASE DEFAULT |
---|
1485 | Â Â Â Â Â Â Â Â Â Â CONTINUE |
---|
1486 | |
---|
1487 | Â Â Â Â Â Â END SELECT |
---|
1488 | |
---|
1489 | Â Â Â Â ELSEIF (Â mode ==Â 'sum'Â )Â THEN |
---|
1490 | Â Â Â Â Â Â |
---|
1491 | Â Â Â Â Â Â SELECT CASEÂ (Â TRIM(Â var )Â ) |
---|
1492 | Â Â Â Â Â Â Â Â |
---|
1493 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_rad_net'Â ) |
---|
1494 | !--Â Â Â Â Â Â Â Â Â array of complete radiation balance |
---|
1495 |           DO m = 1, surf_usm_h%ns |
---|
1496 | Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%rad_net_av(m)Â =Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
1497 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%rad_net_av(m)Â +Â Â Â Â Â Â & |
---|
1498 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%rad_net_l(m) |
---|
1499 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1500 |           DO l = 0, 3 |
---|
1501 |             DO m = 1, surf_usm_v(l)%ns |
---|
1502 | Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%rad_net_av(m)Â =Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
1503 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%rad_net_av(m)Â +Â Â Â Â & |
---|
1504 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%rad_net_l(m) |
---|
1505 | Â Â Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1506 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1507 | Â Â Â Â Â Â Â Â Â Â |
---|
1508 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_rad_insw'Â ) |
---|
1509 | !--Â Â Â Â Â Â Â Â Â array of sw radiation falling to surface after i-th reflection |
---|
1510 |           DO l = startenergy, endenergy |
---|
1511 | Â Â Â Â Â Â Â Â Â Â Â Â IFÂ (Â surfl(id,l)Â ==Â ids )Â THEN |
---|
1512 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â surfinsw_av(l)Â =Â surfinsw_av(l)Â +Â surfinsw(l) |
---|
1513 | Â Â Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1514 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1515 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â |
---|
1516 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_rad_inlw'Â ) |
---|
1517 | !--Â Â Â Â Â Â Â Â Â array of lw radiation falling to surface after i-th reflection |
---|
1518 |           DO l = startenergy, endenergy |
---|
1519 | Â Â Â Â Â Â Â Â Â Â Â Â IFÂ (Â surfl(id,l)Â ==Â ids )Â THEN |
---|
1520 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â surfinlw_av(l)Â =Â surfinlw_av(l)Â +Â surfinlw(l) |
---|
1521 | Â Â Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1522 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1523 | Â Â Â Â Â Â Â Â Â Â |
---|
1524 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_rad_inswdir'Â ) |
---|
1525 | !--Â Â Â Â Â Â Â Â Â array of direct sw radiation falling to surface from sun |
---|
1526 |           DO l = startenergy, endenergy |
---|
1527 | Â Â Â Â Â Â Â Â Â Â Â Â IFÂ (Â surfl(id,l)Â ==Â ids )Â THEN |
---|
1528 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â surfinswdir_av(l)Â =Â surfinswdir_av(l)Â +Â surfinswdir(l) |
---|
1529 | Â Â Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1530 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1531 | Â Â Â Â Â Â Â Â Â Â |
---|
1532 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_rad_inswdif'Â ) |
---|
1533 | !--Â Â Â Â Â Â Â Â Â array of difusion sw radiation falling to surface from sky and borders of the domain |
---|
1534 |           DO l = startenergy, endenergy |
---|
1535 | Â Â Â Â Â Â Â Â Â Â Â Â IFÂ (Â surfl(id,l)Â ==Â ids )Â THEN |
---|
1536 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â surfinswdif_av(l)Â =Â surfinswdif_av(l)Â +Â surfinswdif(l) |
---|
1537 | Â Â Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1538 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1539 | Â Â Â Â Â Â Â Â Â Â |
---|
1540 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_rad_inswref'Â ) |
---|
1541 | !--Â Â Â Â Â Â Â Â Â array of sw radiation falling to surface from reflections |
---|
1542 |           DO l = startenergy, endenergy |
---|
1543 | Â Â Â Â Â Â Â Â Â Â Â Â IFÂ (Â surfl(id,l)Â ==Â ids )Â THEN |
---|
1544 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â surfinswref_av(l)Â =Â surfinswref_av(l)Â +Â surfinsw(l)Â -Â & |
---|
1545 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surfinswdir(l)Â -Â surfinswdif(l) |
---|
1546 | Â Â Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1547 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1548 | |
---|
1549 | Â Â Â Â Â Â Â Â Â Â |
---|
1550 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_rad_inlwdif'Â ) |
---|
1551 | !--Â Â Â Â Â Â Â Â Â array of sw radiation falling to surface after i-th reflection |
---|
1552 |           DO l = startenergy, endenergy |
---|
1553 | Â Â Â Â Â Â Â Â Â Â Â Â IFÂ (Â surfl(id,l)Â ==Â ids )Â THEN |
---|
1554 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â surfinswref_av(l)Â =Â surfinswref_av(l)Â +Â surfinsw(l)Â -Â & |
---|
1555 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surfinswdir(l)Â -Â surfinswdif(l) |
---|
1556 | Â Â Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1557 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1558 | !           |
---|
1559 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_rad_inlwref'Â ) |
---|
1560 | !--Â Â Â Â Â Â Â Â Â array of lw radiation falling to surface from reflections |
---|
1561 |           DO l = startenergy, endenergy |
---|
1562 | Â Â Â Â Â Â Â Â Â Â Â Â IFÂ (Â surfl(id,l)Â ==Â ids )Â THEN |
---|
1563 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â surfinlwdif_av(l)Â =Â surfinlwdif_av(l)Â +Â surfinlwdif(l) |
---|
1564 | Â Â Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1565 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1566 | Â Â Â Â Â Â Â Â Â Â |
---|
1567 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_rad_outsw'Â ) |
---|
1568 | !--Â Â Â Â Â Â Â Â Â array of sw radiation emitted from surface after i-th reflection |
---|
1569 |           DO l = startenergy, endenergy |
---|
1570 | Â Â Â Â Â Â Â Â Â Â Â Â IFÂ (Â surfl(id,l)Â ==Â ids )Â THEN |
---|
1571 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â surfinlwref_av(l)Â =Â surfinlwref_av(l)Â +Â & |
---|
1572 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surfinlw(l)Â -Â surfinlwdif(l) |
---|
1573 | Â Â Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1574 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1575 | Â Â Â Â Â Â Â Â Â Â |
---|
1576 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_rad_outlw'Â ) |
---|
1577 | !--Â Â Â Â Â Â Â Â Â array of lw radiation emitted from surface after i-th reflection |
---|
1578 |           DO l = startenergy, endenergy |
---|
1579 | Â Â Â Â Â Â Â Â Â Â Â Â IFÂ (Â surfl(id,l)Â ==Â ids )Â THEN |
---|
1580 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â surfoutsw_av(l)Â =Â surfoutsw_av(l)Â +Â surfoutsw(l) |
---|
1581 | Â Â Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1582 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1583 | Â Â Â Â Â Â Â Â Â Â |
---|
1584 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_rad_ressw'Â ) |
---|
1585 | !--Â Â Â Â Â Â Â Â Â array of residua of sw radiation absorbed in surface after last reflection |
---|
1586 |           DO l = startenergy, endenergy |
---|
1587 | Â Â Â Â Â Â Â Â Â Â Â Â IFÂ (Â surfl(id,l)Â ==Â ids )Â THEN |
---|
1588 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â surfoutlw_av(l)Â =Â surfoutlw_av(l)Â +Â surfoutlw(l) |
---|
1589 | Â Â Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1590 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1591 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â |
---|
1592 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_rad_reslw'Â ) |
---|
1593 | !--Â Â Â Â Â Â Â Â Â array of residua of lw radiation absorbed in surface after last reflection |
---|
1594 |           DO l = startenergy, endenergy |
---|
1595 | Â Â Â Â Â Â Â Â Â Â Â Â IFÂ (Â surfl(id,l)Â ==Â ids )Â THEN |
---|
1596 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â surfins_av(l)Â =Â surfins_av(l)Â +Â surfins(l) |
---|
1597 | Â Â Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1598 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1599 | Â Â Â Â Â Â Â Â Â Â |
---|
1600 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_rad_hf'Â ) |
---|
1601 | !--Â Â Â Â Â Â Â Â Â array of heat flux from radiation for surfaces after i-th reflection |
---|
1602 |           DO m = 1, surf_usm_h%ns |
---|
1603 | Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%surfhf_av(m)Â =Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
1604 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%surfhf_av(m)Â +Â Â Â Â Â Â & |
---|
1605 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%surfhf(m) |
---|
1606 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1607 |           DO l = 0, 3 |
---|
1608 |             DO m = 1, surf_usm_v(l)%ns |
---|
1609 | Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%surfhf_av(m)Â =Â Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
1610 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%surfhf_av(m)Â +Â Â Â Â Â & |
---|
1611 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%surfhf(m) |
---|
1612 | Â Â Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1613 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1614 | Â Â Â Â Â Â Â Â Â Â |
---|
1615 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_wshf'Â ) |
---|
1616 | !--Â Â Â Â Â Â Â Â Â array of sensible heat flux from surfaces (land, roof, wall) |
---|
1617 |           DO m = 1, surf_usm_h%ns |
---|
1618 | Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%wshf_eb_av(m)Â =Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
1619 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%wshf_eb_av(m)Â +Â Â Â Â Â Â & |
---|
1620 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%wshf_eb(m) |
---|
1621 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1622 |           DO l = 0, 3 |
---|
1623 |             DO m = 1, surf_usm_v(l)%ns |
---|
1624 | Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%wshf_eb_av(m)Â =Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
1625 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%wshf_eb_av(m)Â +Â Â Â Â & |
---|
1626 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%wshf_eb(m) |
---|
1627 | Â Â Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1628 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1629 | Â Â Â Â Â Â Â Â Â Â |
---|
1630 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_wghf'Â ) |
---|
1631 | !--Â Â Â Â Â Â Â Â Â array of heat flux from ground (wall, roof, land) |
---|
1632 |           DO m = 1, surf_usm_h%ns |
---|
1633 | Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%wghf_eb_av(m)Â =Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
1634 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%wghf_eb_av(m)Â +Â Â Â Â Â Â & |
---|
1635 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%wghf_eb(m) |
---|
1636 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1637 |           DO l = 0, 3 |
---|
1638 |             DO m = 1, surf_usm_v(l)%ns |
---|
1639 | Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%wghf_eb_av(m)Â =Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
1640 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%wghf_eb_av(m)Â +Â Â Â Â & |
---|
1641 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%wghf_eb(m) |
---|
1642 | Â Â Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1643 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1644 | Â Â Â Â Â Â Â Â Â Â |
---|
1645 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_wghf_window'Â ) |
---|
1646 | !--Â Â Â Â Â Â Â Â Â array of heat flux from window ground (wall, roof, land) |
---|
1647 |           DO m = 1, surf_usm_h%ns |
---|
1648 | Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%wghf_eb_window_av(m)Â =Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
1649 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%wghf_eb_window_av(m)Â +Â Â Â Â Â Â & |
---|
1650 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%wghf_eb_window(m) |
---|
1651 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1652 |           DO l = 0, 3 |
---|
1653 |             DO m = 1, surf_usm_v(l)%ns |
---|
1654 | Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%wghf_eb_window_av(m)Â =Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
1655 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%wghf_eb_window_av(m)Â +Â Â Â Â & |
---|
1656 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%wghf_eb_window(m) |
---|
1657 | Â Â Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1658 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1659 | |
---|
1660 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_wghf_green'Â ) |
---|
1661 | !--Â Â Â Â Â Â Â Â Â array of heat flux from green ground (wall, roof, land) |
---|
1662 |           DO m = 1, surf_usm_h%ns |
---|
1663 | Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%wghf_eb_green_av(m)Â =Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
1664 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%wghf_eb_green_av(m)Â +Â Â Â Â Â Â & |
---|
1665 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%wghf_eb_green(m) |
---|
1666 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1667 |           DO l = 0, 3 |
---|
1668 |             DO m = 1, surf_usm_v(l)%ns |
---|
1669 | Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%wghf_eb_green_av(m)Â =Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
1670 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%wghf_eb_green_av(m)Â +Â Â Â Â & |
---|
1671 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%wghf_eb_green(m) |
---|
1672 | Â Â Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1673 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1674 | Â Â Â Â Â Â Â Â Â Â |
---|
1675 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_iwghf'Â ) |
---|
1676 | !--Â Â Â Â Â Â Â Â Â array of heat flux from indoor ground (wall, roof, land) |
---|
1677 |           DO m = 1, surf_usm_h%ns |
---|
1678 | Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%iwghf_eb_av(m)Â =Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
1679 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%iwghf_eb_av(m)Â +Â Â Â Â Â Â & |
---|
1680 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%iwghf_eb(m) |
---|
1681 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1682 |           DO l = 0, 3 |
---|
1683 |             DO m = 1, surf_usm_v(l)%ns |
---|
1684 | Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%iwghf_eb_av(m)Â =Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
1685 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%iwghf_eb_av(m)Â +Â Â Â Â & |
---|
1686 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%iwghf_eb(m) |
---|
1687 | Â Â Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1688 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1689 | Â Â Â Â Â Â Â Â Â Â |
---|
1690 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_iwghf_window'Â ) |
---|
1691 | !--Â Â Â Â Â Â Â Â Â array of heat flux from indoor window ground (wall, roof, land) |
---|
1692 |           DO m = 1, surf_usm_h%ns |
---|
1693 | Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%iwghf_eb_window_av(m)Â =Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
1694 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%iwghf_eb_window_av(m)Â +Â Â Â Â Â Â & |
---|
1695 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%iwghf_eb_window(m) |
---|
1696 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1697 |           DO l = 0, 3 |
---|
1698 |             DO m = 1, surf_usm_v(l)%ns |
---|
1699 | Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%iwghf_eb_window_av(m)Â =Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
1700 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%iwghf_eb_window_av(m)Â +Â Â Â Â & |
---|
1701 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%iwghf_eb_window(m) |
---|
1702 | Â Â Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1703 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1704 | Â Â Â Â Â Â Â Â Â Â |
---|
1705 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_t_surf'Â ) |
---|
1706 | !--Â Â Â Â Â Â Â Â Â surface temperature for surfaces |
---|
1707 |           DO m = 1, surf_usm_h%ns |
---|
1708 | Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%t_surf_av(m)Â =Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â &Â |
---|
1709 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%t_surf_av(m)Â +Â Â Â Â Â Â & |
---|
1710 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â t_surf_h(m) |
---|
1711 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1712 |           DO l = 0, 3 |
---|
1713 |             DO m = 1, surf_usm_v(l)%ns |
---|
1714 | Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%t_surf_av(m)Â =Â Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
1715 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%t_surf_av(m)Â +Â Â Â Â Â & |
---|
1716 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â t_surf_v(l)%t(m) |
---|
1717 | Â Â Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1718 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1719 | Â Â Â Â Â Â Â Â Â Â |
---|
1720 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_t_surf_window'Â ) |
---|
1721 | !--Â Â Â Â Â Â Â Â Â surface temperature for window surfaces |
---|
1722 |           DO m = 1, surf_usm_h%ns |
---|
1723 | Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%t_surf_window_av(m)Â =Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â &Â |
---|
1724 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%t_surf_window_av(m)Â +Â Â Â Â Â Â & |
---|
1725 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â t_surf_window_h(m) |
---|
1726 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1727 |           DO l = 0, 3 |
---|
1728 |             DO m = 1, surf_usm_v(l)%ns |
---|
1729 | Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%t_surf_window_av(m)Â =Â Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
1730 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%t_surf_window_av(m)Â +Â Â Â Â Â & |
---|
1731 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â t_surf_window_v(l)%t(m) |
---|
1732 | Â Â Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1733 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1734 | Â Â Â Â Â Â Â Â Â Â |
---|
1735 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_t_surf_green'Â ) |
---|
1736 | !--Â Â Â Â Â Â Â Â Â surface temperature for green surfaces |
---|
1737 |           DO m = 1, surf_usm_h%ns |
---|
1738 | Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%t_surf_green_av(m)Â =Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â &Â |
---|
1739 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%t_surf_green_av(m)Â +Â Â Â Â Â Â & |
---|
1740 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â t_surf_green_h(m) |
---|
1741 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1742 |           DO l = 0, 3 |
---|
1743 |             DO m = 1, surf_usm_v(l)%ns |
---|
1744 | Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%t_surf_green_av(m)Â =Â Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
1745 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%t_surf_green_av(m)Â +Â Â Â Â Â & |
---|
1746 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â t_surf_green_v(l)%t(m) |
---|
1747 | Â Â Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1748 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1749 | Â Â Â Â Â Â Â Â |
---|
1750 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_t_surf_10cm'Â ) |
---|
1751 | !--Â Â Â Â Â Â Â Â Â near surface temperature for whole surfaces |
---|
1752 |           DO m = 1, surf_usm_h%ns |
---|
1753 | Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%t_surf_10cm_av(m)Â =Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â &Â |
---|
1754 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%t_surf_10cm_av(m)Â +Â Â Â Â Â Â & |
---|
1755 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â t_surf_10cm_h(m) |
---|
1756 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1757 |           DO l = 0, 3 |
---|
1758 |             DO m = 1, surf_usm_v(l)%ns |
---|
1759 | Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%t_surf_10cm_av(m)Â =Â Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
1760 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%t_surf_10cm_av(m)Â +Â Â Â Â Â & |
---|
1761 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â t_surf_10cm_v(l)%t(m) |
---|
1762 | Â Â Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1763 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1764 | |
---|
1765 | Â Â Â Â Â Â Â Â Â Â |
---|
1766 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_t_wall'Â ) |
---|
1767 | !--         wall temperature for iwl layer of walls and land |
---|
1768 |           DO m = 1, surf_usm_h%ns |
---|
1769 | Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%t_wall_av(iwl,m)Â =Â Â Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
1770 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%t_wall_av(iwl,m)Â +Â Â Â Â & |
---|
1771 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â t_wall_h(iwl,m) |
---|
1772 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1773 |           DO l = 0, 3 |
---|
1774 |             DO m = 1, surf_usm_v(l)%ns |
---|
1775 | Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%t_wall_av(iwl,m)Â =Â Â Â Â Â Â Â Â Â Â Â & |
---|
1776 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%t_wall_av(iwl,m)Â +Â Â Â & |
---|
1777 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â t_wall_v(l)%t(iwl,m) |
---|
1778 | Â Â Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1779 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1780 | Â Â Â Â Â Â Â Â Â Â |
---|
1781 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_t_window'Â ) |
---|
1782 | !--         window temperature for iwl layer of walls and land |
---|
1783 |           DO m = 1, surf_usm_h%ns |
---|
1784 | Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%t_window_av(iwl,m)Â =Â Â Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
1785 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%t_window_av(iwl,m)Â +Â Â Â Â & |
---|
1786 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â t_window_h(iwl,m) |
---|
1787 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1788 |           DO l = 0, 3 |
---|
1789 |             DO m = 1, surf_usm_v(l)%ns |
---|
1790 | Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%t_window_av(iwl,m)Â =Â Â Â Â Â Â Â Â Â Â Â & |
---|
1791 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%t_window_av(iwl,m)Â +Â Â Â & |
---|
1792 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â t_window_v(l)%t(iwl,m) |
---|
1793 | Â Â Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1794 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1795 | |
---|
1796 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_t_green'Â ) |
---|
1797 | !--         green temperature for iwl layer of walls and land |
---|
1798 |           DO m = 1, surf_usm_h%ns |
---|
1799 | Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%t_green_av(iwl,m)Â =Â Â Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
1800 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%t_green_av(iwl,m)Â +Â Â Â Â & |
---|
1801 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â t_green_h(iwl,m) |
---|
1802 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1803 |           DO l = 0, 3 |
---|
1804 |             DO m = 1, surf_usm_v(l)%ns |
---|
1805 | Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%t_green_av(iwl,m)Â =Â Â Â Â Â Â Â Â Â Â Â & |
---|
1806 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%t_green_av(iwl,m)Â +Â Â Â & |
---|
1807 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â t_green_v(l)%t(iwl,m) |
---|
1808 | Â Â Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1809 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1810 | |
---|
1811 | Â Â Â Â Â Â Â Â CASE DEFAULT |
---|
1812 | Â Â Â Â Â Â Â Â Â Â CONTINUE |
---|
1813 | |
---|
1814 | Â Â Â Â Â Â END SELECT |
---|
1815 | |
---|
1816 | Â Â Â Â ELSEIF (Â mode ==Â 'average'Â )Â THEN |
---|
1817 | Â Â Â Â Â Â |
---|
1818 | Â Â Â Â Â Â SELECT CASEÂ (Â TRIM(Â var )Â ) |
---|
1819 | Â Â Â Â Â Â Â Â |
---|
1820 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_rad_net'Â ) |
---|
1821 | !--Â Â Â Â Â Â Â Â Â array of complete radiation balance |
---|
1822 |           DO m = 1, surf_usm_h%ns |
---|
1823 | Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%rad_net_av(m)Â =Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
1824 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%rad_net_av(m)Â /Â Â Â Â Â Â & |
---|
1825 |                      REAL( average_count_3d, kind=wp ) |
---|
1826 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1827 |           DO l = 0, 3 |
---|
1828 |             DO m = 1, surf_usm_v(l)%ns |
---|
1829 | Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%rad_net_av(m)Â =Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
1830 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%rad_net_av(m)Â /Â Â Â Â & |
---|
1831 |                      REAL( average_count_3d, kind=wp ) |
---|
1832 | Â Â Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1833 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1834 | Â Â Â Â Â Â Â Â Â Â |
---|
1835 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_rad_insw'Â ) |
---|
1836 | !--Â Â Â Â Â Â Â Â Â array of sw radiation falling to surface after i-th reflection |
---|
1837 |           DO l = startenergy, endenergy |
---|
1838 | Â Â Â Â Â Â Â Â Â Â Â Â IFÂ (Â surfl(id,l)Â ==Â ids )Â THEN |
---|
1839 |               surfinsw_av(l) = surfinsw_av(l) / REAL( average_count_3d, kind=wp ) |
---|
1840 | Â Â Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1841 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1842 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â |
---|
1843 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_rad_inlw'Â ) |
---|
1844 | !--Â Â Â Â Â Â Â Â Â array of lw radiation falling to surface after i-th reflection |
---|
1845 |           DO l = startenergy, endenergy |
---|
1846 | Â Â Â Â Â Â Â Â Â Â Â Â IFÂ (Â surfl(id,l)Â ==Â ids )Â THEN |
---|
1847 |               surfinlw_av(l) = surfinlw_av(l) / REAL( average_count_3d, kind=wp ) |
---|
1848 | Â Â Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1849 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1850 | Â Â Â Â Â Â Â Â Â Â |
---|
1851 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_rad_inswdir'Â ) |
---|
1852 | !--Â Â Â Â Â Â Â Â Â array of direct sw radiation falling to surface from sun |
---|
1853 |           DO l = startenergy, endenergy |
---|
1854 | Â Â Â Â Â Â Â Â Â Â Â Â IFÂ (Â surfl(id,l)Â ==Â ids )Â THEN |
---|
1855 |               surfinswdir_av(l) = surfinswdir_av(l) / REAL( average_count_3d, kind=wp ) |
---|
1856 | Â Â Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1857 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1858 | Â Â Â Â Â Â Â Â Â Â |
---|
1859 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_rad_inswdif'Â ) |
---|
1860 | !--Â Â Â Â Â Â Â Â Â array of difusion sw radiation falling to surface from sky and borders of the domain |
---|
1861 |           DO l = startenergy, endenergy |
---|
1862 | Â Â Â Â Â Â Â Â Â Â Â Â IFÂ (Â surfl(id,l)Â ==Â ids )Â THEN |
---|
1863 |               surfinswdif_av(l) = surfinswdif_av(l) / REAL( average_count_3d, kind=wp ) |
---|
1864 | Â Â Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1865 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1866 | Â Â Â Â Â Â Â Â Â Â |
---|
1867 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_rad_inswref'Â ) |
---|
1868 | !--Â Â Â Â Â Â Â Â Â array of sw radiation falling to surface from reflections |
---|
1869 |           DO l = startenergy, endenergy |
---|
1870 | Â Â Â Â Â Â Â Â Â Â Â Â IFÂ (Â surfl(id,l)Â ==Â ids )Â THEN |
---|
1871 |               surfinswref_av(l) = surfinswref_av(l) / REAL( average_count_3d, kind=wp ) |
---|
1872 | Â Â Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1873 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1874 | Â Â Â Â Â Â Â Â Â Â |
---|
1875 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_rad_inlwdif'Â ) |
---|
1876 | !--Â Â Â Â Â Â Â Â Â array of sw radiation falling to surface after i-th reflection |
---|
1877 |           DO l = startenergy, endenergy |
---|
1878 | Â Â Â Â Â Â Â Â Â Â Â Â IFÂ (Â surfl(id,l)Â ==Â ids )Â THEN |
---|
1879 |               surfinlwdif_av(l) = surfinlwdif_av(l) / REAL( average_count_3d, kind=wp ) |
---|
1880 | Â Â Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1881 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1882 | Â Â Â Â Â Â Â Â Â Â |
---|
1883 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_rad_inlwref'Â ) |
---|
1884 | !--Â Â Â Â Â Â Â Â Â array of lw radiation falling to surface from reflections |
---|
1885 |           DO l = startenergy, endenergy |
---|
1886 | Â Â Â Â Â Â Â Â Â Â Â Â IFÂ (Â surfl(id,l)Â ==Â ids )Â THEN |
---|
1887 |               surfinlwref_av(l) = surfinlwref_av(l) / REAL( average_count_3d, kind=wp ) |
---|
1888 | Â Â Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1889 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1890 | Â Â Â Â Â Â Â Â Â Â |
---|
1891 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_rad_outsw'Â ) |
---|
1892 | !--Â Â Â Â Â Â Â Â Â array of sw radiation emitted from surface after i-th reflection |
---|
1893 |           DO l = startenergy, endenergy |
---|
1894 | Â Â Â Â Â Â Â Â Â Â Â Â IFÂ (Â surfl(id,l)Â ==Â ids )Â THEN |
---|
1895 |               surfoutsw_av(l) = surfoutsw_av(l) / REAL( average_count_3d, kind=wp ) |
---|
1896 | Â Â Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1897 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1898 | Â Â Â Â Â Â Â Â Â Â |
---|
1899 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_rad_outlw'Â ) |
---|
1900 | !--Â Â Â Â Â Â Â Â Â array of lw radiation emitted from surface after i-th reflection |
---|
1901 |           DO l = startenergy, endenergy |
---|
1902 | Â Â Â Â Â Â Â Â Â Â Â Â IFÂ (Â surfl(id,l)Â ==Â ids )Â THEN |
---|
1903 |               surfoutlw_av(l) = surfoutlw_av(l) / REAL( average_count_3d, kind=wp ) |
---|
1904 | Â Â Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1905 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1906 | Â Â Â Â Â Â Â Â Â Â |
---|
1907 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_rad_ressw'Â ) |
---|
1908 | !--Â Â Â Â Â Â Â Â Â array of residua of sw radiation absorbed in surface after last reflection |
---|
1909 |           DO l = startenergy, endenergy |
---|
1910 | Â Â Â Â Â Â Â Â Â Â Â Â IFÂ (Â surfl(id,l)Â ==Â ids )Â THEN |
---|
1911 |               surfins_av(l) = surfins_av(l) / REAL( average_count_3d, kind=wp ) |
---|
1912 | Â Â Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1913 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1914 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â |
---|
1915 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_rad_reslw'Â ) |
---|
1916 | !--Â Â Â Â Â Â Â Â Â array of residua of lw radiation absorbed in surface after last reflection |
---|
1917 |           DO l = startenergy, endenergy |
---|
1918 | Â Â Â Â Â Â Â Â Â Â Â Â IFÂ (Â surfl(id,l)Â ==Â ids )Â THEN |
---|
1919 |               surfinl_av(l) = surfinl_av(l) / REAL( average_count_3d, kind=wp ) |
---|
1920 | Â Â Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
1921 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1922 | Â Â Â Â Â Â Â Â Â Â |
---|
1923 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_rad_hf'Â ) |
---|
1924 | !--Â Â Â Â Â Â Â Â Â array of heat flux from radiation for surfaces after i-th reflection |
---|
1925 |           DO m = 1, surf_usm_h%ns |
---|
1926 | Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%surfhf_av(m)Â =Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
1927 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%surfhf_av(m)Â /Â Â Â Â Â Â & |
---|
1928 |                      REAL( average_count_3d, kind=wp ) |
---|
1929 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1930 |           DO l = 0, 3 |
---|
1931 |             DO m = 1, surf_usm_v(l)%ns |
---|
1932 | Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%surfhf_av(m)Â =Â Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
1933 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%surfhf_av(m)Â /Â Â Â Â Â & |
---|
1934 |                      REAL( average_count_3d, kind=wp ) |
---|
1935 | Â Â Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1936 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1937 | Â Â Â Â Â Â Â Â Â Â |
---|
1938 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_wshf'Â ) |
---|
1939 | !--Â Â Â Â Â Â Â Â Â array of sensible heat flux from surfaces (land, roof, wall) |
---|
1940 |           DO m = 1, surf_usm_h%ns |
---|
1941 | Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%wshf_eb_av(m)Â =Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
1942 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%wshf_eb_av(m)Â /Â Â Â Â Â Â & |
---|
1943 |                      REAL( average_count_3d, kind=wp ) |
---|
1944 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1945 |           DO l = 0, 3 |
---|
1946 |             DO m = 1, surf_usm_v(l)%ns |
---|
1947 | Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%wshf_eb_av(m)Â =Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
1948 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%wshf_eb_av(m)Â /Â Â Â Â & |
---|
1949 |                      REAL( average_count_3d, kind=wp ) |
---|
1950 | Â Â Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1951 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1952 | Â Â Â Â Â Â Â Â Â Â |
---|
1953 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_wghf'Â ) |
---|
1954 | !--Â Â Â Â Â Â Â Â Â array of heat flux from ground (wall, roof, land) |
---|
1955 |           DO m = 1, surf_usm_h%ns |
---|
1956 | Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%wghf_eb_av(m)Â =Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
1957 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%wghf_eb_av(m)Â /Â Â Â Â Â Â & |
---|
1958 |                      REAL( average_count_3d, kind=wp ) |
---|
1959 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1960 |           DO l = 0, 3 |
---|
1961 |             DO m = 1, surf_usm_v(l)%ns |
---|
1962 | Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%wghf_eb_av(m)Â =Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
1963 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%wghf_eb_av(m)Â /Â Â Â Â & |
---|
1964 |                      REAL( average_count_3d, kind=wp ) |
---|
1965 | Â Â Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1966 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1967 | Â Â Â Â Â Â Â Â Â Â |
---|
1968 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_wghf_window'Â ) |
---|
1969 | !--Â Â Â Â Â Â Â Â Â array of heat flux from window ground (wall, roof, land) |
---|
1970 |           DO m = 1, surf_usm_h%ns |
---|
1971 | Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%wghf_eb_window_av(m)Â =Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
1972 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%wghf_eb_window_av(m)Â /Â Â Â Â Â Â & |
---|
1973 |                      REAL( average_count_3d, kind=wp ) |
---|
1974 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1975 |           DO l = 0, 3 |
---|
1976 |             DO m = 1, surf_usm_v(l)%ns |
---|
1977 | Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%wghf_eb_window_av(m)Â =Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
1978 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%wghf_eb_window_av(m)Â /Â Â Â Â & |
---|
1979 |                      REAL( average_count_3d, kind=wp ) |
---|
1980 | Â Â Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1981 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1982 | |
---|
1983 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_wghf_green'Â ) |
---|
1984 | !--Â Â Â Â Â Â Â Â Â array of heat flux from green ground (wall, roof, land) |
---|
1985 |           DO m = 1, surf_usm_h%ns |
---|
1986 | Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%wghf_eb_green_av(m)Â =Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
1987 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%wghf_eb_green_av(m)Â /Â Â Â Â Â Â & |
---|
1988 |                      REAL( average_count_3d, kind=wp ) |
---|
1989 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1990 |           DO l = 0, 3 |
---|
1991 |             DO m = 1, surf_usm_v(l)%ns |
---|
1992 | Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%wghf_eb_green_av(m)Â =Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
1993 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%wghf_eb_green_av(m)Â /Â Â Â Â & |
---|
1994 |                      REAL( average_count_3d, kind=wp ) |
---|
1995 | Â Â Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1996 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
1997 | |
---|
1998 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_iwghf'Â ) |
---|
1999 | !--Â Â Â Â Â Â Â Â Â array of heat flux from indoor ground (wall, roof, land) |
---|
2000 |           DO m = 1, surf_usm_h%ns |
---|
2001 | Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%iwghf_eb_av(m)Â =Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
2002 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%iwghf_eb_av(m)Â /Â Â Â Â Â Â & |
---|
2003 |                      REAL( average_count_3d, kind=wp ) |
---|
2004 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2005 |           DO l = 0, 3 |
---|
2006 |             DO m = 1, surf_usm_v(l)%ns |
---|
2007 | Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%iwghf_eb_av(m)Â =Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
2008 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%iwghf_eb_av(m)Â /Â Â Â Â & |
---|
2009 |                      REAL( average_count_3d, kind=wp ) |
---|
2010 | Â Â Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2011 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2012 | Â Â Â Â Â Â Â Â Â Â |
---|
2013 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_iwghf_window'Â ) |
---|
2014 | !--Â Â Â Â Â Â Â Â Â array of heat flux from indoor window ground (wall, roof, land) |
---|
2015 |           DO m = 1, surf_usm_h%ns |
---|
2016 | Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%iwghf_eb_window_av(m)Â =Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
2017 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%iwghf_eb_window_av(m)Â /Â Â Â Â Â Â & |
---|
2018 |                      REAL( average_count_3d, kind=wp ) |
---|
2019 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2020 |           DO l = 0, 3 |
---|
2021 |             DO m = 1, surf_usm_v(l)%ns |
---|
2022 | Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%iwghf_eb_window_av(m)Â =Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
2023 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%iwghf_eb_window_av(m)Â /Â Â Â Â & |
---|
2024 |                      REAL( average_count_3d, kind=wp ) |
---|
2025 | Â Â Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2026 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2027 | Â Â Â Â Â Â Â Â Â Â |
---|
2028 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_t_surf'Â ) |
---|
2029 | !--Â Â Â Â Â Â Â Â Â surface temperature for surfaces |
---|
2030 |           DO m = 1, surf_usm_h%ns |
---|
2031 | Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%t_surf_av(m)Â =Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â &Â |
---|
2032 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%t_surf_av(m)Â /Â Â Â Â Â Â & |
---|
2033 |                      REAL( average_count_3d, kind=wp ) |
---|
2034 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2035 |           DO l = 0, 3 |
---|
2036 |             DO m = 1, surf_usm_v(l)%ns |
---|
2037 | Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%t_surf_av(m)Â =Â Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
2038 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%t_surf_av(m)Â /Â Â Â Â Â & |
---|
2039 |                      REAL( average_count_3d, kind=wp ) |
---|
2040 | Â Â Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2041 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2042 | Â Â Â Â Â Â Â Â Â Â |
---|
2043 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_t_surf_window'Â ) |
---|
2044 | !--Â Â Â Â Â Â Â Â Â surface temperature for window surfaces |
---|
2045 |           DO m = 1, surf_usm_h%ns |
---|
2046 | Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%t_surf_window_av(m)Â =Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â &Â |
---|
2047 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%t_surf_window_av(m)Â /Â Â Â Â Â Â & |
---|
2048 |                      REAL( average_count_3d, kind=wp ) |
---|
2049 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2050 |           DO l = 0, 3 |
---|
2051 |             DO m = 1, surf_usm_v(l)%ns |
---|
2052 | Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%t_surf_window_av(m)Â =Â Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
2053 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%t_surf_window_av(m)Â /Â Â Â Â Â & |
---|
2054 |                      REAL( average_count_3d, kind=wp ) |
---|
2055 | Â Â Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2056 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2057 | Â Â Â Â Â Â Â Â Â Â |
---|
2058 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_t_surf_green'Â ) |
---|
2059 | !--Â Â Â Â Â Â Â Â Â surface temperature for green surfaces |
---|
2060 |           DO m = 1, surf_usm_h%ns |
---|
2061 | Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%t_surf_green_av(m)Â =Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â &Â |
---|
2062 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%t_surf_green_av(m)Â /Â Â Â Â Â Â & |
---|
2063 |                      REAL( average_count_3d, kind=wp ) |
---|
2064 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2065 |           DO l = 0, 3 |
---|
2066 |             DO m = 1, surf_usm_v(l)%ns |
---|
2067 | Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%t_surf_green_av(m)Â =Â Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
2068 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%t_surf_green_av(m)Â /Â Â Â Â Â & |
---|
2069 |                      REAL( average_count_3d, kind=wp ) |
---|
2070 | Â Â Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2071 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2072 | Â Â Â Â Â Â Â Â Â Â |
---|
2073 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_t_surf_10cm'Â ) |
---|
2074 | !--Â Â Â Â Â Â Â Â Â near surface temperature for whole surfaces |
---|
2075 |           DO m = 1, surf_usm_h%ns |
---|
2076 | Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%t_surf_10cm_av(m)Â =Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â &Â |
---|
2077 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%t_surf_10cm_av(m)Â /Â Â Â Â Â Â & |
---|
2078 |                      REAL( average_count_3d, kind=wp ) |
---|
2079 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2080 |           DO l = 0, 3 |
---|
2081 |             DO m = 1, surf_usm_v(l)%ns |
---|
2082 | Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%t_surf_10cm_av(m)Â =Â Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
2083 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%t_surf_10cm_av(m)Â /Â Â Â Â Â & |
---|
2084 |                      REAL( average_count_3d, kind=wp ) |
---|
2085 | Â Â Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2086 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2087 | Â Â Â Â Â Â Â Â Â Â |
---|
2088 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_t_wall'Â ) |
---|
2089 | !--         wall temperature for iwl layer of walls and land |
---|
2090 |           DO m = 1, surf_usm_h%ns |
---|
2091 | Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%t_wall_av(iwl,m)Â =Â Â Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
2092 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%t_wall_av(iwl,m)Â /Â Â Â Â & |
---|
2093 |                      REAL( average_count_3d, kind=wp ) |
---|
2094 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2095 |           DO l = 0, 3 |
---|
2096 |             DO m = 1, surf_usm_v(l)%ns |
---|
2097 | Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%t_wall_av(iwl,m)Â =Â Â Â Â Â Â Â Â Â Â Â & |
---|
2098 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%t_wall_av(iwl,m)Â /Â Â Â & |
---|
2099 |                      REAL( average_count_3d, kind=wp ) |
---|
2100 | Â Â Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2101 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2102 | |
---|
2103 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_t_window'Â ) |
---|
2104 | !--         window temperature for iwl layer of walls and land |
---|
2105 |           DO m = 1, surf_usm_h%ns |
---|
2106 | Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%t_window_av(iwl,m)Â =Â Â Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
2107 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%t_window_av(iwl,m)Â /Â Â Â Â & |
---|
2108 |                      REAL( average_count_3d, kind=wp ) |
---|
2109 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2110 |           DO l = 0, 3 |
---|
2111 |             DO m = 1, surf_usm_v(l)%ns |
---|
2112 | Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%t_window_av(iwl,m)Â =Â Â Â Â Â Â Â Â Â Â Â & |
---|
2113 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%t_window_av(iwl,m)Â /Â Â Â & |
---|
2114 |                      REAL( average_count_3d, kind=wp ) |
---|
2115 | Â Â Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2116 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2117 | |
---|
2118 | Â Â Â Â Â Â Â Â CASEÂ (Â 'usm_t_green'Â ) |
---|
2119 | !--         green temperature for iwl layer of walls and land |
---|
2120 |           DO m = 1, surf_usm_h%ns |
---|
2121 | Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%t_green_av(iwl,m)Â =Â Â Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
2122 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%t_green_av(iwl,m)Â /Â Â Â Â & |
---|
2123 |                      REAL( average_count_3d, kind=wp ) |
---|
2124 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2125 |           DO l = 0, 3 |
---|
2126 |             DO m = 1, surf_usm_v(l)%ns |
---|
2127 | Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%t_green_av(iwl,m)Â =Â Â Â Â Â Â Â Â Â Â Â & |
---|
2128 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%t_green_av(iwl,m)Â /Â Â Â & |
---|
2129 |                      REAL( average_count_3d, kind=wp ) |
---|
2130 | Â Â Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2131 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2132 | |
---|
2133 | |
---|
2134 | Â Â Â Â Â Â END SELECT |
---|
2135 | |
---|
2136 | Â Â Â Â ENDIF |
---|
2137 | |
---|
2138 | Â Â END SUBROUTINE usm_average_3d_data |
---|
2139 | |
---|
2140 | |
---|
2141 | |
---|
2142 | !------------------------------------------------------------------------------! |
---|
2143 | ! Description: |
---|
2144 | ! ------------ |
---|
2145 | !> Set internal Neumann boundary condition at outer soil grid points |
---|
2146 | !> for temperature and humidity. |
---|
2147 | !------------------------------------------------------------------------------! |
---|
2148 | Â SUBROUTINE usm_boundary_condition |
---|
2149 | Â |
---|
2150 | Â Â IMPLICIT NONE |
---|
2151 | |
---|
2152 |   INTEGER(iwp) :: i   !< grid index x-direction |
---|
2153 |   INTEGER(iwp) :: ioff  !< offset index x-direction indicating location of soil grid point |
---|
2154 |   INTEGER(iwp) :: j   !< grid index y-direction |
---|
2155 |   INTEGER(iwp) :: joff  !< offset index x-direction indicating location of soil grid point |
---|
2156 |   INTEGER(iwp) :: k   !< grid index z-direction |
---|
2157 |   INTEGER(iwp) :: koff  !< offset index x-direction indicating location of soil grid point |
---|
2158 |   INTEGER(iwp) :: l   !< running index surface-orientation |
---|
2159 |   INTEGER(iwp) :: m   !< running index surface elements |
---|
2160 | |
---|
2161 | Â Â koff =Â surf_usm_h%koff |
---|
2162 |   DO m = 1, surf_usm_h%ns |
---|
2163 | Â Â Â Â i =Â surf_usm_h%i(m) |
---|
2164 | Â Â Â Â j =Â surf_usm_h%j(m) |
---|
2165 | Â Â Â Â k =Â surf_usm_h%k(m) |
---|
2166 | Â Â Â Â pt(k+koff,j,i)Â =Â pt(k,j,i) |
---|
2167 | Â Â ENDDO |
---|
2168 | |
---|
2169 |   DO l = 0, 3 |
---|
2170 | Â Â Â Â ioff =Â surf_usm_v(l)%ioff |
---|
2171 | Â Â Â Â joff =Â surf_usm_v(l)%joff |
---|
2172 |     DO m = 1, surf_usm_v(l)%ns |
---|
2173 | Â Â Â Â Â i =Â surf_usm_v(l)%i(m) |
---|
2174 | Â Â Â Â Â j =Â surf_usm_v(l)%j(m) |
---|
2175 | Â Â Â Â Â k =Â surf_usm_v(l)%k(m) |
---|
2176 | Â Â Â Â Â pt(k,j+joff,i+ioff)Â =Â pt(k,j,i) |
---|
2177 | Â Â Â Â ENDDO |
---|
2178 | Â Â ENDDO |
---|
2179 | |
---|
2180 | Â END SUBROUTINE usm_boundary_condition |
---|
2181 | |
---|
2182 | |
---|
2183 | !------------------------------------------------------------------------------! |
---|
2184 | ! |
---|
2185 | ! Description: |
---|
2186 | ! ------------ |
---|
2187 | !> Subroutine checks variables and assigns units. |
---|
2188 | !> It is called out from subroutine check_parameters. |
---|
2189 | !------------------------------------------------------------------------------! |
---|
2190 |   SUBROUTINE usm_check_data_output( variable, unit ) |
---|
2191 | Â Â Â Â |
---|
2192 | Â Â Â Â IMPLICIT NONE |
---|
2193 | Â |
---|
2194 | Â Â Â Â CHARACTERÂ (len=*),INTENT(IN)Â Â ::Â variable !: |
---|
2195 |     CHARACTER (len=*),INTENT(OUT)  :: unit   !: |
---|
2196 | Â Â Â Â |
---|
2197 | Â Â Â Â CHARACTERÂ (len=varnamelength)Â Â ::Â var |
---|
2198 | |
---|
2199 | Â Â Â Â var =Â TRIM(variable) |
---|
2200 |     IF ( var(1:12) == 'usm_rad_net_' .OR. var(1:13) == 'usm_rad_insw_' .OR.    & |
---|
2201 |        var(1:13) == 'usm_rad_inlw_' .OR. var(1:16) == 'usm_rad_inswdir_' .OR.  & |
---|
2202 |        var(1:16) == 'usm_rad_inswdif_' .OR. var(1:16) == 'usm_rad_inswref_' .OR. & |
---|
2203 |        var(1:16) == 'usm_rad_inlwdif_' .OR. var(1:16) == 'usm_rad_inlwref_' .OR. & |
---|
2204 |        var(1:14) == 'usm_rad_outsw_' .OR. var(1:14) == 'usm_rad_outlw_' .OR.   & |
---|
2205 |        var(1:14) == 'usm_rad_ressw_' .OR. var(1:14) == 'usm_rad_reslw_' .OR.   & |
---|
2206 |        var(1:11) == 'usm_rad_hf_' .OR.                       & |
---|
2207 |        var(1:9) == 'usm_wshf_' .OR. var(1:9) == 'usm_wghf_' .OR.         & |
---|
2208 |        var(1:16) == 'usm_wghf_window_' .OR. var(1:15) == 'usm_wghf_green_' .OR.   & |
---|
2209 |        var(1:10) == 'usm_iwghf_' .OR. var(1:17) == 'usm_iwghf_window_' ) THEN |
---|
2210 | Â Â Â Â Â Â unit =Â 'W/m2' |
---|
2211 |     ELSE IF ( var(1:10) == 'usm_t_surf' .OR. var(1:10) == 'usm_t_wall' .OR.     & |
---|
2212 |          var(1:12) == 'usm_t_window' .OR. var(1:17) == 'usm_t_surf_window' .OR. & |
---|
2213 |          var(1:16) == 'usm_t_surf_green' .OR.                  & |
---|
2214 |          var(1:11) == 'usm_t_green' .OR.                     & |
---|
2215 | Â Â Â Â Â Â Â Â Â var(1:15)Â ==Â 'usm_t_surf_10cm')Â THEN |
---|
2216 | Â Â Â Â Â Â unit =Â 'K' |
---|
2217 |     ELSE IF ( var(1:9) == 'usm_surfz' .OR. var(1:7) == 'usm_svf' .OR.       & |
---|
2218 |          var(1:7) == 'usm_dif' .OR. var(1:11) == 'usm_surfcat' .OR.      & |
---|
2219 |          var(1:11) == 'usm_surfalb' .OR. var(1:12) == 'usm_surfemis') THEN |
---|
2220 | Â Â Â Â Â Â unit =Â '1' |
---|
2221 | Â Â Â Â ELSE |
---|
2222 | Â Â Â Â Â Â unit =Â 'illegal' |
---|
2223 | Â Â Â Â ENDIF |
---|
2224 | |
---|
2225 | Â Â END SUBROUTINE usm_check_data_output |
---|
2226 | |
---|
2227 | |
---|
2228 | !------------------------------------------------------------------------------! |
---|
2229 | ! Description: |
---|
2230 | ! ------------ |
---|
2231 | !> Check parameters routine for urban surface model |
---|
2232 | !------------------------------------------------------------------------------! |
---|
2233 | Â Â SUBROUTINE usm_check_parameters |
---|
2234 | Â Â |
---|
2235 |     USE control_parameters,                         & |
---|
2236 |       ONLY: bc_pt_b, bc_q_b, constant_flux_layer, large_scale_forcing,  & |
---|
2237 |          lsf_surf, topography |
---|
2238 | |
---|
2239 | ! |
---|
2240 | !--Â Â Dirichlet boundary conditions are required as the surface fluxes are |
---|
2241 | !--Â Â calculated from the temperature/humidity gradients in the urban surface |
---|
2242 | !--Â Â model |
---|
2243 |     IF ( bc_pt_b == 'neumann'  .OR.  bc_q_b == 'neumann' ) THEN |
---|
2244 | Â Â Â Â Â message_string =Â 'urban surface model requires setting of '//Â Â Â Â & |
---|
2245 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â 'bc_pt_b = "dirichlet" and '//Â Â Â Â Â Â Â Â Â Â Â & |
---|
2246 |               'bc_q_b = "dirichlet"' |
---|
2247 |      CALL message( 'check_parameters', 'PA0590', 1, 2, 0, 6, 0 ) |
---|
2248 | Â Â Â Â ENDIF |
---|
2249 | |
---|
2250 |     IF ( .NOT. constant_flux_layer ) THEN |
---|
2251 | Â Â Â Â Â message_string =Â 'urban surface model requires '//Â Â Â Â Â Â Â Â Â Â & |
---|
2252 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â 'constant_flux_layer = .T.' |
---|
2253 |      CALL message( 'check_parameters', 'PA0591', 1, 2, 0, 6, 0 ) |
---|
2254 | Â Â Â Â ENDIF |
---|
2255 | !    |
---|
2256 | !--Â Â Surface forcing has to be disabled for LSF in case of enabled |
---|
2257 | !--Â Â urban surface module |
---|
2258 | Â Â Â Â IFÂ (Â large_scale_forcing )Â THEN |
---|
2259 | Â Â Â Â Â lsf_surf =Â .FALSE. |
---|
2260 | Â Â Â Â ENDIF |
---|
2261 | ! |
---|
2262 | !--Â Â Topography |
---|
2263 | Â Â Â Â IFÂ (Â topography ==Â 'flat'Â )Â THEN |
---|
2264 | Â Â Â Â Â message_string =Â 'topography /= "flat" is required '//Â Â Â Â Â Â Â Â & |
---|
2265 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â 'when using the urban surface model' |
---|
2266 |      CALL message( 'check_parameters', 'PA0592', 1, 2, 0, 6, 0 ) |
---|
2267 | Â Â Â Â ENDIF |
---|
2268 | |
---|
2269 | Â Â END SUBROUTINE usm_check_parameters |
---|
2270 | |
---|
2271 | |
---|
2272 | !------------------------------------------------------------------------------! |
---|
2273 | ! |
---|
2274 | ! Description: |
---|
2275 | ! ------------ |
---|
2276 | !> Output of the 3D-arrays in netCDF and/or AVS format |
---|
2277 | !> for variables of urban_surface model. |
---|
2278 | !> It resorts the urban surface module output quantities from surf style |
---|
2279 | !> indexing into temporary 3D array with indices (i,j,k). |
---|
2280 | !> It is called from subroutine data_output_3d. |
---|
2281 | !------------------------------------------------------------------------------! |
---|
2282 |   SUBROUTINE usm_data_output_3d( av, variable, found, local_pf, nzb_do, nzt_do ) |
---|
2283 | Â Â Â Â |
---|
2284 | Â Â Â Â IMPLICIT NONE |
---|
2285 | |
---|
2286 |     INTEGER(iwp), INTENT(IN)    :: av    !< |
---|
2287 |     CHARACTER (len=*), INTENT(IN) :: variable !< |
---|
2288 |     INTEGER(iwp), INTENT(IN)    :: nzb_do  !< lower limit of the data output (usually 0) |
---|
2289 |     INTEGER(iwp), INTENT(IN)    :: nzt_do  !< vertical upper limit of the data output (usually nz_do3d) |
---|
2290 |     LOGICAL, INTENT(OUT)      :: found   !< |
---|
2291 |     REAL(sp), DIMENSION(nxl:nxr,nys:nyn,nzb_do:nzt_do) :: local_pf  !< sp - it has to correspond to module data_output_3d |
---|
2292 |     REAL(wp), DIMENSION(nzb:nzt+1,nys:nyn,nxl:nxr)   :: temp_pf  !< temp array for urban surface output procedure |
---|
2293 | Â Â Â Â |
---|
2294 |     CHARACTER (len=varnamelength)             :: var, surfid |
---|
2295 |     INTEGER(iwp), PARAMETER                :: nd = 5 |
---|
2296 |     CHARACTER(len=6), DIMENSION(0:nd-1), PARAMETER     :: dirname = (/ '_roof ', '_south', '_north', '_west ', '_east ' /) |
---|
2297 |     INTEGER(iwp), DIMENSION(0:nd-1), PARAMETER       :: dirint = (/ iup_u, isouth_u, inorth_u, iwest_u, ieast_u /) |
---|
2298 |     INTEGER(iwp), DIMENSION(0:nd-1)            :: dirstart |
---|
2299 |     INTEGER(iwp), DIMENSION(0:nd-1)            :: dirend |
---|
2300 | Â Â Â Â INTEGER(iwp)Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â ::Â ids,isurf,isvf,isurfs,isurflt |
---|
2301 |     INTEGER(iwp)                      :: is,js,ks,i,j,k,iwl,istat, l, m |
---|
2302 |     INTEGER(iwp)                      :: k_topo  !< topography top index |
---|
2303 | |
---|
2304 |     dirstart = (/ startland, startwall, startwall, startwall, startwall /) |
---|
2305 |     dirend = (/ endland, endwall, endwall, endwall, endwall /) |
---|
2306 | |
---|
2307 | Â Â Â Â found =Â .TRUE. |
---|
2308 | Â Â Â Â temp_pf =Â -1._wp |
---|
2309 | Â Â Â Â |
---|
2310 | Â Â Â Â ids =Â -1 |
---|
2311 | Â Â Â Â var =Â TRIM(variable) |
---|
2312 |     DO i = 0, nd-1 |
---|
2313 | Â Â Â Â Â Â k =Â len(TRIM(var)) |
---|
2314 | Â Â Â Â Â Â j =Â len(TRIM(dirname(i))) |
---|
2315 | Â Â Â Â Â Â IFÂ (Â var(k-j+1:k)Â ==Â dirname(i)Â )Â THEN |
---|
2316 | Â Â Â Â Â Â Â Â ids =Â i |
---|
2317 | Â Â Â Â Â Â Â Â var =Â var(:k-j) |
---|
2318 | Â Â Â Â Â Â Â Â EXIT |
---|
2319 | Â Â Â Â Â Â ENDIF |
---|
2320 | Â Â Â Â ENDDO |
---|
2321 | Â Â Â Â IFÂ (Â ids ==Â -1Â )Â THEN |
---|
2322 | Â Â Â Â Â Â var =Â TRIM(variable) |
---|
2323 | Â Â Â Â ENDIF |
---|
2324 |     IF ( var(1:11) == 'usm_t_wall_' .AND. len(TRIM(var)) >= 12 ) THEN |
---|
2325 | !--Â Â Â Â Â wall layers |
---|
2326 |       READ(var(12:12), '(I1)', iostat=istat ) iwl |
---|
2327 |       IF ( istat == 0 .AND. iwl >= nzb_wall .AND. iwl <= nzt_wall ) THEN |
---|
2328 | Â Â Â Â Â Â Â Â var =Â var(1:10) |
---|
2329 | Â Â Â Â Â Â ENDIF |
---|
2330 | Â Â Â Â ENDIF |
---|
2331 |     IF ( var(1:13) == 'usm_t_window_' .AND. len(TRIM(var)) >= 14 ) THEN |
---|
2332 | !--Â Â Â Â Â window layers |
---|
2333 |       READ(var(14:14), '(I1)', iostat=istat ) iwl |
---|
2334 |       IF ( istat == 0 .AND. iwl >= nzb_wall .AND. iwl <= nzt_wall ) THEN |
---|
2335 | Â Â Â Â Â Â Â Â var =Â var(1:12) |
---|
2336 | Â Â Â Â Â Â ENDIF |
---|
2337 | Â Â Â Â ENDIF |
---|
2338 |     IF ( var(1:12) == 'usm_t_green_' .AND. len(TRIM(var)) >= 13 ) THEN |
---|
2339 | !--Â Â Â Â Â green layers |
---|
2340 |       READ(var(13:13), '(I1)', iostat=istat ) iwl |
---|
2341 |       IF ( istat == 0 .AND. iwl >= nzb_wall .AND. iwl <= nzt_wall ) THEN |
---|
2342 | Â Â Â Â Â Â Â Â var =Â var(1:11) |
---|
2343 | Â Â Â Â Â Â ENDIF |
---|
2344 | Â Â Â Â ENDIF |
---|
2345 |     IF ( (var(1:8) == 'usm_svf_' .OR. var(1:8) == 'usm_dif_') .AND. len(TRIM(var)) >= 13 ) THEN |
---|
2346 | !--Â Â Â Â Â svf values to particular surface |
---|
2347 | Â Â Â Â Â Â surfid =Â var(9:) |
---|
2348 | Â Â Â Â Â Â i =Â index(surfid,'_') |
---|
2349 | Â Â Â Â Â Â j =Â index(surfid(i+1:),'_') |
---|
2350 |       READ(surfid(1:i-1),*, iostat=istat ) is |
---|
2351 | Â Â Â Â Â Â IFÂ (Â istat ==Â 0Â )Â THEN |
---|
2352 |         READ(surfid(i+1:i+j-1),*, iostat=istat ) js |
---|
2353 | Â Â Â Â Â Â ENDIF |
---|
2354 | Â Â Â Â Â Â IFÂ (Â istat ==Â 0Â )Â THEN |
---|
2355 |         READ(surfid(i+j+1:),*, iostat=istat ) ks |
---|
2356 | Â Â Â Â Â Â ENDIF |
---|
2357 | Â Â Â Â Â Â IFÂ (Â istat ==Â 0Â )Â THEN |
---|
2358 | Â Â Â Â Â Â Â Â var =Â var(1:7) |
---|
2359 | Â Â Â Â Â Â ENDIF |
---|
2360 | Â Â Â Â ENDIF |
---|
2361 | Â Â Â Â |
---|
2362 | Â Â Â Â SELECT CASEÂ (Â TRIM(var)Â ) |
---|
2363 | |
---|
2364 | Â Â Â Â Â CASEÂ (Â 'usm_surfz'Â ) |
---|
2365 | !--Â Â Â Â Â Â array of lw radiation falling to local surface after i-th reflection |
---|
2366 |        DO m = 1, surf_usm_h%ns |
---|
2367 | Â Â Â Â Â Â Â Â Â i =Â surf_usm_h%i(m) |
---|
2368 | Â Â Â Â Â Â Â Â Â j =Â surf_usm_h%j(m) |
---|
2369 | Â Â Â Â Â Â Â Â Â k =Â surf_usm_h%k(m) |
---|
2370 |          temp_pf(0,j,i) = MAX( temp_pf(0,j,i), REAL( k, kind=wp) ) |
---|
2371 | Â Â Â Â Â Â Â ENDDO |
---|
2372 |        DO l = 0, 3 |
---|
2373 |          DO m = 1, surf_usm_v(l)%ns |
---|
2374 | Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_v(l)%i(m) |
---|
2375 | Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_v(l)%j(m) |
---|
2376 | Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_v(l)%k(m) |
---|
2377 |           temp_pf(0,j,i) = MAX( temp_pf(0,j,i), REAL( k, kind=wp) + 1.0_wp ) |
---|
2378 | Â Â Â Â Â Â Â Â Â ENDDO |
---|
2379 | Â Â Â Â Â Â Â ENDDO |
---|
2380 | |
---|
2381 | Â Â Â Â Â CASEÂ (Â 'usm_surfcat'Â ) |
---|
2382 | !--Â Â Â Â Â Â surface category |
---|
2383 |        DO m = 1, surf_usm_h%ns |
---|
2384 | Â Â Â Â Â Â Â Â Â i =Â surf_usm_h%i(m) |
---|
2385 | Â Â Â Â Â Â Â Â Â j =Â surf_usm_h%j(m) |
---|
2386 | Â Â Â Â Â Â Â Â Â k =Â surf_usm_h%k(m) |
---|
2387 | Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_h%surface_types(m) |
---|
2388 | Â Â Â Â Â Â Â ENDDO |
---|
2389 |        DO l = 0, 3 |
---|
2390 |          DO m = 1, surf_usm_v(l)%ns |
---|
2391 | Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_v(l)%i(m) |
---|
2392 | Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_v(l)%j(m) |
---|
2393 | Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_v(l)%k(m) |
---|
2394 | Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_v(l)%surface_types(m) |
---|
2395 | Â Â Â Â Â Â Â Â Â ENDDO |
---|
2396 | Â Â Â Â Â Â Â ENDDO |
---|
2397 | Â Â Â Â Â Â Â |
---|
2398 | Â Â Â Â Â CASEÂ (Â 'usm_surfalb'Â ) |
---|
2399 | !--Â Â Â Â Â Â surface albedo, weighted average |
---|
2400 |        DO m = 1, surf_usm_h%ns |
---|
2401 | Â Â Â Â Â Â Â Â Â i =Â surf_usm_h%i(m) |
---|
2402 | Â Â Â Â Â Â Â Â Â j =Â surf_usm_h%j(m) |
---|
2403 | Â Â Â Â Â Â Â Â Â k =Â surf_usm_h%k(m) |
---|
2404 | Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_h%frac(0,m)Â Â Â *Â Â Â Â Â Â Â Â Â Â & |
---|
2405 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%albedo(0,m)Â +Â Â Â Â Â Â Â Â Â Â Â & |
---|
2406 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%frac(1,m)Â Â Â *Â Â Â Â Â Â Â Â Â Â & |
---|
2407 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%albedo(1,m)Â +Â Â Â Â Â Â Â Â Â Â Â & |
---|
2408 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%frac(2,m)Â Â Â *Â Â Â Â Â Â Â Â Â Â & |
---|
2409 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%albedo(2,m) |
---|
2410 | Â Â Â Â Â Â Â ENDDO |
---|
2411 |        DO l = 0, 3 |
---|
2412 |          DO m = 1, surf_usm_v(l)%ns |
---|
2413 | Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_v(l)%i(m) |
---|
2414 | Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_v(l)%j(m) |
---|
2415 | Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_v(l)%k(m) |
---|
2416 | Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_v(l)%frac(0,m)Â Â Â *Â Â Â Â Â Â Â & |
---|
2417 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%albedo(0,m)Â +Â Â Â Â Â Â Â Â & |
---|
2418 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%frac(1,m)Â Â Â *Â Â Â Â Â Â Â & |
---|
2419 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%albedo(1,m)Â +Â Â Â Â Â Â Â Â & |
---|
2420 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%frac(2,m)Â Â Â *Â Â Â Â Â Â Â & |
---|
2421 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%albedo(2,m) |
---|
2422 | Â Â Â Â Â Â Â Â Â ENDDO |
---|
2423 | Â Â Â Â Â Â Â ENDDO |
---|
2424 | Â Â Â Â Â Â Â |
---|
2425 | Â Â Â Â Â CASEÂ (Â 'usm_surfemis'Â ) |
---|
2426 | !--Â Â Â Â Â Â surface emissivity, weighted average |
---|
2427 |        DO m = 1, surf_usm_h%ns |
---|
2428 | Â Â Â Â Â Â Â Â Â i =Â surf_usm_h%i(m) |
---|
2429 | Â Â Â Â Â Â Â Â Â j =Â surf_usm_h%j(m) |
---|
2430 | Â Â Â Â Â Â Â Â Â k =Â surf_usm_h%k(m) |
---|
2431 | Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_h%frac(0,m)Â Â Â *Â Â Â Â Â Â Â Â Â & |
---|
2432 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%emissivity(0,m)Â +Â Â Â Â Â Â Â Â & |
---|
2433 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%frac(1,m)Â Â Â *Â Â Â Â Â Â Â Â Â & |
---|
2434 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%emissivity(1,m)Â +Â Â Â Â Â Â Â Â & |
---|
2435 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%frac(2,m)Â Â Â *Â Â Â Â Â Â Â Â Â & |
---|
2436 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%emissivity(2,m) |
---|
2437 | Â Â Â Â Â Â Â ENDDO |
---|
2438 |        DO l = 0, 3 |
---|
2439 |          DO m = 1, surf_usm_v(l)%ns |
---|
2440 | Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_v(l)%i(m) |
---|
2441 | Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_v(l)%j(m) |
---|
2442 | Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_v(l)%k(m) |
---|
2443 | Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_v(l)%frac(0,m)Â Â Â Â *Â Â Â Â Â Â & |
---|
2444 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%emissivity(0,m)Â +Â Â Â Â Â Â & |
---|
2445 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%frac(1,m)Â *Â Â Â Â Â Â Â Â Â & |
---|
2446 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%emissivity(1,m)Â +Â Â Â Â Â Â & |
---|
2447 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%frac(2,m)Â Â Â *Â Â Â Â Â Â Â & |
---|
2448 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%emissivity(2,m) |
---|
2449 | Â Â Â Â Â Â Â Â Â ENDDO |
---|
2450 | Â Â Â Â Â Â Â ENDDO |
---|
2451 | |
---|
2452 | Â Â Â Â Â CASEÂ (Â 'usm_surfwintrans'Â ) |
---|
2453 | !--Â Â Â Â Â Â transmissivity window tiles |
---|
2454 |        DO m = 1, surf_usm_h%ns |
---|
2455 | Â Â Â Â Â Â Â Â Â i =Â surf_usm_h%i(m) |
---|
2456 | Â Â Â Â Â Â Â Â Â j =Â surf_usm_h%j(m) |
---|
2457 | Â Â Â Â Â Â Â Â Â k =Â surf_usm_h%k(m) |
---|
2458 | Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_h%transmissivity(m) |
---|
2459 | Â Â Â Â Â Â Â ENDDO |
---|
2460 |        DO l = 0, 3 |
---|
2461 |          DO m = 1, surf_usm_v(l)%ns |
---|
2462 | Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_v(l)%i(m) |
---|
2463 | Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_v(l)%j(m) |
---|
2464 | Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_v(l)%k(m) |
---|
2465 | Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_v(l)%transmissivity(m) |
---|
2466 | Â Â Â Â Â Â Â Â Â ENDDO |
---|
2467 | |
---|
2468 | Â Â Â Â Â Â Â ENDDO |
---|
2469 | |
---|
2470 | ! |
---|
2471 | !-- Not adjusted so far       |
---|
2472 |      CASE ( 'usm_svf', 'usm_dif' ) |
---|
2473 | !--Â Â Â Â Â Â shape view factors or iradiance factors to selected surface |
---|
2474 | Â Â Â Â Â Â Â IFÂ (Â TRIM(var)=='usm_svf'Â )Â THEN |
---|
2475 | Â Â Â Â Â Â Â Â Â k =Â 1 |
---|
2476 | Â Â Â Â Â Â Â ELSE |
---|
2477 | Â Â Â Â Â Â Â Â Â k =Â 2 |
---|
2478 | Â Â Â Â Â Â Â ENDIF |
---|
2479 |        DO isvf = 1, nsvfl |
---|
2480 |          isurflt = svfsurf(1, isvf) |
---|
2481 |          isurfs = svfsurf(2, isvf) |
---|
2482 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â |
---|
2483 |          IF ( surf(ix,isurfs) == is .AND. surf(iy,isurfs) == js .AND.    & |
---|
2484 |             surf(iz,isurfs) == ks .AND. surf(id,isurfs) == ids ) THEN |
---|
2485 | Â !--Â Â Â Â Â Â Â Â Â correct source surface |
---|
2486 | Â Â Â Â Â Â Â Â Â Â Â temp_pf(surfl(iz,isurflt),surfl(iy,isurflt),surfl(ix,isurflt))Â =Â svf(k,isvf) |
---|
2487 | Â Â Â Â Â Â Â Â Â ENDIF |
---|
2488 | Â Â Â Â Â Â Â ENDDO |
---|
2489 | |
---|
2490 | Â Â Â Â Â CASEÂ (Â 'usm_rad_net'Â ) |
---|
2491 | !--Â Â Â Â Â Â array of complete radiation balance |
---|
2492 | Â Â Â Â Â Â Â IFÂ (Â av ==Â 0Â )Â THEN |
---|
2493 |          DO m = 1, surf_usm_h%ns |
---|
2494 | Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_h%i(m) |
---|
2495 | Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_h%j(m) |
---|
2496 | Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_h%k(m) |
---|
2497 | Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_h%rad_net_l(m) |
---|
2498 | Â Â Â Â Â Â Â Â Â ENDDO |
---|
2499 |          DO l = 0, 3 |
---|
2500 |           DO m = 1, surf_usm_v(l)%ns |
---|
2501 | Â Â Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_v(l)%i(m) |
---|
2502 | Â Â Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_v(l)%j(m) |
---|
2503 | Â Â Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_v(l)%k(m) |
---|
2504 | Â Â Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_v(l)%rad_net_l(m) |
---|
2505 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2506 | Â Â Â Â Â Â Â Â Â ENDDO |
---|
2507 | Â Â Â Â Â Â Â ELSE |
---|
2508 |          DO m = 1, surf_usm_h%ns |
---|
2509 | Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_h%i(m) |
---|
2510 | Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_h%j(m) |
---|
2511 | Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_h%k(m) |
---|
2512 | Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_h%rad_net_av(m) |
---|
2513 | Â Â Â Â Â Â Â Â Â ENDDO |
---|
2514 |          DO l = 0, 3 |
---|
2515 |           DO m = 1, surf_usm_v(l)%ns |
---|
2516 | Â Â Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_v(l)%i(m) |
---|
2517 | Â Â Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_v(l)%j(m) |
---|
2518 | Â Â Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_v(l)%k(m) |
---|
2519 | Â Â Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_v(l)%rad_net_av(m) |
---|
2520 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2521 | Â Â Â Â Â Â Â Â Â ENDDO |
---|
2522 | Â Â Â Â Â Â Â ENDIF |
---|
2523 | |
---|
2524 | Â Â Â Â Â CASEÂ (Â 'usm_rad_insw'Â ) |
---|
2525 | !--Â Â Â Â Â Â array of sw radiation falling to surface after i-th reflection |
---|
2526 |        DO isurf = dirstart(ids), dirend(ids) |
---|
2527 | Â Â Â Â Â Â Â Â Â IFÂ (Â surfl(id,isurf)Â ==Â ids )Â THEN |
---|
2528 | Â Â Â Â Â Â Â Â Â Â IFÂ (Â av ==Â 0Â )Â THEN |
---|
2529 | Â Â Â Â Â Â Â Â Â Â Â temp_pf(surfl(iz,isurf),surfl(iy,isurf),surfl(ix,isurf))Â =Â surfinsw(isurf) |
---|
2530 | Â Â Â Â Â Â Â Â Â Â ELSE |
---|
2531 | Â Â Â Â Â Â Â Â Â Â Â temp_pf(surfl(iz,isurf),surfl(iy,isurf),surfl(ix,isurf))Â =Â surfinsw_av(isurf) |
---|
2532 | Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
2533 | Â Â Â Â Â Â Â Â Â ENDIF |
---|
2534 | Â Â Â Â Â Â Â ENDDO |
---|
2535 | |
---|
2536 | Â Â Â Â Â CASEÂ (Â 'usm_rad_inlw'Â ) |
---|
2537 | !--Â Â Â Â Â Â array of lw radiation falling to surface after i-th reflection |
---|
2538 |        DO isurf = dirstart(ids), dirend(ids) |
---|
2539 | Â Â Â Â Â Â Â Â Â IFÂ (Â surfl(id,isurf)Â ==Â ids )Â THEN |
---|
2540 | Â Â Â Â Â Â Â Â Â Â IFÂ (Â av ==Â 0Â )Â THEN |
---|
2541 | Â Â Â Â Â Â Â Â Â Â Â temp_pf(surfl(iz,isurf),surfl(iy,isurf),surfl(ix,isurf))Â =Â surfinlw(isurf) |
---|
2542 | Â Â Â Â Â Â Â Â Â Â ELSE |
---|
2543 | Â Â Â Â Â Â Â Â Â Â Â temp_pf(surfl(iz,isurf),surfl(iy,isurf),surfl(ix,isurf))Â =Â surfinlw_av(isurf) |
---|
2544 | Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
2545 | Â Â Â Â Â Â Â Â Â ENDIF |
---|
2546 | Â Â Â Â Â Â Â ENDDO |
---|
2547 | |
---|
2548 | Â Â Â Â Â CASEÂ (Â 'usm_rad_inswdir'Â ) |
---|
2549 | !--Â Â Â Â Â Â array of direct sw radiation falling to surface from sun |
---|
2550 |        DO isurf = dirstart(ids), dirend(ids) |
---|
2551 | Â Â Â Â Â Â Â Â Â IFÂ (Â surfl(id,isurf)Â ==Â ids )Â THEN |
---|
2552 | Â Â Â Â Â Â Â Â Â Â IFÂ (Â av ==Â 0Â )Â THEN |
---|
2553 | Â Â Â Â Â Â Â Â Â Â Â temp_pf(surfl(iz,isurf),surfl(iy,isurf),surfl(ix,isurf))Â =Â surfinswdir(isurf) |
---|
2554 | Â Â Â Â Â Â Â Â Â Â ELSE |
---|
2555 | Â Â Â Â Â Â Â Â Â Â Â temp_pf(surfl(iz,isurf),surfl(iy,isurf),surfl(ix,isurf))Â =Â surfinswdir_av(isurf) |
---|
2556 | Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
2557 | Â Â Â Â Â Â Â Â Â ENDIF |
---|
2558 | Â Â Â Â Â Â Â ENDDO |
---|
2559 | |
---|
2560 | Â Â Â Â Â CASEÂ (Â 'usm_rad_inswdif'Â ) |
---|
2561 | !--Â Â Â Â Â Â array of difusion sw radiation falling to surface from sky and borders of the domain |
---|
2562 |        DO isurf = dirstart(ids), dirend(ids) |
---|
2563 | Â Â Â Â Â Â Â Â Â IFÂ (Â surfl(id,isurf)Â ==Â ids )Â THEN |
---|
2564 | Â Â Â Â Â Â Â Â Â Â IFÂ (Â av ==Â 0Â )Â THEN |
---|
2565 | Â Â Â Â Â Â Â Â Â Â Â temp_pf(surfl(iz,isurf),surfl(iy,isurf),surfl(ix,isurf))Â =Â surfinswdif(isurf) |
---|
2566 | Â Â Â Â Â Â Â Â Â Â ELSE |
---|
2567 | Â Â Â Â Â Â Â Â Â Â Â temp_pf(surfl(iz,isurf),surfl(iy,isurf),surfl(ix,isurf))Â =Â surfinswdif_av(isurf) |
---|
2568 | Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
2569 | Â Â Â Â Â Â Â Â Â ENDIF |
---|
2570 | Â Â Â Â Â Â Â ENDDO |
---|
2571 | |
---|
2572 | Â Â Â Â Â CASEÂ (Â 'usm_rad_inswref'Â ) |
---|
2573 | !--Â Â Â Â Â Â array of sw radiation falling to surface from reflections |
---|
2574 |        DO isurf = dirstart(ids), dirend(ids) |
---|
2575 | Â Â Â Â Â Â Â Â Â IFÂ (Â surfl(id,isurf)Â ==Â ids )Â THEN |
---|
2576 | Â Â Â Â Â Â Â Â Â Â IFÂ (Â av ==Â 0Â )Â THEN |
---|
2577 | Â Â Â Â Â Â Â Â Â Â Â temp_pf(surfl(iz,isurf),surfl(iy,isurf),surfl(ix,isurf))Â =Â & |
---|
2578 | Â Â Â Â Â Â Â Â Â Â Â Â surfinsw(isurf)Â -Â surfinswdir(isurf)Â -Â surfinswdif(isurf) |
---|
2579 | Â Â Â Â Â Â Â Â Â Â ELSE |
---|
2580 | Â Â Â Â Â Â Â Â Â Â Â temp_pf(surfl(iz,isurf),surfl(iy,isurf),surfl(ix,isurf))Â =Â surfinswref_av(isurf) |
---|
2581 | Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
2582 | Â Â Â Â Â Â Â Â Â ENDIF |
---|
2583 | Â Â Â Â Â Â Â ENDDO |
---|
2584 | |
---|
2585 | Â Â Â Â Â CASEÂ (Â 'usm_rad_inlwref'Â ) |
---|
2586 | !--Â Â Â Â Â Â array of lw radiation falling to surface from reflections |
---|
2587 |        DO isurf = dirstart(ids), dirend(ids) |
---|
2588 | Â Â Â Â Â Â Â Â Â IFÂ (Â surfl(id,isurf)Â ==Â ids )Â THEN |
---|
2589 | Â Â Â Â Â Â Â Â Â Â IFÂ (Â av ==Â 0Â )Â THEN |
---|
2590 | Â Â Â Â Â Â Â Â Â Â Â temp_pf(surfl(iz,isurf),surfl(iy,isurf),surfl(ix,isurf))Â =Â surfinlw(isurf)Â -Â surfinlwdif(isurf) |
---|
2591 | Â Â Â Â Â Â Â Â Â Â ELSE |
---|
2592 | Â Â Â Â Â Â Â Â Â Â Â temp_pf(surfl(iz,isurf),surfl(iy,isurf),surfl(ix,isurf))Â =Â surfinlwref_av(isurf) |
---|
2593 | Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
2594 | Â Â Â Â Â Â Â Â Â ENDIF |
---|
2595 | Â Â Â Â Â Â Â ENDDO |
---|
2596 | |
---|
2597 | Â Â Â Â Â CASEÂ (Â 'usm_rad_outsw'Â ) |
---|
2598 | !--Â Â Â Â Â Â array of sw radiation emitted from surface after i-th reflection |
---|
2599 |        DO isurf = dirstart(ids), dirend(ids) |
---|
2600 | Â Â Â Â Â Â Â Â Â IFÂ (Â surfl(id,isurf)Â ==Â ids )Â THEN |
---|
2601 | Â Â Â Â Â Â Â Â Â Â IFÂ (Â av ==Â 0Â )Â THEN |
---|
2602 | Â Â Â Â Â Â Â Â Â Â Â temp_pf(surfl(iz,isurf),surfl(iy,isurf),surfl(ix,isurf))Â =Â surfoutsw(isurf) |
---|
2603 | Â Â Â Â Â Â Â Â Â Â ELSE |
---|
2604 | Â Â Â Â Â Â Â Â Â Â Â temp_pf(surfl(iz,isurf),surfl(iy,isurf),surfl(ix,isurf))Â =Â surfoutsw_av(isurf) |
---|
2605 | Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
2606 | Â Â Â Â Â Â Â Â Â ENDIF |
---|
2607 | Â Â Â Â Â Â Â ENDDO |
---|
2608 | |
---|
2609 | Â Â Â Â Â CASEÂ (Â 'usm_rad_outlw'Â ) |
---|
2610 | !--Â Â Â Â Â Â array of lw radiation emitted from surface after i-th reflection |
---|
2611 |        DO isurf = dirstart(ids), dirend(ids) |
---|
2612 | Â Â Â Â Â Â Â Â Â IFÂ (Â surfl(id,isurf)Â ==Â ids )Â THEN |
---|
2613 | Â Â Â Â Â Â Â Â Â Â IFÂ (Â av ==Â 0Â )Â THEN |
---|
2614 | Â Â Â Â Â Â Â Â Â Â Â temp_pf(surfl(iz,isurf),surfl(iy,isurf),surfl(ix,isurf))Â =Â surfoutlw(isurf) |
---|
2615 | Â Â Â Â Â Â Â Â Â Â ELSE |
---|
2616 | Â Â Â Â Â Â Â Â Â Â Â temp_pf(surfl(iz,isurf),surfl(iy,isurf),surfl(ix,isurf))Â =Â surfoutlw_av(isurf) |
---|
2617 | Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
2618 | Â Â Â Â Â Â Â Â Â ENDIF |
---|
2619 | Â Â Â Â Â Â Â ENDDO |
---|
2620 | |
---|
2621 | Â Â Â Â Â CASEÂ (Â 'usm_rad_ressw'Â ) |
---|
2622 | !--Â Â Â Â Â Â average of array of residua of sw radiation absorbed in surface after last reflection |
---|
2623 |        DO isurf = dirstart(ids), dirend(ids) |
---|
2624 | Â Â Â Â Â Â Â Â Â IFÂ (Â surfl(id,isurf)Â ==Â ids )Â THEN |
---|
2625 | Â Â Â Â Â Â Â Â Â Â IFÂ (Â av ==Â 0Â )Â THEN |
---|
2626 | Â Â Â Â Â Â Â Â Â Â Â temp_pf(surfl(iz,isurf),surfl(iy,isurf),surfl(ix,isurf))Â =Â surfins(isurf) |
---|
2627 | Â Â Â Â Â Â Â Â Â Â ELSE |
---|
2628 | Â Â Â Â Â Â Â Â Â Â Â temp_pf(surfl(iz,isurf),surfl(iy,isurf),surfl(ix,isurf))Â =Â surfins_av(isurf) |
---|
2629 | Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
2630 | Â Â Â Â Â Â Â Â Â ENDIF |
---|
2631 | Â Â Â Â Â Â Â ENDDO |
---|
2632 | |
---|
2633 | Â Â Â Â Â CASEÂ (Â 'usm_rad_reslw'Â ) |
---|
2634 | !--Â Â Â Â Â Â average of array of residua of lw radiation absorbed in surface after last reflection |
---|
2635 |        DO isurf = dirstart(ids), dirend(ids) |
---|
2636 | Â Â Â Â Â Â Â Â Â IFÂ (Â surfl(id,isurf)Â ==Â ids )Â THEN |
---|
2637 | Â Â Â Â Â Â Â Â Â Â IFÂ (Â av ==Â 0Â )Â THEN |
---|
2638 | Â Â Â Â Â Â Â Â Â Â Â temp_pf(surfl(iz,isurf),surfl(iy,isurf),surfl(ix,isurf))Â =Â surfinl(isurf) |
---|
2639 | Â Â Â Â Â Â Â Â Â Â ELSE |
---|
2640 | Â Â Â Â Â Â Â Â Â Â Â temp_pf(surfl(iz,isurf),surfl(iy,isurf),surfl(ix,isurf))Â =Â surfinl_av(isurf) |
---|
2641 | Â Â Â Â Â Â Â Â Â Â ENDIF |
---|
2642 | Â Â Â Â Â Â Â Â Â ENDIF |
---|
2643 | Â Â Â Â Â Â Â ENDDO |
---|
2644 | Â |
---|
2645 | Â Â Â Â Â CASEÂ (Â 'usm_rad_hf'Â ) |
---|
2646 | !--Â Â Â Â Â Â array of heat flux from radiation for surfaces after all reflections |
---|
2647 | Â Â Â Â Â Â Â IFÂ (Â av ==Â 0Â )Â THEN |
---|
2648 |          DO m = 1, surf_usm_h%ns |
---|
2649 | Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_h%i(m) |
---|
2650 | Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_h%j(m) |
---|
2651 | Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_h%k(m) |
---|
2652 | Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_h%surfhf(m) |
---|
2653 | Â Â Â Â Â Â Â Â Â ENDDO |
---|
2654 |          DO l = 0, 3 |
---|
2655 |           DO m = 1, surf_usm_v(l)%ns |
---|
2656 | Â Â Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_v(l)%i(m) |
---|
2657 | Â Â Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_v(l)%j(m) |
---|
2658 | Â Â Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_v(l)%k(m) |
---|
2659 | Â Â Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_v(l)%surfhf(m) |
---|
2660 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2661 | Â Â Â Â Â Â Â Â Â ENDDO |
---|
2662 | Â Â Â Â Â Â Â ELSE |
---|
2663 |          DO m = 1, surf_usm_h%ns |
---|
2664 | Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_h%i(m) |
---|
2665 | Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_h%j(m) |
---|
2666 | Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_h%k(m) |
---|
2667 | Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_h%surfhf_av(m) |
---|
2668 | Â Â Â Â Â Â Â Â Â ENDDO |
---|
2669 |          DO l = 0, 3 |
---|
2670 |           DO m = 1, surf_usm_v(l)%ns |
---|
2671 | Â Â Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_v(l)%i(m) |
---|
2672 | Â Â Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_v(l)%j(m) |
---|
2673 | Â Â Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_v(l)%k(m) |
---|
2674 | Â Â Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_v(l)%surfhf_av(m) |
---|
2675 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2676 | Â Â Â Â Â Â Â Â Â ENDDO |
---|
2677 | Â Â Â Â Â Â Â ENDIF |
---|
2678 | Â |
---|
2679 | Â Â Â Â Â CASEÂ (Â 'usm_wshf'Â ) |
---|
2680 | !--Â Â Â Â Â Â array of sensible heat flux from surfaces |
---|
2681 | Â Â Â Â Â Â Â IFÂ (Â av ==Â 0Â )Â THEN |
---|
2682 |          DO m = 1, surf_usm_h%ns |
---|
2683 | Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_h%i(m) |
---|
2684 | Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_h%j(m) |
---|
2685 | Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_h%k(m) |
---|
2686 | Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_h%wshf_eb(m) |
---|
2687 | Â Â Â Â Â Â Â Â Â ENDDO |
---|
2688 |          DO l = 0, 3 |
---|
2689 |           DO m = 1, surf_usm_v(l)%ns |
---|
2690 | Â Â Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_v(l)%i(m) |
---|
2691 | Â Â Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_v(l)%j(m) |
---|
2692 | Â Â Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_v(l)%k(m) |
---|
2693 | Â Â Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_v(l)%wshf_eb(m) |
---|
2694 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2695 | Â Â Â Â Â Â Â Â Â ENDDO |
---|
2696 | Â Â Â Â Â Â Â ELSE |
---|
2697 |          DO m = 1, surf_usm_h%ns |
---|
2698 | Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_h%i(m) |
---|
2699 | Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_h%j(m) |
---|
2700 | Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_h%k(m) |
---|
2701 | Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_h%wshf_eb_av(m) |
---|
2702 | Â Â Â Â Â Â Â Â Â ENDDO |
---|
2703 |          DO l = 0, 3 |
---|
2704 |           DO m = 1, surf_usm_v(l)%ns |
---|
2705 | Â Â Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_v(l)%i(m) |
---|
2706 | Â Â Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_v(l)%j(m) |
---|
2707 | Â Â Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_v(l)%k(m) |
---|
2708 | Â Â Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_v(l)%wshf_eb_av(m) |
---|
2709 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2710 | Â Â Â Â Â Â Â Â Â ENDDO |
---|
2711 | Â Â Â Â Â Â Â ENDIF |
---|
2712 | |
---|
2713 | |
---|
2714 | Â Â Â Â Â CASEÂ (Â 'usm_wghf'Â ) |
---|
2715 | !--Â Â Â Â Â Â array of heat flux from ground (land, wall, roof) |
---|
2716 | Â Â Â Â Â Â Â IFÂ (Â av ==Â 0Â )Â THEN |
---|
2717 |          DO m = 1, surf_usm_h%ns |
---|
2718 | Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_h%i(m) |
---|
2719 | Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_h%j(m) |
---|
2720 | Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_h%k(m) |
---|
2721 | Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_h%wghf_eb(m) |
---|
2722 | Â Â Â Â Â Â Â Â Â ENDDO |
---|
2723 |          DO l = 0, 3 |
---|
2724 |           DO m = 1, surf_usm_v(l)%ns |
---|
2725 | Â Â Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_v(l)%i(m) |
---|
2726 | Â Â Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_v(l)%j(m) |
---|
2727 | Â Â Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_v(l)%k(m) |
---|
2728 | Â Â Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_v(l)%wghf_eb(m) |
---|
2729 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2730 | Â Â Â Â Â Â Â Â Â ENDDO |
---|
2731 | Â Â Â Â Â Â Â ELSE |
---|
2732 |          DO m = 1, surf_usm_h%ns |
---|
2733 | Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_h%i(m) |
---|
2734 | Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_h%j(m) |
---|
2735 | Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_h%k(m) |
---|
2736 | Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_h%wghf_eb_av(m) |
---|
2737 | Â Â Â Â Â Â Â Â Â ENDDO |
---|
2738 |          DO l = 0, 3 |
---|
2739 |           DO m = 1, surf_usm_v(l)%ns |
---|
2740 | Â Â Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_v(l)%i(m) |
---|
2741 | Â Â Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_v(l)%j(m) |
---|
2742 | Â Â Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_v(l)%k(m) |
---|
2743 | Â Â Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_v(l)%wghf_eb_av(m) |
---|
2744 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2745 | Â Â Â Â Â Â Â Â Â ENDDO |
---|
2746 | Â Â Â Â Â Â Â ENDIF |
---|
2747 | |
---|
2748 | Â Â Â Â Â CASEÂ (Â 'usm_wghf_window'Â ) |
---|
2749 | !--Â Â Â Â Â Â array of heat flux from window ground (land, wall, roof) |
---|
2750 | |
---|
2751 | Â Â Â Â Â Â Â IFÂ (Â av ==Â 0Â )Â THEN |
---|
2752 |          DO m = 1, surf_usm_h%ns |
---|
2753 | Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_h%i(m) |
---|
2754 | Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_h%j(m) |
---|
2755 | Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_h%k(m) |
---|
2756 | Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_h%wghf_eb_window(m) |
---|
2757 | Â Â Â Â Â Â Â Â Â ENDDO |
---|
2758 |          DO l = 0, 3 |
---|
2759 |           DO m = 1, surf_usm_v(l)%ns |
---|
2760 | Â Â Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_v(l)%i(m) |
---|
2761 | Â Â Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_v(l)%j(m) |
---|
2762 | Â Â Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_v(l)%k(m) |
---|
2763 | Â Â Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_v(l)%wghf_eb_window(m) |
---|
2764 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2765 | Â Â Â Â Â Â Â Â Â ENDDO |
---|
2766 | Â Â Â Â Â Â Â ELSE |
---|
2767 |          DO m = 1, surf_usm_h%ns |
---|
2768 | Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_h%i(m) |
---|
2769 | Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_h%j(m) |
---|
2770 | Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_h%k(m) |
---|
2771 | Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_h%wghf_eb_window_av(m) |
---|
2772 | Â Â Â Â Â Â Â Â Â ENDDO |
---|
2773 |          DO l = 0, 3 |
---|
2774 |           DO m = 1, surf_usm_v(l)%ns |
---|
2775 | Â Â Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_v(l)%i(m) |
---|
2776 | Â Â Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_v(l)%j(m) |
---|
2777 | Â Â Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_v(l)%k(m) |
---|
2778 | Â Â Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_v(l)%wghf_eb_window_av(m) |
---|
2779 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2780 | Â Â Â Â Â Â Â Â Â ENDDO |
---|
2781 | Â Â Â Â Â Â Â ENDIF |
---|
2782 | |
---|
2783 | Â Â Â Â Â CASEÂ (Â 'usm_wghf_green'Â ) |
---|
2784 | !--Â Â Â Â Â Â array of heat flux from green ground (land, wall, roof) |
---|
2785 | |
---|
2786 | Â Â Â Â Â Â Â IFÂ (Â av ==Â 0Â )Â THEN |
---|
2787 |          DO m = 1, surf_usm_h%ns |
---|
2788 | Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_h%i(m) |
---|
2789 | Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_h%j(m) |
---|
2790 | Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_h%k(m) |
---|
2791 | Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_h%wghf_eb_green(m) |
---|
2792 | Â Â Â Â Â Â Â Â Â ENDDO |
---|
2793 |          DO l = 0, 3 |
---|
2794 |           DO m = 1, surf_usm_v(l)%ns |
---|
2795 | Â Â Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_v(l)%i(m) |
---|
2796 | Â Â Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_v(l)%j(m) |
---|
2797 | Â Â Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_v(l)%k(m) |
---|
2798 | Â Â Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_v(l)%wghf_eb_green(m) |
---|
2799 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2800 | Â Â Â Â Â Â Â Â Â ENDDO |
---|
2801 | Â Â Â Â Â Â Â ELSE |
---|
2802 |          DO m = 1, surf_usm_h%ns |
---|
2803 | Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_h%i(m) |
---|
2804 | Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_h%j(m) |
---|
2805 | Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_h%k(m) |
---|
2806 | Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_h%wghf_eb_green_av(m) |
---|
2807 | Â Â Â Â Â Â Â Â Â ENDDO |
---|
2808 |          DO l = 0, 3 |
---|
2809 |           DO m = 1, surf_usm_v(l)%ns |
---|
2810 | Â Â Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_v(l)%i(m) |
---|
2811 | Â Â Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_v(l)%j(m) |
---|
2812 | Â Â Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_v(l)%k(m) |
---|
2813 | Â Â Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_v(l)%wghf_eb_green_av(m) |
---|
2814 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2815 | Â Â Â Â Â Â Â Â Â ENDDO |
---|
2816 | Â Â Â Â Â Â Â ENDIF |
---|
2817 | |
---|
2818 | Â Â Â Â Â CASEÂ (Â 'usm_iwghf'Â ) |
---|
2819 | !--Â Â Â Â Â Â array of heat flux from indoor ground (land, wall, roof) |
---|
2820 | Â Â Â Â Â Â Â IFÂ (Â av ==Â 0Â )Â THEN |
---|
2821 |          DO m = 1, surf_usm_h%ns |
---|
2822 | Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_h%i(m) |
---|
2823 | Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_h%j(m) |
---|
2824 | Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_h%k(m) |
---|
2825 | Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_h%iwghf_eb(m) |
---|
2826 | Â Â Â Â Â Â Â Â Â ENDDO |
---|
2827 |          DO l = 0, 3 |
---|
2828 |           DO m = 1, surf_usm_v(l)%ns |
---|
2829 | Â Â Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_v(l)%i(m) |
---|
2830 | Â Â Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_v(l)%j(m) |
---|
2831 | Â Â Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_v(l)%k(m) |
---|
2832 | Â Â Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_v(l)%iwghf_eb(m) |
---|
2833 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2834 | Â Â Â Â Â Â Â Â Â ENDDO |
---|
2835 | Â Â Â Â Â Â Â ELSE |
---|
2836 |          DO m = 1, surf_usm_h%ns |
---|
2837 | Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_h%i(m) |
---|
2838 | Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_h%j(m) |
---|
2839 | Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_h%k(m) |
---|
2840 | Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_h%iwghf_eb_av(m) |
---|
2841 | Â Â Â Â Â Â Â Â Â ENDDO |
---|
2842 |          DO l = 0, 3 |
---|
2843 |           DO m = 1, surf_usm_v(l)%ns |
---|
2844 | Â Â Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_v(l)%i(m) |
---|
2845 | Â Â Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_v(l)%j(m) |
---|
2846 | Â Â Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_v(l)%k(m) |
---|
2847 | Â Â Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_v(l)%iwghf_eb_av(m) |
---|
2848 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2849 | Â Â Â Â Â Â Â Â Â ENDDO |
---|
2850 | Â Â Â Â Â Â Â ENDIF |
---|
2851 | |
---|
2852 | Â Â Â Â Â CASEÂ (Â 'usm_iwghf_window'Â ) |
---|
2853 | !--Â Â Â Â Â Â array of heat flux from indoor window ground (land, wall, roof) |
---|
2854 | |
---|
2855 | Â Â Â Â Â Â Â IFÂ (Â av ==Â 0Â )Â THEN |
---|
2856 |          DO m = 1, surf_usm_h%ns |
---|
2857 | Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_h%i(m) |
---|
2858 | Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_h%j(m) |
---|
2859 | Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_h%k(m) |
---|
2860 | Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_h%iwghf_eb_window(m) |
---|
2861 | Â Â Â Â Â Â Â Â Â ENDDO |
---|
2862 |          DO l = 0, 3 |
---|
2863 |           DO m = 1, surf_usm_v(l)%ns |
---|
2864 | Â Â Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_v(l)%i(m) |
---|
2865 | Â Â Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_v(l)%j(m) |
---|
2866 | Â Â Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_v(l)%k(m) |
---|
2867 | Â Â Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_v(l)%iwghf_eb_window(m) |
---|
2868 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2869 | Â Â Â Â Â Â Â Â Â ENDDO |
---|
2870 | Â Â Â Â Â Â Â ELSE |
---|
2871 |          DO m = 1, surf_usm_h%ns |
---|
2872 | Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_h%i(m) |
---|
2873 | Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_h%j(m) |
---|
2874 | Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_h%k(m) |
---|
2875 | Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_h%iwghf_eb_window_av(m) |
---|
2876 | Â Â Â Â Â Â Â Â Â ENDDO |
---|
2877 |          DO l = 0, 3 |
---|
2878 |           DO m = 1, surf_usm_v(l)%ns |
---|
2879 | Â Â Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_v(l)%i(m) |
---|
2880 | Â Â Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_v(l)%j(m) |
---|
2881 | Â Â Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_v(l)%k(m) |
---|
2882 | Â Â Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_v(l)%iwghf_eb_window_av(m) |
---|
2883 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2884 | Â Â Â Â Â Â Â Â Â ENDDO |
---|
2885 | Â Â Â Â Â Â Â ENDIF |
---|
2886 | Â Â Â Â Â Â Â |
---|
2887 | Â Â Â Â Â CASEÂ (Â 'usm_t_surf'Â ) |
---|
2888 | !--Â Â Â Â Â Â surface temperature for surfaces |
---|
2889 | Â Â Â Â Â Â Â IFÂ (Â av ==Â 0Â )Â THEN |
---|
2890 |          DO m = 1, surf_usm_h%ns |
---|
2891 | Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_h%i(m) |
---|
2892 | Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_h%j(m) |
---|
2893 | Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_h%k(m) |
---|
2894 | Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â t_surf_h(m) |
---|
2895 | Â Â Â Â Â Â Â Â Â ENDDO |
---|
2896 |          DO l = 0, 3 |
---|
2897 |           DO m = 1, surf_usm_v(l)%ns |
---|
2898 | Â Â Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_v(l)%i(m) |
---|
2899 | Â Â Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_v(l)%j(m) |
---|
2900 | Â Â Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_v(l)%k(m) |
---|
2901 | Â Â Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â t_surf_v(l)%t(m) |
---|
2902 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2903 | Â Â Â Â Â Â Â Â Â ENDDO |
---|
2904 | Â Â Â Â Â Â Â ELSE |
---|
2905 |          DO m = 1, surf_usm_h%ns |
---|
2906 | Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_h%i(m) |
---|
2907 | Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_h%j(m) |
---|
2908 | Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_h%k(m) |
---|
2909 | Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_h%t_surf_av(m) |
---|
2910 | Â Â Â Â Â Â Â Â Â ENDDO |
---|
2911 |          DO l = 0, 3 |
---|
2912 |           DO m = 1, surf_usm_v(l)%ns |
---|
2913 | Â Â Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_v(l)%i(m) |
---|
2914 | Â Â Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_v(l)%j(m) |
---|
2915 | Â Â Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_v(l)%k(m) |
---|
2916 | Â Â Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_v(l)%t_surf_av(m) |
---|
2917 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2918 | Â Â Â Â Â Â Â Â Â ENDDO |
---|
2919 | Â Â Â Â Â Â Â ENDIF |
---|
2920 | Â Â Â Â Â Â Â |
---|
2921 | Â Â Â Â Â CASEÂ (Â 'usm_t_surf_window'Â ) |
---|
2922 | !--Â Â Â Â Â Â surface temperature for window surfaces |
---|
2923 | |
---|
2924 | Â Â Â Â Â Â Â IFÂ (Â av ==Â 0Â )Â THEN |
---|
2925 |          DO m = 1, surf_usm_h%ns |
---|
2926 | Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_h%i(m) |
---|
2927 | Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_h%j(m) |
---|
2928 | Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_h%k(m) |
---|
2929 | Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â t_surf_window_h(m) |
---|
2930 | Â Â Â Â Â Â Â Â Â ENDDO |
---|
2931 |          DO l = 0, 3 |
---|
2932 |           DO m = 1, surf_usm_v(l)%ns |
---|
2933 | Â Â Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_v(l)%i(m) |
---|
2934 | Â Â Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_v(l)%j(m) |
---|
2935 | Â Â Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_v(l)%k(m) |
---|
2936 | Â Â Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â t_surf_window_v(l)%t(m) |
---|
2937 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2938 | Â Â Â Â Â Â Â Â Â ENDDO |
---|
2939 | |
---|
2940 | Â Â Â Â Â Â Â ELSE |
---|
2941 |          DO m = 1, surf_usm_h%ns |
---|
2942 | Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_h%i(m) |
---|
2943 | Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_h%j(m) |
---|
2944 | Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_h%k(m) |
---|
2945 | Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_h%t_surf_window_av(m) |
---|
2946 | Â Â Â Â Â Â Â Â Â ENDDO |
---|
2947 |          DO l = 0, 3 |
---|
2948 |           DO m = 1, surf_usm_v(l)%ns |
---|
2949 | Â Â Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_v(l)%i(m) |
---|
2950 | Â Â Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_v(l)%j(m) |
---|
2951 | Â Â Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_v(l)%k(m) |
---|
2952 | Â Â Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_v(l)%t_surf_window_av(m) |
---|
2953 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2954 | |
---|
2955 | Â Â Â Â Â Â Â Â Â ENDDO |
---|
2956 | |
---|
2957 | Â Â Â Â Â Â Â ENDIF |
---|
2958 | |
---|
2959 | Â Â Â Â Â CASEÂ (Â 'usm_t_surf_green'Â ) |
---|
2960 | !--Â Â Â Â Â Â surface temperature for green surfaces |
---|
2961 | |
---|
2962 | Â Â Â Â Â Â Â IFÂ (Â av ==Â 0Â )Â THEN |
---|
2963 |          DO m = 1, surf_usm_h%ns |
---|
2964 | Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_h%i(m) |
---|
2965 | Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_h%j(m) |
---|
2966 | Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_h%k(m) |
---|
2967 | Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â t_surf_green_h(m) |
---|
2968 | Â Â Â Â Â Â Â Â Â ENDDO |
---|
2969 |          DO l = 0, 3 |
---|
2970 |           DO m = 1, surf_usm_v(l)%ns |
---|
2971 | Â Â Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_v(l)%i(m) |
---|
2972 | Â Â Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_v(l)%j(m) |
---|
2973 | Â Â Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_v(l)%k(m) |
---|
2974 | Â Â Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â t_surf_green_v(l)%t(m) |
---|
2975 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2976 | Â Â Â Â Â Â Â Â Â ENDDO |
---|
2977 | |
---|
2978 | Â Â Â Â Â Â Â ELSE |
---|
2979 |          DO m = 1, surf_usm_h%ns |
---|
2980 | Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_h%i(m) |
---|
2981 | Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_h%j(m) |
---|
2982 | Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_h%k(m) |
---|
2983 | Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_h%t_surf_green_av(m) |
---|
2984 | Â Â Â Â Â Â Â Â Â ENDDO |
---|
2985 |          DO l = 0, 3 |
---|
2986 |           DO m = 1, surf_usm_v(l)%ns |
---|
2987 | Â Â Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_v(l)%i(m) |
---|
2988 | Â Â Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_v(l)%j(m) |
---|
2989 | Â Â Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_v(l)%k(m) |
---|
2990 | Â Â Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_v(l)%t_surf_green_av(m) |
---|
2991 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
2992 | |
---|
2993 | Â Â Â Â Â Â Â Â Â ENDDO |
---|
2994 | |
---|
2995 | Â Â Â Â Â Â Â ENDIF |
---|
2996 | |
---|
2997 | Â Â Â Â Â CASEÂ (Â 'usm_t_surf_10cm'Â ) |
---|
2998 | !--Â Â Â Â Â Â near surface temperature for whole surfaces |
---|
2999 | |
---|
3000 | Â Â Â Â Â Â Â IFÂ (Â av ==Â 0Â )Â THEN |
---|
3001 |          DO m = 1, surf_usm_h%ns |
---|
3002 | Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_h%i(m) |
---|
3003 | Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_h%j(m) |
---|
3004 | Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_h%k(m) |
---|
3005 | Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â t_surf_10cm_h(m) |
---|
3006 | Â Â Â Â Â Â Â Â Â ENDDO |
---|
3007 |          DO l = 0, 3 |
---|
3008 |           DO m = 1, surf_usm_v(l)%ns |
---|
3009 | Â Â Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_v(l)%i(m) |
---|
3010 | Â Â Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_v(l)%j(m) |
---|
3011 | Â Â Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_v(l)%k(m) |
---|
3012 | Â Â Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â t_surf_10cm_v(l)%t(m) |
---|
3013 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
3014 | Â Â Â Â Â Â Â Â Â ENDDO |
---|
3015 | |
---|
3016 | Â Â Â Â Â Â Â ELSE |
---|
3017 |          DO m = 1, surf_usm_h%ns |
---|
3018 | Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_h%i(m) |
---|
3019 | Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_h%j(m) |
---|
3020 | Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_h%k(m) |
---|
3021 | Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_h%t_surf_10cm_av(m) |
---|
3022 | Â Â Â Â Â Â Â Â Â ENDDO |
---|
3023 |          DO l = 0, 3 |
---|
3024 |           DO m = 1, surf_usm_v(l)%ns |
---|
3025 | Â Â Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_v(l)%i(m) |
---|
3026 | Â Â Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_v(l)%j(m) |
---|
3027 | Â Â Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_v(l)%k(m) |
---|
3028 | Â Â Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_v(l)%t_surf_10cm_av(m) |
---|
3029 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
3030 | |
---|
3031 | Â Â Â Â Â Â Â Â Â ENDDO |
---|
3032 | |
---|
3033 | Â Â Â Â Â Â Â ENDIF |
---|
3034 | |
---|
3035 | Â Â Â Â Â Â Â |
---|
3036 | Â Â Â Â Â CASEÂ (Â 'usm_t_wall'Â ) |
---|
3037 | !--      wall temperature for iwl layer of walls and land |
---|
3038 | Â Â Â Â Â Â Â IFÂ (Â av ==Â 0Â )Â THEN |
---|
3039 |          DO m = 1, surf_usm_h%ns |
---|
3040 | Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_h%i(m) |
---|
3041 | Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_h%j(m) |
---|
3042 | Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_h%k(m) |
---|
3043 | Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â t_wall_h(iwl,m) |
---|
3044 | Â Â Â Â Â Â Â Â Â ENDDO |
---|
3045 |          DO l = 0, 3 |
---|
3046 |           DO m = 1, surf_usm_v(l)%ns |
---|
3047 | Â Â Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_v(l)%i(m) |
---|
3048 | Â Â Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_v(l)%j(m) |
---|
3049 | Â Â Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_v(l)%k(m) |
---|
3050 | Â Â Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â t_wall_v(l)%t(iwl,m) |
---|
3051 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
3052 | Â Â Â Â Â Â Â Â Â ENDDO |
---|
3053 | Â Â Â Â Â Â Â ELSE |
---|
3054 |          DO m = 1, surf_usm_h%ns |
---|
3055 | Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_h%i(m) |
---|
3056 | Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_h%j(m) |
---|
3057 | Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_h%k(m) |
---|
3058 | Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_h%t_wall_av(iwl,m) |
---|
3059 | Â Â Â Â Â Â Â Â Â ENDDO |
---|
3060 |          DO l = 0, 3 |
---|
3061 |           DO m = 1, surf_usm_v(l)%ns |
---|
3062 | Â Â Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_v(l)%i(m) |
---|
3063 | Â Â Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_v(l)%j(m) |
---|
3064 | Â Â Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_v(l)%k(m) |
---|
3065 | Â Â Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_v(l)%t_wall_av(iwl,m) |
---|
3066 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
3067 | Â Â Â Â Â Â Â Â Â ENDDO |
---|
3068 | Â Â Â Â Â Â Â ENDIF |
---|
3069 | Â Â Â Â Â Â Â |
---|
3070 | Â Â Â Â Â CASEÂ (Â 'usm_t_window'Â ) |
---|
3071 | !--Â Â Â Â Â Â window temperature for iwl layer of walls and land |
---|
3072 | Â Â Â Â Â Â Â IFÂ (Â av ==Â 0Â )Â THEN |
---|
3073 |          DO m = 1, surf_usm_h%ns |
---|
3074 | Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_h%i(m) |
---|
3075 | Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_h%j(m) |
---|
3076 | Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_h%k(m) |
---|
3077 | Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â t_window_h(iwl,m) |
---|
3078 | Â Â Â Â Â Â Â Â Â ENDDO |
---|
3079 |          DO l = 0, 3 |
---|
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)Â =Â t_window_v(l)%t(iwl,m) |
---|
3085 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
3086 | Â Â Â Â Â Â Â Â Â ENDDO |
---|
3087 | Â Â Â Â Â Â Â ELSE |
---|
3088 |          DO m = 1, surf_usm_h%ns |
---|
3089 | Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_h%i(m) |
---|
3090 | Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_h%j(m) |
---|
3091 | Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_h%k(m) |
---|
3092 | Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_h%t_window_av(iwl,m) |
---|
3093 | Â Â Â Â Â Â Â Â Â ENDDO |
---|
3094 |          DO l = 0, 3 |
---|
3095 |           DO m = 1, surf_usm_v(l)%ns |
---|
3096 | Â Â Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_v(l)%i(m) |
---|
3097 | Â Â Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_v(l)%j(m) |
---|
3098 | Â Â Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_v(l)%k(m) |
---|
3099 | Â Â Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_v(l)%t_window_av(iwl,m) |
---|
3100 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
3101 | Â Â Â Â Â Â Â Â Â ENDDO |
---|
3102 | Â Â Â Â Â Â Â ENDIF |
---|
3103 | |
---|
3104 | Â Â Â Â Â CASEÂ (Â 'usm_t_green'Â ) |
---|
3105 | !--      green temperature for iwl layer of walls and land |
---|
3106 | Â Â Â Â Â Â Â IFÂ (Â av ==Â 0Â )Â THEN |
---|
3107 |          DO m = 1, surf_usm_h%ns |
---|
3108 | Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_h%i(m) |
---|
3109 | Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_h%j(m) |
---|
3110 | Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_h%k(m) |
---|
3111 | Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â t_green_h(iwl,m) |
---|
3112 | Â Â Â Â Â Â Â Â Â ENDDO |
---|
3113 |          DO l = 0, 3 |
---|
3114 |           DO m = 1, surf_usm_v(l)%ns |
---|
3115 | Â Â Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_v(l)%i(m) |
---|
3116 | Â Â Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_v(l)%j(m) |
---|
3117 | Â Â Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_v(l)%k(m) |
---|
3118 | Â Â Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â t_green_v(l)%t(iwl,m) |
---|
3119 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
3120 | Â Â Â Â Â Â Â Â Â ENDDO |
---|
3121 | Â Â Â Â Â Â Â ELSE |
---|
3122 |          DO m = 1, surf_usm_h%ns |
---|
3123 | Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_h%i(m) |
---|
3124 | Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_h%j(m) |
---|
3125 | Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_h%k(m) |
---|
3126 | Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_h%t_green_av(iwl,m) |
---|
3127 | Â Â Â Â Â Â Â Â Â ENDDO |
---|
3128 |          DO l = 0, 3 |
---|
3129 |           DO m = 1, surf_usm_v(l)%ns |
---|
3130 | Â Â Â Â Â Â Â Â Â Â Â Â i =Â surf_usm_v(l)%i(m) |
---|
3131 | Â Â Â Â Â Â Â Â Â Â Â Â j =Â surf_usm_v(l)%j(m) |
---|
3132 | Â Â Â Â Â Â Â Â Â Â Â Â k =Â surf_usm_v(l)%k(m) |
---|
3133 | Â Â Â Â Â Â Â Â Â Â Â Â temp_pf(k,j,i)Â =Â surf_usm_v(l)%t_green_av(iwl,m) |
---|
3134 | Â Â Â Â Â Â Â Â Â Â ENDDO |
---|
3135 | Â Â Â Â Â Â Â Â Â ENDDO |
---|
3136 | Â Â Â Â Â Â Â ENDIF |
---|
3137 | |
---|
3138 | Â Â Â Â Â Â Â |
---|
3139 | Â Â Â Â Â CASE DEFAULT |
---|
3140 | Â Â Â Â Â Â Â found =Â .FALSE. |
---|
3141 | Â Â Â Â Â Â Â |
---|
3142 | Â Â Â Â END SELECT |
---|
3143 | |
---|
3144 | ! |
---|
3145 | !--Â Â Â Rearrange dimensions for NetCDF output |
---|
3146 |     DO j = nys, nyn |
---|
3147 |       DO i = nxl, nxr |
---|
3148 |         DO k = nzb_do, nzt_do |
---|
3149 | Â Â Â Â Â Â Â Â Â Â local_pf(i,j,k)Â =Â temp_pf(k,j,i) |
---|
3150 | Â Â Â Â Â Â Â Â ENDDO |
---|
3151 | Â Â Â Â Â Â ENDDO |
---|
3152 | Â Â Â Â ENDDO |
---|
3153 | Â Â Â Â |
---|
3154 | Â Â END SUBROUTINE usm_data_output_3d |
---|
3155 | Â Â |
---|
3156 | |
---|
3157 | !------------------------------------------------------------------------------! |
---|
3158 | ! |
---|
3159 | ! Description: |
---|
3160 | ! ------------ |
---|
3161 | !> Soubroutine defines appropriate grid for netcdf variables. |
---|
3162 | !> It is called out from subroutine netcdf. |
---|
3163 | !------------------------------------------------------------------------------! |
---|
3164 |   SUBROUTINE usm_define_netcdf_grid( variable, found, grid_x, grid_y, grid_z ) |
---|
3165 | Â Â |
---|
3166 | Â Â Â Â IMPLICIT NONE |
---|
3167 | |
---|
3168 |     CHARACTER (len=*), INTENT(IN) :: variable  !< |
---|
3169 |     LOGICAL, INTENT(OUT)      :: found    !< |
---|
3170 |     CHARACTER (len=*), INTENT(OUT) :: grid_x   !< |
---|
3171 |     CHARACTER (len=*), INTENT(OUT) :: grid_y   !< |
---|
3172 |     CHARACTER (len=*), INTENT(OUT) :: grid_z   !< |
---|
3173 | |
---|
3174 | Â Â Â Â CHARACTERÂ (len=varnamelength)Â ::Â var |
---|
3175 | |
---|
3176 | Â Â Â Â var =Â TRIM(variable) |
---|
3177 |     IF ( var(1:12) == 'usm_rad_net_' .OR. var(1:13) == 'usm_rad_insw_' .OR.     & |
---|
3178 |        var(1:13) == 'usm_rad_inlw_' .OR. var(1:16) == 'usm_rad_inswdir_' .OR.   & |
---|
3179 |        var(1:16) == 'usm_rad_inswdif_' .OR. var(1:16) == 'usm_rad_inswref_' .OR.  & |
---|
3180 |        var(1:16) == 'usm_rad_inlwdif_' .OR. var(1:16) == 'usm_rad_inlwref_' .OR.  & |
---|
3181 |        var(1:14) == 'usm_rad_outsw_' .OR. var(1:14) == 'usm_rad_outlw_' .OR.    & |
---|
3182 |        var(1:14) == 'usm_rad_ressw_' .OR. var(1:14) == 'usm_rad_reslw_' .OR.    & |
---|
3183 |        var(1:11) == 'usm_rad_hf_' .OR.                        & |
---|
3184 |        var(1:9) == 'usm_wshf_' .OR. var(1:9) == 'usm_wghf_' .OR.          & |
---|
3185 |        var(1:16) == 'usm_wghf_window_' .OR. var(1:15) == 'usm_wghf_green_' .OR.   & |
---|
3186 |        var(1:10) == 'usm_iwghf_' .OR. var(1:17) == 'usm_iwghf_window_' .OR.     & |
---|
3187 |        var(1:10) == 'usm_t_surf' .OR. var(1:10) == 'usm_t_wall' .OR.        & |
---|
3188 |        var(1:17) == 'usm_t_surf_window' .OR. var(1:12) == 'usm_t_window' .OR.   & |
---|
3189 |        var(1:16) == 'usm_t_surf_green' .OR.                     & |
---|
3190 |        var(1:15) == 'usm_t_surf_10cm' .OR.                      & |
---|
3191 |        var(1:9) == 'usm_surfz' .OR. var(1:7) == 'usm_svf' .OR.           & |
---|
3192 |        var(1:7) == 'usm_dif' .OR. var(1:11) == 'usm_surfcat' .OR.         & |
---|
3193 |        var(1:11) == 'usm_surfalb' .OR. var(1:12) == 'usm_surfemis' .OR.      & |
---|
3194 | Â Â Â Â Â Â Â var(1:16)Â ==Â 'usm_surfwintrans'Â )Â THEN |
---|
3195 | |
---|
3196 | Â Â Â Â Â Â found =Â .TRUE. |
---|
3197 | Â Â Â Â Â Â grid_x =Â 'x' |
---|
3198 | Â Â Â Â Â Â grid_y =Â 'y' |
---|
3199 | Â Â Â Â Â Â grid_z =Â 'zu' |
---|
3200 | Â Â Â Â ELSE |
---|
3201 |       found = .FALSE. |
---|
3202 | Â Â Â Â Â Â grid_x =Â 'none' |
---|
3203 | Â Â Â Â Â Â grid_y =Â 'none' |
---|
3204 | Â Â Â Â Â Â grid_z =Â 'none' |
---|
3205 | Â Â Â Â ENDIF |
---|
3206 | |
---|
3207 | Â Â END SUBROUTINE usm_define_netcdf_grid |
---|
3208 | Â Â |
---|
3209 | |
---|
3210 | !------------------------------------------------------------------------------! |
---|
3211 | ! Description: |
---|
3212 | ! ------------ |
---|
3213 | !> Initialization of the wall surface model |
---|
3214 | !------------------------------------------------------------------------------! |
---|
3215 | Â Â SUBROUTINE usm_init_material_model |
---|
3216 | |
---|
3217 | Â Â Â Â IMPLICIT NONE |
---|
3218 | |
---|
3219 |     INTEGER(iwp) :: k, l, m      !< running indices |
---|
3220 | Â Â Â Â |
---|
3221 |     CALL location_message( '  initialization of wall surface model', .TRUE. ) |
---|
3222 | Â Â Â Â |
---|
3223 | !--Â Â Â Calculate wall grid spacings. |
---|
3224 | !--Â Â Â Temperature is defined at the center of the wall layers, |
---|
3225 | !--Â Â Â whereas gradients/fluxes are defined at the edges (_stag)Â Â Â |
---|
3226 | !--Â Â Â apply for all particular surface grids. First for horizontal surfaces |
---|
3227 |     DO m = 1, surf_usm_h%ns |
---|
3228 | |
---|
3229 | Â Â Â Â Â Â surf_usm_h%dz_wall(nzb_wall,m)Â =Â surf_usm_h%zw(nzb_wall,m) |
---|
3230 |       DO k = nzb_wall+1, nzt_wall |
---|
3231 | Â Â Â Â Â Â Â Â surf_usm_h%dz_wall(k,m)Â =Â surf_usm_h%zw(k,m)Â -Â Â Â Â Â Â Â Â Â & |
---|
3232 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%zw(k-1,m) |
---|
3233 | Â Â Â Â Â Â ENDDO |
---|
3234 | Â Â Â Â Â Â surf_usm_h%dz_window(nzb_wall,m)Â =Â surf_usm_h%zw_window(nzb_wall,m) |
---|
3235 |       DO k = nzb_wall+1, nzt_wall |
---|
3236 | Â Â Â Â Â Â Â Â surf_usm_h%dz_window(k,m)Â =Â surf_usm_h%zw_window(k,m)Â -Â Â Â Â Â & |
---|
3237 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%zw_window(k-1,m) |
---|
3238 | Â Â Â Â Â Â ENDDO |
---|
3239 | Â Â Â Â Â Â surf_usm_h%dz_green(nzb_wall,m)Â =Â surf_usm_h%zw_green(nzb_wall,m) |
---|
3240 |       DO k = nzb_wall+1, nzt_wall |
---|
3241 | Â Â Â Â Â Â Â Â surf_usm_h%dz_green(k,m)Â =Â surf_usm_h%zw_green(k,m)Â -Â Â Â Â Â Â & |
---|
3242 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%zw_green(k-1,m) |
---|
3243 | Â Â Â Â Â Â ENDDO |
---|
3244 | Â Â Â Â Â Â |
---|
3245 | Â Â Â Â Â Â surf_usm_h%dz_wall(nzt_wall+1,m)Â =Â surf_usm_h%dz_wall(nzt_wall,m) |
---|
3246 | |
---|
3247 |       DO k = nzb_wall, nzt_wall-1 |
---|
3248 | Â Â Â Â Â Â Â Â surf_usm_h%dz_wall_stag(k,m)Â =Â 0.5Â *Â (Â Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
3249 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%dz_wall(k+1,m)Â +Â surf_usm_h%dz_wall(k,m)Â ) |
---|
3250 | Â Â Â Â Â Â ENDDO |
---|
3251 | Â Â Â Â Â Â surf_usm_h%dz_wall_stag(nzt_wall,m)Â =Â surf_usm_h%dz_wall(nzt_wall,m) |
---|
3252 | Â Â Â Â Â Â |
---|
3253 | Â Â Â Â Â Â surf_usm_h%dz_window(nzt_wall+1,m)Â =Â surf_usm_h%dz_window(nzt_wall,m) |
---|
3254 | |
---|
3255 |       DO k = nzb_wall, nzt_wall-1 |
---|
3256 | Â Â Â Â Â Â Â Â surf_usm_h%dz_window_stag(k,m)Â =Â 0.5Â *Â (Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
3257 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%dz_window(k+1,m)Â +Â surf_usm_h%dz_window(k,m)Â ) |
---|
3258 | Â Â Â Â Â Â ENDDO |
---|
3259 | Â Â Â Â Â Â surf_usm_h%dz_window_stag(nzt_wall,m)Â =Â surf_usm_h%dz_window(nzt_wall,m) |
---|
3260 | |
---|
3261 | Â Â Â Â Â Â surf_usm_h%dz_green(nzt_wall+1,m)Â =Â surf_usm_h%dz_green(nzt_wall,m) |
---|
3262 | |
---|
3263 |       DO k = nzb_wall, nzt_wall-1 |
---|
3264 | Â Â Â Â Â Â Â Â surf_usm_h%dz_green_stag(k,m)Â =Â 0.5Â *Â (Â Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
3265 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%dz_green(k+1,m)Â +Â surf_usm_h%dz_green(k,m)Â ) |
---|
3266 | Â Â Â Â Â Â ENDDO |
---|
3267 | Â Â Â Â Â Â surf_usm_h%dz_green_stag(nzt_wall,m)Â =Â surf_usm_h%dz_green(nzt_wall,m) |
---|
3268 | Â Â Â Â ENDDO |
---|
3269 |     surf_usm_h%ddz_wall    = 1.0_wp / surf_usm_h%dz_wall |
---|
3270 |     surf_usm_h%ddz_wall_stag  = 1.0_wp / surf_usm_h%dz_wall_stag |
---|
3271 |     surf_usm_h%ddz_window   = 1.0_wp / surf_usm_h%dz_window |
---|
3272 |     surf_usm_h%ddz_window_stag = 1.0_wp / surf_usm_h%dz_window_stag |
---|
3273 |     surf_usm_h%ddz_green    = 1.0_wp / surf_usm_h%dz_green |
---|
3274 |     surf_usm_h%ddz_green_stag = 1.0_wp / surf_usm_h%dz_green_stag |
---|
3275 | !    |
---|
3276 | !--Â Â Â For vertical surfaces |
---|
3277 |     DO l = 0, 3 |
---|
3278 |       DO m = 1, surf_usm_v(l)%ns |
---|
3279 | Â Â Â Â Â Â Â surf_usm_v(l)%dz_wall(nzb_wall,m)Â =Â surf_usm_v(l)%zw(nzb_wall,m) |
---|
3280 |        DO k = nzb_wall+1, nzt_wall |
---|
3281 | Â Â Â Â Â Â Â Â Â surf_usm_v(l)%dz_wall(k,m)Â =Â surf_usm_v(l)%zw(k,m)Â -Â Â Â Â Â & |
---|
3282 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%zw(k-1,m) |
---|
3283 | Â Â Â Â Â Â Â ENDDO |
---|
3284 | Â Â Â Â Â Â Â surf_usm_v(l)%dz_window(nzb_wall,m)Â =Â surf_usm_v(l)%zw_window(nzb_wall,m) |
---|
3285 |        DO k = nzb_wall+1, nzt_wall |
---|
3286 | Â Â Â Â Â Â Â Â Â surf_usm_v(l)%dz_window(k,m)Â =Â surf_usm_v(l)%zw_window(k,m)Â -Â & |
---|
3287 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%zw_window(k-1,m) |
---|
3288 | Â Â Â Â Â Â Â ENDDO |
---|
3289 | Â Â Â Â Â Â Â surf_usm_v(l)%dz_green(nzb_wall,m)Â =Â surf_usm_v(l)%zw_green(nzb_wall,m) |
---|
3290 |        DO k = nzb_wall+1, nzt_wall |
---|
3291 | Â Â Â Â Â Â Â Â Â surf_usm_v(l)%dz_green(k,m)Â =Â surf_usm_v(l)%zw_green(k,m)Â -Â & |
---|
3292 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%zw_green(k-1,m) |
---|
3293 | Â Â Â Â Â Â Â ENDDO |
---|
3294 | Â Â Â Â Â Â |
---|
3295 | Â Â Â Â Â Â Â surf_usm_v(l)%dz_wall(nzt_wall+1,m)Â =Â Â Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
3296 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%dz_wall(nzt_wall,m) |
---|
3297 | |
---|
3298 |        DO k = nzb_wall, nzt_wall-1 |
---|
3299 | Â Â Â Â Â Â Â Â Â surf_usm_v(l)%dz_wall_stag(k,m)Â =Â 0.5Â *Â (Â Â Â Â Â Â Â Â Â Â & |
---|
3300 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%dz_wall(k+1,m)Â +Â & |
---|
3301 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%dz_wall(k,m)Â ) |
---|
3302 | Â Â Â Â Â Â Â ENDDO |
---|
3303 | Â Â Â Â Â Â Â surf_usm_v(l)%dz_wall_stag(nzt_wall,m)Â =Â Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
3304 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%dz_wall(nzt_wall,m) |
---|
3305 | Â Â Â Â Â Â Â surf_usm_v(l)%dz_window(nzt_wall+1,m)Â =Â Â Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
3306 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%dz_window(nzt_wall,m) |
---|
3307 | |
---|
3308 |        DO k = nzb_wall, nzt_wall-1 |
---|
3309 | Â Â Â Â Â Â Â Â Â surf_usm_v(l)%dz_window_stag(k,m)Â =Â 0.5Â *Â (Â Â Â Â Â Â Â Â Â Â & |
---|
3310 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%dz_window(k+1,m)Â +Â & |
---|
3311 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%dz_window(k,m)Â ) |
---|
3312 | Â Â Â Â Â Â Â ENDDO |
---|
3313 | Â Â Â Â Â Â Â surf_usm_v(l)%dz_window_stag(nzt_wall,m)Â =Â Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
3314 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%dz_window(nzt_wall,m) |
---|
3315 | Â Â Â Â Â Â Â surf_usm_v(l)%dz_green(nzt_wall+1,m)Â =Â Â Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
3316 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%dz_green(nzt_wall,m) |
---|
3317 | |
---|
3318 |        DO k = nzb_wall, nzt_wall-1 |
---|
3319 | Â Â Â Â Â Â Â Â Â surf_usm_v(l)%dz_green_stag(k,m)Â =Â 0.5Â *Â (Â Â Â Â Â Â Â Â Â Â & |
---|
3320 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%dz_green(k+1,m)Â +Â & |
---|
3321 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%dz_green(k,m)Â ) |
---|
3322 | Â Â Â Â Â Â Â ENDDO |
---|
3323 | Â Â Â Â Â Â Â surf_usm_v(l)%dz_green_stag(nzt_wall,m)Â =Â Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
3324 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%dz_green(nzt_wall,m) |
---|
3325 | Â Â Â Â Â Â ENDDO |
---|
3326 |       surf_usm_v(l)%ddz_wall    = 1.0_wp / surf_usm_v(l)%dz_wall |
---|
3327 |       surf_usm_v(l)%ddz_wall_stag  = 1.0_wp / surf_usm_v(l)%dz_wall_stag |
---|
3328 |       surf_usm_v(l)%ddz_window   = 1.0_wp / surf_usm_v(l)%dz_window |
---|
3329 |       surf_usm_v(l)%ddz_window_stag = 1.0_wp / surf_usm_v(l)%dz_window_stag |
---|
3330 |       surf_usm_v(l)%ddz_green    = 1.0_wp / surf_usm_v(l)%dz_green |
---|
3331 |       surf_usm_v(l)%ddz_green_stag = 1.0_wp / surf_usm_v(l)%dz_green_stag |
---|
3332 | Â Â Â Â ENDDOÂ Â Â |
---|
3333 | |
---|
3334 | Â Â Â Â |
---|
3335 |     CALL location_message( '  wall structures filed out', .TRUE. ) |
---|
3336 | |
---|
3337 |     CALL location_message( '  initialization of wall surface model finished', .TRUE. ) |
---|
3338 | |
---|
3339 | Â Â END SUBROUTINE usm_init_material_model |
---|
3340 | |
---|
3341 | Â |
---|
3342 | !------------------------------------------------------------------------------! |
---|
3343 | ! Description: |
---|
3344 | ! ------------ |
---|
3345 | !> Initialization of the urban surface model |
---|
3346 | !------------------------------------------------------------------------------! |
---|
3347 | Â Â SUBROUTINE usm_init_urban_surface |
---|
3348 | |
---|
3349 |     USE arrays_3d,                             & |
---|
3350 | Â Â Â Â Â Â ONLY:Â zw |
---|
3351 | |
---|
3352 |     USE netcdf_data_input_mod,                       & |
---|
3353 |       ONLY: building_pars_f, building_type_f, terrain_height_f |
---|
3354 | Â Â |
---|
3355 | Â Â Â Â IMPLICIT NONE |
---|
3356 | |
---|
3357 |     INTEGER(iwp) :: i          !< loop index x-dirction |
---|
3358 |     INTEGER(iwp) :: ind_emis_wall    !< index in input list for wall emissivity |
---|
3359 |     INTEGER(iwp) :: ind_emis_green   !< index in input list for green emissivity |
---|
3360 |     INTEGER(iwp) :: ind_emis_win    !< index in input list for window emissivity |
---|
3361 |     INTEGER(iwp) :: ind_green_frac_w  !< index in input list for green fraction on wall |
---|
3362 |     INTEGER(iwp) :: ind_green_frac_r  !< index in input list for green fraction on roof |
---|
3363 | Â Â Â Â INTEGER(iwp)Â ::Â ind_hc1Â Â Â Â Â Â Â !< index in input list for heat capacity at first wall layer |
---|
3364 | Â Â Â Â INTEGER(iwp)Â ::Â ind_hc2Â Â Â Â Â Â Â !< index in input list for heat capacity at second wall layer |
---|
3365 | Â Â Â Â INTEGER(iwp)Â ::Â ind_hc3Â Â Â Â Â Â Â !< index in input list for heat capacity at third wall layer |
---|
3366 |     INTEGER(iwp) :: ind_lai_r      !< index in input list for LAI on roof |
---|
3367 |     INTEGER(iwp) :: ind_lai_w      !< index in input list for LAI on wall |
---|
3368 | Â Â Â Â INTEGER(iwp)Â ::Â ind_tc1Â Â Â Â Â Â Â !< index in input list for thermal conductivity at first wall layer |
---|
3369 | Â Â Â Â INTEGER(iwp)Â ::Â ind_tc2Â Â Â Â Â Â Â !< index in input list for thermal conductivity at second wall layer |
---|
3370 | Â Â Â Â INTEGER(iwp)Â ::Â ind_tc3Â Â Â Â Â Â Â !< index in input list for thermal conductivity at third wall layer |
---|
3371 |     INTEGER(iwp) :: ind_trans      !< index in input list for window transmissivity |
---|
3372 |     INTEGER(iwp) :: ind_wall_frac    !< index in input list for wall fraction |
---|
3373 |     INTEGER(iwp) :: ind_win_frac    !< index in input list for window fraction |
---|
3374 | Â Â Â Â INTEGER(iwp)Â ::Â ind_z0Â Â Â Â Â Â Â !< index in input list for z0 |
---|
3375 |     INTEGER(iwp) :: ind_z0qh      !< index in input list for z0h / z0q |
---|
3376 |     INTEGER(iwp) :: j          !< loop index y-dirction |
---|
3377 |     INTEGER(iwp) :: k          !< loop index z-dirction |
---|
3378 |     INTEGER(iwp) :: l          !< loop index surface orientation |
---|
3379 |     INTEGER(iwp) :: m          !< loop index surface element |
---|
3380 |     INTEGER(iwp) :: st         !< dummy |
---|
3381 | |
---|
3382 |     REAL(wp)   :: c, d, tin, twin, exn |
---|
3383 |     REAL(wp)   :: ground_floor_level_l     !< local height of ground floor level |
---|
3384 |     REAL(wp)   :: z_agl            !< height above ground |
---|
3385 | |
---|
3386 | ! |
---|
3387 | !-- NOPOINTER version not implemented yet |
---|
3388 | #if defined( __nopointer ) |
---|
3389 | Â Â message_string =Â 'The urban surface module only runs with POINTER version' |
---|
3390 |   CALL message( 'urban_surface_mod', 'PA0452', 1, 2, 0, 6, 0 ) |
---|
3391 | #endif |
---|
3392 | |
---|
3393 |     CALL cpu_log( log_point_s(78), 'usm_init', 'start' ) |
---|
3394 | !--Â Â Â surface forcing have to be disabled for LSF |
---|
3395 | !--Â Â Â in case of enabled urban surface module |
---|
3396 | Â Â Â Â IFÂ (Â large_scale_forcing )Â THEN |
---|
3397 | Â Â Â Â Â Â lsf_surf =Â .FALSE. |
---|
3398 | Â Â Â Â ENDIF |
---|
3399 | |
---|
3400 | ! |
---|
3401 | !--Â Â Â Flag surface elements belonging to the ground floor level. Therefore, |
---|
3402 | !--Â Â Â use terrain height array from file, if available. This flag is later used |
---|
3403 | !--Â Â Â to control initialization of surface attributes. |
---|
3404 |     surf_usm_h%ground_level = .FALSE. |
---|
3405 |     DO m = 1, surf_usm_h%ns |
---|
3406 | Â Â Â Â Â Â i =Â surf_usm_h%i(m) |
---|
3407 | Â Â Â Â Â Â j =Â surf_usm_h%j(m) |
---|
3408 | Â Â Â Â Â Â k =Â surf_usm_h%k(m) |
---|
3409 | ! |
---|
3410 | !--Â Â Â Â Get local ground level. If no ground level is given in input file, |
---|
3411 | !--Â Â Â Â use default value. |
---|
3412 | Â Â Â Â Â Â ground_floor_level_l =Â ground_floor_level |
---|
3413 | Â Â Â Â Â Â IFÂ (Â building_pars_f%from_file )Â THEN |
---|
3414 | Â Â Â Â Â Â Â IFÂ (Â building_pars_f%pars_xy(ind_gflh,j,i)Â /=Â Â Â Â Â Â Â Â Â Â & |
---|
3415 | Â Â Â Â Â Â Â Â Â Â building_pars_f%fill )Â & |
---|
3416 | Â Â Â Â Â Â Â Â Â ground_floor_level_l =Â building_pars_f%pars_xy(ind_gflh,j,i)Â Â Â Â Â |
---|
3417 | Â Â Â Â Â Â ENDIF |
---|
3418 | ! |
---|
3419 | !--Â Â Â Â Determine height of surface element above ground level |
---|
3420 | Â Â Â Â Â Â IFÂ (Â terrain_height_f%from_file )Â THEN |
---|
3421 | Â Â Â Â Â Â Â z_agl =Â zw(k)Â -Â terrain_height_f%var(j,i) |
---|
3422 | Â Â Â Â Â Â ELSE |
---|
3423 | Â Â Â Â Â Â Â z_agl =Â zw(k) |
---|
3424 | Â Â Â Â Â Â ENDIF |
---|
3425 | ! |
---|
3426 | !--Â Â Â Â Set flag for ground level |
---|
3427 | Â Â Â Â Â Â IFÂ (Â z_agl <=Â ground_floor_level_l )Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
3428 | Â Â Â Â Â Â Â surf_usm_h%ground_level(m)Â =Â .TRUE. |
---|
3429 | Â Â Â Â ENDDO |
---|
3430 | |
---|
3431 |     DO l = 0, 3 |
---|
3432 | Â Â Â Â Â Â surf_usm_v(l)%ground_level =Â .FALSE. |
---|
3433 |       DO m = 1, surf_usm_v(l)%ns |
---|
3434 | Â Â Â Â Â Â Â i =Â surf_usm_v(l)%i(m)Â +Â surf_usm_v(l)%ioff |
---|
3435 | Â Â Â Â Â Â Â j =Â surf_usm_v(l)%j(m)Â +Â surf_usm_v(l)%joff |
---|
3436 | Â Â Â Â Â Â Â k =Â surf_usm_v(l)%k(m) |
---|
3437 | ! |
---|
3438 | !--Â Â Â Â Â Â Get local ground level. If no ground level is given in input file, |
---|
3439 | !--Â Â Â Â Â Â use default value. |
---|
3440 | Â Â Â Â Â Â Â ground_floor_level_l =Â ground_floor_level |
---|
3441 | Â Â Â Â Â Â Â IFÂ (Â building_pars_f%from_file )Â THEN |
---|
3442 | Â Â Â Â Â Â Â Â Â IFÂ (Â building_pars_f%pars_xy(ind_gflh,j,i)Â /=Â Â Â Â Â Â Â Â Â & |
---|
3443 | Â Â Â Â Â Â Â Â Â Â Â building_pars_f%fill )Â & |
---|
3444 | Â Â Â Â Â Â Â Â Â Â ground_floor_level_l =Â building_pars_f%pars_xy(ind_gflh,j,i) |
---|
3445 | Â Â Â Â Â Â Â ENDIF |
---|
3446 | ! |
---|
3447 | !--Â Â Â Â Â Â Determine height of surface element above ground level. Please |
---|
3448 | !--Â Â Â Â Â Â note, height of surface element is determined with respect to |
---|
3449 | !--Â Â Â Â Â Â its height of the adjoing atmospheric grid point. |
---|
3450 | Â Â Â Â Â Â Â IFÂ (Â terrain_height_f%from_file )Â THEN |
---|
3451 |          z_agl = zw(k) - terrain_height_f%var(j-surf_usm_v(l)%joff,  & |
---|
3452 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â i-surf_usm_v(l)%ioff) |
---|
3453 | Â Â Â Â Â Â Â ELSE |
---|
3454 | Â Â Â Â Â Â Â Â Â z_agl =Â zw(k) |
---|
3455 | Â Â Â Â Â Â Â ENDIF |
---|
3456 | ! |
---|
3457 | !--Â Â Â Â Â Â Set flag for ground level |
---|
3458 | Â Â Â Â Â Â Â IFÂ (Â z_agl <=Â ground_floor_level_l )Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
3459 | Â Â Â Â Â Â Â Â Â surf_usm_v(l)%ground_level(m)Â =Â .TRUE. |
---|
3460 | |
---|
3461 | Â Â Â Â Â Â ENDDO |
---|
3462 | Â Â Â Â ENDDO |
---|
3463 | ! |
---|
3464 | !--Â Â Â Initialize urban-type surface attribute. According to initialization in |
---|
3465 | !--Â Â Â land-surface model, follow a 3-level approach. |
---|
3466 | !--Â Â Â Level 1 - initialization via default attributes |
---|
3467 |     DO m = 1, surf_usm_h%ns |
---|
3468 | ! |
---|
3469 | !--Â Â Â Â Now, all horizontal surfaces are roof surfaces (?) |
---|
3470 | Â Â Â Â Â Â surf_usm_h%isroof_surf(m)Â Â =Â .TRUE. |
---|
3471 |       surf_usm_h%surface_types(m) = roof_category     !< default category for root surface |
---|
3472 | ! |
---|
3473 | !--Â Â Â Â In order to distinguish between ground floor level and |
---|
3474 | !--Â Â Â Â above-ground-floor level surfaces, set input indices. |
---|
3475 |       ind_wall_frac  = MERGE( ind_wall_frac_gfl,  ind_wall_frac_agfl,  & |
---|
3476 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%ground_level(m)Â ) |
---|
3477 |       ind_win_frac   = MERGE( ind_win_frac_gfl,   ind_win_frac_agfl,   & |
---|
3478 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%ground_level(m)Â ) |
---|
3479 |       ind_green_frac_w = MERGE( ind_green_frac_w_gfl, ind_green_frac_w_agfl, & |
---|
3480 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%ground_level(m)Â ) |
---|
3481 |       ind_green_frac_r = MERGE( ind_green_frac_r_gfl, ind_green_frac_r_agfl, & |
---|
3482 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%ground_level(m)Â ) |
---|
3483 |       ind_lai_r    = MERGE( ind_lai_r_gfl,    ind_lai_r_agfl,    & |
---|
3484 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%ground_level(m)Â ) |
---|
3485 |       ind_lai_w    = MERGE( ind_lai_w_gfl,    ind_lai_w_agfl,    & |
---|
3486 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%ground_level(m)Â ) |
---|
3487 |       ind_hc1     = MERGE( ind_hc1_gfl,     ind_hc1_agfl,     & |
---|
3488 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%ground_level(m)Â ) |
---|
3489 |       ind_hc2     = MERGE( ind_hc2_gfl,     ind_hc2_agfl,     & |
---|
3490 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%ground_level(m)Â ) |
---|
3491 |       ind_hc3     = MERGE( ind_hc3_gfl,     ind_hc3_agfl,     & |
---|
3492 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%ground_level(m)Â ) |
---|
3493 |       ind_tc1     = MERGE( ind_tc1_gfl,     ind_tc1_agfl,     & |
---|
3494 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%ground_level(m)Â ) |
---|
3495 |       ind_tc2     = MERGE( ind_tc2_gfl,     ind_tc2_agfl,     & |
---|
3496 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%ground_level(m)Â ) |
---|
3497 |       ind_tc3     = MERGE( ind_tc3_gfl,     ind_tc3_agfl,     & |
---|
3498 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%ground_level(m)Â ) |
---|
3499 |       ind_emis_wall  = MERGE( ind_emis_wall_gfl,  ind_emis_wall_agfl,  & |
---|
3500 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%ground_level(m)Â ) |
---|
3501 |       ind_emis_green  = MERGE( ind_emis_green_gfl,  ind_emis_green_agfl,  & |
---|
3502 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%ground_level(m)Â ) |
---|
3503 |       ind_emis_win   = MERGE( ind_emis_win_gfl,   ind_emis_win_agfl,   & |
---|
3504 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%ground_level(m)Â ) |
---|
3505 |       ind_trans    = MERGE( ind_trans_gfl,    ind_trans_agfl,    & |
---|
3506 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%ground_level(m)Â ) |
---|
3507 |       ind_z0      = MERGE( ind_z0_gfl,      ind_z0_agfl,      & |
---|
3508 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%ground_level(m)Â ) |
---|
3509 |       ind_z0qh     = MERGE( ind_z0qh_gfl,     ind_z0qh_agfl,     & |
---|
3510 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%ground_level(m)Â ) |
---|
3511 | ! |
---|
3512 | !--Â Â Â Â Initialize relatvie wall- (0), green- (1) and window (2) fractions |
---|
3513 | Â Â Â Â Â Â surf_usm_h%frac(0,m)Â =Â building_pars(ind_wall_frac,building_type)Â Â |
---|
3514 | Â Â Â Â Â Â surf_usm_h%frac(1,m)Â =Â building_pars(ind_green_frac_r,building_type)Â |
---|
3515 | Â Â Â Â Â Â surf_usm_h%frac(2,m)Â =Â building_pars(ind_win_frac,building_type)Â |
---|
3516 | Â Â Â Â Â Â surf_usm_h%lai(m)Â Â Â =Â building_pars(ind_green_frac_r,building_type)Â |
---|
3517 | |
---|
3518 | Â Â Â Â Â Â surf_usm_h%rho_c_wall(nzb_wall,m)Â Â =Â building_pars(ind_hc1,building_type)Â |
---|
3519 | Â Â Â Â Â Â surf_usm_h%rho_c_wall(nzb_wall+1,m)Â =Â building_pars(ind_hc1,building_type) |
---|
3520 | Â Â Â Â Â Â surf_usm_h%rho_c_wall(nzb_wall+2,m)Â =Â building_pars(ind_hc2,building_type) |
---|
3521 | Â Â Â Â Â Â surf_usm_h%rho_c_wall(nzb_wall+3,m)Â =Â building_pars(ind_hc3,building_type)Â Â |
---|
3522 | Â Â Â Â Â Â surf_usm_h%lambda_h(nzb_wall,m)Â Â =Â building_pars(ind_tc1,building_type)Â |
---|
3523 | Â Â Â Â Â Â surf_usm_h%lambda_h(nzb_wall+1,m)Â =Â building_pars(ind_tc1,building_type)Â |
---|
3524 | Â Â Â Â Â Â surf_usm_h%lambda_h(nzb_wall+2,m)Â =Â building_pars(ind_tc2,building_type) |
---|
3525 | Â Â Â Â Â Â surf_usm_h%lambda_h(nzb_wall+3,m)Â =Â building_pars(ind_tc3,building_type)Â Â |
---|
3526 | Â Â Â Â Â Â surf_usm_h%rho_c_green(nzb_wall,m)Â Â =Â building_pars(ind_hc1,building_type)Â |
---|
3527 | Â Â Â Â Â Â surf_usm_h%rho_c_green(nzb_wall+1,m)Â =Â building_pars(ind_hc1,building_type) |
---|
3528 | Â Â Â Â Â Â surf_usm_h%rho_c_green(nzb_wall+2,m)Â =Â building_pars(ind_hc2,building_type) |
---|
3529 | Â Â Â Â Â Â surf_usm_h%rho_c_green(nzb_wall+3,m)Â =Â building_pars(ind_hc3,building_type)Â Â |
---|
3530 | Â Â Â Â Â Â surf_usm_h%lambda_h_green(nzb_wall,m)Â Â =Â building_pars(ind_tc1,building_type)Â |
---|
3531 | Â Â Â Â Â Â surf_usm_h%lambda_h_green(nzb_wall+1,m)Â =Â building_pars(ind_tc1,building_type)Â |
---|
3532 | Â Â Â Â Â Â surf_usm_h%lambda_h_green(nzb_wall+2,m)Â =Â building_pars(ind_tc2,building_type) |
---|
3533 | Â Â Â Â Â Â surf_usm_h%lambda_h_green(nzb_wall+3,m)Â =Â building_pars(ind_tc3,building_type) |
---|
3534 | Â Â Â Â Â Â surf_usm_h%rho_c_window(nzb_wall,m)Â Â =Â building_pars(ind_hc1,building_type)Â |
---|
3535 | Â Â Â Â Â Â surf_usm_h%rho_c_window(nzb_wall+1,m)Â =Â building_pars(ind_hc1,building_type) |
---|
3536 | Â Â Â Â Â Â surf_usm_h%rho_c_window(nzb_wall+2,m)Â =Â building_pars(ind_hc2,building_type) |
---|
3537 | Â Â Â Â Â Â surf_usm_h%rho_c_window(nzb_wall+3,m)Â =Â building_pars(ind_hc3,building_type)Â Â |
---|
3538 | Â Â Â Â Â Â surf_usm_h%lambda_h_window(nzb_wall,m)Â Â =Â building_pars(ind_tc1,building_type)Â |
---|
3539 | Â Â Â Â Â Â surf_usm_h%lambda_h_window(nzb_wall+1,m)Â =Â building_pars(ind_tc1,building_type)Â |
---|
3540 | Â Â Â Â Â Â surf_usm_h%lambda_h_window(nzb_wall+2,m)Â =Â building_pars(ind_tc2,building_type) |
---|
3541 | Â Â Â Â Â Â surf_usm_h%lambda_h_window(nzb_wall+3,m)Â =Â building_pars(ind_tc3,building_type)Â Â |
---|
3542 | |
---|
3543 | Â Â Â Â Â Â surf_usm_h%target_temp_summer(m)Â =Â building_pars(12,building_type)Â Â |
---|
3544 | Â Â Â Â Â Â surf_usm_h%target_temp_winter(m)Â =Â building_pars(13,building_type)Â Â |
---|
3545 | ! |
---|
3546 | !--Â Â Â Â emissivity of wall-, green- and window fraction |
---|
3547 | Â Â Â Â Â Â surf_usm_h%emissivity(0,m)Â Â Â Â =Â building_pars(ind_emis_wall,building_type) |
---|
3548 | Â Â Â Â Â Â surf_usm_h%emissivity(1,m)Â Â Â Â =Â building_pars(ind_emis_green,building_type) |
---|
3549 | Â Â Â Â Â Â surf_usm_h%emissivity(2,m)Â Â Â Â =Â building_pars(ind_emis_win,building_type) |
---|
3550 | |
---|
3551 | Â Â Â Â Â Â surf_usm_h%transmissivity(m)Â Â Â =Â building_pars(ind_trans,building_type) |
---|
3552 | |
---|
3553 | Â Â Â Â Â Â surf_usm_h%z0(m)Â Â Â Â Â Â Â Â Â =Â building_pars(ind_z0,building_type) |
---|
3554 | Â Â Â Â Â Â surf_usm_h%z0h(m)Â Â Â Â Â Â Â Â Â =Â building_pars(ind_z0qh,building_type) |
---|
3555 | Â Â Â Â Â Â surf_usm_h%z0q(m)Â Â Â Â Â Â Â Â Â =Â building_pars(ind_z0qh,building_type) |
---|
3556 | ! |
---|
3557 | !--Â Â Â Â albedo type for wall fraction, green fraction, window fraction |
---|
3558 | Â Â Â Â Â Â surf_usm_h%albedo_type(0,m)Â Â Â Â =Â INT(Â building_pars(ind_alb_wall,building_type)Â ) |
---|
3559 | Â Â Â Â Â Â surf_usm_h%albedo_type(1,m)Â Â Â Â =Â INT(Â building_pars(ind_alb_green,building_type)Â ) |
---|
3560 | Â Â Â Â Â Â surf_usm_h%albedo_type(2,m)Â Â Â Â =Â INT(Â building_pars(ind_alb_win,building_type)Â Â ) |
---|
3561 | |
---|
3562 | Â Â Â Â Â Â surf_usm_h%zw(nzb_wall,m)Â Â Â Â Â =Â building_pars(ind_thick_1,building_type) |
---|
3563 | Â Â Â Â Â Â surf_usm_h%zw(nzb_wall+1,m)Â Â Â Â =Â building_pars(ind_thick_2,building_type) |
---|
3564 | Â Â Â Â Â Â surf_usm_h%zw(nzb_wall+2,m)Â Â Â Â =Â building_pars(ind_thick_3,building_type) |
---|
3565 | Â Â Â Â Â Â surf_usm_h%zw(nzb_wall+3,m)Â Â Â Â =Â building_pars(ind_thick_4,building_type) |
---|
3566 | Â Â Â Â Â Â |
---|
3567 | Â Â Â Â Â Â surf_usm_h%zw_green(nzb_wall,m)Â Â Â Â Â =Â building_pars(ind_thick_1,building_type) |
---|
3568 | Â Â Â Â Â Â surf_usm_h%zw_green(nzb_wall+1,m)Â Â Â Â =Â building_pars(ind_thick_2,building_type) |
---|
3569 | Â Â Â Â Â Â surf_usm_h%zw_green(nzb_wall+2,m)Â Â Â Â =Â building_pars(ind_thick_3,building_type) |
---|
3570 | Â Â Â Â Â Â surf_usm_h%zw_green(nzb_wall+3,m)Â Â Â Â =Â building_pars(ind_thick_4,building_type) |
---|
3571 | Â Â Â Â Â Â |
---|
3572 | Â Â Â Â Â Â surf_usm_h%zw_window(nzb_wall,m)Â Â Â Â Â =Â building_pars(ind_thick_1,building_type) |
---|
3573 | Â Â Â Â Â Â surf_usm_h%zw_window(nzb_wall+1,m)Â Â Â Â =Â building_pars(ind_thick_2,building_type) |
---|
3574 | Â Â Â Â Â Â surf_usm_h%zw_window(nzb_wall+2,m)Â Â Â Â =Â building_pars(ind_thick_3,building_type) |
---|
3575 | Â Â Â Â Â Â surf_usm_h%zw_window(nzb_wall+3,m)Â Â Â Â =Â building_pars(ind_thick_4,building_type) |
---|
3576 | |
---|
3577 | Â Â Â Â Â Â surf_usm_h%c_surface(m)Â Â Â Â Â Â =Â building_pars(45,building_type)Â |
---|
3578 | Â Â Â Â Â Â surf_usm_h%lambda_surf(m)Â Â Â Â Â =Â building_pars(46,building_type)Â |
---|
3579 | Â Â Â Â Â Â surf_usm_h%c_surface_green(m)Â Â Â =Â building_pars(45,building_type)Â |
---|
3580 | Â Â Â Â Â Â surf_usm_h%lambda_surf_green(m)Â Â =Â building_pars(46,building_type)Â |
---|
3581 | Â Â Â Â Â Â surf_usm_h%c_surface_window(m)Â Â =Â building_pars(45,building_type)Â |
---|
3582 | Â Â Â Â Â Â surf_usm_h%lambda_surf_window(m)Â =Â building_pars(46,building_type)Â |
---|
3583 | |
---|
3584 | Â Â Â Â ENDDO |
---|
3585 | |
---|
3586 |     DO l = 0, 3 |
---|
3587 |       DO m = 1, surf_usm_v(l)%ns |
---|
3588 | |
---|
3589 |        surf_usm_v(l)%surface_types(m) = wall_category     !< default category for root surface |
---|
3590 | ! |
---|
3591 | !--Â Â Â Â Â Â In order to distinguish between ground floor level and |
---|
3592 | !--Â Â Â Â Â Â above-ground-floor level surfaces, set input indices. |
---|
3593 |        ind_wall_frac  = MERGE( ind_wall_frac_gfl,  ind_wall_frac_agfl,  & |
---|
3594 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%ground_level(m)Â ) |
---|
3595 |        ind_win_frac   = MERGE( ind_win_frac_gfl,   ind_win_frac_agfl,   & |
---|
3596 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%ground_level(m)Â ) |
---|
3597 |        ind_green_frac_w = MERGE( ind_green_frac_w_gfl, ind_green_frac_w_agfl, & |
---|
3598 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%ground_level(m)Â ) |
---|
3599 |        ind_green_frac_r = MERGE( ind_green_frac_r_gfl, ind_green_frac_r_agfl, & |
---|
3600 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%ground_level(m)Â ) |
---|
3601 |        ind_lai_r    = MERGE( ind_lai_r_gfl,    ind_lai_r_agfl,    & |
---|
3602 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%ground_level(m)Â ) |
---|
3603 |        ind_lai_w    = MERGE( ind_lai_w_gfl,    ind_lai_w_agfl,    & |
---|
3604 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%ground_level(m)Â ) |
---|
3605 |        ind_hc1     = MERGE( ind_hc1_gfl,     ind_hc1_agfl,     & |
---|
3606 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%ground_level(m)Â ) |
---|
3607 |        ind_hc2     = MERGE( ind_hc2_gfl,     ind_hc2_agfl,     & |
---|
3608 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%ground_level(m)Â ) |
---|
3609 |        ind_hc3     = MERGE( ind_hc3_gfl,     ind_hc3_agfl,     & |
---|
3610 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%ground_level(m)Â ) |
---|
3611 |        ind_tc1     = MERGE( ind_tc1_gfl,     ind_tc1_agfl,     & |
---|
3612 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%ground_level(m)Â ) |
---|
3613 |        ind_tc2     = MERGE( ind_tc2_gfl,     ind_tc2_agfl,     & |
---|
3614 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%ground_level(m)Â ) |
---|
3615 |        ind_tc3     = MERGE( ind_tc3_gfl,     ind_tc3_agfl,     & |
---|
3616 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%ground_level(m)Â ) |
---|
3617 |        ind_emis_wall  = MERGE( ind_emis_wall_gfl,  ind_emis_wall_agfl,  & |
---|
3618 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%ground_level(m)Â ) |
---|
3619 |        ind_emis_green  = MERGE( ind_emis_green_gfl,  ind_emis_green_agfl,  & |
---|
3620 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%ground_level(m)Â ) |
---|
3621 |        ind_emis_win   = MERGE( ind_emis_win_gfl,   ind_emis_win_agfl,   & |
---|
3622 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%ground_level(m)Â ) |
---|
3623 |        ind_trans    = MERGE( ind_trans_gfl,    ind_trans_agfl,     & |
---|
3624 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%ground_level(m)Â ) |
---|
3625 |        ind_z0      = MERGE( ind_z0_gfl,      ind_z0_agfl,      & |
---|
3626 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%ground_level(m)Â ) |
---|
3627 |        ind_z0qh     = MERGE( ind_z0qh_gfl,     ind_z0qh_agfl,     & |
---|
3628 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%ground_level(m)Â ) |
---|
3629 | |
---|
3630 | ! |
---|
3631 | !--Â Â Â Â Â Â Initialize relatvie wall- (0), green- (1) and window (2) fractions |
---|
3632 | Â Â Â Â Â Â Â surf_usm_v(l)%frac(0,m)Â Â Â Â Â Â Â =Â building_pars(ind_wall_frac,building_type)Â Â |
---|
3633 | Â Â Â Â Â Â Â surf_usm_v(l)%frac(1,m)Â Â Â Â Â Â Â =Â building_pars(ind_green_frac_w,building_type)Â |
---|
3634 | Â Â Â Â Â Â Â surf_usm_v(l)%frac(2,m)Â Â Â Â Â Â Â =Â building_pars(ind_win_frac,building_type)Â |
---|
3635 | Â Â Â Â Â Â Â surf_usm_v(l)%lai(m)Â Â Â Â Â Â Â Â Â =Â building_pars(ind_lai_w,building_type)Â |
---|
3636 | |
---|
3637 | Â Â Â Â Â Â Â surf_usm_v(l)%rho_c_wall(nzb_wall,m)Â Â =Â building_pars(ind_hc1,building_type)Â |
---|
3638 | Â Â Â Â Â Â Â surf_usm_v(l)%rho_c_wall(nzb_wall+1,m)Â =Â building_pars(ind_hc1,building_type) |
---|
3639 | Â Â Â Â Â Â Â surf_usm_v(l)%rho_c_wall(nzb_wall+2,m)Â =Â building_pars(ind_hc2,building_type) |
---|
3640 | Â Â Â Â Â Â Â surf_usm_v(l)%rho_c_wall(nzb_wall+3,m)Â =Â building_pars(ind_hc3,building_type)Â Â |
---|
3641 | Â Â Â Â Â Â Â |
---|
3642 | Â Â Â Â Â Â Â surf_usm_v(l)%rho_c_green(nzb_wall,m)Â Â =Â building_pars(ind_hc1,building_type)Â |
---|
3643 | Â Â Â Â Â Â Â surf_usm_v(l)%rho_c_green(nzb_wall+1,m)Â =Â building_pars(ind_hc1,building_type) |
---|
3644 | Â Â Â Â Â Â Â surf_usm_v(l)%rho_c_green(nzb_wall+2,m)Â =Â building_pars(ind_hc2,building_type) |
---|
3645 | Â Â Â Â Â Â Â surf_usm_v(l)%rho_c_green(nzb_wall+3,m)Â =Â building_pars(ind_hc3,building_type)Â Â |
---|
3646 | Â Â Â Â Â Â Â |
---|
3647 | Â Â Â Â Â Â Â surf_usm_v(l)%rho_c_window(nzb_wall,m)Â Â =Â building_pars(ind_hc1,building_type)Â |
---|
3648 | Â Â Â Â Â Â Â surf_usm_v(l)%rho_c_window(nzb_wall+1,m)Â =Â building_pars(ind_hc1,building_type) |
---|
3649 | Â Â Â Â Â Â Â surf_usm_v(l)%rho_c_window(nzb_wall+2,m)Â =Â building_pars(ind_hc2,building_type) |
---|
3650 | Â Â Â Â Â Â Â surf_usm_v(l)%rho_c_window(nzb_wall+3,m)Â =Â building_pars(ind_hc3,building_type)Â Â |
---|
3651 | |
---|
3652 | Â Â Â Â Â Â Â surf_usm_v(l)%lambda_h(nzb_wall,m)Â Â =Â building_pars(ind_tc1,building_type)Â |
---|
3653 | Â Â Â Â Â Â Â surf_usm_v(l)%lambda_h(nzb_wall+1,m)Â =Â building_pars(ind_tc1,building_type)Â |
---|
3654 | Â Â Â Â Â Â Â surf_usm_v(l)%lambda_h(nzb_wall+2,m)Â =Â building_pars(ind_tc2,building_type) |
---|
3655 | Â Â Â Â Â Â Â surf_usm_v(l)%lambda_h(nzb_wall+3,m)Â =Â building_pars(ind_tc3,building_type)Â Â |
---|
3656 | Â Â Â Â Â Â Â |
---|
3657 | Â Â Â Â Â Â Â surf_usm_v(l)%lambda_h_green(nzb_wall,m)Â Â =Â building_pars(ind_tc1,building_type)Â |
---|
3658 | Â Â Â Â Â Â Â surf_usm_v(l)%lambda_h_green(nzb_wall+1,m)Â =Â building_pars(ind_tc1,building_type)Â |
---|
3659 | Â Â Â Â Â Â Â surf_usm_v(l)%lambda_h_green(nzb_wall+2,m)Â =Â building_pars(ind_tc2,building_type) |
---|
3660 | Â Â Â Â Â Â Â surf_usm_v(l)%lambda_h_green(nzb_wall+3,m)Â =Â building_pars(ind_tc3,building_type)Â Â |
---|
3661 | |
---|
3662 | Â Â Â Â Â Â Â surf_usm_v(l)%lambda_h_window(nzb_wall,m)Â Â =Â building_pars(ind_tc1,building_type)Â |
---|
3663 | Â Â Â Â Â Â Â surf_usm_v(l)%lambda_h_window(nzb_wall+1,m)Â =Â building_pars(ind_tc1,building_type)Â |
---|
3664 | Â Â Â Â Â Â Â surf_usm_v(l)%lambda_h_window(nzb_wall+2,m)Â =Â building_pars(ind_tc2,building_type) |
---|
3665 | Â Â Â Â Â Â Â surf_usm_v(l)%lambda_h_window(nzb_wall+3,m)Â =Â building_pars(ind_tc3,building_type)Â Â |
---|
3666 | |
---|
3667 | Â Â Â Â Â Â Â surf_usm_v(l)%target_temp_summer(m)Â =Â building_pars(12,building_type)Â Â |
---|
3668 | Â Â Â Â Â Â Â surf_usm_v(l)%target_temp_winter(m)Â =Â building_pars(13,building_type)Â Â |
---|
3669 | ! |
---|
3670 | !--Â Â Â Â Â Â emissivity of wall-, green- and window fraction |
---|
3671 | Â Â Â Â Â Â Â surf_usm_v(l)%emissivity(0,m)Â Â Â Â =Â building_pars(ind_emis_wall,building_type) |
---|
3672 | Â Â Â Â Â Â Â surf_usm_v(l)%emissivity(1,m)Â Â Â Â =Â building_pars(ind_emis_green,building_type) |
---|
3673 | Â Â Â Â Â Â Â surf_usm_v(l)%emissivity(2,m)Â Â Â Â =Â building_pars(ind_emis_win,building_type) |
---|
3674 | |
---|
3675 | Â Â Â Â Â Â Â surf_usm_v(l)%transmissivity(m)Â Â Â =Â building_pars(ind_trans,building_type) |
---|
3676 | |
---|
3677 | Â Â Â Â Â Â Â surf_usm_v(l)%z0(m)Â Â Â Â Â Â Â Â Â =Â building_pars(ind_z0,building_type) |
---|
3678 | Â Â Â Â Â Â Â surf_usm_v(l)%z0h(m)Â Â Â Â Â Â Â Â Â =Â building_pars(ind_z0qh,building_type) |
---|
3679 | Â Â Â Â Â Â Â surf_usm_v(l)%z0q(m)Â Â Â Â Â Â Â Â Â =Â building_pars(ind_z0qh,building_type) |
---|
3680 | |
---|
3681 | Â Â Â Â Â Â Â surf_usm_v(l)%albedo_type(0,m)Â Â Â Â =Â INT(Â building_pars(ind_alb_wall,building_type)Â ) |
---|
3682 | Â Â Â Â Â Â Â surf_usm_v(l)%albedo_type(1,m)Â Â Â Â =Â INT(Â building_pars(ind_alb_green,building_type)Â ) |
---|
3683 | Â Â Â Â Â Â Â surf_usm_v(l)%albedo_type(2,m)Â Â Â Â =Â INT(Â building_pars(ind_alb_win,building_type)Â ) |
---|
3684 | |
---|
3685 | Â Â Â Â Â Â Â surf_usm_v(l)%zw(nzb_wall,m)Â Â Â Â Â =Â building_pars(ind_thick_1,building_type) |
---|
3686 | Â Â Â Â Â Â Â surf_usm_v(l)%zw(nzb_wall+1,m)Â Â Â Â =Â building_pars(ind_thick_2,building_type) |
---|
3687 | Â Â Â Â Â Â Â surf_usm_v(l)%zw(nzb_wall+2,m)Â Â Â Â =Â building_pars(ind_thick_3,building_type) |
---|
3688 | Â Â Â Â Â Â Â surf_usm_v(l)%zw(nzb_wall+3,m)Â Â Â Â =Â building_pars(ind_thick_4,building_type) |
---|
3689 | Â Â Â Â Â Â Â |
---|
3690 | Â Â Â Â Â Â Â surf_usm_v(l)%zw_green(nzb_wall,m)Â Â Â Â Â =Â building_pars(ind_thick_1,building_type) |
---|
3691 | Â Â Â Â Â Â Â surf_usm_v(l)%zw_green(nzb_wall+1,m)Â Â Â Â =Â building_pars(ind_thick_2,building_type) |
---|
3692 | Â Â Â Â Â Â Â surf_usm_v(l)%zw_green(nzb_wall+2,m)Â Â Â Â =Â building_pars(ind_thick_3,building_type) |
---|
3693 | Â Â Â Â Â Â Â surf_usm_v(l)%zw_green(nzb_wall+3,m)Â Â Â Â =Â building_pars(ind_thick_4,building_type) |
---|
3694 | |
---|
3695 | Â Â Â Â Â Â Â surf_usm_v(l)%zw_window(nzb_wall,m)Â Â Â Â Â =Â building_pars(ind_thick_1,building_type) |
---|
3696 | Â Â Â Â Â Â Â surf_usm_v(l)%zw_window(nzb_wall+1,m)Â Â Â Â =Â building_pars(ind_thick_2,building_type) |
---|
3697 | Â Â Â Â Â Â Â surf_usm_v(l)%zw_window(nzb_wall+2,m)Â Â Â Â =Â building_pars(ind_thick_3,building_type) |
---|
3698 | Â Â Â Â Â Â Â surf_usm_v(l)%zw_window(nzb_wall+3,m)Â Â Â Â =Â building_pars(ind_thick_4,building_type) |
---|
3699 | |
---|
3700 | Â Â Â Â Â Â Â surf_usm_v(l)%c_surface(m)Â Â Â Â Â Â =Â building_pars(45,building_type)Â |
---|
3701 | Â Â Â Â Â Â Â surf_usm_v(l)%lambda_surf(m)Â Â Â Â Â =Â building_pars(46,building_type) |
---|
3702 | Â Â Â Â Â Â Â surf_usm_v(l)%c_surface_green(m)Â Â Â =Â building_pars(45,building_type)Â |
---|
3703 | Â Â Â Â Â Â Â surf_usm_v(l)%lambda_surf_green(m)Â Â =Â building_pars(46,building_type) |
---|
3704 | Â Â Â Â Â Â Â surf_usm_v(l)%c_surface_window(m)Â Â =Â building_pars(45,building_type)Â |
---|
3705 | Â Â Â Â Â Â Â surf_usm_v(l)%lambda_surf_window(m)Â =Â building_pars(46,building_type) |
---|
3706 | |
---|
3707 | Â Â Â Â Â Â ENDDO |
---|
3708 | Â Â Â Â ENDDO |
---|
3709 | ! |
---|
3710 | !--Â Â Â Level 2 - initialization via building type read from file |
---|
3711 | Â Â Â Â IFÂ (Â building_type_f%from_file )Â THEN |
---|
3712 |       DO m = 1, surf_usm_h%ns |
---|
3713 | Â Â Â Â Â Â Â i =Â surf_usm_h%i(m) |
---|
3714 | Â Â Â Â Â Â Â j =Â surf_usm_h%j(m) |
---|
3715 | ! |
---|
3716 | !--Â Â Â Â Â Â For the moment, limit building type to 6 (to overcome errors in input file). |
---|
3717 | Â Â Â Â Â Â Â st =Â building_type_f%var(j,i) |
---|
3718 | Â Â Â Â Â Â Â IFÂ (Â st /=Â building_type_f%fill )Â THEN |
---|
3719 | |
---|
3720 | ! |
---|
3721 | !--Â Â Â Â Â Â Â In order to distinguish between ground floor level and |
---|
3722 | !--Â Â Â Â Â Â Â above-ground-floor level surfaces, set input indices. |
---|
3723 |          ind_wall_frac  = MERGE( ind_wall_frac_gfl,  ind_wall_frac_agfl,  & |
---|
3724 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%ground_level(m)Â ) |
---|
3725 |          ind_win_frac   = MERGE( ind_win_frac_gfl,   ind_win_frac_agfl,   & |
---|
3726 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%ground_level(m)Â ) |
---|
3727 |          ind_green_frac_w = MERGE( ind_green_frac_w_gfl, ind_green_frac_w_agfl, & |
---|
3728 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%ground_level(m)Â ) |
---|
3729 |          ind_green_frac_r = MERGE( ind_green_frac_r_gfl, ind_green_frac_r_agfl, & |
---|
3730 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%ground_level(m)Â ) |
---|
3731 |          ind_lai_r    = MERGE( ind_lai_r_gfl,    ind_lai_r_agfl,    & |
---|
3732 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%ground_level(m)Â ) |
---|
3733 |          ind_lai_w    = MERGE( ind_lai_w_gfl,    ind_lai_w_agfl,    & |
---|
3734 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%ground_level(m)Â ) |
---|
3735 |          ind_hc1     = MERGE( ind_hc1_gfl,     ind_hc1_agfl,     & |
---|
3736 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%ground_level(m)Â ) |
---|
3737 |          ind_hc2     = MERGE( ind_hc2_gfl,     ind_hc2_agfl,     & |
---|
3738 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%ground_level(m)Â ) |
---|
3739 |          ind_hc3     = MERGE( ind_hc3_gfl,     ind_hc3_agfl,     & |
---|
3740 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%ground_level(m)Â ) |
---|
3741 |          ind_tc1     = MERGE( ind_tc1_gfl,     ind_tc1_agfl,     & |
---|
3742 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%ground_level(m)Â ) |
---|
3743 |          ind_tc2     = MERGE( ind_tc2_gfl,     ind_tc2_agfl,     & |
---|
3744 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%ground_level(m)Â ) |
---|
3745 |          ind_tc3     = MERGE( ind_tc3_gfl,     ind_tc3_agfl,     & |
---|
3746 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%ground_level(m)Â ) |
---|
3747 |          ind_emis_wall  = MERGE( ind_emis_wall_gfl,  ind_emis_wall_agfl,  & |
---|
3748 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%ground_level(m)Â ) |
---|
3749 |          ind_emis_green  = MERGE( ind_emis_green_gfl,  ind_emis_green_agfl,  & |
---|
3750 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%ground_level(m)Â ) |
---|
3751 |          ind_emis_win   = MERGE( ind_emis_win_gfl,   ind_emis_win_agfl,   & |
---|
3752 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%ground_level(m)Â ) |
---|
3753 |          ind_trans    = MERGE( ind_trans_gfl,    ind_trans_agfl,    & |
---|
3754 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%ground_level(m)Â ) |
---|
3755 |          ind_z0      = MERGE( ind_z0_gfl,      ind_z0_agfl,      & |
---|
3756 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%ground_level(m)Â ) |
---|
3757 |          ind_z0qh     = MERGE( ind_z0qh_gfl,     ind_z0qh_agfl,     & |
---|
3758 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%ground_level(m)Â ) |
---|
3759 | |
---|
3760 | ! |
---|
3761 | !--Â Â Â Â Â Â Â Initialize relatvie wall- (0), green- (1) and window (2) fractions |
---|
3762 | Â Â Â Â Â Â Â Â Â surf_usm_h%frac(0,m)Â Â =Â building_pars(ind_wall_frac,st)Â Â |
---|
3763 | Â Â Â Â Â Â Â Â Â surf_usm_h%frac(1,m)Â Â =Â building_pars(ind_green_frac_r,st)Â |
---|
3764 | Â Â Â Â Â Â Â Â Â surf_usm_h%frac(2,m)Â Â =Â building_pars(ind_win_frac,st)Â |
---|
3765 | Â Â Â Â Â Â Â Â Â surf_usm_h%lai(m)Â Â Â =Â building_pars(ind_green_frac_r,st)Â |
---|
3766 | |
---|
3767 | Â Â Â Â Â Â Â Â Â surf_usm_h%rho_c_wall(nzb_wall,m)Â Â =Â building_pars(ind_hc1,st)Â |
---|
3768 | Â Â Â Â Â Â Â Â Â surf_usm_h%rho_c_wall(nzb_wall+1,m)Â =Â building_pars(ind_hc1,st) |
---|
3769 | Â Â Â Â Â Â Â Â Â surf_usm_h%rho_c_wall(nzb_wall+2,m)Â =Â building_pars(ind_hc2,st) |
---|
3770 | Â Â Â Â Â Â Â Â Â surf_usm_h%rho_c_wall(nzb_wall+3,m)Â =Â building_pars(ind_hc3,st)Â Â |
---|
3771 | Â Â Â Â Â Â Â Â Â surf_usm_h%lambda_h(nzb_wall,m)Â Â =Â building_pars(ind_tc1,st)Â |
---|
3772 | Â Â Â Â Â Â Â Â Â surf_usm_h%lambda_h(nzb_wall+1,m)Â =Â building_pars(ind_tc1,st)Â |
---|
3773 | Â Â Â Â Â Â Â Â Â surf_usm_h%lambda_h(nzb_wall+2,m)Â =Â building_pars(ind_tc2,st) |
---|
3774 | Â Â Â Â Â Â Â Â Â surf_usm_h%lambda_h(nzb_wall+3,m)Â =Â building_pars(ind_tc3,st)Â Â |
---|
3775 | Â Â Â Â Â Â Â Â Â |
---|
3776 | Â Â Â Â Â Â Â Â Â surf_usm_h%rho_c_green(nzb_wall,m)Â Â =Â building_pars(ind_hc1,st)Â |
---|
3777 | Â Â Â Â Â Â Â Â Â surf_usm_h%rho_c_green(nzb_wall+1,m)Â =Â building_pars(ind_hc1,st) |
---|
3778 | Â Â Â Â Â Â Â Â Â surf_usm_h%rho_c_green(nzb_wall+2,m)Â =Â building_pars(ind_hc2,st) |
---|
3779 | Â Â Â Â Â Â Â Â Â surf_usm_h%rho_c_green(nzb_wall+3,m)Â =Â building_pars(ind_hc3,st)Â Â |
---|
3780 | Â Â Â Â Â Â Â Â Â surf_usm_h%lambda_h_green(nzb_wall,m)Â Â =Â building_pars(ind_tc1,st)Â |
---|
3781 | Â Â Â Â Â Â Â Â Â surf_usm_h%lambda_h_green(nzb_wall+1,m)Â =Â building_pars(ind_tc1,st)Â |
---|
3782 | Â Â Â Â Â Â Â Â Â surf_usm_h%lambda_h_green(nzb_wall+2,m)Â =Â building_pars(ind_tc2,st) |
---|
3783 | Â Â Â Â Â Â Â Â Â surf_usm_h%lambda_h_green(nzb_wall+3,m)Â =Â building_pars(ind_tc3,st)Â Â |
---|
3784 | Â Â Â Â Â Â Â Â |
---|
3785 | Â Â Â Â Â Â Â Â Â surf_usm_h%rho_c_window(nzb_wall,m)Â Â =Â building_pars(ind_hc1,st)Â |
---|
3786 | Â Â Â Â Â Â Â Â Â surf_usm_h%rho_c_window(nzb_wall+1,m)Â =Â building_pars(ind_hc1,st) |
---|
3787 | Â Â Â Â Â Â Â Â Â surf_usm_h%rho_c_window(nzb_wall+2,m)Â =Â building_pars(ind_hc2,st) |
---|
3788 | Â Â Â Â Â Â Â Â Â surf_usm_h%rho_c_window(nzb_wall+3,m)Â =Â building_pars(ind_hc3,st)Â Â |
---|
3789 | Â Â Â Â Â Â Â Â Â surf_usm_h%lambda_h_window(nzb_wall,m)Â Â =Â building_pars(ind_tc1,st)Â |
---|
3790 | Â Â Â Â Â Â Â Â Â surf_usm_h%lambda_h_window(nzb_wall+1,m)Â =Â building_pars(ind_tc1,st)Â |
---|
3791 | Â Â Â Â Â Â Â Â Â surf_usm_h%lambda_h_window(nzb_wall+2,m)Â =Â building_pars(ind_tc2,st) |
---|
3792 | Â Â Â Â Â Â Â Â Â surf_usm_h%lambda_h_window(nzb_wall+3,m)Â =Â building_pars(ind_tc3,st)Â Â |
---|
3793 | |
---|
3794 | Â Â Â Â Â Â Â Â Â surf_usm_h%target_temp_summer(m)Â =Â building_pars(12,st)Â Â |
---|
3795 | Â Â Â Â Â Â Â Â Â surf_usm_h%target_temp_winter(m)Â =Â building_pars(13,st)Â Â |
---|
3796 | ! |
---|
3797 | !--Â Â Â Â Â Â Â emissivity of wall-, green- and window fraction |
---|
3798 | Â Â Â Â Â Â Â Â Â surf_usm_h%emissivity(0,m)Â Â Â Â =Â building_pars(ind_emis_wall,st) |
---|
3799 | Â Â Â Â Â Â Â Â Â surf_usm_h%emissivity(1,m)Â Â Â Â =Â building_pars(ind_emis_green,st) |
---|
3800 | Â Â Â Â Â Â Â Â Â surf_usm_h%emissivity(2,m)Â Â Â Â =Â building_pars(ind_emis_win,st) |
---|
3801 | |
---|
3802 | Â Â Â Â Â Â Â Â Â surf_usm_h%transmissivity(m)Â Â Â =Â building_pars(ind_trans,st) |
---|
3803 | |
---|
3804 | Â Â Â Â Â Â Â Â Â surf_usm_h%z0(m)Â Â Â Â Â Â Â Â Â =Â building_pars(ind_z0,st) |
---|
3805 | Â Â Â Â Â Â Â Â Â surf_usm_h%z0h(m)Â Â Â Â Â Â Â Â Â =Â building_pars(ind_z0qh,st) |
---|
3806 | Â Â Â Â Â Â Â Â Â surf_usm_h%z0q(m)Â Â Â Â Â Â Â Â Â =Â building_pars(ind_z0qh,st) |
---|
3807 | ! |
---|
3808 | !--Â Â Â Â Â Â Â albedo type for wall fraction, green fraction, window fraction |
---|
3809 | Â Â Â Â Â Â Â Â Â surf_usm_h%albedo_type(0,m)Â Â Â Â =Â INT(Â building_pars(ind_alb_wall,st)Â ) |
---|
3810 | Â Â Â Â Â Â Â Â Â surf_usm_h%albedo_type(1,m)Â Â Â Â =Â INT(Â building_pars(ind_alb_green,st)Â ) |
---|
3811 | Â Â Â Â Â Â Â Â Â surf_usm_h%albedo_type(2,m)Â Â Â Â =Â INT(Â building_pars(ind_alb_win,st)Â ) |
---|
3812 | |
---|
3813 | Â Â Â Â Â Â Â Â Â surf_usm_h%zw(nzb_wall,m)Â Â Â Â Â =Â building_pars(ind_thick_1,st) |
---|
3814 | Â Â Â Â Â Â Â Â Â surf_usm_h%zw(nzb_wall+1,m)Â Â Â Â =Â building_pars(ind_thick_2,st) |
---|
3815 | Â Â Â Â Â Â Â Â Â surf_usm_h%zw(nzb_wall+2,m)Â Â Â Â =Â building_pars(ind_thick_3,st) |
---|
3816 | Â Â Â Â Â Â Â Â Â surf_usm_h%zw(nzb_wall+3,m)Â Â Â Â =Â building_pars(ind_thick_4,st) |
---|
3817 | Â Â Â Â Â Â Â Â Â |
---|
3818 | Â Â Â Â Â Â Â Â Â surf_usm_h%zw_green(nzb_wall,m)Â Â Â Â Â =Â building_pars(ind_thick_1,st) |
---|
3819 | Â Â Â Â Â Â Â Â Â surf_usm_h%zw_green(nzb_wall+1,m)Â Â Â Â =Â building_pars(ind_thick_2,st) |
---|
3820 | Â Â Â Â Â Â Â Â Â surf_usm_h%zw_green(nzb_wall+2,m)Â Â Â Â =Â building_pars(ind_thick_3,st) |
---|
3821 | Â Â Â Â Â Â Â Â Â surf_usm_h%zw_green(nzb_wall+3,m)Â Â Â Â =Â building_pars(ind_thick_4,st) |
---|
3822 | |
---|
3823 | Â Â Â Â Â Â Â Â Â surf_usm_h%zw_window(nzb_wall,m)Â Â Â Â Â =Â building_pars(ind_thick_1,st) |
---|
3824 | Â Â Â Â Â Â Â Â Â surf_usm_h%zw_window(nzb_wall+1,m)Â Â Â Â =Â building_pars(ind_thick_2,st) |
---|
3825 | Â Â Â Â Â Â Â Â Â surf_usm_h%zw_window(nzb_wall+2,m)Â Â Â Â =Â building_pars(ind_thick_3,st) |
---|
3826 | Â Â Â Â Â Â Â Â Â surf_usm_h%zw_window(nzb_wall+3,m)Â Â Â Â =Â building_pars(ind_thick_4,st) |
---|
3827 | |
---|
3828 | Â Â Â Â Â Â Â Â Â surf_usm_h%c_surface(m)Â Â Â Â Â Â =Â building_pars(45,st)Â |
---|
3829 | Â Â Â Â Â Â Â Â Â surf_usm_h%lambda_surf(m)Â Â Â Â Â =Â building_pars(46,st) |
---|
3830 | Â Â Â Â Â Â Â Â Â surf_usm_h%c_surface_green(m)Â Â Â =Â building_pars(45,st)Â |
---|
3831 | Â Â Â Â Â Â Â Â Â surf_usm_h%lambda_surf_green(m)Â Â =Â building_pars(46,st) |
---|
3832 | Â Â Â Â Â Â Â Â Â surf_usm_h%c_surface_window(m)Â Â =Â building_pars(45,st)Â |
---|
3833 | Â Â Â Â Â Â Â Â Â surf_usm_h%lambda_surf_window(m)Â =Â building_pars(46,st) |
---|
3834 | |
---|
3835 | Â Â Â Â Â Â Â ENDIF |
---|
3836 | Â Â Â Â Â Â ENDDO |
---|
3837 | |
---|
3838 |       DO l = 0, 3 |
---|
3839 |        DO m = 1, surf_usm_v(l)%ns |
---|
3840 | Â Â Â Â Â Â Â Â Â i =Â surf_usm_v(l)%i(m)Â +Â surf_usm_v(l)%ioff |
---|
3841 | Â Â Â Â Â Â Â Â Â j =Â surf_usm_v(l)%j(m)Â +Â surf_usm_v(l)%joff |
---|
3842 | ! |
---|
3843 | !--Â Â Â Â Â Â Â For the moment, limit building type to 6 (to overcome errors in input file). |
---|
3844 | |
---|
3845 | Â Â Â Â Â Â Â Â Â st =Â building_type_f%var(j,i) |
---|
3846 | Â Â Â Â Â Â Â Â Â IFÂ (Â st /=Â building_type_f%fill )Â THEN |
---|
3847 | |
---|
3848 | ! |
---|
3849 | !--Â Â Â Â Â Â Â Â Â In order to distinguish between ground floor level and |
---|
3850 | !--Â Â Â Â Â Â Â Â Â above-ground-floor level surfaces, set input indices. |
---|
3851 |           ind_wall_frac  = MERGE( ind_wall_frac_gfl,  ind_wall_frac_agfl,  & |
---|
3852 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%ground_level(m)Â ) |
---|
3853 |           ind_win_frac   = MERGE( ind_win_frac_gfl,   ind_win_frac_agfl,   & |
---|
3854 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%ground_level(m)Â ) |
---|
3855 |           ind_green_frac_w = MERGE( ind_green_frac_w_gfl, ind_green_frac_w_agfl, & |
---|
3856 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%ground_level(m)Â ) |
---|
3857 |           ind_green_frac_r = MERGE( ind_green_frac_r_gfl, ind_green_frac_r_agfl, & |
---|
3858 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%ground_level(m)Â ) |
---|
3859 |           ind_lai_r    = MERGE( ind_lai_r_gfl,    ind_lai_r_agfl,    & |
---|
3860 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%ground_level(m)Â ) |
---|
3861 |           ind_lai_w    = MERGE( ind_lai_w_gfl,    ind_lai_w_agfl,    & |
---|
3862 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%ground_level(m)Â ) |
---|
3863 |           ind_hc1     = MERGE( ind_hc1_gfl,     ind_hc1_agfl,     & |
---|
3864 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%ground_level(m)Â ) |
---|
3865 |           ind_hc2     = MERGE( ind_hc2_gfl,     ind_hc2_agfl,     & |
---|
3866 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%ground_level(m)Â ) |
---|
3867 |           ind_hc3     = MERGE( ind_hc3_gfl,     ind_hc3_agfl,     & |
---|
3868 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%ground_level(m)Â ) |
---|
3869 |           ind_tc1     = MERGE( ind_tc1_gfl,     ind_tc1_agfl,     & |
---|
3870 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%ground_level(m)Â ) |
---|
3871 |           ind_tc2     = MERGE( ind_tc2_gfl,     ind_tc2_agfl,     & |
---|
3872 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%ground_level(m)Â ) |
---|
3873 |           ind_tc3     = MERGE( ind_tc3_gfl,     ind_tc3_agfl,     & |
---|
3874 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%ground_level(m)Â ) |
---|
3875 |           ind_emis_wall  = MERGE( ind_emis_wall_gfl,  ind_emis_wall_agfl,  & |
---|
3876 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%ground_level(m)Â ) |
---|
3877 |           ind_emis_green  = MERGE( ind_emis_green_gfl,  ind_emis_green_agfl,  & |
---|
3878 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%ground_level(m)Â ) |
---|
3879 |           ind_emis_win   = MERGE( ind_emis_win_gfl,   ind_emis_win_agfl,   & |
---|
3880 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%ground_level(m)Â ) |
---|
3881 |           ind_trans    = MERGE( ind_trans_gfl,    ind_trans_agfl,     & |
---|
3882 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%ground_level(m)Â ) |
---|
3883 |           ind_z0      = MERGE( ind_z0_gfl,      ind_z0_agfl,      & |
---|
3884 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%ground_level(m)Â ) |
---|
3885 |           ind_z0qh     = MERGE( ind_z0qh_gfl,     ind_z0qh_agfl,     & |
---|
3886 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%ground_level(m)Â ) |
---|
3887 | |
---|
3888 | ! |
---|
3889 | !--Â Â Â Â Â Â Â Â Â Initialize relatvie wall- (0), green- (1) and window (2) fractions |
---|
3890 | Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%frac(0,m)Â =Â building_pars(ind_wall_frac,st)Â Â |
---|
3891 | Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%frac(1,m)Â =Â building_pars(ind_green_frac_w,st)Â |
---|
3892 | Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%frac(2,m)Â =Â building_pars(ind_win_frac,st)Â Â |
---|
3893 | Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%lai(m)Â Â =Â building_pars(ind_lai_w,st)Â |
---|
3894 | |
---|
3895 | Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%rho_c_wall(nzb_wall,m)Â Â =Â building_pars(ind_hc1,st)Â |
---|
3896 | Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%rho_c_wall(nzb_wall+1,m)Â =Â building_pars(ind_hc1,st) |
---|
3897 | Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%rho_c_wall(nzb_wall+2,m)Â =Â building_pars(ind_hc2,st) |
---|
3898 | Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%rho_c_wall(nzb_wall+3,m)Â =Â building_pars(ind_hc3,st) |
---|
3899 | Â Â Â Â Â Â Â Â Â Â |
---|
3900 | Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%rho_c_green(nzb_wall,m)Â Â =Â building_pars(ind_hc1,st)Â |
---|
3901 | Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%rho_c_green(nzb_wall+1,m)Â =Â building_pars(ind_hc1,st) |
---|
3902 | Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%rho_c_green(nzb_wall+2,m)Â =Â building_pars(ind_hc2,st) |
---|
3903 | Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%rho_c_green(nzb_wall+3,m)Â =Â building_pars(ind_hc3,st) |
---|
3904 | Â Â Â Â Â Â Â Â Â Â |
---|
3905 | Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%rho_c_window(nzb_wall,m)Â Â =Â building_pars(ind_hc1,st)Â |
---|
3906 | Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%rho_c_window(nzb_wall+1,m)Â =Â building_pars(ind_hc1,st) |
---|
3907 | Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%rho_c_window(nzb_wall+2,m)Â =Â building_pars(ind_hc2,st) |
---|
3908 | Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%rho_c_window(nzb_wall+3,m)Â =Â building_pars(ind_hc3,st) |
---|
3909 | |
---|
3910 | Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%lambda_h(nzb_wall,m)Â Â =Â building_pars(ind_tc1,st)Â |
---|
3911 | Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%lambda_h(nzb_wall+1,m)Â =Â building_pars(ind_tc1,st)Â |
---|
3912 | Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%lambda_h(nzb_wall+2,m)Â =Â building_pars(ind_tc2,st) |
---|
3913 | Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%lambda_h(nzb_wall+3,m)Â =Â building_pars(ind_tc3,st)Â |
---|
3914 | Â Â Â Â Â Â Â Â Â Â |
---|
3915 | Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%lambda_h_green(nzb_wall,m)Â Â =Â building_pars(ind_tc1,st)Â |
---|
3916 | Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%lambda_h_green(nzb_wall+1,m)Â =Â building_pars(ind_tc1,st)Â |
---|
3917 | Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%lambda_h_green(nzb_wall+2,m)Â =Â building_pars(ind_tc2,st) |
---|
3918 | Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%lambda_h_green(nzb_wall+3,m)Â =Â building_pars(ind_tc3,st)Â |
---|
3919 | Â Â Â Â Â Â Â Â Â Â |
---|
3920 | Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%lambda_h_window(nzb_wall,m)Â Â =Â building_pars(ind_tc1,st)Â |
---|
3921 | Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%lambda_h_window(nzb_wall+1,m)Â =Â building_pars(ind_tc1,st)Â |
---|
3922 | Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%lambda_h_window(nzb_wall+2,m)Â =Â building_pars(ind_tc2,st) |
---|
3923 | Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%lambda_h_window(nzb_wall+3,m)Â =Â building_pars(ind_tc3,st)Â |
---|
3924 | |
---|
3925 | Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%target_temp_summer(m)Â =Â building_pars(12,st)Â Â |
---|
3926 | Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%target_temp_winter(m)Â =Â building_pars(13,st)Â Â |
---|
3927 | ! |
---|
3928 | !--Â Â Â Â Â Â Â Â Â emissivity of wall-, green- and window fraction |
---|
3929 | Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%emissivity(0,m)Â Â Â Â =Â building_pars(ind_emis_wall,st) |
---|
3930 | Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%emissivity(1,m)Â Â Â Â =Â building_pars(ind_emis_green,st) |
---|
3931 | Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%emissivity(2,m)Â Â Â Â =Â building_pars(ind_emis_win,st) |
---|
3932 | |
---|
3933 | Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%transmissivity(m)Â Â Â =Â building_pars(ind_trans,st) |
---|
3934 | |
---|
3935 | Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%z0(m)Â Â Â Â Â Â Â Â Â =Â building_pars(ind_z0,st) |
---|
3936 | Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%z0h(m)Â Â Â Â Â Â Â Â Â =Â building_pars(ind_z0qh,st) |
---|
3937 | Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%z0q(m)Â Â Â Â Â Â Â Â Â =Â building_pars(ind_z0qh,st) |
---|
3938 | |
---|
3939 | Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%albedo_type(0,m)Â Â Â Â =Â INT(Â building_pars(ind_alb_wall,st)Â ) |
---|
3940 | Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%albedo_type(1,m)Â Â Â Â =Â INT(Â building_pars(ind_alb_green,st)Â ) |
---|
3941 | Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%albedo_type(2,m)Â Â Â Â =Â INT(Â building_pars(ind_alb_win,st)Â ) |
---|
3942 | |
---|
3943 | Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%zw(nzb_wall,m)Â Â Â Â Â =Â building_pars(ind_thick_1,st) |
---|
3944 | Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%zw(nzb_wall+1,m)Â Â Â Â =Â building_pars(ind_thick_2,st) |
---|
3945 | Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%zw(nzb_wall+2,m)Â Â Â Â =Â building_pars(ind_thick_3,st) |
---|
3946 | Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%zw(nzb_wall+3,m)Â Â Â Â =Â building_pars(ind_thick_4,st) |
---|
3947 | Â Â Â Â Â Â Â Â Â Â |
---|
3948 | Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%zw_green(nzb_wall,m)Â Â Â Â Â =Â building_pars(ind_thick_1,st) |
---|
3949 | Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%zw_green(nzb_wall+1,m)Â Â Â Â =Â building_pars(ind_thick_2,st) |
---|
3950 | Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%zw_green(nzb_wall+2,m)Â Â Â Â =Â building_pars(ind_thick_3,st) |
---|
3951 | Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%zw_green(nzb_wall+3,m)Â Â Â Â =Â building_pars(ind_thick_4,st) |
---|
3952 | Â Â Â Â Â Â Â Â Â Â |
---|
3953 | Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%zw_window(nzb_wall,m)Â Â Â Â Â =Â building_pars(ind_thick_1,st) |
---|
3954 | Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%zw_window(nzb_wall+1,m)Â Â Â Â =Â building_pars(ind_thick_2,st) |
---|
3955 | Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%zw_window(nzb_wall+2,m)Â Â Â Â =Â building_pars(ind_thick_3,st) |
---|
3956 | Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%zw_window(nzb_wall+3,m)Â Â Â Â =Â building_pars(ind_thick_4,st) |
---|
3957 | |
---|
3958 | Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%c_surface(m)Â Â Â Â Â Â =Â building_pars(45,st)Â |
---|
3959 | Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%lambda_surf(m)Â Â Â Â Â =Â building_pars(46,st)Â |
---|
3960 | Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%c_surface_green(m)Â Â Â =Â building_pars(45,st)Â |
---|
3961 | Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%lambda_surf_green(m)Â Â =Â building_pars(46,st)Â |
---|
3962 | Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%c_surface_window(m)Â Â =Â building_pars(45,st)Â |
---|
3963 | Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%lambda_surf_window(m)Â =Â building_pars(46,st)Â |
---|
3964 | |
---|
3965 | |
---|
3966 | Â Â Â Â Â Â Â Â Â ENDIF |
---|
3967 | Â Â Â Â Â Â Â ENDDO |
---|
3968 | Â Â Â Â Â Â ENDDO |
---|
3969 | Â Â Â Â ENDIF |
---|
3970 | |
---|
3971 | ! |
---|
3972 | !--Â Â Â Level 3 - initialization via building_pars read from file |
---|
3973 | Â Â Â Â IFÂ (Â building_pars_f%from_file )Â THEN |
---|
3974 |       DO m = 1, surf_usm_h%ns |
---|
3975 | Â Â Â Â Â Â Â i =Â surf_usm_h%i(m) |
---|
3976 | Â Â Â Â Â Â Â j =Â surf_usm_h%j(m) |
---|
3977 | |
---|
3978 | ! |
---|
3979 | !--Â Â Â Â Â Â In order to distinguish between ground floor level and |
---|
3980 | !--Â Â Â Â Â Â above-ground-floor level surfaces, set input indices. |
---|
3981 |        ind_wall_frac  = MERGE( ind_wall_frac_gfl,  ind_wall_frac_agfl,  & |
---|
3982 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%ground_level(m)Â ) |
---|
3983 |        ind_win_frac   = MERGE( ind_win_frac_gfl,   ind_win_frac_agfl,   & |
---|
3984 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%ground_level(m)Â ) |
---|
3985 |        ind_green_frac_w = MERGE( ind_green_frac_w_gfl, ind_green_frac_w_agfl, & |
---|
3986 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%ground_level(m)Â ) |
---|
3987 |        ind_green_frac_r = MERGE( ind_green_frac_r_gfl, ind_green_frac_r_agfl, & |
---|
3988 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%ground_level(m)Â ) |
---|
3989 |        ind_lai_r    = MERGE( ind_lai_r_gfl,    ind_lai_r_agfl,    & |
---|
3990 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%ground_level(m)Â ) |
---|
3991 |        ind_lai_w    = MERGE( ind_lai_w_gfl,    ind_lai_w_agfl,    & |
---|
3992 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%ground_level(m)Â ) |
---|
3993 |        ind_hc1     = MERGE( ind_hc1_gfl,     ind_hc1_agfl,     & |
---|
3994 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%ground_level(m)Â ) |
---|
3995 |        ind_hc2     = MERGE( ind_hc2_gfl,     ind_hc2_agfl,     & |
---|
3996 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%ground_level(m)Â ) |
---|
3997 |        ind_hc3     = MERGE( ind_hc3_gfl,     ind_hc3_agfl,     & |
---|
3998 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%ground_level(m)Â ) |
---|
3999 |        ind_tc1     = MERGE( ind_tc1_gfl,     ind_tc1_agfl,     & |
---|
4000 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%ground_level(m)Â ) |
---|
4001 |        ind_tc2     = MERGE( ind_tc2_gfl,     ind_tc2_agfl,     & |
---|
4002 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%ground_level(m)Â ) |
---|
4003 |        ind_tc3     = MERGE( ind_tc3_gfl,     ind_tc3_agfl,     & |
---|
4004 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%ground_level(m)Â ) |
---|
4005 |        ind_emis_wall  = MERGE( ind_emis_wall_gfl,  ind_emis_wall_agfl,  & |
---|
4006 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%ground_level(m)Â ) |
---|
4007 |        ind_emis_green  = MERGE( ind_emis_green_gfl,  ind_emis_green_agfl,  & |
---|
4008 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%ground_level(m)Â ) |
---|
4009 |        ind_emis_win   = MERGE( ind_emis_win_gfl,   ind_emis_win_agfl,   & |
---|
4010 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%ground_level(m)Â ) |
---|
4011 |        ind_trans    = MERGE( ind_trans_gfl,    ind_trans_agfl,    & |
---|
4012 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%ground_level(m)Â ) |
---|
4013 |        ind_z0      = MERGE( ind_z0_gfl,      ind_z0_agfl,      & |
---|
4014 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%ground_level(m)Â ) |
---|
4015 |        ind_z0qh     = MERGE( ind_z0qh_gfl,     ind_z0qh_agfl,     & |
---|
4016 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_h%ground_level(m)Â ) |
---|
4017 | |
---|
4018 | ! |
---|
4019 | !--Â Â Â Â Â Â Initialize relatvie wall- (0), green- (1) and window (2) fractions |
---|
4020 | Â Â Â Â Â Â Â IFÂ (Â building_pars_f%pars_xy(ind_wall_frac,j,i)Â /=Â building_pars_f%fill )Â Â & |
---|
4021 | Â Â Â Â Â Â Â Â Â surf_usm_h%frac(0,m)Â =Â building_pars_f%pars_xy(ind_wall_frac,j,i)Â Â |
---|
4022 | Â Â Â Â Â Â Â IFÂ (Â building_pars_f%pars_xy(ind_green_frac_r,j,i)Â /=Â building_pars_f%fill )Â &Â |
---|
4023 | Â Â Â Â Â Â Â Â Â surf_usm_h%frac(1,m)Â =Â building_pars_f%pars_xy(ind_green_frac_r,j,i)Â |
---|
4024 | Â Â Â Â Â Â Â IFÂ (Â building_pars_f%pars_xy(ind_win_frac,j,i)Â /=Â building_pars_f%fill )Â Â Â &Â |
---|
4025 | Â Â Â Â Â Â Â Â Â surf_usm_h%frac(2,m)Â =Â building_pars_f%pars_xy(ind_win_frac,j,i) |
---|
4026 | |
---|
4027 | Â |
---|
4028 | Â Â Â Â Â Â Â IFÂ (Â building_pars_f%pars_xy(ind_lai_r,j,i)Â /=Â building_pars_f%fill )Â Â Â Â & |
---|
4029 | Â Â Â Â Â Â Â Â Â surf_usm_h%lai(m)Â Â Â Â Â Â Â =Â building_pars_f%pars_xy(ind_lai_r,j,i) |
---|
4030 | |
---|
4031 | Â Â Â Â Â Â Â IFÂ (Â building_pars_f%pars_xy(ind_hc1,j,i)Â /=Â building_pars_f%fill )Â THEN |
---|
4032 | Â Â Â Â Â Â Â Â Â surf_usm_h%rho_c_wall(nzb_wall,m)Â Â =Â building_pars_f%pars_xy(ind_hc1,j,i)Â |
---|
4033 | Â Â Â Â Â Â Â Â Â surf_usm_h%rho_c_wall(nzb_wall+1,m)Â =Â building_pars_f%pars_xy(ind_hc1,j,i) |
---|
4034 | Â Â Â Â Â Â Â ENDIF |
---|
4035 | Â Â Â Â Â Â Â IFÂ (Â building_pars_f%pars_xy(ind_hc2,j,i)Â /=Â building_pars_f%fill )Â Â & |
---|
4036 | Â Â Â Â Â Â Â Â Â surf_usm_h%rho_c_wall(nzb_wall+2,m)Â =Â building_pars_f%pars_xy(ind_hc2,j,i) |
---|
4037 | Â Â Â Â Â Â Â IFÂ (Â building_pars_f%pars_xy(ind_hc3,j,i)Â /=Â building_pars_f%fill )Â Â &Â |
---|
4038 | Â Â Â Â Â Â Â Â Â surf_usm_h%rho_c_wall(nzb_wall+3,m)Â =Â building_pars_f%pars_xy(ind_hc3,j,i) |
---|
4039 | Â Â Â Â Â Â Â IFÂ (Â building_pars_f%pars_xy(ind_hc1,j,i)Â /=Â building_pars_f%fill )Â THEN |
---|
4040 | Â Â Â Â Â Â Â Â Â surf_usm_h%rho_c_green(nzb_wall,m)Â Â =Â building_pars_f%pars_xy(ind_hc1,j,i)Â |
---|
4041 | Â Â Â Â Â Â Â Â Â surf_usm_h%rho_c_green(nzb_wall+1,m)Â =Â building_pars_f%pars_xy(ind_hc1,j,i) |
---|
4042 | Â Â Â Â Â Â Â ENDIF |
---|
4043 | Â Â Â Â Â Â Â IFÂ (Â building_pars_f%pars_xy(ind_hc2,j,i)Â /=Â building_pars_f%fill )Â Â & |
---|
4044 | Â Â Â Â Â Â Â Â Â surf_usm_h%rho_c_green(nzb_wall+2,m)Â =Â building_pars_f%pars_xy(ind_hc2,j,i) |
---|
4045 | Â Â Â Â Â Â Â IFÂ (Â building_pars_f%pars_xy(ind_hc3,j,i)Â /=Â building_pars_f%fill )Â Â &Â |
---|
4046 | Â Â Â Â Â Â Â Â Â surf_usm_h%rho_c_green(nzb_wall+3,m)Â =Â building_pars_f%pars_xy(ind_hc3,j,i) |
---|
4047 | Â Â Â Â Â Â Â IFÂ (Â building_pars_f%pars_xy(ind_hc1,j,i)Â /=Â building_pars_f%fill )Â THEN |
---|
4048 | Â Â Â Â Â Â Â Â Â surf_usm_h%rho_c_window(nzb_wall,m)Â Â =Â building_pars_f%pars_xy(ind_hc1,j,i)Â |
---|
4049 | Â Â Â Â Â Â Â Â Â surf_usm_h%rho_c_window(nzb_wall+1,m)Â =Â building_pars_f%pars_xy(ind_hc1,j,i) |
---|
4050 | Â Â Â Â Â Â Â ENDIF |
---|
4051 | Â Â Â Â Â Â Â IFÂ (Â building_pars_f%pars_xy(ind_hc2,j,i)Â /=Â building_pars_f%fill )Â Â & |
---|
4052 | Â Â Â Â Â Â Â Â Â surf_usm_h%rho_c_window(nzb_wall+2,m)Â =Â building_pars_f%pars_xy(ind_hc2,j,i) |
---|
4053 | Â Â Â Â Â Â Â IFÂ (Â building_pars_f%pars_xy(ind_hc3,j,i)Â /=Â building_pars_f%fill )Â Â &Â |
---|
4054 | Â Â Â Â Â Â Â Â Â surf_usm_h%rho_c_window(nzb_wall+3,m)Â =Â building_pars_f%pars_xy(ind_hc3,j,i) |
---|
4055 | |
---|
4056 | Â Â Â Â Â Â Â IFÂ (Â building_pars_f%pars_xy(ind_tc1,j,i)Â /=Â building_pars_f%fill )Â THEN |
---|
4057 | Â Â Â Â Â Â Â Â Â surf_usm_h%lambda_h(nzb_wall,m)Â Â =Â building_pars_f%pars_xy(ind_tc1,j,i)Â Â Â Â Â |
---|
4058 | Â Â Â Â Â Â Â Â Â surf_usm_h%lambda_h(nzb_wall+1,m)Â =Â building_pars_f%pars_xy(ind_tc1,j,i)Â Â Â Â |
---|
4059 | Â Â Â Â Â Â Â ENDIF |
---|
4060 | Â Â Â Â Â Â Â IFÂ (Â building_pars_f%pars_xy(ind_tc2,j,i)Â /=Â building_pars_f%fill )Â Â & |
---|
4061 | Â Â Â Â Â Â Â Â Â surf_usm_h%lambda_h(nzb_wall+2,m)Â =Â building_pars_f%pars_xy(ind_tc2,j,i) |
---|
4062 | Â Â Â Â Â Â Â IFÂ (Â building_pars_f%pars_xy(ind_tc3,j,i)Â /=Â building_pars_f%fill )Â Â &Â |
---|
4063 | Â Â Â Â Â Â Â Â Â surf_usm_h%lambda_h(nzb_wall+3,m)Â =Â building_pars_f%pars_xy(ind_tc3,j,i)Â Â |
---|
4064 | Â Â Â Â Â Â Â IFÂ (Â building_pars_f%pars_xy(ind_tc1,j,i)Â /=Â building_pars_f%fill )Â THEN |
---|
4065 | Â Â Â Â Â Â Â Â Â surf_usm_h%lambda_h_green(nzb_wall,m)Â Â =Â building_pars_f%pars_xy(ind_tc1,j,i)Â Â Â Â Â |
---|
4066 | Â Â Â Â Â Â Â Â Â surf_usm_h%lambda_h_green(nzb_wall+1,m)Â =Â building_pars_f%pars_xy(ind_tc1,j,i)Â Â Â Â |
---|
4067 | Â Â Â Â Â Â Â ENDIF |
---|
4068 | Â Â Â Â Â Â Â IFÂ (Â building_pars_f%pars_xy(ind_tc2,j,i)Â /=Â building_pars_f%fill )Â Â & |
---|
4069 | Â Â Â Â Â Â Â Â Â surf_usm_h%lambda_h_green(nzb_wall+2,m)Â =Â building_pars_f%pars_xy(ind_tc2,j,i) |
---|
4070 | Â Â Â Â Â Â Â IFÂ (Â building_pars_f%pars_xy(ind_tc3,j,i)Â /=Â building_pars_f%fill )Â Â &Â |
---|
4071 | Â Â Â Â Â Â Â Â Â surf_usm_h%lambda_h_green(nzb_wall+3,m)Â =Â building_pars_f%pars_xy(ind_tc3,j,i)Â Â |
---|
4072 | Â Â Â Â Â Â Â IFÂ (Â building_pars_f%pars_xy(ind_tc1,j,i)Â /=Â building_pars_f%fill )Â THEN |
---|
4073 | Â Â Â Â Â Â Â Â Â surf_usm_h%lambda_h_window(nzb_wall,m)Â Â =Â building_pars_f%pars_xy(ind_tc1,j,i)Â Â Â Â Â |
---|
4074 | Â Â Â Â Â Â Â Â Â surf_usm_h%lambda_h_window(nzb_wall+1,m)Â =Â building_pars_f%pars_xy(ind_tc1,j,i)Â Â Â Â |
---|
4075 | Â Â Â Â Â Â Â ENDIF |
---|
4076 | Â Â Â Â Â Â Â IFÂ (Â building_pars_f%pars_xy(ind_tc2,j,i)Â /=Â building_pars_f%fill )Â Â & |
---|
4077 | Â Â Â Â Â Â Â Â Â surf_usm_h%lambda_h_window(nzb_wall+2,m)Â =Â building_pars_f%pars_xy(ind_tc2,j,i) |
---|
4078 | Â Â Â Â Â Â Â IFÂ (Â building_pars_f%pars_xy(ind_tc3,j,i)Â /=Â building_pars_f%fill )Â Â &Â |
---|
4079 | Â Â Â Â Â Â Â Â Â surf_usm_h%lambda_h_window(nzb_wall+3,m)Â =Â building_pars_f%pars_xy(ind_tc3,j,i)Â Â |
---|
4080 | |
---|
4081 | Â Â Â Â Â Â Â IFÂ (Â building_pars_f%pars_xy(12,j,i)Â /=Â building_pars_f%fill )Â Â Â Â Â &Â |
---|
4082 | Â Â Â Â Â Â Â Â Â surf_usm_h%target_temp_summer(m)Â =Â building_pars_f%pars_xy(12,j,i)Â Â |
---|
4083 | Â Â Â Â Â Â Â IFÂ (Â building_pars_f%pars_xy(13,j,i)Â /=Â building_pars_f%fill )Â Â Â Â Â &Â |
---|
4084 | Â Â Â Â Â Â Â Â Â surf_usm_h%target_temp_winter(m)Â =Â building_pars_f%pars_xy(13,j,i)Â Â |
---|
4085 | |
---|
4086 | Â Â Â Â Â Â Â IFÂ (Â building_pars_f%pars_xy(ind_emis_wall,j,i)Â /=Â building_pars_f%fill )Â &Â |
---|
4087 | Â Â Â Â Â Â Â Â Â surf_usm_h%emissivity(0,m)Â Â Â Â =Â building_pars_f%pars_xy(ind_emis_wall,j,i) |
---|
4088 | Â Â Â Â Â Â Â IFÂ (Â building_pars_f%pars_xy(ind_emis_green,j,i)Â /=Â building_pars_f%fill )&Â |
---|
4089 | Â Â Â Â Â Â Â Â Â surf_usm_h%emissivity(1,m)Â Â Â Â =Â building_pars_f%pars_xy(ind_emis_green,j,i) |
---|
4090 | Â Â Â Â Â Â Â IFÂ (Â building_pars_f%pars_xy(ind_emis_win,j,i)Â /=Â building_pars_f%fill )Â &Â |
---|
4091 | Â Â Â Â Â Â Â Â Â surf_usm_h%emissivity(2,m)Â Â Â Â =Â building_pars_f%pars_xy(ind_emis_win,j,i) |
---|
4092 | |
---|
4093 | Â Â Â Â Â Â Â IFÂ (Â building_pars_f%pars_xy(ind_trans,j,i)Â /=Â building_pars_f%fill )Â Â &Â |
---|
4094 | Â Â Â Â Â Â Â Â Â surf_usm_h%transmissivity(m)Â Â Â =Â building_pars_f%pars_xy(ind_trans,j,i) |
---|
4095 | |
---|
4096 | Â Â Â Â Â Â Â IFÂ (Â building_pars_f%pars_xy(ind_z0,j,i)Â /=Â building_pars_f%fill )Â Â &Â |
---|
4097 | Â Â Â Â Â Â Â Â Â surf_usm_h%z0(m)Â Â Â Â Â Â Â Â Â =Â building_pars_f%pars_xy(ind_z0,j,i) |
---|
4098 | Â Â Â Â Â Â Â IFÂ (Â building_pars_f%pars_xy(ind_z0qh,j,i)Â /=Â building_pars_f%fill )Â &Â |
---|
4099 | Â Â Â Â Â Â Â Â Â surf_usm_h%z0h(m)Â Â Â Â Â Â Â Â Â =Â building_pars_f%pars_xy(ind_z0qh,j,i) |
---|
4100 | Â Â Â Â Â Â Â IFÂ (Â building_pars_f%pars_xy(ind_z0qh,j,i)Â /=Â building_pars_f%fill )Â &Â |
---|
4101 | Â Â Â Â Â Â Â Â Â surf_usm_h%z0q(m)Â Â Â Â Â Â Â Â Â =Â building_pars_f%pars_xy(ind_z0qh,j,i) |
---|
4102 | |
---|
4103 | Â Â Â Â Â Â Â IFÂ (Â building_pars_f%pars_xy(ind_alb_wall,j,i)Â /=Â building_pars_f%fill )Â Â &Â |
---|
4104 | Â Â Â Â Â Â Â Â Â surf_usm_h%albedo_type(0,m)Â Â Â Â =Â building_pars_f%pars_xy(ind_alb_wall,j,i) |
---|
4105 | Â Â Â Â Â Â Â IFÂ (Â building_pars_f%pars_xy(ind_alb_green,j,i)Â /=Â building_pars_f%fill )Â Â &Â |
---|
4106 | Â Â Â Â Â Â Â Â Â surf_usm_h%albedo_type(1,m)Â Â Â Â =Â building_pars_f%pars_xy(ind_alb_green,j,i) |
---|
4107 | Â Â Â Â Â Â Â IFÂ (Â building_pars_f%pars_xy(ind_alb_win,j,i)Â /=Â building_pars_f%fill )Â Â &Â |
---|
4108 | Â Â Â Â Â Â Â Â Â surf_usm_h%albedo_type(2,m)Â Â Â Â =Â building_pars_f%pars_xy(ind_alb_win,j,i) |
---|
4109 | |
---|
4110 | Â Â Â Â Â Â Â IFÂ (Â building_pars_f%pars_xy(ind_thick_1,j,i)Â /=Â building_pars_f%fill )Â Â &Â |
---|
4111 | Â Â Â Â Â Â Â Â Â surf_usm_h%zw(nzb_wall,m)Â =Â building_pars_f%pars_xy(ind_thick_1,j,i) |
---|
4112 | Â Â Â Â Â Â Â IFÂ (Â building_pars_f%pars_xy(ind_thick_2,j,i)Â /=Â building_pars_f%fill )Â Â &Â |
---|
4113 | Â Â Â Â Â Â Â Â Â surf_usm_h%zw(nzb_wall+1,m)Â =Â building_pars_f%pars_xy(ind_thick_2,j,i) |
---|
4114 | Â Â Â Â Â Â Â IFÂ (Â building_pars_f%pars_xy(ind_thick_3,j,i)Â /=Â building_pars_f%fill )Â Â &Â |
---|
4115 | Â Â Â Â Â Â Â Â Â surf_usm_h%zw(nzb_wall+2,m)Â =Â building_pars_f%pars_xy(ind_thick_3,j,i) |
---|
4116 | Â Â Â Â Â Â Â IFÂ (Â building_pars_f%pars_xy(ind_thick_4,j,i)Â /=Â building_pars_f%fill )Â Â &Â |
---|
4117 | Â Â Â Â Â Â Â Â Â surf_usm_h%zw(nzb_wall+3,m)Â =Â building_pars_f%pars_xy(ind_thick_4,j,i) |
---|
4118 | Â Â Â Â Â Â Â IFÂ (Â building_pars_f%pars_xy(ind_thick_1,j,i)Â /=Â building_pars_f%fill )Â Â &Â |
---|
4119 | Â Â Â Â Â Â Â Â Â surf_usm_h%zw_green(nzb_wall,m)Â =Â building_pars_f%pars_xy(ind_thick_1,j,i) |
---|
4120 | Â Â Â Â Â Â Â IFÂ (Â building_pars_f%pars_xy(ind_thick_2,j,i)Â /=Â building_pars_f%fill )Â Â &Â |
---|
4121 | Â Â Â Â Â Â Â Â Â surf_usm_h%zw_green(nzb_wall+1,m)Â =Â building_pars_f%pars_xy(ind_thick_2,j,i) |
---|
4122 | Â Â Â Â Â Â Â IFÂ (Â building_pars_f%pars_xy(ind_thick_3,j,i)Â /=Â building_pars_f%fill )Â Â &Â |
---|
4123 | Â Â Â Â Â Â Â Â Â surf_usm_h%zw_green(nzb_wall+2,m)Â =Â building_pars_f%pars_xy(ind_thick_3,j,i) |
---|
4124 | Â Â Â Â Â Â Â IFÂ (Â building_pars_f%pars_xy(ind_thick_4,j,i)Â /=Â building_pars_f%fill )Â Â &Â |
---|
4125 | Â Â Â Â Â Â Â Â Â surf_usm_h%zw_green(nzb_wall+3,m)Â =Â building_pars_f%pars_xy(ind_thick_4,j,i) |
---|
4126 | Â Â Â Â Â Â Â IFÂ (Â building_pars_f%pars_xy(ind_thick_1,j,i)Â /=Â building_pars_f%fill )Â Â &Â |
---|
4127 | Â Â Â Â Â Â Â Â Â surf_usm_h%zw_window(nzb_wall,m)Â =Â building_pars_f%pars_xy(ind_thick_1,j,i) |
---|
4128 | Â Â Â Â Â Â Â IFÂ (Â building_pars_f%pars_xy(ind_thick_2,j,i)Â /=Â building_pars_f%fill )Â Â &Â |
---|
4129 | Â Â Â Â Â Â Â Â Â surf_usm_h%zw_window(nzb_wall+1,m)Â =Â building_pars_f%pars_xy(ind_thick_2,j,i) |
---|
4130 | Â Â Â Â Â Â Â IFÂ (Â building_pars_f%pars_xy(ind_thick_3,j,i)Â /=Â building_pars_f%fill )Â Â &Â |
---|
4131 | Â Â Â Â Â Â Â Â Â surf_usm_h%zw_window(nzb_wall+2,m)Â =Â building_pars_f%pars_xy(ind_thick_3,j,i) |
---|
4132 | Â Â Â Â Â Â Â IFÂ (Â building_pars_f%pars_xy(ind_thick_4,j,i)Â /=Â building_pars_f%fill )Â Â &Â |
---|
4133 | Â Â Â Â Â Â Â Â Â surf_usm_h%zw_window(nzb_wall+3,m)Â =Â building_pars_f%pars_xy(ind_thick_4,j,i) |
---|
4134 | |
---|
4135 | Â Â Â Â Â Â Â IFÂ (Â building_pars_f%pars_xy(45,j,i)Â /=Â building_pars_f%fill )Â Â &Â |
---|
4136 | Â Â Â Â Â Â Â Â Â surf_usm_h%c_surface(m)Â Â Â Â Â Â =Â building_pars_f%pars_xy(45,j,i) |
---|
4137 | Â Â Â Â Â Â Â IFÂ (Â building_pars_f%pars_xy(46,j,i)Â /=Â building_pars_f%fill )Â Â &Â |
---|
4138 | Â Â Â Â Â Â Â Â Â surf_usm_h%lambda_surf(m)Â Â Â Â Â =Â building_pars_f%pars_xy(46,j,i) |
---|
4139 | Â Â Â Â Â Â Â IFÂ (Â building_pars_f%pars_xy(45,j,i)Â /=Â building_pars_f%fill )Â Â &Â |
---|
4140 | Â Â Â Â Â Â Â Â Â surf_usm_h%c_surface_green(m)Â Â Â Â Â Â =Â building_pars_f%pars_xy(45,j,i) |
---|
4141 | Â Â Â Â Â Â Â IFÂ (Â building_pars_f%pars_xy(46,j,i)Â /=Â building_pars_f%fill )Â Â &Â |
---|
4142 | Â Â Â Â Â Â Â Â Â surf_usm_h%lambda_surf_green(m)Â Â Â Â Â =Â building_pars_f%pars_xy(46,j,i) |
---|
4143 | Â Â Â Â Â Â Â IFÂ (Â building_pars_f%pars_xy(45,j,i)Â /=Â building_pars_f%fill )Â Â &Â |
---|
4144 | Â Â Â Â Â Â Â Â Â surf_usm_h%c_surface_window(m)Â Â Â Â Â Â =Â building_pars_f%pars_xy(45,j,i) |
---|
4145 | Â Â Â Â Â Â Â IFÂ (Â building_pars_f%pars_xy(46,j,i)Â /=Â building_pars_f%fill )Â Â &Â |
---|
4146 | Â Â Â Â Â Â Â Â Â surf_usm_h%lambda_surf_window(m)Â Â Â Â Â =Â building_pars_f%pars_xy(46,j,i) |
---|
4147 | Â Â Â Â Â Â ENDDO |
---|
4148 | |
---|
4149 | |
---|
4150 | |
---|
4151 |       DO l = 0, 3 |
---|
4152 |        DO m = 1, surf_usm_v(l)%ns |
---|
4153 | Â Â Â Â Â Â Â Â Â i =Â surf_usm_v(l)%i(m)Â +Â surf_usm_v(l)%ioff |
---|
4154 | Â Â Â Â Â Â Â Â Â j =Â surf_usm_v(l)%j(m)Â +Â surf_usm_v(l)%joff |
---|
4155 | Â Â Â Â Â Â Â Â |
---|
4156 | ! |
---|
4157 | !--Â Â Â Â Â Â Â In order to distinguish between ground floor level and |
---|
4158 | !--Â Â Â Â Â Â Â above-ground-floor level surfaces, set input indices. |
---|
4159 |          ind_wall_frac  = MERGE( ind_wall_frac_gfl,  ind_wall_frac_agfl,   & |
---|
4160 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%ground_level(m)Â ) |
---|
4161 |          ind_win_frac   = MERGE( ind_win_frac_gfl,   ind_win_frac_agfl,   & |
---|
4162 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%ground_level(m)Â ) |
---|
4163 |          ind_green_frac_w = MERGE( ind_green_frac_w_gfl, ind_green_frac_w_agfl, & |
---|
4164 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%ground_level(m)Â ) |
---|
4165 |          ind_green_frac_r = MERGE( ind_green_frac_r_gfl, ind_green_frac_r_agfl, & |
---|
4166 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%ground_level(m)Â ) |
---|
4167 |          ind_lai_r    = MERGE( ind_lai_r_gfl,    ind_lai_r_agfl,    & |
---|
4168 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%ground_level(m)Â ) |
---|
4169 |          ind_lai_w    = MERGE( ind_lai_w_gfl,    ind_lai_w_agfl,    & |
---|
4170 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%ground_level(m)Â ) |
---|
4171 |          ind_hc1     = MERGE( ind_hc1_gfl,     ind_hc1_agfl,     & |
---|
4172 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%ground_level(m)Â ) |
---|
4173 |          ind_hc2     = MERGE( ind_hc2_gfl,     ind_hc2_agfl,     & |
---|
4174 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%ground_level(m)Â ) |
---|
4175 |          ind_hc3     = MERGE( ind_hc3_gfl,     ind_hc3_agfl,     & |
---|
4176 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%ground_level(m)Â ) |
---|
4177 |          ind_tc1     = MERGE( ind_tc1_gfl,     ind_tc1_agfl,     & |
---|
4178 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%ground_level(m)Â ) |
---|
4179 |          ind_tc2     = MERGE( ind_tc2_gfl,     ind_tc2_agfl,     & |
---|
4180 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%ground_level(m)Â ) |
---|
4181 |          ind_tc3     = MERGE( ind_tc3_gfl,     ind_tc3_agfl,     & |
---|
4182 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%ground_level(m)Â ) |
---|
4183 |          ind_emis_wall  = MERGE( ind_emis_wall_gfl,  ind_emis_wall_agfl,  & |
---|
4184 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%ground_level(m)Â ) |
---|
4185 |          ind_emis_green  = MERGE( ind_emis_green_gfl,  ind_emis_green_agfl,  & |
---|
4186 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%ground_level(m)Â ) |
---|
4187 |          ind_emis_win   = MERGE( ind_emis_win_gfl,   ind_emis_win_agfl,   & |
---|
4188 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%ground_level(m)Â ) |
---|
4189 |          ind_trans    = MERGE( ind_trans_gfl,    ind_trans_agfl,     & |
---|
4190 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%ground_level(m)Â ) |
---|
4191 |          ind_z0      = MERGE( ind_z0_gfl,      ind_z0_agfl,      & |
---|
4192 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%ground_level(m)Â ) |
---|
4193 |          ind_z0qh     = MERGE( ind_z0qh_gfl,     ind_z0qh_agfl,     & |
---|
4194 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%ground_level(m)Â ) |
---|
4195 | |
---|
4196 | ! |
---|
4197 | !--Â Â Â Â Â Â Â Initialize relatvie wall- (0), green- (1) and window (2) fractions |
---|
4198 | Â Â Â Â Â Â Â Â Â IFÂ (Â building_pars_f%pars_xy(ind_wall_frac,j,i)Â /=Â Â Â Â Â Â Â Â Â Â Â & |
---|
4199 | Â Â Â Â Â Â Â Â Â Â Â building_pars_f%fill )Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â & |
---|
4200 | Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%frac(0,m)Â =Â building_pars_f%pars_xy(ind_wall_frac,j,i)Â Â |
---|
4201 | Â Â Â Â Â Â Â Â Â IFÂ (Â building_pars_f%pars_xy(ind_green_frac_w,j,i)Â /=Â Â Â Â Â Â Â Â Â & |
---|
4202 | Â Â Â Â Â Â Â Â Â Â Â building_pars_f%fill )Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â &Â |
---|
4203 | Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%frac(1,m)Â =Â building_pars_f%pars_xy(ind_green_frac_w,j,i)Â |
---|
4204 | Â Â Â Â Â Â Â Â Â IFÂ (Â building_pars_f%pars_xy(ind_win_frac,j,i)Â /=Â Â Â Â Â Â Â Â Â Â Â & |
---|
4205 | Â Â Â Â Â Â Â Â Â Â Â building_pars_f%fill )Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â &Â |
---|
4206 | Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%frac(2,m)Â =Â building_pars_f%pars_xy(ind_win_frac,j,i) |
---|
4207 | Â |
---|
4208 | Â Â Â Â Â Â Â Â Â IFÂ (Â building_pars_f%pars_xy(ind_lai_w,j,i)Â /=Â building_pars_f%fill )Â &Â |
---|
4209 | Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%lai(m)Â =Â building_pars_f%pars_xy(ind_lai_w,j,i) |
---|
4210 | |
---|
4211 | Â Â Â Â Â Â Â Â Â IFÂ (Â building_pars_f%pars_xy(ind_hc1,j,i)Â /=Â building_pars_f%fill )Â Â & |
---|
4212 | Â Â Â Â Â Â Â Â Â THEN |
---|
4213 | Â Â Â Â Â Â Â Â Â Â surf_usm_v(l)%rho_c_wall(nzb_wall,m)Â Â =Â |
---|