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) | :: | ZonePlenumNum |
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 UpdateAirZoneReturnPlenum(ZonePlenumNum)
! SUBROUTINE INFORMATION:
! AUTHOR Peter Graham Ellis
! DATE WRITTEN November 2000
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! This subroutine needs a description.
! METHODOLOGY EMPLOYED:
! Needs description, as appropriate.
! REFERENCES:
! na
! USE STATEMENTS:
USE DataContaminantBalance, ONLY: Contaminant
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! SUBROUTINE ARGUMENT DEFINITIONS:
INTEGER, INTENT(IN) :: ZonePlenumNum
! SUBROUTINE PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS
! na
! DERIVED TYPE DEFINITIONS
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
INTEGER :: OutletNode
INTEGER :: InletNode
INTEGER :: ZoneNode
INTEGER :: InletNodeNum
INTEGER :: InducedNode ! the node number of an induced air outlet node
INTEGER :: IndNum ! the induced air outlet index in ZoneRetPlenCond
OutletNode = ZoneRetPlenCond(ZonePlenumNum)%OutletNode
InletNode = ZoneRetPlenCond(ZonePlenumNum)%InletNode(1)
ZoneNode = ZoneRetPlenCond(ZonePlenumNum)%ZoneNodeNum
! Set the outlet air nodes of the ZonePlenum
Node(OutletNode)%MassFlowRate = ZoneRetPlenCond(ZonePlenumNum)%OutletMassFlowRate
Node(OutletNode)%MassFlowRateMaxAvail = ZoneRetPlenCond(ZonePlenumNum)%OutletMassFlowRateMaxAvail
Node(OutletNode)%MassFlowRateMinAvail = ZoneRetPlenCond(ZonePlenumNum)%OutletMassFlowRateMinAvail
Node(ZoneNode)%MassFlowRate = ZoneRetPlenCond(ZonePlenumNum)%OutletMassFlowRate
Node(ZoneNode)%MassFlowRateMaxAvail = ZoneRetPlenCond(ZonePlenumNum)%OutletMassFlowRateMaxAvail
Node(ZoneNode)%MassFlowRateMinAvail = ZoneRetPlenCond(ZonePlenumNum)%OutletMassFlowRateMinAvail
Node(ZoneNode)%Press = ZoneRetPlenCond(ZonePlenumNum)%OutletPressure
Node(OutletNode)%Temp = ZoneRetPlenCond(ZonePlenumNum)%OutletTemp
Node(OutletNode)%HumRat = ZoneRetPlenCond(ZonePlenumNum)%OutletHumRat
Node(OutletNode)%Enthalpy = ZoneRetPlenCond(ZonePlenumNum)%OutletEnthalpy
Node(OutletNode)%Press = ZoneRetPlenCond(ZonePlenumNum)%OutletPressure
DO IndNum=1,ZoneRetPlenCond(ZonePlenumNum)%NumInducedNodes
InducedNode = ZoneRetPlenCond(ZonePlenumNum)%InducedNode(IndNum)
Node(InducedNode)%Temp = ZoneRetPlenCond(ZonePlenumNum)%InducedTemp(IndNum)
Node(InducedNode)%HumRat = ZoneRetPlenCond(ZonePlenumNum)%InducedHumRat(IndNum)
Node(InducedNode)%Enthalpy = ZoneRetPlenCond(ZonePlenumNum)%InducedEnthalpy(IndNum)
Node(InducedNode)%Press = ZoneRetPlenCond(ZonePlenumNum)%InducedPressure(IndNum)
Node(InducedNode)%Quality = Node(InletNode)%Quality
END DO
! Set the outlet nodes for properties that are just pass through and not used
Node(OutletNode)%Quality = Node(InletNode)%Quality
Node(ZoneNode)%Quality = Node(InletNode)%Quality
IF (Contaminant%CO2Simulation) Then
If(ZoneRetPlenCond(ZonePlenumNum)%OutletMassFlowRate .gt. 0.d0) Then
! CO2 balance to get outlet air CO2
Node(OutletNode)%CO2 = 0.0d0
DO InletNodeNum = 1, ZoneRetPlenCond(ZonePlenumNum)%NumInletNodes
Node(OutletNode)%CO2 = Node(OutletNode)%CO2 + Node(ZoneRetPlenCond(ZonePlenumNum)%InletNode(InletNodeNum))%CO2 * &
ZoneRetPlenCond(ZonePlenumNum)%InletMassFlowRate(InletNodeNum) / ZoneRetPlenCond(ZonePlenumNum)%OutletMassFlowRate
END DO
Node(ZoneNode)%CO2 = Node(OutletNode)%CO2
Else
Node(OutletNode)%CO2 = Node(InletNode)%CO2
Node(ZoneNode)%CO2 = Node(InletNode)%CO2
End If
End If
IF (Contaminant%GenericContamSimulation) Then
If(ZoneRetPlenCond(ZonePlenumNum)%OutletMassFlowRate .gt. 0.d0) Then
! Contaminant balance to get outlet air generic contaminant
Node(OutletNode)%GenContam = 0.0d0
DO InletNodeNum = 1, ZoneRetPlenCond(ZonePlenumNum)%NumInletNodes
Node(OutletNode)%GenContam =Node(OutletNode)%GenContam + &
Node(ZoneRetPlenCond(ZonePlenumNum)%InletNode(InletNodeNum))%GenContam * &
ZoneRetPlenCond(ZonePlenumNum)%InletMassFlowRate(InletNodeNum) / ZoneRetPlenCond(ZonePlenumNum)%OutletMassFlowRate
END DO
Node(ZoneNode)%GenContam = Node(OutletNode)%GenContam
Else
Node(OutletNode)%GenContam = Node(InletNode)%GenContam
Node(ZoneNode)%GenContam = Node(InletNode)%GenContam
End If
End If
RETURN
END SUBROUTINE UpdateAirZoneReturnPlenum