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) | :: | WaterConnNum |
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 CalcConnectionsDrainTemp(WaterConnNum)
! SUBROUTINE INFORMATION:
! AUTHOR Peter Graham Ellis
! DATE WRITTEN August 2006
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! Calculate
! METHODOLOGY EMPLOYED:
!
! USE STATEMENTS:
USE Psychrometrics, ONLY: RhoH2O
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! SUBROUTINE ARGUMENT DEFINITIONS:
INTEGER, INTENT(IN) :: WaterConnNum
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
INTEGER :: WaterEquipNum, Loop
REAL(r64) :: MassFlowTempSum
! FLOW:
WaterConnections(WaterConnNum)%DrainMassFlowRate = 0.0d0
MassFlowTempSum = 0.0d0
DO Loop = 1, WaterConnections(WaterConnNum)%NumWaterEquipment
WaterEquipNum = WaterConnections(WaterConnNum)%WaterEquipment(Loop)
CALL CalcEquipmentDrainTemp(WaterEquipNum)
WaterConnections(WaterConnNum)%DrainMassFlowRate = WaterConnections(WaterConnNum)%DrainMassFlowRate &
+ WaterEquipment(WaterEquipNum)%DrainMassFlowRate
MassFlowTempSum = MassFlowTempSum + WaterEquipment(WaterEquipNum)%DrainMassFlowRate * WaterEquipment(WaterEquipNum)%DrainTemp
END DO ! Loop
IF (WaterConnections(WaterConnNum)%DrainMassFlowRate > 0.0d0) THEN
WaterConnections(WaterConnNum)%DrainTemp = MassFlowTempSum / WaterConnections(WaterConnNum)%DrainMassFlowRate
ELSE
WaterConnections(WaterConnNum)%DrainTemp = WaterConnections(WaterConnNum)%HotTemp
END IF
WaterConnections(WaterConnNum)%DrainVolFlowRate = WaterConnections(WaterConnNum)%DrainMassFlowRate * RhoH2O(InitConvTemp)
RETURN
END SUBROUTINE CalcConnectionsDrainTemp