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.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | CompName | |||
logical, | intent(in) | :: | FirstHVACIteration | |||
real(kind=r64), | intent(out) | :: | LoadMet | |||
integer, | intent(inout) | :: | CompIndex |
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 SimHighTempRadiantSystem(CompName,FirstHVACIteration,LoadMet,CompIndex)
! SUBROUTINE INFORMATION:
! AUTHOR Rick Strand
! DATE WRITTEN February 2001
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! This subroutine is the "manager" for the high temperature radiant
! system model. It is called from the outside and controls the
! actions and subroutine calls to lower levels as appropriate.
! METHODOLOGY EMPLOYED:
! Standard EnergyPlus manager subroutine layout
! REFERENCES:
! na
! USE STATEMENTS:
USE InputProcessor, ONLY: FindItemInList
USE General, ONLY: TrimSigDigits
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! SUBROUTINE ARGUMENT DEFINITIONS:
CHARACTER(len=*), INTENT(IN) :: CompName ! name of the low temperature radiant system
LOGICAL, INTENT(IN) :: FirstHVACIteration ! TRUE if 1st HVAC simulation of system timestep
REAL(r64), INTENT(OUT) :: LoadMet ! load met by the radiant system, in Watts
INTEGER, INTENT(INOUT):: CompIndex
! SUBROUTINE PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS
! na
! DERIVED TYPE DEFINITIONS
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
LOGICAL, SAVE :: GetInputFlag = .TRUE. ! First time, input is "gotten"
INTEGER :: RadSysNum ! Radiant system number/index in local derived types
! FLOW:
IF (GetInputFlag) THEN
CALL GetHighTempRadiantSystem
GetInputFlag=.FALSE.
ENDIF
! Find the correct ZoneHVAC:HighTemperatureRadiant
IF (CompIndex == 0) THEN
RadSysNum = FindItemInList(CompName,HighTempRadSys%Name,NumOfHighTempRadSys)
IF (RadSysNum == 0) THEN
CALL ShowFatalError('SimHighTempRadiantSystem: Unit not found='//TRIM(CompName))
ENDIF
CompIndex=RadSysNum
ELSE
RadSysNum=CompIndex
IF (RadSysNum > NumOfHighTempRadSys .or. RadSysNum < 1) THEN
CALL ShowFatalError('SimHighTempRadiantSystem: Invalid CompIndex passed='// &
TRIM(TrimSigDigits(RadSysNum))// &
', Number of Units='//TRIM(TrimSigDigits(NumOfHighTempRadSys))// &
', Entered Unit name='//TRIM(CompName))
ENDIF
IF (CheckEquipName(RadSysNum)) THEN
IF (CompName /= HighTempRadSys(RadSysNum)%Name) THEN
CALL ShowFatalError('SimHighTempRadiantSystem: Invalid CompIndex passed='// &
TRIM(TrimSigDigits(RadSysNum))// &
', Unit name='//TRIM(CompName)//', stored Unit Name for that index='// &
TRIM(HighTempRadSys(RadSysNum)%Name))
ENDIF
CheckEquipName(RadSysNum)=.false.
ENDIF
ENDIF
CALL InitHighTempRadiantSystem(FirstHVACIteration,RadSysNum)
SELECT CASE (HighTempRadSys(RadSysNum)%ControlType)
CASE (MATControl,MRTControl,OperativeControl)
CALL CalcHighTempRadiantSystem(RadSysNum)
CASE (MATSPControl,MRTSPControl,OperativeSPControl)
CALL CalcHighTempRadiantSystemSP(FirstHVACIteration,RadSysNum)
END SELECT
CALL UpdateHighTempRadiantSystem(RadSysNum,LoadMet)
CALL ReportHighTempRadiantSystem(RadSysNum)
RETURN
END SUBROUTINE SimHighTempRadiantSystem