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.
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 ReportExteriorEnergyUse
! SUBROUTINE INFORMATION:
! AUTHOR Linda Lawrie
! DATE WRITTEN January 2001
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! This subroutine performs the calculations necessary to report
! the exterior energy use types.
! METHODOLOGY EMPLOYED:
! na
! REFERENCES:
! na
! USE STATEMENTS:
USE DataGlobals, ONLY: SecInHour,WarmUpFlag, DoOutputReporting, KindOfSim, ksRunPeriodWeather
USE ScheduleManager, ONLY: GetCurrentScheduleValue
USE DataEnvironment, ONLY: SunIsUP
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! SUBROUTINE ARGUMENT DEFINITIONS:
! na
! SUBROUTINE PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS:
! na
! DERIVED TYPE DEFINITIONS:
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
INTEGER Item ! Loop Control
DO Item=1,NumExteriorLights
SELECT CASE (ExteriorLights(Item)%ControlMode)
CASE (ScheduleOnly)
ExteriorLights(Item)%Power = ExteriorLights(Item)%DesignLevel * GetCurrentScheduleValue(ExteriorLights(Item)%SchedPtr)
ExteriorLights(Item)%CurrentUse = ExteriorLights(Item)%Power * TimeStepZone * SecInHour
CASE (AstroClockOverride)
IF (SunIsUP) THEN
ExteriorLights(Item)%Power = 0.0d0
ExteriorLights(Item)%CurrentUse = 0.0d0
ELSE
ExteriorLights(Item)%Power = ExteriorLights(Item)%DesignLevel * GetCurrentScheduleValue(ExteriorLights(Item)%SchedPtr)
ExteriorLights(Item)%CurrentUse = ExteriorLights(Item)%Power * TimeStepZone * SecInHour
END IF
CASE DEFAULT
!should not occur
END SELECT
! Reduce lighting power due to demand limiting
IF (ExteriorLights(Item)%ManageDemand .AND. (ExteriorLights(Item)%Power > ExteriorLights(Item)%DemandLimit)) THEN
ExteriorLights(Item)%Power = ExteriorLights(Item)%DemandLimit
ExteriorLights(Item)%CurrentUse = ExteriorLights(Item)%Power * TimeStepZone * SecInHour
END IF
! EMS controls
IF (ExteriorLights(Item)%PowerActuatorOn) ExteriorLights(Item)%Power = ExteriorLights(Item)%PowerActuatorValue
ExteriorLights(Item)%CurrentUse = ExteriorLights(Item)%Power * TimeStepZone * SecInHour
!gather for tabular reports
IF (.NOT. WarmUpFlag) THEN
! IF (DoOutputReporting .AND. WriteTabularFiles .and. (KindOfSim == ksRunPeriodWeather)) THEN !for weather simulations only
IF (DoOutputReporting .and. (KindOfSim == ksRunPeriodWeather)) THEN !for weather simulations only
!for tabular report, accumlate the total electricity used for each ExteriorLights object
ExteriorLights(Item)%SumConsumption = ExteriorLights(Item)%SumConsumption + ExteriorLights(Item)%CurrentUse
!for tabular report, accumulate the time when each ExteriorLights has consumption
!(using a very small threshold instead of zero)
IF (ExteriorLights(Item)%CurrentUse > 0.01d0) THEN
ExteriorLights(Item)%SumTimeNotZeroCons = ExteriorLights(Item)%SumTimeNotZeroCons + TimeStepZone
END IF
ENDIF
END IF
END DO
DO Item=1,NumExteriorEqs
ExteriorEquipment(Item)%CurrentUse = ExteriorEquipment(Item)%DesignLevel* &
GetCurrentScheduleValue(ExteriorEquipment(Item)%SchedPtr)*TimeStepZone*SecInHour
END DO
RETURN
END SUBROUTINE ReportExteriorEnergyUse