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 | |||
logical, | intent(inout) | :: | PlenumInletChanged | |||
logical, | intent(in) | :: | FirstCall |
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 UpdateAirZoneSupplyPlenum(ZonePlenumNum, PlenumInletChanged, FirstCall)
! SUBROUTINE INFORMATION:
! AUTHOR Peter Graham Ellis
! DATE WRITTEN March 2000
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! This subroutine needs a description.
! METHODOLOGY EMPLOYED:
! Similar to the Zone Splitter component but with interactions to the plenum zone.
! 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
LOGICAL, INTENT(INOUT) :: PlenumInletChanged
LOGICAL, INTENT(IN) :: FirstCall
! SUBROUTINE PARAMETER DEFINITIONS:
REAL(r64), PARAMETER :: FlowRateToler = 0.01d0 ! Tolerance for mass flow rate convergence (in kg/s)
! INTERFACE BLOCK SPECIFICATIONS
! na
! DERIVED TYPE DEFINITIONS
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
INTEGER :: OutletNode
INTEGER :: InletNode
INTEGER :: ZoneNode
INTEGER :: NodeIndex
OutletNode = ZoneSupPlenCond(ZonePlenumNum)%OutletNode(1)
InletNode = ZoneSupPlenCond(ZonePlenumNum)%InletNode
ZoneNode = ZoneSupPlenCond(ZonePlenumNum)%ZoneNodeNum
! On the FirstCall the State properties are passed through and the mass flows are not dealt with
IF (FirstCall) THEN
! Set the outlet nodes for properties that just pass through and not used
DO NodeIndex=1,ZoneSupPlenCond(ZonePlenumNum)%NumOutletNodes
OutletNode = ZoneSupPlenCond(ZonePlenumNum)%OutletNode(NodeIndex)
Node(OutletNode)%Temp = ZoneSupPlenCond(ZonePlenumNum)%OutletTemp(NodeIndex)
Node(OutletNode)%HumRat = ZoneSupPlenCond(ZonePlenumNum)%OutletHumRat(NodeIndex)
Node(OutletNode)%Enthalpy = ZoneSupPlenCond(ZonePlenumNum)%OutletEnthalpy(NodeIndex)
IF (Contaminant%CO2Simulation) Then
Node(OutletNode)%CO2 = Node(InletNode)%CO2
End If
IF (Contaminant%GenericContamSimulation) Then
Node(OutletNode)%GenContam = Node(InletNode)%GenContam
End If
END DO
IF (Contaminant%CO2Simulation) Then
Node(ZoneNode)%CO2 = Node(InletNode)%CO2
End If
IF (Contaminant%GenericContamSimulation) Then
Node(ZoneNode)%GenContam = Node(InletNode)%GenContam
End If
ELSE
! The second time through just updates the mass flow conditions back upstream
! to the inlet.
If(ABS(Node(InletNode)%MassFlowRate - ZoneSupPlenCond(ZonePlenumNum)%InletMassFlowRate).GT.FlowRateToler) Then
PlenumInletChanged = .TRUE.
END IF
Node(InletNode)%MassFlowRate = ZoneSupPlenCond(ZonePlenumNum)%InletMassFlowRate
Node(InletNode)%MassFlowRateMaxAvail = ZoneSupPlenCond(ZonePlenumNum)%InletMassFlowRateMaxAvail
Node(InletNode)%MassFlowRateMinAvail = ZoneSupPlenCond(ZonePlenumNum)%InletMassFlowRateMinAvail
Node(ZoneNode)%MassFlowRate = ZoneSupPlenCond(ZonePlenumNum)%InletMassFlowRate
Node(ZoneNode)%MassFlowRateMaxAvail = ZoneSupPlenCond(ZonePlenumNum)%InletMassFlowRateMaxAvail
Node(ZoneNode)%MassFlowRateMinAvail = ZoneSupPlenCond(ZonePlenumNum)%InletMassFlowRateMinAvail
END IF !For FirstCall
RETURN
END SUBROUTINE UpdateAirZoneSupplyPlenum