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) | :: | IceStorageType | |||
integer | :: | IceNum |
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 CalcIceStorageDormant(IceStorageType,IceNum)
! SUBROUTINE INFORMATION:
! PURPOSE OF THIS SUBROUTINE:
! METHODOLOGY EMPLOYED:
! REFERENCES:
! USE STATEMENTS:
USE ScheduleManager, ONLY: GetCurrentScheduleValue
USE PlantUtilities, ONLY: SetComponentFlowRate
USE DataPlant, ONLY : PlantLoop, SingleSetpoint, DualSetpointDeadband
IMPLICIT NONE
! SUBROUTINE ARGUMENT DEFINITIONS:
INTEGER, INTENT(IN) :: IceStorageType !BY ZG
INTEGER :: IceNum
! SUBROUTINE PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
REAL(r64) :: Umax ! Max Urate [fraction]
REAL(r64) :: Umin ! Min Urate [fraction]
REAL(r64) :: Uact ! Acting between Umax and Umin [fraction]
! FLOW
SELECT CASE (IceStorageType) !by ZG
CASE(IceStorageType_Simple) !by ZG
! Initialize processed Usys values
Umax = 0.0d0
Umin = 0.0d0
Uact = 0.0d0
! Provide output results for ITS.
ITSMassFlowRate = 0.d0 ![kg/s]
CALL SetComponentFlowRate(ITSMassFlowRate, &
IceStorage(IceNum)%PltInletNodeNum, &
IceStorage(IceNum)%PltOutletNodeNum, &
IceStorage(IceNum)%LoopNum, &
IceStorage(IceNum)%LoopSideNum, &
IceStorage(IceNum)%BranchNum, &
IceStorage(IceNum)%CompNum )
ITSInletTemp = Node(InletNodeNum)%Temp ![C]
ITSOutletTemp = ITSInletTemp ![C]
SELECT CASE (PlantLoop(IceStorage(IceNum)%LoopNum)%LoopDemandCalcScheme)
CASE (SingleSetPoint)
ITSOutletSetPointTemp = Node(OutletNodeNum)%TempSetPoint
CASE (DualSetPointDeadBand)
ITSOutletSetPointTemp = Node(OutletNodeNum)%TempSetPointHi
END SELECT
ITSCoolingRate = 0.0d0 ![W]
ITSCoolingEnergy = 0.0d0 ![J]
Urate = 0.0d0 ![n/a]
CASE DEFAULT
END SELECT
RETURN
END SUBROUTINE CalcIceStorageDormant