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.
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 WindowGapAirflowControl
! SUBROUTINE INFORMATION:
! AUTHOR Fred Winkelmann
! DATE WRITTEN February 2003
! MODIFIED June 2003, FCW: add fatal error for illegal schedule value
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! For airflow windows, determines the airflow in the gap of
! double glazing and in the inner gap of triple glazing.
! REFERENCES:
! na
! USE STATEMENTS:
USE ScheduleManager, ONLY: GetCurrentScheduleValue
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! SUBROUTINE PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS
! na
! DERIVED TYPE DEFINITIONS
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
INTEGER :: ISurf ! Surface counter
INTEGER :: SchedulePtr ! Schedule pointer
REAL(r64) :: ScheduleMult ! Multiplier value from schedule
DO ISurf = 1,TotSurfaces
IF(Surface(ISurf)%Class /= SurfaceClass_Window) CYCLE
SurfaceWindow(ISurf)%AirflowThisTS = 0.0d0
IF(SurfaceWindow(ISurf)%MaxAirflow == 0.0d0) CYCLE
IF(Surface(ISurf)%ExtBoundCond /= ExternalEnvironment) CYCLE
SELECT CASE (SurfaceWindow(ISurf)%AirflowControlType)
CASE(AirFlowWindow_ControlType_MaxFlow)
SurfaceWindow(ISurf)%AirflowThisTS = SurfaceWindow(ISurf)%MaxAirflow
CASE(AirFlowWindow_ControlType_AlwaysOff)
SurfaceWindow(ISurf)%AirflowThisTS = 0.0d0
CASE(AirFlowWindow_ControlType_Schedule)
IF(SurfaceWindow(ISurf)%AirflowHasSchedule) THEN
SchedulePtr = SurfaceWindow(ISurf)%AirflowSchedulePtr
ScheduleMult = GetCurrentScheduleValue(SchedulePtr)
IF(ScheduleMult < 0.0d0 .OR. ScheduleMult > 1.0d0) THEN
CALL ShowFatalError('Airflow schedule has a value outside the range 0.0 to 1.0 for window=' &
//TRIM(Surface(ISurf)%Name))
END IF
SurfaceWindow(ISurf)%AirflowThisTS = ScheduleMult * SurfaceWindow(ISurf)%MaxAirflow
END IF
END SELECT
END DO ! End of surface loop
RETURN
END SUBROUTINE WindowGapAirflowControl