SURFEX  V8_0
Surfex V8_0 release
 All Classes Files Functions Variables
window_shading_availability.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 ! ###########################################################################################################
6  SUBROUTINE window_shading_availability(OSHADE, PTI_BLD, PTCOOL_TARGET,OSHADE_POSSIBLE)
7 ! ###########################################################################################################
8 !
9 !!**** *WINDOW_SHADING_AVAILABILITY*
10 !!
11 !! PURPOSE
12 !! -------
13 !!* checks if one encouters the conditions for closing the windows at day
14 ! (needs to be equiped of solar protections and not to be confortable inside)
15 !
16 !!
17 !!** METHOD
18 !! ------
19 !!
20 !! EXTERNAL
21 !! --------
22 !!
23 !! IMPLICIT ARGUMENTS
24 !! ------------------
25 !!
26 !! REFERENCE
27 !! ---------
28 !!
29 !! AUTHOR
30 !! ------
31 !! G. Pigeon *Meteo France*
32 !!
33 !! MODIFICATIONS
34 !! -------------
35 !! Original 10/2011
36 !-------------------------------------------------------------------------------
37 !
38 !* 0. DECLARATIONS
39 ! ------------
40 !
41 USE modd_bem_cst, ONLY : xcomfort_temp_for_shading_use
42 !
43 IMPLICIT NONE
44 !
45 !* 0.1 Declarations of arguments
46 ! -------------------------
47 !
48 LOGICAL, DIMENSION(:), INTENT(IN) :: oshade ! TRUE if solar protections exist
49 REAL, DIMENSION(:), INTENT(IN) :: pti_bld ! indoor air temperature
50 REAL, DIMENSION(:), INTENT(IN) :: ptcool_target ! Cooling setpoint of HVAC system
51 LOGICAL, DIMENSION(:), INTENT(OUT) :: oshade_possible ! TRUE if solar protections
52 ! ! are likely to be used today if
53 ! ! solar irradiance is enough
54 !
55 !* 0.2 Declarations of local variables
56 !
57 !
58 !-------------------------------------------------------------------------------
59 !
60 !
61 !
62 oshade_possible(:) = oshade(:) .AND. &
63  ( pti_bld(:) .GE. xcomfort_temp_for_shading_use &
64  .OR. pti_bld(:) .EQ. ptcool_target(:) )
65 !
66 END SUBROUTINE window_shading_availability
subroutine window_shading_availability(OSHADE, PTI_BLD, PTCOOL_TARGET, OSHADE_POSSIBLE)