Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
logical, | intent(out) | :: | SteamBaseboardSysOn |
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 UpdateBBSteamRadSourceValAvg(SteamBaseboardSysOn)
! SUBROUTINE INFORMATION:
! AUTHOR Rick Strand
! DATE WRITTEN February 2001
! MODIFIED Aug 2009 Daeho Kang (modify 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) :: SteamBaseboardSysOn ! .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:
SteamBaseboardSysOn = .FALSE.
! If this was never allocated, then there are no radiant systems in this input file (just RETURN)
IF (.NOT.ALLOCATED(QBBSteamRadSrcAvg)) RETURN
! If it was allocated, then we have to check to see if this was running at all...
DO BaseboardNum = 1, NumSteamBaseboards
IF (QBBSteamRadSrcAvg(BaseboardNum) /= 0.0D0) THEN
SteamBaseboardSysOn = .TRUE.
EXIT !DO loop
END IF
END DO
QBBSteamRadSource = QBBSteamRadSrcAvg
CALL DistributeBBSteamRadGains ! QBBRadSource has been modified so we need to redistribute gains
RETURN
END SUBROUTINE UpdateBBSteamRadSourceValAvg