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) | :: | SourceNum | |||
real(kind=r64), | intent(in) | :: | MyLoad | |||
logical, | intent(in) | :: | RunFlag | |||
integer, | intent(in) | :: | EquipFlowCtrl |
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 CalcWaterSource(SourceNum,MyLoad,Runflag,EquipFlowCtrl)
! SUBROUTINE INFORMATION:
! AUTHOR Edwin Lee
! DATE WRITTEN October 2012
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! METHODOLOGY EMPLOYED:
! REFERENCES:
! USE STATEMENTS:
USE DataGlobals, ONLY : SecInHour
USE DataHVACGlobals, ONLY : TimeStepSys
USE DataPlant, ONLY : PlantLoop
USE FluidProperties, ONLY : GetSpecificHeatGlycol
IMPLICIT NONE
! SUBROUTINE ARGUMENT DEFINITIONS:
INTEGER, INTENT(IN) :: SourceNum
REAL(r64), INTENT(IN) :: MyLoad
LOGICAL, INTENT(IN) :: RunFlag
INTEGER, INTENT(IN) :: EquipFlowCtrl ! Flow control mode for the equipment
! SUBROUTINE PARAMETER DEFINITIONS:
CHARACTER(LEN=*), PARAMETER :: RoutineName = 'CalcWaterSource'
! DERIVED TYPE DEFINITIONS
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
INTEGER :: InletNode
INTEGER :: OutletNode
INTEGER :: LoopNum
INTEGER :: LoopSideNum
REAL(r64) :: Cp
REAL(r64) :: rDummy
INTEGER :: iDummy
LOGICAL :: lDummy
rDummy = MyLoad
iDummy = EquipFlowCtrl
lDummy = RunFlag
IF (WaterSource(SourceNum)%MassFlowRate > 0.0d0) THEN
WaterSource(SourceNum)%OutletTemp = WaterSource(SourceNum)%BoundaryTemp
Cp = GetSpecificHeatGlycol(PlantLoop(WaterSource(SourceNum)%Location%LoopNum)%FluidName, &
WaterSource(SourceNum)%BoundaryTemp, &
PlantLoop(WaterSource(SourceNum)%Location%LoopNum)%FluidIndex, &
RoutineName)
WaterSource(SourceNum)%HeatRate = WaterSource(SourceNum)%MassFlowRate * Cp * &
(WaterSource(SourceNum)%OutletTemp - WaterSource(SourceNum)%InletTemp)
WaterSource(SourceNum)%HeatEnergy = WaterSource(SourceNum)%HeatRate*TimeStepSys*SecInHour
ELSE
WaterSource(SourceNum)%OutletTemp = WaterSource(SourceNum)%BoundaryTemp
WaterSource(SourceNum)%HeatRate = 0.0d0
WaterSource(SourceNum)%HeatEnergy = 0.0d0
END IF
RETURN
END SUBROUTINE CalcWaterSource