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.
SUBROUTINE CalcWaterUseZoneGains
! SUBROUTINE INFORMATION:
! AUTHOR Peter Graham Ellis
! DATE WRITTEN August 2006
! MODIFIED
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! Calculates the zone internal gains due to water use sensible and latent loads.
! METHODOLOGY EMPLOYED:
!
! USE STATEMENTS:
USE DataGlobals, ONLY: BeginEnvrnFlag
USE DataHeatBalance, ONLY: ZoneIntGain, Zone
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
INTEGER :: WaterEquipNum
INTEGER :: ZoneNum
LOGICAL, SAVE :: MyEnvrnFlag=.true.
! FLOW:
IF (NumWaterEquipment == 0) RETURN
IF (BeginEnvrnFlag .and. MyEnvrnFlag) THEN
WaterEquipment%SensibleRate = 0.0d0
WaterEquipment%SensibleEnergy = 0.0d0
WaterEquipment%SensibleRateNoMultiplier = 0.d0
WaterEquipment%LatentRate = 0.0d0
WaterEquipment%LatentEnergy = 0.0d0
WaterEquipment%LatentRateNoMultiplier = 0.d0
WaterEquipment%MixedTemp = 0.0d0
WaterEquipment%TotalMassFlowRate = 0.0d0
WaterEquipment%DrainTemp = 0.0d0
WaterEquipment%ColdVolFlowRate = 0.0d0
WaterEquipment%HotVolFlowRate = 0.0d0
WaterEquipment%TotalVolFlowRate = 0.0d0
WaterEquipment%ColdMassFlowRate = 0.0d0
WaterEquipment%HotMassFlowRate = 0.0d0
MyEnvrnFlag=.false.
ENDIF
IF (.not. BeginEnvrnFlag) MyEnvrnFlag=.true.
DO WaterEquipNum = 1, NumWaterEquipment
IF (WaterEquipment(WaterEquipNum)%Zone == 0) CYCLE
ZoneNum = WaterEquipment(WaterEquipNum)%Zone
WaterEquipment(WaterEquipNum)%SensibleRateNoMultiplier = WaterEquipment(WaterEquipNum)%SensibleRate &
/ ( Zone(ZoneNum)%Multiplier & ! CR7401, back out multipliers
* Zone(ZoneNum)%ListMultiplier)
WaterEquipment(WaterEquipNum)%LatentRateNoMultiplier = WaterEquipment(WaterEquipNum)%LatentRate &
/ ( Zone(ZoneNum)%Multiplier & ! CR7401, back out multipliers
* Zone(ZoneNum)%ListMultiplier)
END DO
! ! this routine needs to model approx zone gains for use during sizing
! IF(DoingSizing)THEN
! DO WaterEquipNum = 1, NumWaterEquipment
! WaterEquipment(WaterEquipNum)%SensibleRateNoMultiplier =
! WaterEquipment(WaterEquipNum)%LatentRateNoMultiplier =
! END DO
! ENDIF
RETURN
END SUBROUTINE CalcWaterUseZoneGains