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) | :: | DuctNum |
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 UpdateDuct(DuctNum)
! SUBROUTINE INFORMATION:
! AUTHOR Fred Buhl
! DATE WRITTEN 17May2005
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! Moves duct output to the outlet nodes
! METHODOLOGY EMPLOYED:
! na
! REFERENCES:
! na
! USE STATEMENTS:
USE DataContaminantBalance, ONLY: Contaminant
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! SUBROUTINE ARGUMENT DEFINITIONS:
! na
! SUBROUTINE PARAMETER DEFINITIONS:
INTEGER, INTENT (IN) :: DuctNum ! number of the current duct being simulated
! INTERFACE BLOCK SPECIFICATIONS:
! na
! DERIVED TYPE DEFINITIONS:
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
INTEGER :: InNode ! inlet node number
INTEGER :: OutNode ! outlet node number
InNode =Duct(DuctNum)%InletNodeNum
OutNode = Duct(DuctNum)%OutletNodeNum
! Set the outlet air node conditions of the duct
Node(OutNode)%MassFlowRate = Node(InNode)%MassFlowRate
Node(OutNode)%Temp = Node(InNode)%Temp
Node(OutNode)%HumRat = Node(InNode)%HumRat
Node(OutNode)%Enthalpy = Node(InNode)%Enthalpy
Node(OutNode)%Quality = Node(InNode)%Quality
Node(OutNode)%Press = Node(InNode)%Press
Node(OutNode)%MassFlowRateMin = Node(InNode)%MassFlowRateMin
Node(OutNode)%MassFlowRateMax = Node(InNode)%MassFlowRateMax
Node(OutNode)%MassFlowRateMinAvail= Node(InNode)%MassFlowRateMinAvail
Node(OutNode)%MassFlowRateMaxAvail= Node(InNode)%MassFlowRateMaxAvail
IF (Contaminant%CO2Simulation) Then
Node(OutNode)%CO2 = Node(InNode)%CO2
End If
IF (Contaminant%GenericContamSimulation) Then
Node(OutNode)%GenContam = Node(InNode)%GenContam
End If
RETURN
END SUBROUTINE UpdateDuct