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) | :: | RainColNum |
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 CalcRainCollector(RainColNum)
! SUBROUTINE INFORMATION:
! AUTHOR B. Griffith
! DATE WRITTEN August 2006
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! Collect the calculations used to update the modeled values
! for the rain collector at each system timestep
!
! METHODOLOGY EMPLOYED:
! <description>
! REFERENCES:
! na
! USE STATEMENTS:
! na
USE DataGlobals, ONLY: SecInHour
USE DataHVACGlobals, ONLY: TimeStepSys
USE DataEnvironment, ONLY: OutWetBulbTempAt
USE ScheduleManager, ONLY: GetCurrentScheduleValue
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! SUBROUTINE ARGUMENT DEFINITIONS:
INTEGER, Intent(IN) :: RainColNum ! Index of rain collector
! SUBROUTINE PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS:
! na
! DERIVED TYPE DEFINITIONS:
! see DataWater.f90
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
REAL(r64) :: LossFactor
REAL(r64) :: VdotAvail
!If (.NOT.(IsRain)) Then ! is it raining now? No don't use this flag since precip schedule might differ from weather file
IF (RainFall%CurrentRate <= 0.0d0) Then
! set available supply rate in WaterStorage
WaterStorage(RainCollector(RainColNum)%StorageTankID)%VdotAvailSupply(RainCollector(RainColNum)%StorageTankSupplyARRID) = 0.0d0
! temperature of water supply is modeled as the same as outdoor drybulb.
WaterStorage(RainCollector(RainColNum)%StorageTankID)%TwaterSupply(RainCollector(RainColNum)%StorageTankSupplyARRID) = 0.0d0
RainCollector(RainColNum)%VdotAvail = 0.0d0
RainCollector(RainColNum)%VolCollected = 0.0d0
ELSE
SELECT CASE (RainCollector(RainColNum)%LossFactorMode)
CASE(ConstantRainLossFactor)
LossFactor = RainCollector(RainColNum)%LossFactor
CASE(ScheduledRainLossFactor)
LossFactor = GetCurrentScheduleValue(RainCollector(RainColNum)%LossFactorSchedID)
END SELECT
VdotAvail = RainFall%CurrentRate * RainCollector(RainColNum)%HorizArea *(1.0d0 - LossFactor )
If (VdotAvail > RainCollector(RainColNum)%MaxCollectRate) Then
VdotAvail = RainCollector(RainColNum)%MaxCollectRate
endif
! set available supply rate in WaterStorage
WaterStorage(RainCollector(RainColNum)%StorageTankID)%VdotAvailSupply(RainCollector(RainColNum)%StorageTankSupplyARRID) = &
VdotAVail
! temperature of water supply is modeled as the same as outdoor drybulb.
WaterStorage(RainCollector(RainColNum)%StorageTankID)%TwaterSupply(RainCollector(RainColNum)%StorageTankSupplyARRID) &
= OutWetBulbTempAt(RainCollector(RainColNum)%MeanHeight)
RainCollector(RainColNum)%VdotAvail = VdotAvail
RainCollector(RainColNum)%VolCollected = VdotAvail * TimeStepSys * SecInHour
ENDIF !
RETURN
END SUBROUTINE CalcRainCollector