Nodes of different colours represent the following:
Solid arrows point from a parent (sub)module to the submodule which is descended from it. Dashed arrows point from a module being used to the module or program unit using it. Where possible, edges connecting nodes are given different colours to make them easier to distinguish in large graphs.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | ZoneNum |
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.
SUBROUTINE CalcDayltgCoeffsRefMapPoints(ZoneNum)
! SUBROUTINE INFORMATION:
! AUTHOR Linda Lawrie
! DATE WRITTEN October 2004
! MODIFIED May 2006 (RR): added exterior window screens
! April 2012 (LKL); change to allow multiple maps per zone
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! This subroutine does the daylighting coefficient calculation for the
! daylighting and illuminance map reference points.
! METHODOLOGY EMPLOYED:
! na
! REFERENCES:
! na
! USE STATEMENTS:
USE General, ONLY: POLYF, InterpProfAng, BlindBeamBeamTrans, SafeDivide, RoundSigDigits
USE DaylightingDevices, ONLY: FindTDDPipe, TransTDD
USE SolarReflectionManager, ONLY: SolReflRecSurf
USE Vectors
USE DataSystemVariables, ONLY: DetailedSkyDiffuseAlgorithm
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! SUBROUTINE ARGUMENT DEFINITIONS:
INTEGER, INTENT(IN) :: ZoneNum
! SUBROUTINE PARAMETER DEFINITIONS:
REAL(r64), PARAMETER :: tmpDFCalc = 0.05d0 ! cut off illuminance (lux) for exterior horizontal in calculating
! the daylighting and glare factors
! INTERFACE BLOCK SPECIFICATIONS
! na
! DERIVED TYPE DEFINITIONS
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
INTEGER :: IWin ! Window counter
INTEGER :: PipeNum ! TDD pipe object number
INTEGER :: loopwin ! loop index for exterior windows associated with a daylit zone
LOGICAL, SAVE :: VeryFirstTime=.true.
INTEGER TZoneNum
LOGICAL ErrorsFound
INTEGER :: MapNum
IF (VeryFirstTime) THEN
! make sure all necessary surfaces match to pipes
ErrorsFound=.false.
DO TZoneNum=1,NumOfZones
DO loopwin = 1,ZoneDaylight(TZoneNum)%NumOfDayltgExtWins
IWin = ZoneDaylight(TZoneNum)%DayltgExtWinSurfNums(loopwin)
IF (SurfaceWindow(IWin)%OriginalClass /= SurfaceClass_TDD_Diffuser) CYCLE
! Look up the TDD:DOME object
PipeNum = FindTDDPipe(IWin)
IF (PipeNum == 0) THEN
CALL ShowSevereError('GetTDDInput: Surface='//TRIM(Surface(IWin)%Name)// &
', TDD:Dome object does not reference a valid Diffuser object.')
CALL ShowContinueError('...needs DaylightingDevice:Tubular of same name as Surface.')
ErrorsFound=.true.
ENDIF
ENDDO
ENDDO
IF (ErrorsFound) THEN
CALL ShowFatalError('Not all TubularDaylightDome objects have corresponding DaylightingDevice:Tubular objects.'// &
' Program terminates.')
ENDIF
VeryFirstTime=.false.
ENDIF
!Calc for daylighting reference points
CALL CalcDayltgCoeffsRefPoints(ZoneNum)
IF (.not. DoingSizing .and. .not. KickOffSimulation) THEN
!Calc for illuminance map
IF (TotIllumMaps > 0) THEN
DO MapNum=1,TotIllumMaps
IF (IllumMapCalc(MapNum)%Zone /= ZoneNum) CYCLE
IF (WarmUpFlag) THEN
CALL DisplayString('Calculating Daylighting Coefficients (Map Points), Zone='//trim(Zone(ZoneNum)%Name))
ELSE
CALL DisplayString('Updating Daylighting Coefficients (Map Points), Zone='//trim(Zone(ZoneNum)%Name))
END IF
ENDDO
CALL CalcDayltgCoeffsMapPoints(ZoneNum)
ENDIF
ENDIF
RETURN
END SUBROUTINE CalcDayltgCoeffsRefMapPoints