Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(CFSLAYER), | intent(inout) | :: | L | |||
real(kind=r64), | intent(in) | :: | OMEGA_DEG |
Nodes of different colours represent the following:
Solid arrows point from a procedure to one which it calls. Dashed arrows point from an interface to procedures which implement that interface. This could include the module procedures in a generic interface or the implementation in a submodule of an interface in a parent module. Where possible, edges connecting nodes are given different colours to make them easier to distinguish in large graphs.
Nodes of different colours represent the following:
Solid arrows point from a procedure to one which it calls. Dashed arrows point from an interface to procedures which implement that interface. This could include the module procedures in a generic interface or the implementation in a submodule of an interface in a parent module. Where possible, edges connecting nodes are given different colours to make them easier to distinguish in large graphs.
LOGICAL FUNCTION VB_ShadeControl(L, OMEGA_DEG)
!
! FUNCTION INFORMATION:
! AUTHOR ASHRAE 1311-RP
!
! DATE WRITTEN unknown
! MODIFIED na
!
! RE-ENGINEERED na
! PURPOSE OF THIS FUNCTION:
! Modifies slat angle if shade control is true. If not uses the fixed
! slate angle and returns false.
!
!
! METHODOLOGY EMPLOYED:
! na
!
! REFERENCES:
! na
!
! USE STATEMENTS:
! na
!
!
IMPLICIT NONE
! FUNCTION ARGUMENT DEFINITIONS:
TYPE( CFSLAYER), INTENT( INOUT) :: L ! VB layer
REAL(r64), INTENT( IN) :: OMEGA_DEG ! incident profile angle (degrees)
! see comments elsewhere re sign convention
! < 0 = diffuse
!
! FUNCTION PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS
! na
! DERIVED TYPE DEFINITIONS
! na
!
! FUNCTION LOCAL VARIABLE DECLARATIONS:
REAL(r64) :: SLATA
! Flow
SLATA = L%PHI_DEG
IF (L%CNTRL == lscVBPROF) THEN
! slatA = profA (max gain)
IF (OMEGA_DEG < 0.0d0) THEN
SLATA = -30.0d0
ELSE
SLATA = -OMEGA_DEG
END IF
ELSE IF (L%CNTRL == lscVBNOBM) THEN
! slatA set to just exclude beam
IF (OMEGA_DEG < 0.0d0) THEN
SLATA = VB_CriticalSlatAngle( L, 30.0d0) ! assume 30 deg for diffuse
ELSE
SLATA = VB_CriticalSlatAngle( L, OMEGA_DEG)
END IF
END IF
VB_ShadeControl = ABS( SLATA - L%PHI_DEG) > 0.01d0
IF (VB_ShadeControl) THEN
L%PHI_DEG = SLATA
END IF
RETURN
END FUNCTION VB_ShadeControl