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) | :: | OutdoorNum |
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 GetStandAloneERVNodes(OutdoorNum)
! SUBROUTINE INFORMATION:
! AUTHOR Lixing Gu
! DATE WRITTEN July 2010
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! This subroutine gets node numbers of stand alone ERVs to calculate combined outdoor air flows.
! METHODOLOGY EMPLOYED:
! Uses program data structures ZoneEquipInfo
! REFERENCES:
! na
! USE STATEMENTS:
USE DataZoneEquipment, ONLY : ZoneEquipList, ERVStandAlone_Num
USE DataHeatBalance, ONLY: ZoneAirBalance, AirBalanceQuadrature
USE HVACStandAloneERV, ONLY: GetStandAloneERVOutAirNode, GetStandAloneERVReturnAirNode
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! SUBROUTINE ARGUMENTS:
INTEGER, INTENT (IN) :: OutdoorNum ! Zone Air Balance Outdoor index
! SUBROUTINE PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS:
! na
! DERIVED TYPE DEFINITIONS:
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
! INTEGER :: ERVNum=0 ! the stand alone ERV index
INTEGER :: ZoneNum=0 ! zone index
INTEGER :: J ! index
INTEGER :: I ! index
If (ALLOCATED(ZoneEquipList)) Then
ZoneNum = ZoneAirBalance(OutdoorNum)%ZonePtr
ZoneAirBalance(OutdoorNum)%OneTimeFlag = .TRUE.
If (ZoneEquipList(ZoneNum)%NumOfEquipTypes .GT. 0) Then
Do I=1,ZoneEquipList(ZoneNum)%NumOfEquipTypes
If (ZoneEquipList(ZoneNum)%EquipType_Num(I) == ERVStandAlone_Num) Then
ZoneAirBalance(OutdoorNum)%NumOfERVs = ZoneAirBalance(OutdoorNum)%NumOfERVs + 1
End If
End Do
If (ZoneAirBalance(OutdoorNum)%NumOfERVs > 0) Then
ALLOCATE(ZoneAirBalance(OutdoorNum)%ERVInletNode(ZoneAirBalance(OutdoorNum)%NumOfERVs))
ALLOCATE(ZoneAirBalance(OutdoorNum)%ERVExhaustNode(ZoneAirBalance(OutdoorNum)%NumOfERVs))
J = 1
Do I=1,ZoneEquipList(ZoneNum)%NumOfEquipTypes
If (ZoneEquipList(ZoneNum)%EquipType_Num(I) == ERVStandAlone_Num) Then
ZoneAirBalance(OutdoorNum)%ERVInletNode(J) = GetStandAloneERVOutAirNode(ZoneEquipList(ZoneNum)%EquipIndex(I))
ZoneAirBalance(OutdoorNum)%ERVExhaustNode(J) = GetStandAloneERVReturnAirNode(ZoneEquipList(ZoneNum)%EquipIndex(I))
J = J+1
End If
End Do
End If
End If
End If
RETURN
END SUBROUTINE GetStandAloneERVNodes