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 | |||
integer, | intent(in) | :: | ZoneNum | |||
real(kind=r64), | intent(out) | :: | SensibleOutputProvided | |||
real(kind=r64), | intent(out) | :: | LatentOutputProvided | |||
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 SimZoneEvaporativeCoolerUnit(CompName,ZoneNum,SensibleOutputProvided,LatentOutputProvided,CompIndex)
! SUBROUTINE INFORMATION:
! AUTHOR B. Griffith
! DATE WRITTEN July 2013
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! public simulation routine for managing zone hvac evaporative cooler unit
! METHODOLOGY EMPLOYED:
! <description>
! 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 packaged terminal heat pump
INTEGER, INTENT (IN) :: ZoneNum ! number of zone being served
REAL(r64), INTENT (OUT) :: SensibleOutputProvided ! sensible capacity delivered to zone
REAL(r64), INTENT (OUT) :: LatentOutputProvided ! Latent add/removal (kg/s), dehumid = negative
INTEGER, INTENT (INOUT) :: CompIndex ! index to zone hvac unit
! SUBROUTINE PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS:
! na
! DERIVED TYPE DEFINITIONS:
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
INTEGER :: CompNum
IF (GetInputZoneEvapUnit) THEN
CALL GetInputZoneEvaporativeCoolerUnit
GetInputZoneEvapUnit=.FALSE.
END IF
! Find the correct Equipment
IF (CompIndex == 0) THEN
CompNum = FindItemInList(CompName, ZoneEvapUnit%Name, NumZoneEvapUnits)
IF (CompNum == 0) THEN
CALL ShowFatalError('SimZoneEvaporativeCoolerUnit: Zone evaporative cooler unit not found.')
ENDIF
CompIndex = CompNum
ELSE
CompNum = CompIndex
IF (CompNum < 1 .OR. CompNum > NumZoneEvapUnits) THEN
CALL ShowFatalError('SimZoneEvaporativeCoolerUnit: Invalid CompIndex passed='// &
TRIM(TrimSigDigits(CompNum))// &
', Number of units ='//TRIM(TrimSigDigits(NumZoneEvapUnits))// &
', Entered Unit name = '//TRIM(CompName) )
ENDIF
IF(CheckZoneEvapUnitName(CompNum)) THEN
IF (CompName /= ZoneEvapUnit(CompNum)%Name) THEN
CALL ShowFatalError('SimZoneEvaporativeCoolerUnit: Invalid CompIndex passed='// &
TRIM(TrimSigDigits(CompNum))// &
', Unit name='//TRIM(CompName)//', stored unit name for that index='// &
TRIM(ZoneEvapUnit(CompNum)%Name) )
ENDIF
CheckZoneEvapUnitName(CompNum) = .FALSE.
ENDIF
ENDIF
CALL InitZoneEvaporativeCoolerUnit(CompNum, ZoneNum)
CALL CalcZoneEvaporativeCoolerUnit(CompNum, ZoneNum, SensibleOutputProvided, LatentOutputProvided )
CALL ReportZoneEvaporativeCoolerUnit(CompNum)
RETURN
END SUBROUTINE SimZoneEvaporativeCoolerUnit