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 DistributeBBElecRadGains
! SUBROUTINE INFORMATION:
! AUTHOR Rick Strand
! DATE WRITTEN February 2001
! MODIFIED Feb 2010 Daeho Kang for 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 electric 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 DataHeatBalFanSys, ONLY : QElecBaseboardToPerson, QElecBaseboardSurf, MaxRadHeatFlux
USE General, ONLY : RoundSigDigits
USE DataSurfaces, ONLY : Surface, TotSurfaces
USE DataZoneEquipment, ONLY : ZoneEquipConfig
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
QElecBaseboardSurf = 0.0D0
QElecBaseboardToPerson = 0.0D0
DO BaseboardNum = 1, NumElecBaseboards
ZoneNum = ElecBaseboard(BaseboardNum)%ZonePtr
QElecBaseboardToPerson(ZoneNum) = QElecBaseboardToPerson(ZoneNum) + &
QBBElecRadSource(BaseboardNum) * ElecBaseboard(BaseboardNum)%FracDistribPerson
DO RadSurfNum = 1, ElecBaseboard(BaseboardNum)%TotSurfToDistrib
SurfNum = ElecBaseboard(BaseboardNum)%SurfacePtr(RadSurfNum)
IF (Surface(SurfNum)%Area > SmallestArea) THEN
ThisSurfIntensity = (QBBElecRadSource(BaseboardNum) &
* ElecBaseboard(BaseboardNum)%FracDistribToSurf(RadSurfNum) &
/ Surface(SurfNum)%Area)
QElecBaseboardSurf(SurfNum) = QElecBaseboardSurf(SurfNum) + ThisSurfIntensity
IF (ThisSurfIntensity > MaxRadHeatFlux) THEN
CALL ShowSevereError('DistributeBBElecRadGains: 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_Electric//' = '//Trim(ElecBaseboard(BaseboardNum)%EquipName))
CALL ShowContinueError('Radiation intensity = '//Trim(RoundSigDigits(ThisSurfIntensity,2))//' [W/m2]')
CALL ShowContinueError('Assign a larger surface area or more surfaces in '//cCMO_BBRadiator_Electric )
CALL ShowFatalError('DistributeBBElecRadGains: excessive thermal radiation heat flux intensity detected')
ENDIF
ELSE
CALL ShowSevereError('DistributeBBElecRadGains: 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_Electric//' = '//Trim(ElecBaseboard(BaseboardNum)%EquipName))
CALL ShowContinueError('Assign a larger surface area or more surfaces in '//cCMO_BBRadiator_Electric )
CALL ShowFatalError('DistributeBBElecRadGains: surface not large enough to receive thermal radiation heat flux')
ENDIF
END DO
END DO
RETURN
END SUBROUTINE DistributeBBElecRadGains