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) | :: | CBNum |
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 UpdateCoolBeam(CBNum)
! SUBROUTINE INFORMATION:
! AUTHOR Fred Buhl
! DATE WRITTEN Feb 2009
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! This subroutine updates the cooled beam unit outlet nodes
! METHODOLOGY EMPLOYED:
! Data is moved from the cooled beam unit data structure to the unit outlet nodes.
! REFERENCES:
! na
! USE STATEMENTS:
USE DataContaminantBalance, ONLY: Contaminant
USE PlantUtilities, ONLY: SafeCopyPlantNode
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! SUBROUTINE ARGUMENT DEFINITIONS:
Integer, Intent(In) :: CBNum
! SUBROUTINE PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS
! na
! DERIVED TYPE DEFINITIONS
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
Integer :: AirInletNode
Integer :: WaterInletNode
Integer :: AirOutletNode
Integer :: WaterOutletNode
AirInletNode = CoolBeam(CBNum)%AirInNode
WaterInletNode = CoolBeam(CBNum)%CWInNode
AirOutletNode = CoolBeam(CBNum)%AirOutNode
WaterOutletNode = CoolBeam(CBNum)%CWOutNode
! Set the outlet air nodes of the unit; note that all quantities are unchanged
Node(AirOutletNode)%MassFlowRate = Node(AirInletNode)%MassFlowRate
Node(AirOutletNode)%Temp = Node(AirInletNode)%Temp
Node(AirOutletNode)%HumRat = Node(AirInletNode)%HumRat
Node(AirOutletNode)%Enthalpy = Node(AirInletNode)%Enthalpy
! Set the outlet water nodes for the unit
! Node(WaterOutletNode)%MassFlowRate = CoolBeam(CBNum)%CoolWaterMassFlow
CALL SafeCopyPlantNode(WaterInletNode, WaterOutletNode)
Node(WaterOutletNode)%Temp = CoolBeam(CBNum)%TWOut
Node(WaterOutletNode)%Enthalpy = CoolBeam(CBNum)%EnthWaterOut
! Set the air outlet nodes for properties that just pass through & not used
Node(AirOutletNode)%Quality = Node(AirInletNode)%Quality
Node(AirOutletNode)%Press = Node(AirInletNode)%Press
Node(AirOutletNode)%MassFlowRateMin = Node(AirInletNode)%MassFlowRateMin
Node(AirOutletNode)%MassFlowRateMax = Node(AirInletNode)%MassFlowRateMax
Node(AirOutletNode)%MassFlowRateMinAvail= Node(AirInletNode)%MassFlowRateMinAvail
Node(AirOutletNode)%MassFlowRateMaxAvail= Node(AirInletNode)%MassFlowRateMaxAvail
! Set the outlet nodes for properties that just pass through & not used
! Node(WaterOutletNode)%Quality = Node(WaterInletNode)%Quality
! Node(WaterOutletNode)%Press = Node(WaterInletNode)%Press
! Node(WaterOutletNode)%HumRat = Node(WaterInletNode)%HumRat
! Node(WaterOutletNode)%MassFlowRateMin = Node(WaterInletNode)%MassFlowRateMin
! Node(WaterOutletNode)%MassFlowRateMax = Node(WaterInletNode)%MassFlowRateMax
! Node(WaterOutletNode)%MassFlowRateMinAvail= Node(WaterInletNode)%MassFlowRateMinAvail
! Node(WaterOutletNode)%MassFlowRateMaxAvail= Node(WaterInletNode)%MassFlowRateMaxAvail
! IF (CoolBeam(CBNum)%CoolWaterMassFlow.EQ.0.0) THEN
! Node(WaterInletNode)%MassFlowRateMinAvail= 0.0
! Node(WaterOutletNode)%MassFlowRateMinAvail= 0.0
! END IF
IF (Contaminant%CO2Simulation) Then
Node(AirOutletNode)%CO2 = Node(AirInletNode)%CO2
End If
IF (Contaminant%GenericContamSimulation) Then
Node(AirOutletNode)%GenContam = Node(AirInletNode)%GenContam
End If
RETURN
END SUBROUTINE UpdateCoolBeam