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(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.
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 SimEvapCooler(CompName,CompIndex)
! SUBROUTINE INFORMATION:
! AUTHOR Richard Liesen
! DATE WRITTEN October 2000
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! This subroutine manages EvapCooler component simulation.
! It is called from the SimAirLoopComponent
! at the system time step.
! METHODOLOGY EMPLOYED:
! na
! 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
INTEGER, INTENT(INOUT) :: CompIndex
! SUBROUTINE PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS
! na
! DERIVED TYPE DEFINITIONS
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
INTEGER :: EvapCoolNum ! The EvapCooler that you are currently loading input into
! FLOW:
! Obtains and Allocates EvapCooler related parameters from input file
IF (GetInputEvapComponentsFlag) THEN !First time subroutine has been entered
CALL GetEvapInput
GetInputEvapComponentsFlag=.false.
End If
! Find the correct EvapCoolNumber
IF (CompIndex == 0) THEN
EvapCoolNum=FindItemInList(CompName,EvapCond%EvapCoolerName,NumEvapCool)
IF (EvapCoolNum == 0) THEN
CALL ShowFatalError('SimEvapCooler: Unit not found='//TRIM(CompName))
ENDIF
CompIndex=EvapCoolNum
ELSE
EvapCoolNum=CompIndex
IF (EvapCoolNum > NumEvapCool .or. EvapCoolNum < 1) THEN
CALL ShowFatalError('SimEvapCooler: Invalid CompIndex passed='// &
TRIM(TrimSigDigits(EvapCoolNum))// &
', Number of Units='//TRIM(TrimSigDigits(NumEvapCool))// &
', Entered Unit name='//TRIM(CompName))
ENDIF
IF (CheckEquipName(EvapCoolNum)) THEN
IF (CompName /= EvapCond(EvapCoolNum)%EvapCoolerName) THEN
CALL ShowFatalError('SimEvapCooler: Invalid CompIndex passed='// &
TRIM(TrimSigDigits(EvapCoolNum))// &
', Unit name='//TRIM(CompName)//', stored Unit Name for that index='// &
TRIM(EvapCond(EvapCoolNum)%EvapCoolerName))
ENDIF
CheckEquipName(EvapCoolNum)=.false.
ENDIF
ENDIF
! With the correct EvapCoolNum Initialize
CALL InitEvapCooler(EvapCoolNum) ! Initialize all related parameters
SELECT CASE (EvapCond(EvapCoolNum)%EvapCoolerType)
CASE (iEvapCoolerDirectCELDEKPAD)
CALL CalcDirectEvapCooler(EvapCoolNum)
CASE (iEvapCoolerInDirectCELDEKPAD)
CALL CalcDryIndirectEvapCooler(EvapCoolNum)
CASE ( iEvapCoolerInDirectWETCOIL)
CALL CalcWetIndirectEvapCooler(EvapCoolNum)
CASE (iEvapCoolerInDirectRDDSpecial)
CALL CalcResearchSpecialPartLoad(EvapCoolNum)
CALL CalcIndirectResearchSpecialEvapCooler(EvapCoolNum)
CASE (iEvapCoolerDirectResearchSpecial)
CALL CalcResearchSpecialPartLoad(EvapCoolNum)
CALL CalcDirectResearchSpecialEvapCooler(EvapCoolNum)
END SELECT
! Update the current Evap Cooler to the outlet nodes
CALL UpdateEvapCooler(EvapCoolNum)
! Report the current Evap Cooler
CALL ReportEvapCooler(EvapCoolNum)
RETURN
END SUBROUTINE SimEvapCooler