SURFEX  V8_0
Surfex V8_0 release
 All Classes Files Functions Variables
mode_conv_DOE.F90
Go to the documentation of this file.
1 !SFX_LIC Copyright 1994-2014 CNRS, Meteo-France and Universite Paul Sabatier
2 !SFX_LIC This is part of the SURFEX software governed by the CeCILL-C licence
3 !SFX_LIC version 1. See LICENSE, CeCILL-C_V1-en.txt and CeCILL-C_V1-fr.txt
4 !SFX_LIC for details. version 1.
5 !###################
7 !###################
8 !
9 !!**** *MODE_CONV_DOE* -
10 !!
11 !! PURPOSE
12 !! -------
13 !
14 !
15 !!
16 !!** IMPLICIT ARGUMENTS
17 !! ------------------
18 !! NONE
19 !!
20 !! REFERENCE
21 !! ---------
22 !!
23 !!
24 !! AUTHOR
25 !! ------
26 !! G. Pigeon
27 !!
28 !! MODIFICATIONS
29 !! -------------
30 !! Original 20/08/12
31 !
32 !--------------------------------------------------------------------------------
33 !
34 !* 0. DECLARATIONS
35 ! ------------
36 !
37 !--------------------------------------------------------------------------------
38 USE yomhook ,ONLY : lhook, dr_hook
39 USE parkind1 ,ONLY : jprb
40 INTERFACE chtc_vert_doe
41  MODULE PROCEDURE chtc_vert_doe_0d
42  MODULE PROCEDURE chtc_vert_doe_1d
43 END INTERFACE
44 INTERFACE chtc_up_doe
45  MODULE PROCEDURE chtc_up_doe_0d
46  MODULE PROCEDURE chtc_up_doe_1d
47 END INTERFACE
49  MODULE PROCEDURE chtc_smooth_lee_doe_0d
50  MODULE PROCEDURE chtc_smooth_lee_doe_1d
51 END INTERFACE
53  MODULE PROCEDURE chtc_smooth_wind_doe_0d
54  MODULE PROCEDURE chtc_smooth_wind_doe_1d
55 END INTERFACE
56 INTERFACE chtc_rough_doe
57  MODULE PROCEDURE chtc_rough_doe_0d
58  MODULE PROCEDURE chtc_rough_doe_1d
59 END INTERFACE
60 !
61  CONTAINS
62 !----------------------------
63 !#############################################
64 FUNCTION chtc_vert_doe_0d(PTS, PTA) RESULT(PCHTC)
65 !#############################################
66 !
67 !!**** *CHTC_VERT_DOE* -
68 !!
69 !! PURPOSE
70 !! -------
71 ! function to compute convective surface coefficient for
72 ! a vertical surface from surface temperature and air
73 ! temperature
74 !
75 !!** METHOD
76 !! ------
77 !!
78 !! EXTERNAL
79 !! --------
80 !! NONE
81 !!
82 !! IMPLICIT ARGUMENTS
83 !! ------------------
84 !!
85 !! REFERENCE
86 !! ---------
87 !! EnergyPlus, Engineering Reference, DOE-2 model for convection on outside
88 !! surfaces, p68
89 !!
90 !! AUTHOR
91 !! ------
92 !! G. Pigeon * Meteo France *
93 !!
94 !! MODIFICATIONS
95 !! -------------
96 !! Original 20/00/2012
97 !
98 !-------------------------------------------------------------------------------
99 !* 0. DECLARATIONS
100 ! ------------
101 !
102 IMPLICIT NONE
103 !
104 !* 0.1 Declarations of arguments and results
105 !
106 !
107 REAL, INTENT(IN) :: pts ! Surface temperature (Kelvin)
108 REAL, INTENT(IN) :: pta ! Air temperature (Kelvin)
109 REAL :: pchtc ! Convective heat transfer coefficient [W/(m2.K)]
110 !
111 REAL(KIND=JPRB) :: zhook_handle
112 !-------------------------------------------------------------------------------
113 IF (lhook) CALL dr_hook('MODE_CONV_DOE:CHTC_VERT_DOE',0,zhook_handle)
114 !
115 !* 1. COMPUTE THE CHTC
116 ! ----------------
117 !
118 pchtc = 1.31 * (abs(pta - pts))**(1./3.)
119 !-------------------------------------------------------------------------------
120 IF (lhook) CALL dr_hook('MODE_CONV_DOE:CHTC_VERT_DOE',1,zhook_handle)
121 !
122 END FUNCTION chtc_vert_doe_0d
123 !#########################
124 !#############################################
125 FUNCTION chtc_vert_doe_1d(PTS, PTA) RESULT(PCHTC)
126 !#############################################
127 !
128 !!**** *CHTC_VERT_DOE* -
129 !!
130 !! PURPOSE
131 !! -------
132 ! function to compute convective surface coefficient for
133 ! a vertical surface from surface temperature and air
134 ! temperature
135 !
136 !!** METHOD
137 !! ------
138 !!
139 !! EXTERNAL
140 !! --------
141 !! NONE
142 !!
143 !! IMPLICIT ARGUMENTS
144 !! ------------------
145 !!
146 !! REFERENCE
147 !! ---------
148 !! EnergyPlus, Engineering Reference, DOE-2 model for convection on outside
149 !! surfaces, p68
150 !!
151 !! AUTHOR
152 !! ------
153 !! G. Pigeon * Meteo France *
154 !!
155 !! MODIFICATIONS
156 !! -------------
157 !! Original 20/00/2012
158 !
159 !-------------------------------------------------------------------------------
160 !* 0. DECLARATIONS
161 ! ------------
162 !
163 IMPLICIT NONE
164 !
165 !* 0.1 Declarations of arguments and results
166 !
167 !
168 REAL, DIMENSION(:), INTENT(IN) :: pts ! Surface temperature (Kelvin)
169 REAL, DIMENSION(:), INTENT(IN) :: pta ! Air temperature (Kelvin)
170 REAL, DIMENSION(SIZE(PTS)) :: pchtc ! Convective heat transfer coefficient [W/(m2.K)]
171 !
172 REAL(KIND=JPRB) :: zhook_handle
173 !-------------------------------------------------------------------------------
174 IF (lhook) CALL dr_hook('MODE_CONV_DOE:CHTC_VERT_DOE',0,zhook_handle)
175 !
176 !* 1. COMPUTE THE CHTC
177 ! ----------------
178 !
179 pchtc = 1.31 * (abs(pta - pts))**(1./3.)
180 !-------------------------------------------------------------------------------
181 IF (lhook) CALL dr_hook('MODE_CONV_DOE:CHTC_VERT_DOE',1,zhook_handle)
182 !
183 END FUNCTION chtc_vert_doe_1d
184 !#########################
185 !
186 !#############################################
187 FUNCTION chtc_up_doe_1d(PTS, PTA) RESULT(PCHTC)
188 !#############################################
189 !
190 !!**** *CHTC_UP_DOE* -
191 !!
192 !! PURPOSE
193 !! -------
194 ! function to compute convective surface coefficient for
195 ! an upward surface from surface temperature and air
196 ! temperature
197 !
198 !!** METHOD
199 !! ------
200 !!
201 !! EXTERNAL
202 !! --------
203 !! NONE
204 !!
205 !! IMPLICIT ARGUMENTS
206 !! ------------------
207 !!
208 !! REFERENCE
209 !! ---------
210 !! EnergyPlus, Engineering Reference, DOE-2 model for convection on outside
211 !! surfaces, p68
212 !!
213 !! AUTHOR
214 !! ------
215 !! G. Pigeon * Meteo France *
216 !!
217 !! MODIFICATIONS
218 !! -------------
219 !! Original 20/00/2012
220 !
221 !-------------------------------------------------------------------------------
222 !* 0. DECLARATIONS
223 ! ------------
224 !
225 IMPLICIT NONE
226 !
227 !* 0.1 Declarations of arguments and results
228 !
229 REAL, DIMENSION(:), INTENT(IN) :: pts ! Surface temperature (Kelvin)
230 REAL, DIMENSION(:), INTENT(IN) :: pta ! Air temperature (Kelvin)
231 REAL, DIMENSION(SIZE(PTS)) :: pchtc ! Convective heat transfer coefficient [W/(m2.K)]
232 !
233 REAL(KIND=JPRB) :: zhook_handle
234 !-------------------------------------------------------------------------------
235 IF (lhook) CALL dr_hook('MODE_CONV_DOE:CHTC_UP_DOE',0,zhook_handle)
236 !
237 !* 1. COMPUTE THE CHTC
238 ! ----------------
239 !
240 WHERE(pta < pts)
241  pchtc = 9.482 * (pts - pta)**(1./3.) / (7.283 - 1)
242 ELSE WHERE
243  pchtc = 1.810 * (pta - pts)**(1./3.) / (1.382 + 1)
244 END WHERE
245 !
246 !-------------------------------------------------------------------------------
247 IF (lhook) CALL dr_hook('MODE_CONV_DOE:CHTC_UP_DOE',1,zhook_handle)
248 !
249 END FUNCTION chtc_up_doe_1d
250 !#######################
251 !#############################################
252 FUNCTION chtc_up_doe_0d(PTS, PTA) RESULT(PCHTC)
253 !#############################################
254 !
255 !!**** *CHTC_UP_DOE* -
256 !!
257 !! PURPOSE
258 !! -------
259 ! function to compute convective surface coefficient for
260 ! an upward surface from surface temperature and air
261 ! temperature
262 !
263 !!** METHOD
264 !! ------
265 !!
266 !! EXTERNAL
267 !! --------
268 !! NONE
269 !!
270 !! IMPLICIT ARGUMENTS
271 !! ------------------
272 !!
273 !! REFERENCE
274 !! ---------
275 !! EnergyPlus, Engineering Reference, DOE-2 model for convection on outside
276 !! surfaces, p68
277 !!
278 !! AUTHOR
279 !! ------
280 !! G. Pigeon * Meteo France *
281 !!
282 !! MODIFICATIONS
283 !! -------------
284 !! Original 20/00/2012
285 !
286 !-------------------------------------------------------------------------------
287 !* 0. DECLARATIONS
288 ! ------------
289 !
290 IMPLICIT NONE
291 !
292 !* 0.1 Declarations of arguments and results
293 !
294 REAL, INTENT(IN) :: pts ! Surface temperature (Kelvin)
295 REAL, INTENT(IN) :: pta ! Air temperature (Kelvin)
296 REAL :: pchtc ! Convective heat transfer coefficient [W/(m2.K)]
297 !
298 REAL(KIND=JPRB) :: zhook_handle
299 !-------------------------------------------------------------------------------
300 IF (lhook) CALL dr_hook('MODE_CONV_DOE:CHTC_UP_DOE',0,zhook_handle)
301 !
302 !* 1. COMPUTE THE CHTC
303 ! ----------------
304 !
305 IF (pta < pts) THEN
306  pchtc = 9.482 * (pts - pta)**(1./3.) / (7.283 - 1)
307 ELSE
308  pchtc = 1.810 * (pta - pts)**(1./3.) / (1.382 + 1)
309 ENDIF
310 !
311 !-------------------------------------------------------------------------------
312 IF (lhook) CALL dr_hook('MODE_CONV_DOE:CHTC_UP_DOE',1,zhook_handle)
313 !
314 END FUNCTION chtc_up_doe_0d
315 !#######################
316 !
317 !#############################################
318 FUNCTION chtc_down_doe(PTS, PTA) RESULT(PCHTC)
319 !#############################################
320 !
321 !!**** *CHTC_DOWN_DOE* -
322 !!
323 !! PURPOSE
324 !! -------
325 ! function to compute convective surface coefficient for
326 ! an downward surface from surface temperature and air
327 ! temperature
328 !
329 !!** METHOD
330 !! ------
331 !!
332 !! EXTERNAL
333 !! --------
334 !! NONE
335 !!
336 !! IMPLICIT ARGUMENTS
337 !! ------------------
338 !!
339 !! REFERENCE
340 !! ---------
341 !! EnergyPlus, Engineering Reference, DOE-2 model for convection on outside
342 !! surfaces, p68
343 !!
344 !! AUTHOR
345 !! ------
346 !! G. Pigeon * Meteo France *
347 !!
348 !! MODIFICATIONS
349 !! -------------
350 !! Original 20/00/2012
351 !
352 !-------------------------------------------------------------------------------
353 !* 0. DECLARATIONS
354 ! ------------
355 !
356 IMPLICIT NONE
357 !
358 !* 0.1 Declarations of arguments and results
359 !
360 REAL, DIMENSION(:), INTENT(IN) :: pts ! Surface temperature (Kelvin)
361 REAL, DIMENSION(:), INTENT(IN) :: pta ! Air temperature (Kelvin)
362 REAL, DIMENSION(SIZE(PTS)) :: pchtc ! Convective heat transfer coefficient [W/(m2.K)]
363 !
364 REAL(KIND=JPRB) :: zhook_handle
365 !-------------------------------------------------------------------------------
366 IF (lhook) CALL dr_hook('MODE_CONV_DOE:CHTC_DOWN_DOE',0,zhook_handle)
367 !
368 !* 1. COMPUTE THE CHTC
369 ! ----------------
370 !
371 WHERE(pta > pts)
372  pchtc = 9.482 * (pta - pts)**(1./3.) / (7.283 - 1)
373 ELSE WHERE
374  pchtc = 1.810 * (pts - pta)**(1./3.) / (1.382 + 1)
375 END WHERE
376 !
377 !-------------------------------------------------------------------------------
378 IF (lhook) CALL dr_hook('MODE_CONV_DOE:CHTC_DOWN_DOE',1,zhook_handle)
379 !
380 END FUNCTION chtc_down_doe
381 !#########################
382 !
383 !#############################################
384 FUNCTION chtc_smooth_lee_doe_0d(PCHTCN, PVMOD) RESULT(PCHTC)
385 !#############################################
386 !
387 !!**** *CHTC_SMOOTH_LEE_DOE* -
388 !!
389 !! PURPOSE
390 !! -------
391 ! function to compute convective surface coefficient for
392 ! a leeward smooth surface from the natural convection coef and the
393 ! wind speed
394 !
395 !!** METHOD
396 !! ------
397 !!
398 !! from EnergyPlus Engineering Reference, average the leeward/windward coef
399 !!
400 !! EXTERNAL
401 !! --------
402 !! NONE
403 !!
404 !! IMPLICIT ARGUMENTS
405 !! ------------------
406 !!
407 !! REFERENCE
408 !! ---------
409 !! EnergyPlus, Engineering Reference, DOE-2 model for convection on outside
410 !! surfaces, p68
411 !!
412 !! AUTHOR
413 !! ------
414 !! G. Pigeon * Meteo France *
415 !!
416 !! MODIFICATIONS
417 !! -------------
418 !! Original 20/00/2012
419 !
420 !-------------------------------------------------------------------------------
421 !* 0. DECLARATIONS
422 ! ------------
423 !
424 IMPLICIT NONE
425 !
426 !* 0.1 Declarations of arguments and results
427 !
428 REAL,INTENT(IN) :: pchtcn ! Convective heat transfer coefficient for natural conv. [W/(m2.K)]
429 REAL,INTENT(IN) :: pvmod ! wind speed (m/s)
430 REAL :: pchtc ! Convective heat transfer coefficient [W/(m2.K)]
431 !
432 !* 0.2 Declarations of local variables
433 !
434 REAL(KIND=JPRB) :: zhook_handle
435 REAL :: zalee, zblee ! coef for leeward facade
436 !----------------------------------------------------------------------
437 IF (lhook) CALL dr_hook('MODE_CONV_DOE:CHTC_SMOOTH_LEE_DOE',0,zhook_handle)
438 !
439 !* 1. INITIALIZE COEF
440 ! ----------------
441 !
442 zalee = 2.86
443 zblee = 0.617
444 
445 !* 2. COMPUTE THE CHTC
446 ! ----------------
447 !
448 pchtc = sqrt(pchtcn**2+(zalee*pvmod**zblee)**2)
449 !
450 !-------------------------------------------------------------------------------
451 IF (lhook) CALL dr_hook('MODE_CONV_DOE:CHTC_SMOOTH_LEE_DOE',1,zhook_handle)
452 !
453 END FUNCTION chtc_smooth_lee_doe_0d
454 !#########################
455 
456 !#############################################
457 FUNCTION chtc_smooth_lee_doe_1d(PCHTCN, PVMOD) RESULT(PCHTC)
458 !#############################################
459 !
460 !!**** *CHTC_SMOOTH_LEE_DOE* -
461 !!
462 !! PURPOSE
463 !! -------
464 ! function to compute convective surface coefficient for
465 ! a leeward smooth surface from the natural convection coef and the
466 ! wind speed
467 !
468 !!** METHOD
469 !! ------
470 !!
471 !! from EnergyPlus Engineering Reference, average the leeward/windward coef
472 !!
473 !! EXTERNAL
474 !! --------
475 !! NONE
476 !!
477 !! IMPLICIT ARGUMENTS
478 !! ------------------
479 !!
480 !! REFERENCE
481 !! ---------
482 !! EnergyPlus, Engineering Reference, DOE-2 model for convection on outside
483 !! surfaces, p68
484 !!
485 !! AUTHOR
486 !! ------
487 !! G. Pigeon * Meteo France *
488 !!
489 !! MODIFICATIONS
490 !! -------------
491 !! Original 20/00/2012
492 !
493 !-------------------------------------------------------------------------------
494 !* 0. DECLARATIONS
495 ! ------------
496 !
497 IMPLICIT NONE
498 !
499 !* 0.1 Declarations of arguments and results
500 !
501 REAL, DIMENSION(:), INTENT(IN) :: pchtcn ! Convective heat transfer coefficient for natural conv. [W/(m2.K)]
502 REAL, DIMENSION(:), INTENT(IN) :: pvmod ! wind speed (m/s)
503 REAL, DIMENSION(SIZE(PCHTCN)) :: pchtc ! Convective heat transfer coefficient [W/(m2.K)]
504 !
505 !* 0.2 Declarations of local variables
506 !
507 REAL(KIND=JPRB) :: zhook_handle
508 REAL :: zalee, zblee ! coef for windward/leeward facade
509 !----------------------------------------------------------------------
510 IF (lhook) CALL dr_hook('MODE_CONV_DOE:CHTC_SMOOTH_LEE_DOE',0,zhook_handle)
511 !
512 !* 1. INITIALIZE COEF
513 ! ----------------
514 !
515 zalee = 2.86
516 zblee = 0.617
517 
518 !* 2. COMPUTE THE CHTC
519 ! ----------------
520 !
521 pchtc = sqrt(pchtcn**2+(zalee*pvmod**zblee)**2)
522 !
523 !-------------------------------------------------------------------------------
524 IF (lhook) CALL dr_hook('MODE_CONV_DOE:CHTC_SMOOTH_LEE_DOE',1,zhook_handle)
525 !
526 END FUNCTION chtc_smooth_lee_doe_1d
527 !#########################
528 !#############################################
529 FUNCTION chtc_smooth_wind_doe_0d(PCHTCN, PVMOD) RESULT(PCHTC)
530 !#############################################
531 !
532 !!**** *CHTC_SMOOTH_WIND_DOE* -
533 !!
534 !! PURPOSE
535 !! -------
536 ! function to compute convective surface coefficient for
537 ! a smooth surface from the natural convection coef and the
538 ! wind speed
539 !
540 !!** METHOD
541 !! ------
542 !!
543 !! from EnergyPlus Engineering Reference, average the leeward/windward coef
544 !!
545 !! EXTERNAL
546 !! --------
547 !! NONE
548 !!
549 !! IMPLICIT ARGUMENTS
550 !! ------------------
551 !!
552 !! REFERENCE
553 !! ---------
554 !! EnergyPlus, Engineering Reference, DOE-2 model for convection on outside
555 !! surfaces, p68
556 !!
557 !! AUTHOR
558 !! ------
559 !! G. Pigeon * Meteo France *
560 !!
561 !! MODIFICATIONS
562 !! -------------
563 !! Original 20/00/2012
564 !
565 !-------------------------------------------------------------------------------
566 !* 0. DECLARATIONS
567 ! ------------
568 !
569 IMPLICIT NONE
570 !
571 !* 0.1 Declarations of arguments and results
572 !
573 REAL,INTENT(IN) :: pchtcn ! Convective heat transfer coefficient for natural conv. [W/(m2.K)]
574 REAL,INTENT(IN) :: pvmod ! wind speed (m/s)
575 REAL :: pchtc ! Convective heat transfer coefficient [W/(m2.K)]
576 !
577 !* 0.2 Declarations of local variables
578 !
579 REAL(KIND=JPRB) :: zhook_handle
580 REAL :: zawind, zbwind ! coef for windward/leeward facade
581 !----------------------------------------------------------------------
582 IF (lhook) CALL dr_hook('MODE_CONV_DOE:CHTC_SMOOTH_WIND_DOE',0,zhook_handle)
583 !
584 !* 1. INITIALIZE COEF
585 ! ----------------
586 !
587 zawind = 2.38
588 zbwind = 0.89
589 
590 !* 2. COMPUTE THE CHTC
591 ! ----------------
592 !
593 pchtc = sqrt(pchtcn**2+(zawind*pvmod**zbwind)**2)
594 !
595 !-------------------------------------------------------------------------------
596 IF (lhook) CALL dr_hook('MODE_CONV_DOE:CHTC_SMOOTH_WIND_DOE',1,zhook_handle)
597 !
598 END FUNCTION chtc_smooth_wind_doe_0d
599 !#########################
600 
601 !#############################################
602 FUNCTION chtc_smooth_wind_doe_1d(PCHTCN, PVMOD) RESULT(PCHTC)
603 !#############################################
604 !
605 !!**** *CHTC_SMOOTH_WIND_DOE* -
606 !!
607 !! PURPOSE
608 !! -------
609 ! function to compute convective surface coefficient for
610 ! a windward smooth surface from the natural convection coef and the
611 ! wind speed
612 !
613 !!** METHOD
614 !! ------
615 !!
616 !! from EnergyPlus Engineering Reference, average the leeward/windward coef
617 !!
618 !! EXTERNAL
619 !! --------
620 !! NONE
621 !!
622 !! IMPLICIT ARGUMENTS
623 !! ------------------
624 !!
625 !! REFERENCE
626 !! ---------
627 !! EnergyPlus, Engineering Reference, DOE-2 model for convection on outside
628 !! surfaces, p68
629 !!
630 !! AUTHOR
631 !! ------
632 !! G. Pigeon * Meteo France *
633 !!
634 !! MODIFICATIONS
635 !! -------------
636 !! Original 20/00/2012
637 !
638 !-------------------------------------------------------------------------------
639 !* 0. DECLARATIONS
640 ! ------------
641 !
642 IMPLICIT NONE
643 !
644 !* 0.1 Declarations of arguments and results
645 !
646 REAL, DIMENSION(:), INTENT(IN) :: pchtcn ! Convective heat transfer coefficient for natural conv. [W/(m2.K)]
647 REAL, DIMENSION(:), INTENT(IN) :: pvmod ! wind speed (m/s)
648 REAL, DIMENSION(SIZE(PCHTCN)) :: pchtc ! Convective heat transfer coefficient [W/(m2.K)]
649 !
650 !* 0.2 Declarations of local variables
651 !
652 REAL(KIND=JPRB) :: zhook_handle
653 REAL :: zawind, zbwind ! coef for windward facade
654 !----------------------------------------------------------------------
655 IF (lhook) CALL dr_hook('MODE_CONV_DOE:CHTC_SMOOTH_WIND_DOE',0,zhook_handle)
656 !
657 !* 1. INITIALIZE COEF
658 ! ----------------
659 !
660 zawind = 2.38
661 zbwind = 0.89
662 
663 !* 2. COMPUTE THE CHTC
664 ! ----------------
665 !
666 pchtc = sqrt(pchtcn**2+(zawind*pvmod**zbwind)**2)
667 !
668 !-------------------------------------------------------------------------------
669 IF (lhook) CALL dr_hook('MODE_CONV_DOE:CHTC_SMOOTH_WIND_DOE',1,zhook_handle)
670 !
671 END FUNCTION chtc_smooth_wind_doe_1d
672 !#########################
673 !#############################################
674 FUNCTION chtc_rough_doe_0d(PCHTCN, PCHTCS, PROUGH) RESULT(PCHTC)
675 !#############################################
676 !
677 !!**** *CHTC_ROUGH_DOE* -
678 !!
679 !! PURPOSE
680 !! -------
681 ! function to compute convective surface coefficient for
682 ! a rough surface from the natural convection coef, the
683 ! smooth surface convective coef and the roughness coef
684 !
685 !!** METHOD
686 !! ------
687 !!
688 !!
689 !! EXTERNAL
690 !! --------
691 !! NONE
692 !!
693 !! IMPLICIT ARGUMENTS
694 !! ------------------
695 !!
696 !! REFERENCE
697 !! ---------
698 !! EnergyPlus, Engineering Reference, DOE-2 model for convection on outside
699 !! surfaces, p68
700 !!
701 !! AUTHOR
702 !! ------
703 !! G. Pigeon * Meteo France *
704 !!
705 !! MODIFICATIONS
706 !! -------------
707 !! Original 20/00/2012
708 !
709 !-------------------------------------------------------------------------------
710 !* 0. DECLARATIONS
711 ! ------------
712 !
713 IMPLICIT NONE
714 !
715 !* 0.1 Declarations of arguments and results
716 !
717 REAL, INTENT(IN) :: pchtcn ! Convective heat transfer coefficient for natural conv. [W/(m2.K)]
718 REAL, INTENT(IN) :: pchtcs ! Convective heat transfer coefficient for a smooth surface [W/(m2.K)]
719 REAL, INTENT(IN) :: prough ! Convective heat transfer coefficient for a smooth surface [W/(m2.K)]
720 REAL :: pchtc ! Convective heat transfer coefficient [W/(m2.K)]
721 !
722 !* 0.2 Declarations of local variables
723 !
724 REAL(KIND=JPRB) :: zhook_handle
725 !----------------------------------------------------------------------
726 IF (lhook) CALL dr_hook('MODE_CONV_DOE:CHTC_ROUGH_DOE',0,zhook_handle)
727 !
728 !* 1. COMPUTE THE CHTC
729 ! ----------------
730 !
731 pchtc = pchtcn + prough * (pchtcs - pchtcn)
732 !
733 !-------------------------------------------------------------------------------
734 IF (lhook) CALL dr_hook('MODE_CONV_DOE:CHTC_ROUGH_DOE',1,zhook_handle)
735 !
736 END FUNCTION chtc_rough_doe_0d
737 !#########################
738 !#############################################
739 FUNCTION chtc_rough_doe_1d(PCHTCN, PCHTCS, PROUGH) RESULT(PCHTC)
740 !#############################################
741 !
742 !!**** *CHTC_ROUGH_DOE* -
743 !!
744 !! PURPOSE
745 !! -------
746 ! function to compute convective surface coefficient for
747 ! a rough surface from the natural convection coef, the
748 ! smooth surface convective coef and the roughness coef
749 !
750 !!** METHOD
751 !! ------
752 !!
753 !!
754 !! EXTERNAL
755 !! --------
756 !! NONE
757 !!
758 !! IMPLICIT ARGUMENTS
759 !! ------------------
760 !!
761 !! REFERENCE
762 !! ---------
763 !! EnergyPlus, Engineering Reference, DOE-2 model for convection on outside
764 !! surfaces, p68
765 !!
766 !! AUTHOR
767 !! ------
768 !! G. Pigeon * Meteo France *
769 !!
770 !! MODIFICATIONS
771 !! -------------
772 !! Original 20/00/2012
773 !
774 !-------------------------------------------------------------------------------
775 !* 0. DECLARATIONS
776 ! ------------
777 !
778 IMPLICIT NONE
779 !
780 !* 0.1 Declarations of arguments and results
781 !
782 REAL, DIMENSION(:), INTENT(IN) :: pchtcn ! Convective heat transfer coefficient for natural conv. [W/(m2.K)]
783 REAL, DIMENSION(:), INTENT(IN) :: pchtcs ! Convective heat transfer coefficient for a smooth surface [W/(m2.K)]
784 REAL, DIMENSION(:), INTENT(IN) :: prough ! Convective heat transfer coefficient for a smooth surface [W/(m2.K)]
785 REAL, DIMENSION(SIZE(PCHTCN)) :: pchtc ! Convective heat transfer coefficient [W/(m2.K)]
786 !
787 !* 0.2 Declarations of local variables
788 !
789 REAL(KIND=JPRB) :: zhook_handle
790 !----------------------------------------------------------------------
791 IF (lhook) CALL dr_hook('MODE_CONV_DOE:CHTC_ROUGH_DOE',0,zhook_handle)
792 !
793 !* 1. COMPUTE THE CHTC
794 ! ----------------
795 !
796 pchtc = pchtcn + prough * (pchtcs - pchtcn)
797 !
798 !-------------------------------------------------------------------------------
799 IF (lhook) CALL dr_hook('MODE_CONV_DOE:CHTC_ROUGH_DOE',1,zhook_handle)
800 !
801 END FUNCTION chtc_rough_doe_1d
802 
803 END MODULE mode_conv_doe
real function chtc_vert_doe_0d(PTS, PTA)
real function, dimension(size(pts)) chtc_down_doe(PTS, PTA)
real function, dimension(size(pchtcn)) chtc_smooth_wind_doe_1d(PCHTCN, PVMOD)
real function, dimension(size(pts)) chtc_up_doe_1d(PTS, PTA)
real function, dimension(size(pts)) chtc_vert_doe_1d(PTS, PTA)
real function chtc_smooth_lee_doe_0d(PCHTCN, PVMOD)
real function chtc_up_doe_0d(PTS, PTA)
real function, dimension(size(pchtcn)) chtc_smooth_lee_doe_1d(PCHTCN, PVMOD)
real function, dimension(size(pchtcn)) chtc_rough_doe_1d(PCHTCN, PCHTCS, PROUGH)
real function chtc_smooth_wind_doe_0d(PCHTCN, PVMOD)
real function chtc_rough_doe_0d(PCHTCN, PCHTCS, PROUGH)