Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
logical, | intent(out) | :: | ElecBaseboardSysOn |
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 UpdateBBElecRadSourceValAvg(ElecBaseboardSysOn)
! SUBROUTINE INFORMATION:
! AUTHOR Rick Strand
! DATE WRITTEN February 2001
! MODIFIED Feb 2010 Daeho Kang 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) :: ElecBaseboardSysOn ! .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
INTEGER :: ZoneNum ! DO loop counter for surface index
! FLOW:
ElecBaseboardSysOn = .FALSE.
! If this was never allocated, then there are no radiant systems in this input file (just RETURN)
IF (.NOT.ALLOCATED(QBBElecRadSrcAvg)) RETURN
! If it was allocated, then we have to check to see if this was running at all...
DO BaseboardNum = 1, NumElecBaseboards
IF (QBBElecRadSrcAvg(BaseboardNum) /= 0.0D0) THEN
ElecBaseboardSysOn = .TRUE.
EXIT !DO loop
END IF
END DO
QBBElecRadSource = QBBElecRadSrcAvg
! QBBElecRadSource has been modified so we need to redistribute gains
CALL DistributeBBElecRadGains
RETURN
END SUBROUTINE UpdateBBElecRadSourceValAvg