Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | DXCoilNum | |||
integer, | intent(in) | :: | DehumidMode |
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 CalcBasinHeaterPowerForMultiModeDXCoil(DXCoilNum, DehumidMode)
! SUBROUTINE INFORMATION:
! AUTHOR Chandan Sharma, FSEC
! DATE WRITTEN May 2010
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! To calculate the basin heater power for multi mode DX cooling coil
! METHODOLOGY EMPLOYED:
! The methodology employed is as follows:
! 1) If the number of capacity stages is equal to 1 and the CondenserType for stage 1
! is EvapCooled, then the basin heater power is calculated for (1-runtimefractionstage1) of DX coil
! 2) If the number of capacity stages is greater than 1, then
! a) If the CondenserType for stage 1 is EvapCooled, then the basin heater power is calculated for
! (1-runtimefractionofstage1) of DX coil
! b) Elseif the CondenserType for stage 2 is EvapCooled, then the basin heater power is calculated for
! (1-runtimefractionofstage2) of DX coil
! REFERENCES:
! na
! USE STATEMENTS:
! na
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! SUBROUTINE ARGUMENT DEFINITIONS:
INTEGER, INTENT(IN) :: DehumidMode ! Dehumidification mode (0=normal, 1=enhanced)
INTEGER, INTENT(IN) :: DXCoilNum ! Index of coil being simulated
! SUBROUTINE PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS
! na
! DERIVED TYPE DEFINITIONS
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
INTEGER :: PerfMode ! Performance mode for MultiMode DX coil; Always 1 for other coil types
! 1-2=normal mode: 1=stage 1 only, 2=stage 1&2
! 3-4=enhanced dehumidification mode: 3=stage 1 only, 4=stage 1&2
IF (DXCoil(DXCoilNum)%NumCapacityStages .EQ. 1) THEN
DXCoil(DXCoilNum)%BasinHeaterPower = DXCoil(DXCoilNum)%BasinHeaterPower * &
(1.d0 - DXCoil(DXCoilNum)%CoolingCoilRuntimeFraction)
ELSE
PerfMode = DehumidMode*2 + 1
IF (DXCoil(DXCoilNum)%CondenserType(PerfMode) .EQ. EvapCooled) THEN
DXCoil(DXCoilNum)%BasinHeaterPower = DXCoil(DXCoilNum)%BasinHeaterPower * &
(1.d0 - DXCoil(DXCoilNum)%CoolingCoilRuntimeFraction)
ELSEIF(DXCoil(DXCoilNum)%CondenserType(PerfMode+1) .EQ. EvapCooled) THEN
CALL CalcBasinHeaterPower(DXCoil(DXCoilNum)%BasinHeaterPowerFTempDiff,&
DXCoil(DXCoilNum)%BasinHeaterSchedulePtr,&
DXCoil(DXCoilNum)%BasinHeaterSetPointTemp,&
DXCoil(DXCoilNum)%BasinHeaterPower)
DXCoil(DXCoilNum)%BasinHeaterPower = DXCoil(DXCoilNum)%BasinHeaterPower * &
(1.d0 - DXCoil(DXCoilNum)%CoolingCoilStg2RuntimeFrac)
ENDIF
ENDIF
RETURN
END SUBROUTINE CalcBasinHeaterPowerForMultiModeDXCoil