Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | UpdateType | |||
real(kind=r64), | intent(inout) | :: | ZoneTempChange | |||
logical, | intent(in) | :: | ShortenTimeStepSys | |||
logical, | intent(in) | :: | UseZoneTimeStepHistory | |||
real(kind=r64), | intent(in) | :: | PriorTimeStep |
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 ManageZoneAirUpdates(UpdateType, ZoneTempChange, ShortenTimeStepSys, &
UseZoneTimeStepHistory, PriorTimeStep )
! SUBROUTINE INFORMATION
! AUTHOR Russ Taylor
! DATE WRITTEN September 1998
! MODIFIED na
! RE-ENGINEERED Brent Griffith Feb. 2008, added arguments
! PURPOSE OF THIS SUBROUTINE:
! This subroutine predicts or corrects the zone air temperature
! depending on the simulation status and determines the correct
! temperature setpoint for each zone from the schedule manager.
! METHODOLOGY EMPLOYED:
! na
! REFERENCES:
! na
! USE STATEMENTS:
! na
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! SUBROUTINE ARGUMENT DEFINITIONS:
INTEGER, INTENT(IN) :: UpdateType ! Can be iGetZoneSetpoints, iPredictStep, iCorrectStep
REAL(r64), INTENT(INOUT) :: ZoneTempChange ! Temp change in zone air btw previous and current timestep
LOGICAL, INTENT(IN) :: ShortenTimeStepSys
LOGICAL, INTENT(IN) :: UseZoneTimeStepHistory ! if true then use zone timestep history, if false use system time step
REAL(r64), INTENT(IN) :: PriorTimeStep ! the old value for timestep length is passed for possible use in interpolating
! SUBROUTINE PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS:
! na
! DERIVED TYPE DEFINITIONS:
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
!unused1208 INTEGER :: zoneloop
IF (GetZoneAirStatsInputFlag) THEN
CALL GetZoneAirSetpoints
GetZoneAirStatsInputFlag = .FALSE.
END IF
CALL InitZoneAirSetpoints
SELECT CASE(UpdateType)
CASE(iGetZoneSetpoints)
CALL CalcZoneAirTempSetpoints
CASE(iPredictStep)
CALL PredictSystemLoads(ShortenTimeStepSys, UseZoneTimeStepHistory,&
PriorTimeStep )
CASE(iCorrectStep)
CALL CorrectZoneAirTemp(ZoneTempChange, ShortenTimeStepSys, &
UseZoneTimeStepHistory, PriorTimeStep)
CASE (iRevertZoneTimestepHistories)
Call RevertZoneTimestepHistories
CASE (iPushZoneTimestepHistories)
Call PushZoneTimestepHistories
CASE (iPushSystemTimestepHistories)
Call PushSystemTimestepHistories
END SELECT
RETURN
END SUBROUTINE ManageZoneAirUpdates