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 ManageRefrigeratedCaseRacks
! SUBROUTINE INFORMATION:
! AUTHOR Richard Raustad, FSEC
! DATE WRITTEN Oct/Nov 2004
! MODIFIED Shirey, FSEC Dec 2004, Stovall, ORNL, May 2008
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! This subroutine is called from HVACManager.f90, subroutine ManageHVAC to
! manage refrigerated cases and associated compressor racks on zone time step
! OR from SimAirChillerSet in this module on sys time step (Stovall 2011)
! METHODOLOGY EMPLOYED:
! Each compressor rack is modeled by first simulating the attached refrigeration loads. The
! loads can include refrigerated cases, walk-in coolers, and secondary fluid chillers. The sum
! of the total heat transfer for all attached loads determines the load on the compressor rack.
! For the refrigeration rack approach, a simple model for variation of COP with
! condensing temperature is used to determine rack power and energy consumption.
! For the detailed system approach, the compressors and condensers are modeled individually
! using manufacturer's data and rated performance curves.
!
! Inter-system heat transfer via subcoolers and cascade condensers can be accomodated.
! Secondary refrigeration cycles are also available.
! REFERENCES:
! na
! USE STATEMENTS:
USE General, ONLY: RoundSigDigits
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! SUBROUTINE ARGUMENT DEFINITIONS:
! SUBROUTINE PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS:
! na
! DERIVED TYPE DEFINITIONS:
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
INTEGER :: RackNum ! Index to the refrigerated compressor rack being modeled
LOGICAL,SAVE :: MyOneTimeFlag = .TRUE. ! flag to skip first pass on next begin environment flag
IF(.NOT. ManageRefrigeration)RETURN
CALL CheckRefrigerationInput
CALL InitRefrigeration()
!ManageRefrigeratedCaseRacks is called on each zone time step.
! However, if have chillers, ManageRefrigeration will be .TRUE. and will
! need to bounce back. (InitRefrig has to be called anyway to zero values at zone time step.)
! Therefore...
IF((.NOT. HaveCasesOrWalkins) .AND. (.NOT. UseSysTimeStep))THEN
!Zero requests for cooling water from plant or tank
CALL ZeroHVACValues
RETURN
END IF
!Following case should never occur, but just for completeness:
IF((.NOT. HaveChillers) .AND. (UseSysTimeStep)) RETURN
! Refrigerated cases are not simulated the first time through, replicate this on beginning of next environment
IF(BeginEnvrnFlag .AND. MyOnetimeFlag)THEN
MyOneTimeFlag = .FALSE.
RETURN
END IF
IF(.NOT. BeginEnvrnFlag)MyOneTimeFlag = .TRUE.
IF (HaveRefrigRacks) THEN
DO RackNum = 1, NumRefrigeratedRacks
CALL CalcRackSystem(RackNum)
CALL ReportRackSystem(RackNum)
END DO
END IF
IF (HaveDetailedRefrig) CALL SimulateDetailedRefrigerationSystems
IF (HaveDetailedTransRefrig) CALL SimulateDetailedTransRefrigSystems
RETURN
END SUBROUTINE ManageRefrigeratedCaseRacks