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 | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | ExchNum |
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 SizeHeatRecovery(ExchNum)
! SUBROUTINE INFORMATION:
! AUTHOR Richard Raustad
! DATE WRITTEN October 2007
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! This subroutine is for sizing Heat Exchanger components for which flow rates have not been
! specified in the input. Currently, only nominal supply air flow rate for the generic HX can be autosized.
! METHODOLOGY EMPLOYED:
! Obtains flow rates from the system or OA system sizing arrays
! REFERENCES:
! na
! USE STATEMENTS:
USE DataSizing
USE DataHVACGlobals, ONLY: SmallAirVolFlow, Main, Cooling, Heating, Other
USE ReportSizingManager, ONLY: ReportSizingOutput
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! SUBROUTINE ARGUMENT DEFINITIONS:
Integer, Intent(IN) :: ExchNum
! SUBROUTINE PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS
! na
! DERIVED TYPE DEFINITIONS
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
! na
IF (ExchCond(ExchNum)%NomSupAirVolFlow == AutoSize) THEN
IF (CurZoneEqNum > 0) THEN
CALL CheckZoneSizing(cHXTypes(ExchCond(ExchNum)%ExchTypeNum), ExchCond(ExchNum)%Name)
ExchCond(ExchNum)%NomSupAirVolFlow = MAX(FinalZoneSizing(CurZoneEqNum)%DesCoolVolFlow, &
FinalZoneSizing(CurZoneEqNum)%DesHeatVolFlow)
END IF
IF (CurSysNum > 0) THEN
CALL CheckSysSizing(cHXTypes(ExchCond(ExchNum)%ExchTypeNum), ExchCond(ExchNum)%Name)
IF (CurOASysNum > 0) THEN
! size to outdoor air volume flow rate if available
IF(FinalSysSizing(CurSysNum)%DesOutAirVolFlow .GT. 0.d0)THEN
ExchCond(ExchNum)%NomSupAirVolFlow = FinalSysSizing(CurSysNum)%DesOutAirVolFlow
ELSE
! ELSE size to supply air duct flow rate
SELECT CASE(CurDuctType)
CASE(Main)
ExchCond(ExchNum)%NomSupAirVolFlow = FinalSysSizing(CurSysNum)%DesMainVolFlow
CASE(Cooling)
ExchCond(ExchNum)%NomSupAirVolFlow = FinalSysSizing(CurSysNum)%DesCoolVolFlow
CASE(Heating)
ExchCond(ExchNum)%NomSupAirVolFlow = FinalSysSizing(CurSysNum)%DesHeatVolFlow
CASE(Other)
ExchCond(ExchNum)%NomSupAirVolFlow = FinalSysSizing(CurSysNum)%DesMainVolFlow
CASE DEFAULT
ExchCond(ExchNum)%NomSupAirVolFlow = FinalSysSizing(CurSysNum)%DesMainVolFlow
END SELECT
END IF
ELSE
SELECT CASE(CurDuctType)
CASE(Main)
ExchCond(ExchNum)%NomSupAirVolFlow = FinalSysSizing(CurSysNum)%DesMainVolFlow
CASE(Cooling)
ExchCond(ExchNum)%NomSupAirVolFlow = FinalSysSizing(CurSysNum)%DesCoolVolFlow
CASE(Heating)
ExchCond(ExchNum)%NomSupAirVolFlow = FinalSysSizing(CurSysNum)%DesHeatVolFlow
CASE(Other)
ExchCond(ExchNum)%NomSupAirVolFlow = FinalSysSizing(CurSysNum)%DesMainVolFlow
CASE DEFAULT
ExchCond(ExchNum)%NomSupAirVolFlow = FinalSysSizing(CurSysNum)%DesMainVolFlow
END SELECT
END IF
END IF
IF (ExchCond(ExchNum)%NomSupAirVolFlow < SmallAirVolFlow) THEN
ExchCond(ExchNum)%NomSupAirVolFlow = 0.0d0
! Generic HX will be turned off if nominal air flow rate is 0, even if simulated air flow through
! HX is greater than 0. Avoids a divide by 0 in Sub CalcAirToAirGenericHeatExch.
IF(ExchCond(ExchNum)%ExchTypeNum == HX_AIRTOAIR_GENERIC) THEN
CALL ShowWarningError(TRIM(cHXTypes(ExchCond(ExchNum)%ExchTypeNum))//': "'//TRIM(ExchCond(ExchNum)%Name)//'"')
CALL ShowContinueError('... nominal supply air volume flow rate through the heat exchanger is sized to 0'// &
', see eio file for sizing results.')
CALL ShowContinueError('... HX will not be enabled and the simulation continues.')
CALL ShowContinueError('... To eliminate this warning, check sizing and HX inputs to correct HX sizing issue.')
END IF
END IF
CALL ReportSizingOutput(cHXTypes(ExchCond(ExchNum)%ExchTypeNum), ExchCond(ExchNum)%Name, &
'Nominal Supply Air Flow Rate [m3/s]', ExchCond(ExchNum)%NomSupAirVolFlow)
END IF
RETURN
END SUBROUTINE SizeHeatRecovery