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 | |||
integer, | intent(in) | :: | FanOpMode | |||
integer, | intent(out) | :: | TESOpMode | |||
real(kind=r64), | intent(in), | optional | :: | PartLoadRatio |
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 SimTESCoil(CompName, CompIndex, FanOpMode, TESOpMode, PartLoadRatio)
! SUBROUTINE INFORMATION:
! AUTHOR <author>
! DATE WRITTEN <date_written>
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! <description>
! 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 fan coil unit
INTEGER , INTENT (INOUT) :: CompIndex
INTEGER , INTENT (IN) :: FanOpMode ! allows parent object to control fan mode
INTEGER , INTENT (OUT) :: TESOpMode
REAL(r64) , INTENT (IN), OPTIONAL :: PartLoadRatio ! part load ratio (for single speed cycling unit)
! SUBROUTINE PARAMETER DEFINITIONS:
CHARACTER(len=*), PARAMETER :: Blank = ' '
! INTERFACE BLOCK SPECIFICATIONS:
! na
! DERIVED TYPE DEFINITIONS:
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
INTEGER :: TESCoilNum
IF (GetTESInputFlag) THEN
CALL GetTESCoilInput
GetTESInputFlag = .FALSE.
ENDIF
IF (CompIndex == 0) THEN
TESCoilNum = FindItemInList(CompName,TESCoil%Name,NumTESCoils)
IF (TESCoilNum == 0) THEN
CALL ShowFatalError('Thermal Energy Storage Cooling Coil not found='//TRIM(CompName))
ENDIF
CompIndex=TESCoilNum
ELSE
TESCoilNum=CompIndex
IF (TESCoilNum > NumTESCoils .or. TESCoilNum < 1) THEN
CALL ShowFatalError('SimTESCoil: Invalid CompIndex passed='// &
TRIM(TrimSigDigits(TESCoilNum))// &
', Number of Thermal Energy Storage Cooling Coil Coils='//TRIM(TrimSigDigits(NumTESCoils))// &
', Coil name='//TRIM(CompName))
ENDIF
IF (CheckEquipName(TESCoilNum)) THEN
IF (CompName /= Blank .AND. CompName /= TESCoil(TESCoilNum)%Name) THEN
CALL ShowFatalError('SimTESCoil: Invalid CompIndex passed='// &
TRIM(TrimSigDigits(TESCoilNum))// &
', Coil name='//TRIM(CompName)//', stored Coil Name for that index='// &
TRIM(TESCoil(TESCoilNum)%Name))
ENDIF
CheckEquipName(TESCoilNum)=.FALSE.
ENDIF
ENDIF
TESOpMode = 1
CALL InitTESCoil(TESCoilNum)
TESOpMode = TESCoil(TESCoilNum)%CurControlMode
SELECT CASE (TESOpMode)
CASE (OffMode)
CALL CalcTESCoilOffMode( TESCoilNum )
CASE (CoolingOnlyMode)
CALL CalcTESCoilCoolingOnlyMode(TESCoilNum, FanOpMode, PartLoadRatio)
CASE (CoolingAndChargeMode)
CALL CalcTESCoilCoolingAndChargeMode(TESCoilNum, FanOpMode, PartLoadRatio)
CASE (CoolingAndDischargeMode)
CALL CalcTESCoilCoolingAndDischargeMode(TESCoilNum, FanOpMode, PartLoadRatio)
CASE (ChargeOnlyMode)
CALL CalcTESCoilChargeOnlyMode(TESCoilNum)
CASE (DischargeOnlyMode)
CALL CalcTESCoilDischargeOnlyMode(TESCoilNum, PartLoadRatio)
END SELECT
RETURN
END SUBROUTINE SimTESCoil