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) | :: | DamperNum |
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 SizeDualDuct(DamperNum)
! SUBROUTINE INFORMATION:
! AUTHOR Fred Buhl
! DATE WRITTEN January 2002
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! This subroutine is for sizing Dual Duct air terminal units for which flow rates have not been
! specified in the input.
! METHODOLOGY EMPLOYED:
! Obtains flow rates from the zone or system sizing arrays.
! REFERENCES:
! na
! USE STATEMENTS:
USE InputProcessor
USE ReportSizingManager, ONLY: ReportSizingOutput
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! SUBROUTINE ARGUMENT DEFINITIONS:
INTEGER, INTENT(IN) :: DamperNum
! SUBROUTINE PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS
! na
! DERIVED TYPE DEFINITIONS
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
CHARACTER(len=MaxNameLength) :: DamperType
IF (Damper(DamperNum)%MaxAirVolFlowRate == AutoSize) THEN
IF (CurZoneEqNum > 0) THEN
IF (Damper(DamperNum)%DamperType == DualDuct_ConstantVolume) THEN
DamperType=cCMO_DDConstantVolume
ELSEIF (Damper(DamperNum)%DamperType == DualDuct_VariableVolume) THEN
DamperType=cCMO_DDVariableVolume
ELSEIF (Damper(DamperNum)%DamperType == DualDuct_OutdoorAir) THEN
DamperType=cCMO_DDVarVolOA
ELSE
DamperType='Invalid/Unknown'
ENDIF
CALL CheckZoneSizing(DamperType, Damper(DamperNum)%DamperName)
Damper(DamperNum)%MaxAirVolFlowRate = MAX(TermUnitFinalZoneSizing(CurZoneEqNum)%DesCoolVolFlow, &
TermUnitFinalZoneSizing(CurZoneEqNum)%DesHeatVolFlow)
IF (Damper(DamperNum)%DamperType == DualDuct_OutdoorAir) THEN
IF ( Damper(DamperNum)%RecircIsUsed ) THEN
Damper(DamperNum)%DesignRecircFlowRate = MAX(TermUnitFinalZoneSizing(CurZoneEqNum)%DesCoolVolFlow, &
TermUnitFinalZoneSizing(CurZoneEqNum)%DesHeatVolFlow)
Damper(DamperNum)%MaxAirVolFlowRate = Damper(DamperNum)%DesignRecircFlowRate &
+ Damper(DamperNum)%DesignOAFlowRate
ELSE
Damper(DamperNum)%MaxAirVolFlowRate = Damper(DamperNum)%DesignOAFlowRate
Damper(DamperNum)%DesignRecircFlowRate = 0.d0
ENDIF
Damper(DamperNum)%MaxAirMassFlowRate = Damper(DamperNum)%MaxAirVolFlowRate * StdRhoAir
ENDIF
IF (Damper(DamperNum)%MaxAirVolFlowRate < SmallAirVolFlow) THEN
Damper(DamperNum)%MaxAirVolFlowRate = 0.d0
Damper(DamperNum)%MaxAirMassFlowRate = 0.d0
Damper(DamperNum)%DesignOAFlowRate = 0.d0
Damper(DamperNum)%DesignRecircFlowRate = 0.d0
END IF
CALL ReportSizingOutput(DamperType, Damper(DamperNum)%DamperName, &
'Maximum Air Flow Rate [m3/s]', Damper(DamperNum)%MaxAirVolFlowRate)
IF (Damper(DamperNum)%DamperType == DualDuct_OutdoorAir) THEN
CALL ReportSizingOutput(DamperType, Damper(DamperNum)%DamperName, &
'Maximum Outdoor Air Flow Rate [m3/s]', Damper(DamperNum)%DesignOAFlowRate)
IF ( Damper(DamperNum)%RecircIsUsed ) THEN
CALL ReportSizingOutput(DamperType, Damper(DamperNum)%DamperName, &
'Maximum Recirculated Air Flow Rate [m3/s]', Damper(DamperNum)%DesignRecircFlowRate)
ENDIF
ENDIF
END IF
END IF
RETURN
END SUBROUTINE SizeDualDuct