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(in), | optional | :: | QCoilReq | ||
integer, | intent(inout) | :: | CompIndex | |||
real(kind=r64), | optional | :: | QCoilActual | |||
integer, | intent(in), | optional | :: | FanOpMode | ||
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.
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 SimulateSteamCoilComponents(CompName,FirstHVACIteration,QCoilReq,CompIndex,QCoilActual,FanOpMode,PartLoadRatio)
! SUBROUTINE INFORMATION:
! AUTHOR Rahul Chillar
! DATE WRITTEN Jan 2005
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! This subroutine manages SteamCoil component simulation.
! 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
LOGICAL , INTENT(IN) :: FirstHVACIteration
INTEGER , INTENT(INOUT) :: CompIndex
REAL(r64),INTENT (IN), OPTIONAL :: QCoilReq ! coil load to be met
REAL(r64),OPTIONAL :: QCoilActual ! coil load actually delivered returned to calling component
INTEGER, OPTIONAL, INTENT(IN) :: FanOpMode
REAL(r64), OPTIONAL, INTENT(IN) :: PartLoadRatio
! SUBROUTINE PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS
! na
! DERIVED TYPE DEFINITIONS
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
REAL(r64) :: QCoilActualTemp ! coil load actually delivered returned to calling component
INTEGER :: CoilNum ! The SteamCoil that you are currently loading input into
INTEGER :: OpMode ! fan operating mode
REAL(r64) :: PartLoadFrac ! part-load fraction of heating coil
! Obtains and Allocates SteamCoil related parameters from input file
IF (GetSteamCoilsInputFlag) THEN !First time subroutine has been entered
CALL GetSteamCoilInput
GetSteamCoilsInputFlag=.false.
END IF
! Find the correct SteamCoilNumber with the Coil Name
IF (CompIndex == 0) THEN
CoilNum = FindItemInList(CompName,SteamCoil%Name,NumSteamCoils)
IF (CoilNum == 0) THEN
CALL ShowFatalError('SimulateSteamCoilComponents: Coil not found='//TRIM(CompName))
ENDIF
CompIndex=CoilNum
ELSE
CoilNum=CompIndex
IF (CoilNum > NumSteamCoils .or. CoilNum < 1) THEN
CALL ShowFatalError('SimulateSteamCoilComponents: Invalid CompIndex passed='//TRIM(TrimSigDigits(CoilNum))// &
', Number of Steam Coils='//TRIM(TrimSigDigits(NumSteamCoils))//', Coil name='//TRIM(CompName))
ENDIF
IF (CheckEquipName(CoilNum)) THEN
IF (CompName /= SteamCoil(CoilNum)%Name) THEN
CALL ShowFatalError('SimulateSteamCoilComponents: Invalid CompIndex passed='//TRIM(TrimSigDigits(CoilNum))// &
', Coil name='//TRIM(CompName)//', stored Coil Name for that index='//TRIM(SteamCoil(CoilNum)%Name))
ENDIF
CheckEquipName(CoilNum)=.false.
ENDIF
ENDIF
! With the correct CoilNum Initialize
CALL InitSteamCoil(CoilNum,FirstHVACIteration) ! Initialize all SteamCoil related parameters
IF(PRESENT(FanOpMode))THEN
OpMode = FanOpMode
ELSE
OpMode = ContFanCycCoil
END IF
IF(PRESENT(PartLoadRatio))THEN
PartLoadFrac = PartLoadRatio
ELSE
PartLoadFrac = 1.0d0
END IF
IF(SteamCoil(CoilNum)%SteamCoilType_Num == SteamCoil_AirHeating) THEN
CALL CalcSteamAirCoil(CoilNum,QCoilReq,QCoilActualTemp,OpMode,PartLoadFrac) !Objexx:OPTIONAL QCoilReq used without PRESENT check
IF(PRESENT(QCoilActual))QCoilActual=QcoilActualTemp
END IF
! Update the current SteamCoil to the outlet nodes
CALL UpdateSteamCoil(CoilNum)
! Report the current SteamCoil
CALL ReportSteamCoil(CoilNum)
RETURN
END SUBROUTINE SimulateSteamCoilComponents