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.
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 DistributeBBSteamRadGains
! SUBROUTINE INFORMATION:
! AUTHOR Rick Strand
! DATE WRITTEN February 2001
! MODIFIED Aug. 2009 Daeho Kang (modify only for steam baseboard)
! April 2010 Brent Griffith, max limit to protect surface temperature calcs
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! To distribute the gains from the steam basebaord heater
! as specified in the user input file. This includes distribution
! of long wavelength radiant gains to surfaces and "people."
! METHODOLOGY EMPLOYED:
! We must cycle through all of the radiant systems because each
! surface could feel the effect of more than one radiant system.
! Note that the energy radiated to people is assumed to affect them
! but them it is assumed to be convected to the air.
! REFERENCES:
! na
! USE STATEMENTS:
USE DataHeatBalance, ONLY : Zone
USE DataHeatBalFanSys, ONLY : QSteamBaseboardToPerson, QSteamBaseboardSurf, MaxRadHeatFlux
USE DataSurfaces, ONLY : Surface, TotSurfaces
USE General, ONLY : RoundSigDigits
USE DataInterfaces, ONLY : ShowContinueError, ShowWarningError, ShowSevereError, &
ShowFatalError
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! SUBROUTINE ARGUMENT DEFINITIONS:
! SUBROUTINE PARAMETER DEFINITIONS:
REAL(r64), PARAMETER :: SmallestArea = 0.001d0 ! Smallest area in meters squared (to avoid a divide by zero)
! INTERFACE BLOCK SPECIFICATIONS
! na
! DERIVED TYPE DEFINITIONS
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
INTEGER :: RadSurfNum ! Counter for surfaces receiving radiation from radiant heater
INTEGER :: BaseboardNum ! Counter for the baseboard
INTEGER :: SurfNum ! Pointer to the Surface derived type
INTEGER :: ZoneNum ! Pointer to the Zone derived type
REAL(R64) :: ThisSurfIntensity ! temporary for W/m2 term for rad on a surface
! FLOW:
! Initialize arrays
QSteamBaseboardSurf = 0.0D0
QSteamBaseboardToPerson = 0.0D0
DO BaseboardNum = 1, NumSteamBaseboards
ZoneNum = SteamBaseboard(BaseboardNum)%ZonePtr
QSteamBaseboardToPerson(ZoneNum) = QSteamBaseboardToPerson(ZoneNum) + &
QBBSteamRadSource(BaseboardNum) * SteamBaseboard(BaseboardNum)%FracDistribPerson
DO RadSurfNum = 1, SteamBaseboard(BaseboardNum)%TotSurfToDistrib
SurfNum = SteamBaseboard(BaseboardNum)%SurfacePtr(RadSurfNum)
IF (Surface(SurfNum)%Area > SmallestArea) THEN
ThisSurfIntensity = (QBBSteamRadSource(BaseboardNum) &
* SteamBaseboard(BaseboardNum)%FracDistribToSurf(RadSurfNum) &
/ Surface(SurfNum)%Area )
QSteamBaseboardSurf(SurfNum) = QSteamBaseboardSurf(SurfNum) &
+ ThisSurfIntensity
IF (ThisSurfIntensity > MaxRadHeatFlux) THEN ! CR 8074, trap for excessive intensity (throws off surface balance )
CALL ShowSevereError('DistributeBBSteamRadGains: excessive thermal radiation heat flux intensity detected')
CALL ShowContinueError('Surface = '//TRIM(Surface(SurfNum)%Name) )
CALL ShowContinueError('Surface area = '//TRIM(RoundSigDigits(Surface(SurfNum)%Area,3))//' [m2]')
CALL ShowContinueError('Occurs in '//cCMO_BBRadiator_Steam//' = '//Trim(SteamBaseboard(BaseboardNum)%EquipID))
CALL ShowContinueError('Radiation intensity = '//Trim(RoundSigDigits(ThisSurfIntensity,2))//' [W/m2]')
CALL ShowContinueError('Assign a larger surface area or more surfaces in '//cCMO_BBRadiator_Steam )
CALL ShowFatalError('DistributeBBSteamRadGains: excessive thermal radiation heat flux intensity detected')
ENDIF
ELSE ! small surface
CALL ShowSevereError('DistributeBBSteamRadGains: surface not large enough to receive thermal radiation heat flux')
CALL ShowContinueError('Surface = '//TRIM(Surface(SurfNum)%Name) )
CALL ShowContinueError('Surface area = '//TRIM(RoundSigDigits(Surface(SurfNum)%Area,3))//' [m2]')
CALL ShowContinueError('Occurs in '//cCMO_BBRadiator_Steam//' = '//Trim(SteamBaseboard(BaseboardNum)%EquipID))
CALL ShowContinueError('Assign a larger surface area or more surfaces in '//cCMO_BBRadiator_Steam )
CALL ShowFatalError('DistributeBBSteamRadGains: surface not large enough to receive thermal radiation heat flux')
ENDIF
END DO
END DO
RETURN
END SUBROUTINE DistributeBBSteamRadGains