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) | :: | BaseboardNum |
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 UpdateHWBaseboard(BaseboardNum)
! SUBROUTINE INFORMATION:
! AUTHOR Russ Taylor
! Rick Strand
! DATE WRITTEN Nov 1997
! February 2001
! MODIFIED Aug 2007 Daeho Kang (Add the update of radiant source)
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! METHODOLOGY EMPLOYED:
! The update subrotines both in high temperature radiant radiator
! and convective only baseboard radiator are combined and modified.
!
! REFERENCES:
! na
! USE STATEMENTS:
USE DataLoopNode, ONLY: Node
USE DataGlobals, ONLY: TimeStepZone, BeginEnvrnFlag
USE PlantUtilities, ONLY: SafeCopyPlantNode
IMPLICIT NONE
! SUBROUTINE ARGUMENT DEFINITIONS:
INTEGER, INTENT(IN) :: BaseboardNum
! SUBROUTINE PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS
! na
! DERIVED TYPE DEFINITIONS
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
INTEGER :: WaterInletNode
INTEGER :: WaterOutletNode
INTEGER,SAVE :: Iter = 0
Logical,save :: MyEnvrnFlag = .true.
IF (Beginenvrnflag .and. Myenvrnflag) then
Iter=0
Myenvrnflag = .false.
END IF
IF (.not. Beginenvrnflag) then
Myenvrnflag=.true.
END IF
! First, update the running average if necessary...
IF (LastSysTimeElapsed(BaseboardNum) == SysTimeElapsed) THEN
QBBRadSrcAvg(BaseboardNum) = QBBRadSrcAvg(BaseboardNum) - LastQBBRadSrc(BaseboardNum) * &
LastTimeStepSys(BaseboardNum) / TimeStepZone
END IF
! Update the running average and the "last" values with the current values of the appropriate variables
QBBRadSrcAvg(BaseboardNum) = QBBRadSrcAvg(BaseboardNum) + &
QBBRadSource(BaseboardNum) * TimeStepSys / TimeStepZone
LastQBBRadSrc(BaseboardNum) = QBBRadSource(BaseboardNum)
LastSysTimeElapsed(BaseboardNum) = SysTimeElapsed
LastTimeStepSys(BaseboardNum) = TimeStepSys
WaterInletNode = HWBaseboard(BaseboardNum)%WaterInletNode
WaterOutletNode = HWBaseboard(BaseboardNum)%WaterOutletNode
! Set the outlet air nodes of the Baseboard
! Set the outlet water nodes for the Coil
CALL SafeCopyPlantNode(WaterInletNode, WaterOutletNode)
Node(WaterOutletNode)%Temp = HWBaseboard(BaseboardNum)%WaterOutletTemp
Node(WaterOutletNode)%Enthalpy = HWBaseboard(BaseboardNum)%WaterOutletEnthalpy
RETURN
END SUBROUTINE UpdateHWBaseboard