Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
logical, | intent(out) | :: | HWBaseboardSysOn |
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 UpdateBBRadSourceValAvg(HWBaseboardSysOn)
! SUBROUTINE INFORMATION:
! AUTHOR Rick Strand
! DATE WRITTEN February 2001
! MODIFIED Aug 2007 Daeho Kang (Modification only for baseboard)
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! To transfer the average value of the heat source over the entire
! zone time step back to the heat balance routines so that the heat
! balance algorithms can simulate one last time with the average source
! to maintain some reasonable amount of continuity and energy balance
! in the temperature and flux histories.
! METHODOLOGY EMPLOYED:
! All of the record keeping for the average term is done in the Update
! routine so the only other thing that this subroutine does is check to
! see if the system was even on. If any average term is non-zero, then
! one or more of the radiant systems was running.
! REFERENCES:
! na
! USE STATEMENTS:
! na
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! SUBROUTINE ARGUMENT DEFINITIONS:
LOGICAL, INTENT(OUT) :: HWBaseboardSysOn ! .TRUE. if the radiant system has run this zone time step
! SUBROUTINE PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS
! na
! DERIVED TYPE DEFINITIONS
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
INTEGER :: BaseboardNum ! DO loop counter for surface index
! FLOW:
HWBaseboardSysOn = .FALSE.
! If this was never allocated, then there are no radiant systems in this input file (just RETURN)
IF (.NOT.ALLOCATED(QBBRadSrcAvg)) RETURN
! If it was allocated, then we have to check to see if this was running at all...
DO BaseboardNum = 1, NumHWBaseboards
IF (QBBRadSrcAvg(BaseboardNum) /= 0.0D0) THEN
HWBaseboardSysOn = .TRUE.
EXIT !DO loop
END IF
END DO
QBBRadSource = QBBRadSrcAvg
CALL DistributeBBRadGains ! QBBRadSource has been modified so we need to redistribute gains
RETURN
END SUBROUTINE UpdateBBRadSourceValAvg