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) | :: | CoilNum |
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 UpdateWaterCoil(CoilNum)
! SUBROUTINE INFORMATION:
! AUTHOR Richard Liesen
! DATE WRITTEN 1998
! MODIFIED April 2004: Rahul Chillar
! Feb 2010 B. Griffith, plant upgrades
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! This subroutine updates the coil outlet nodes.
! METHODOLOGY EMPLOYED:
! Data is moved from the coil data structure to the coil outlet nodes.
! REFERENCES:
! na
! USE STATEMENTS:
USE PlantUtilities , ONLY: SetComponentFlowRate
USE DataContaminantBalance, ONLY: Contaminant
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! SUBROUTINE ARGUMENT DEFINITIONS:
INTEGER, INTENT(In) :: CoilNum
! 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 = WaterCoil(CoilNum)%AirInletNodeNum
WaterInletNode = WaterCoil(CoilNum)%WaterInletNodeNum
AirOutletNode = WaterCoil(CoilNum)%AirOutletNodeNum
WaterOutletNode = WaterCoil(CoilNum)%WaterOutletNodeNum
! Set the outlet air nodes of the WaterCoil
Node(AirOutletNode)%MassFlowRate = WaterCoil(CoilNum)%OutletAirMassFlowRate
Node(AirOutletNode)%Temp = WaterCoil(CoilNum)%OutletAirTemp
Node(AirOutletNode)%HumRat = WaterCoil(CoilNum)%OutletAirHumRat
Node(AirOutletNode)%Enthalpy = WaterCoil(CoilNum)%OutletAirEnthalpy
Node(WaterOutletNode)%Temp = WaterCoil(CoilNum)%OutletWaterTemp
Node(WaterOutletNode)%Enthalpy = WaterCoil(CoilNum)%OutletWaterEnthalpy
! Set the 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
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 UpdateWaterCoil